Solveeit Logo

Question

Question: How do you find the maximum value of the function \(f(x,y,z) = x + 2y - 3z\) subject to the constrai...

How do you find the maximum value of the function f(x,y,z)=x+2y3zf(x,y,z) = x + 2y - 3z subject to the constraint z=4x2+y2z = 4{x^2} + {y^2}?

Explanation

Solution

Use lagrange functionL(x,y,z,λ)=f(x,y,z)+λg(x,y,z)L(x,y,z,\lambda ) = f(x,y,z) + \lambda g(x,y,z) and then find the value of λ\lambda , and substitute it into the lagrange equation and then parietal differentiate to get values and then get the required maximum value.

Complete step by step answer:
First, let’s give each equation a number such that we can avoid any further confusion
f(x,y,z)=x+2y3zf(x,y,z) = x + 2y - 3z [1]
g(x,y,z)=4x2+y2zg(x,y,z) = 4{x^2} + {y^2} - z [2]
Given below is the lagrange function
L(x,y,z,λ)=f(x,y,z)+λg(x,y,z)L(x,y,z,\lambda ) = f(x,y,z) + \lambda g(x,y,z)
We substitute the equation 1 and 2 into the lagrange function and we finally get
L(x,y,z,λ)=x+2y3z+4λx2+λy2λzL(x,y,z,\lambda ) = x + 2y - 3z + 4\lambda x2 + \lambda y2 - \lambda z
So, for finding the maximum value of the given function, we need to find the stationary points.
So, to find the stationary points, we partially derive the newly formed lagrange function with respect to x, y, z and λ\lambda .
Then we get four equations.
On partial derivation of x we get
L(x,y,z,λ)x=1+8λx\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial x}} = 1 + 8\lambda x
On partial derivation of y, we get
L(x,y,z,λ)y=2+2λy\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial y}} = 2 + 2\lambda y
On partial derivation of z , we get
L(x,y,z,λ)z=3λ\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial z}} = - 3 - \lambda
On partial derivation of λ\lambda , we get
L(x,y,z,λ)λ=4x2+y2z\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial \lambda }} = 4x2 + y2 - z
The above four equations , can be equalled to zero

0=1+8λx 0=2+2λy 0=3λ 0=4x2+y2z  0 = 1 + 8\lambda x \\\ 0 = 2 + 2\lambda y \\\ 0 = - 3 - \lambda \\\ 0 = 4x2 + y2 - z \\\

The above equations are labelled as 3, 4, 5,6;
From the equation 5 , we get
λ=3\lambda = - 3
We substitute this values in equation 3 for x value

1+8(3)x=0 x=124  1 + 8( - 3)x = 0 \\\ x = \dfrac{1}{{24}} \\\

We substitute λ\lambda value in equation 4 for y value
2+2(3)y=02 + 2( - 3)y = 0
y=13y = \dfrac{1}{3}
We, use the equation 6 for finding the z value

z=4(124)2+(13)2 z=14144  z = 4{\left( {\dfrac{1}{{24}}} \right)^2} + {\left( {\dfrac{1}{3}} \right)^2} \\\ z = \dfrac{{14}}{{144}} \\\

Now, we substitute all the obtained value in equation 1
We get
F(124,13,17144)=124+23+51144 F(124,13,17144)=1748  F\left( {\dfrac{1}{{24}},\dfrac{1}{3},\dfrac{{17}}{{144}}} \right) = \dfrac{1}{{24}} + \dfrac{2}{3} + \dfrac{{51}}{{144}} \\\ F\left( {\dfrac{1}{{24}},\dfrac{1}{3},\dfrac{{17}}{{144}}} \right) = \dfrac{{17}}{{48}} \\\

The maximum value of the function is 1748\dfrac{{17}}{{48}}

Note: One cannot use the second derivative to test whether the Lagrange multiplier has given you a maximum or a minimum; the only way to determine whether the value is a local maximum is perturbation of values.