# Max and min of a polynomial on the unit circle

Find the maximum and minimum of $f(x,y)= 3x^2+5xy-4y^2$ on the unit circle.

-
Welcome to Math.SE! To help us help you, please provide any work that you have already attempted--this lets us know where you're getting stuck. (If you don't even know where to start, that's ok--just say so.) When we know what you're having difficulty with, we can address your question better. Also, it may help to say in what level math you encountered this problem (e.g. if you want an answer involving calculus, or just one with algebra). Finally, some people here find it impolite to use imperatives (e.g. "Find..." or "Prove...")--this can cause some downvotes. – anorton Jan 15 at 13:15

Hint: $x = \cos(\theta)$, $y = \sin(\theta)$. Use addition formulas for $\sin$ and $\cos$ to write in terms of $\cos(2\theta+c)$ for some $c$.

-

Have you tried substituting $x = \cos \theta$ and $y = \sin \theta$, and then setting the derivative to $0$?

-

Without using calculus and formula of multiple angles we can find the extreme values of $Ax^2+Bxy+Cy^2$ on the unit circle using simple algebra.

Putting $x=\cos t,y=\sin t$ we get,

$$Ax^2+Bxy+Cy^2=A\cos^2t+B\sin t\cos t+C\sin^2t$$

Let $$A\cos^2t+B\sin t\cos t+C\sin^2t=P$$

Dividing either sides by $\cos^2t, A+B\tan t+C\tan^2t=P\sec^2t$

or, $A+B\tan t+C\tan^2t=P(1+\tan^2t)$

$$\implies (C-P)\tan^2t+B\tan t+A-P=0$$ which is a quadratic equation in $\tan t$

As, $t$ is real so is is $\tan t,$ hence the discriminant $$B^2-4(A-P)(C-P)\ge 0$$

Now, $$B^2-4(A-P)(C-P)$$ $$=B^2-4AC-\{4P^2-4P(A+C)\}$$ $$=B^2-4AC+(A+C)^2-\{4P^2-4P(A+C)+(A+C)^2\}$$ $$=B^2+(A-C)^2-\{2P-(A+C)\}^2$$

$$\implies B^2+(A-C)^2-\{2P-(A+C)\}^2\ge0$$

$$\implies \{2P-(A+C)\}^2\le B^2+(A-C)^2$$

$$\implies -\sqrt{B^2+(A-C)^2}\le 2P-(A+C)\le \sqrt{B^2+(A-C)^2}$$ as $y^2\le a^2\implies -a\le y\le a$

$$\implies \frac{A+C-\sqrt{B^2+(A-C)^2}}2\le P\le \frac{A+C+\sqrt{B^2+(A-C)^2}}2$$

Here $A=3,B=5,C=-4$

-
 ^^^ can you explain those steps please? – user58315 Jan 22 at 17:28 @user58315, please point out your doubts? – lab bhattacharjee Jan 22 at 17:30 After dividing both sides by cos^2t I'm lost – user58315 Jan 22 at 17:37 Maybe I'm missing the trig calculation you made. Can you explain how you got p=sec^2t=p(1+tan^2t)? – user58315 Jan 22 at 17:43 @user58315, I think you meant $P\sec^2t=P(1+\tan^2t)$ which is true as $\frac P{\cos^2t}=P\sec^2t$ and $1+\tan^2t=\sec^2t$ – lab bhattacharjee Jan 22 at 17:57