If $f(x)=(\sin x + \csc x)^2+(\cos x + \sec x)^2$, then what is the minimum value of $f(x)$?
My Try : Now upon using Arithmetic Mean is greater than or equal to Geometric Mean I got minimum values for the following expressions as :-
$\sin^2x+\csc^2x=2$ and also, $\cos^2x+\sec^2x=2$
But surprisingly, the answer I get after opening the square and using this is $8$ while my book shows its $9$. Someone please tell me what I'm doing wrong.
HInt :$$f(x)=(\sin x + \csc x)^2+(\cos x + \sec x)^2\\=(\sin x +\frac{1}{\sin x})^2+(\cos x +\frac{1}{\cos x})^2=$$ $$\sin^2x+\frac{1}{\sin^2 x}+2+\cos ^2 x+\frac{1}{\cos^2 x}+2=\\ 5+\frac{1}{\sin^2 x}+\frac{1}{\cos^2 x}=\\ 5+\frac{{\sin^2 x+\cos^2 x}}{\sin^2 x\cos^2 x}=\\ 5+\frac{1}{\sin^2 x\cos^2 x}$$now take $$a=\sin^2x, b=\cos^2x \\a+b=1 \\a+b \geq 2\sqrt{ab} \to \sqrt{ab}\leq \frac{a+b}{2}=\frac12 \to \max(ab)=\frac{1}{2^2}\\ \min\left(\frac{1}{\sin^2 x\cos^2 x}\right)=\min\left(\frac{1}{ab}\right)=\frac{1}{\max({ab})}=\frac{1}{\frac{1}{4}}=4$$ finally $$\min(f)=5+4$$