How to find a function $f(x)$ that satisfies:
- $f(x)$ defines only on the positive axis of X;
- when $x\to 0$, $f(x)\to +\infty$.
- Exist a positive real number $k$, when $x\to k$, $f(x)\to 0$ and $f(x)=0$ for $x>k$.
- $f'(x)<0$ for $x\in[0,k)$, and $f'(k)=0$.
- $f''(x)>0$.
Thanks.
$$f:\mathbb{R_+} \to \mathbb{R}$$ $$ f(x)=\begin{cases} \cot^2(x) & 0<x<\dfrac{\pi}{2}\\ 0 & x\geq \dfrac{\pi}{2}. \end{cases} $$