Question about Lagrange multipliers and combining constraints

constraintslagrange multipliermultivariable-calculusoptimizationsystems of equations

Hi I have this question about Lagrange multipliers and specifically when there are 2 constraints given. The standard answer to this question uses the lagrangian and 2 constraints with 2 extra variables (lambda 1 and lambda 2). I understand this method completely fine, but when I first attempted this problem, I tried combining the 2 constraints given into one constraint (i.e. putting x=2z+3 into the other constraint) and then using Lagrange multipliers with only 1 constraint. However, this gave a completely different result! (The standard solution was sqrt(2) but I got 1 with my method). Can anyone explain why these 2 methods give different results?

Best Answer

Notice that replacing two constraints with one is not valid. Just to make this as straightforward as possible, consider the system of linear equations $x+y=0$ and $x-y=0$. The only solution, of course, is $x=y=0$. However, if we add the equations, eliminating $y$, we obtain $2x=0$, which is an entire line. Obviously, this alone is not enough information.

When you combined your two constraints, you went from a curve of eligible points to a surface of eligible points (a cylinder over an ellipse in the $yz$-plane). This allows too many eligible points.

Related Question