- #1
Addez123
- 199
- 21
- Homework Statement
- ##f(x,y) = x^2 + xy + y^2##
where ##x^4 + y^4 \le 8## and ##y \geq 0##
- Relevant Equations
- Lagrange but I think they want us to use
det(d(f,g)/d(x,y)) = 0
Trying first with lagrange multiplier
##grad(f) = (2x + y, 2y + x)##
##g = x^4 + y^4 -8 = 0##
##grad(g) = (4x^3, 4y^3)##
$$grad(f) = \lambda grad(g)$$
gives us 2 equations
(1) ##2x + y = \lambda4x^3##
(2) ##2y + x = \lambda4y^3##
From (1) we get
##y = \lambda4x^3 - 2x##
insert that into (2) and you get
##2(\lambda4x^3 - 2x) + x +\lambda4(\lambda4x^3 - 2x)^3 = 0##
Which in expanded form gives:
$$-3 x - 24 \lambda x^3 + 192 \lambda^2 x^5 - 384 \lambda^3 x^7 + 256 \lambda^4 x^9 = 0$$
But good luck figuring that out. Better yet solving it.
Instead I try the determinant version:
$$\frac {d(f,g)}{d(x,y)} = 0$$
$$\begin{vmatrix}
2x +y & 2y + x \\
4x^3 & 4y^3
\end{vmatrix} = 0$$
$$(2x +y)4y^3 - (2y + x)4x^3 = 0$$
$$8xy^3 + 4y^4 - 8x^3y -4x^4 = 0$$
You could try get ##y^4 = 8 - x^4## from g but you'd end up with 3rd root of it in other places.
Maybe get y from grad(f) equation, but each cordinate give different values. For example you have
##2x + y = 0## and ##2y + x = 0## which gives ##y = -2x## and ##y = x/2##. So which one should I use? Shouldn't they give same results?
There's no way of doing this that doesn't end up in a mess.
##grad(f) = (2x + y, 2y + x)##
##g = x^4 + y^4 -8 = 0##
##grad(g) = (4x^3, 4y^3)##
$$grad(f) = \lambda grad(g)$$
gives us 2 equations
(1) ##2x + y = \lambda4x^3##
(2) ##2y + x = \lambda4y^3##
From (1) we get
##y = \lambda4x^3 - 2x##
insert that into (2) and you get
##2(\lambda4x^3 - 2x) + x +\lambda4(\lambda4x^3 - 2x)^3 = 0##
Which in expanded form gives:
$$-3 x - 24 \lambda x^3 + 192 \lambda^2 x^5 - 384 \lambda^3 x^7 + 256 \lambda^4 x^9 = 0$$
But good luck figuring that out. Better yet solving it.
Instead I try the determinant version:
$$\frac {d(f,g)}{d(x,y)} = 0$$
$$\begin{vmatrix}
2x +y & 2y + x \\
4x^3 & 4y^3
\end{vmatrix} = 0$$
$$(2x +y)4y^3 - (2y + x)4x^3 = 0$$
$$8xy^3 + 4y^4 - 8x^3y -4x^4 = 0$$
You could try get ##y^4 = 8 - x^4## from g but you'd end up with 3rd root of it in other places.
Maybe get y from grad(f) equation, but each cordinate give different values. For example you have
##2x + y = 0## and ##2y + x = 0## which gives ##y = -2x## and ##y = x/2##. So which one should I use? Shouldn't they give same results?
There's no way of doing this that doesn't end up in a mess.
Last edited: