Lagrange Multipliers
Introduction
Lagrange multipliers solve maximization problems subject to constraints.
The Essentials
To solve a Lagrange multiplier problem, first identify the objective function \( f(x,y) \) and the constraint function \( g(x, y). \) Second, solve this system of equations for \( x_0,y_0 \):
The largest values for \( f \) maximize the function and the smallest values for \( f \) minimize the function. The method is the same if \( f \) and \( g \) are functions of three variables. If there are two constrains (\( g \) and \( h \)) then the system of equations looks like this:
Example
Find the extrema of the function \( f(x,y,z)=yz+xz+xy \) subject to the constraints \( xy+z=\frac{1}{4} \).
The constraint function is solved for zero and set to zero:
Now, we find the gradients of the two functions:
Now we can set up the system of equations:
We can split the first one into three equations from the \( i \), \( j \), and \( k \) components.
The lambda from the third equation can be substituted into the first two equations.
The third equation can be solved for \( z \) and substituted into the first two equations.
Subtracting the first equation from the second equation gives:
plugging this in and using the quadratic formula gives:
The value for the point (\( \frac{1}{2} \),\( \frac{1}{2} \),0) is \( \frac{1}{4} \). Testing the points around it that fit on the constraint, we can see that it is a maximum.
Practice
Find the absolute extrema for the function \( f(x,y)=x^2-xy+y^2 \) subject to the constraint \( x+y=1 \)
Solution:
\( f \)(\( \frac{1}{2} \),\( \frac{1}{2} \))=\( \frac{1}{4} \) is a minimum