Given that $x$ lies in the first quadrant. Find the minimum value of $$4\sec^{2}(x)+9\csc^{2}(x)$$
Using derivatives, I am able to show that the minimum value of the expression-in-question is equal to $25$. I also verified this with Desmos graphing app. However, when I tried doing this using basic algebra, the answer turns out to be $26$. I do not know why this is happening, but I should be extremely grateful to you if you can point out the error.
$$4\sec^{2}(x)+9\csc^{2}(x)=$$ $$(2\sec(x)-3\csc(x))^{2}+12\sec(x)\csc(x)$$
The value of the above expression will be minimum when that expression inside parenthesis equals zero; and that happens when $\tan(x)=\frac{3}{2}$. Using this we can say that $\sec(x)=\frac{\sqrt{13}}{2}$ and $\csc(x)=\frac{\sqrt{13}}{3}$.
If now we substitute these values in the above expression, answer turns out to be $26$. I don't know why this is happening, but please help me find the error in this approach.
Thank you!
Hint:
$2\sec x-3\csc x=0$ may not give us the minimum value as $\sec x\csc x$ is not constant
Use $$4\sec^2x+9\csc^2x=4(1+\tan^2x)+9(1+\cot^2x)=13+(2\tan x-3\cot x)^2+2\cdot2\cdot3$$