I have to prove that I there exists the max of this function, and I have to find it.
$$\max_{x\in\mathbb{R}\backslash \{0\}}\{\ln\vert x \vert - x^2 + 4\} $$
So I thought I could calculate the derivative:
$$\dfrac{1}{\vert x \vert} \text{sgn(x)} - 2x$$
The zeroes are $x = \pm\sqrt{1/2}$ but the function in these values returns the same value. How to deal with this?
To prove there is a max, I observe that
$$\lim_{x\to \pm \infty} \ln\vert x \vert -x^2+4 = -\infty$$
Can I from here conclude that the function because of this has max?
Also, how can I prove that $\ln\vert x \vert - x^2 < -\frac{3}{4}$ for all $x$ in $\mathbb{R}-\{0\}$?
Thank you!
$f(-x)=f(x)$ so if $f$ attains it maximum value at $x_0,$ it will also attain it at $-x_0.$
To conclude there is a max, you must also prove that $\lim_0f=-\infty.$
Then, the max is as you found : at $\pm\frac1{\sqrt2}.$
Therefore, $\ln\vert x \vert - x^2 < -\frac{3}{4}$ for all $x\in\mathbb{R}\setminus\{0\}$ is equivalent to $f\left(\frac1{\sqrt2}\right)<-\frac{3}{4}+4$ i.e. (after simplification) $\ln2>\frac12.$