For a function $$f(x,y) = x^3 - y^3 -x$$, the minimum and maximum under the constraint $$x^2 + y^2 =1 $$
is searched.
So as usual, my approach is to set up the Lagrangian and the FOC:
$$ L(x,y, \lambda) = x^3 - y^3 -x + \lambda(x^2 + y^2 -1)$$ $$ \frac{\delta L}{\delta x} = 3 x^2-1+ 2\lambda x = 0 $$ $$ \frac{\delta L}{\delta y} = -3 y^2+ 2\lambda y = 0 $$ $$x^2 + y^2 - 1 = 0 $$
That, however, appears to be fairly complicated to solve, as both substituting $y=\sqrt{1-x^2}$ and $x=\sqrt{1-y^2}$ ends up in a pretty messy equation. Thus, I wonder, am I on the right path at all?
Given past assignments, I observed a tendency of 'nice' solutions, but the current path doesn't seem nice at all, which is why I would be grateful for some input. Thanks!
Idea: Substitute $x$ by $\cos \varphi$ and $y$ by $\sin \varphi$ for $\varphi \in [0,\pi/2)$ and see if the objective function can be put in a nice form using trigonometric identities. The constraint is satisfied.