I know you are done with the question, but I wanted to say that lagrange multipliers is not the best for this problem.
Set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##
So now we need to optimize ##4(\sqrt{2}cos(\theta)+sin^2(\theta) )##
So now we need to optimize ##\sqrt{2}cos(\theta)+sin^2(\theta)##Differentiate it w.r.t ##\theta## we get ## -\sqrt{2}sin(\theta)+2sin(\theta)cos(\theta)=0##Implies ##sin(\theta)=0## or ##cos(\theta)=\frac{1}{\sqrt{2}}##
So max when x=1 and ##y=\sqrt{2}## (so max is 6) and minimum when y=0 and ##x=-\sqrt{2}## (so min is ##-4\sqrt{2}##).
I know you are done with the question, but I wanted to say that lagrange multipliers is not the best for this problem.
Set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##
So now we need to optimize ##4(\sqrt{2}cos(\theta)+sin^2(\theta) )##
So now we need to optimize ##\sqrt{2}cos(\theta)+sin^2(\theta)##Differentiate it w.r.t we get ## -\sqrt{2}sin(\theta)+2sin(\theta)cos(\theta)=0##Implies ##sin(\theta)=0## or ##cos(\theta)=\frac{1}{\sqrt{2}}##
So max when x=1 and ##y=\sqrt{2}## (so max is 6) and minimum when y=0 and ##x=-\sqrt{2}## (so min is ##-4\sqrt{2}##).
Ok. Thanks. But where can i know to set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##
Do you mean the proof? You can prove it through Lagrange multipliers, or their is a trigonometrical proof too. For the Lagrange multipliers proof, your optimization function is ##acos(\theta)+bsin(\theta)## and restrain function is ##cos^2(\theta)+sin^2(\theta)=1##.