
How do you find the maximum value of the function $f(x,y,z) = x + 2y - 3z$ subject to the constraint $z = 4{x^2} + {y^2}$?
Answer
542.7k+ views
Hint: Use lagrange function\[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 + 2y - 3z$ [1]
$g(x,y,z) = 4{x^2} + {y^2} - z$ [2]
Given below is the lagrange function
\[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,\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
$\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial x}} = 1 + 8\lambda x$
On partial derivation of y, we get
\[\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial y}} = 2 + 2\lambda y\]
On partial derivation of z , we get
\[\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial z}} = - 3 - \lambda \]
On partial derivation of $\lambda $, we get
\[\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial \lambda }} = 4x2 + y2 - z\]
The above four equations , can be equalled to zero
\[
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
$\lambda = - 3$
We substitute this values in equation 3 for x value
\[
1 + 8( - 3)x = 0 \\
x = \dfrac{1}{{24}} \\
\]
We substitute $\lambda $ value in equation 4 for y value
\[2 + 2( - 3)y = 0\]
\[y = \dfrac{1}{3}\]
We, use the equation 6 for finding the z value
\[
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\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 $\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.
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 + 2y - 3z$ [1]
$g(x,y,z) = 4{x^2} + {y^2} - z$ [2]
Given below is the lagrange function
\[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,\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
$\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial x}} = 1 + 8\lambda x$
On partial derivation of y, we get
\[\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial y}} = 2 + 2\lambda y\]
On partial derivation of z , we get
\[\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial z}} = - 3 - \lambda \]
On partial derivation of $\lambda $, we get
\[\dfrac{{\partial L(x,y,z,\lambda )}}{{\partial \lambda }} = 4x2 + y2 - z\]
The above four equations , can be equalled to zero
\[
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
$\lambda = - 3$
We substitute this values in equation 3 for x value
\[
1 + 8( - 3)x = 0 \\
x = \dfrac{1}{{24}} \\
\]
We substitute $\lambda $ value in equation 4 for y value
\[2 + 2( - 3)y = 0\]
\[y = \dfrac{1}{3}\]
We, use the equation 6 for finding the z value
\[
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\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 $\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.
Recently Updated Pages
Master Class 12 Economics: Engaging Questions & Answers for Success

Master Class 12 Physics: Engaging Questions & Answers for Success

Master Class 12 English: Engaging Questions & Answers for Success

Master Class 12 Social Science: Engaging Questions & Answers for Success

Master Class 12 Maths: Engaging Questions & Answers for Success

Master Class 12 Business Studies: Engaging Questions & Answers for Success

Trending doubts
Which are the Top 10 Largest Countries of the World?

What are the major means of transport Explain each class 12 social science CBSE

Draw a labelled sketch of the human eye class 12 physics CBSE

Why cannot DNA pass through cell membranes class 12 biology CBSE

Differentiate between insitu conservation and exsitu class 12 biology CBSE

Draw a neat and well labeled diagram of TS of ovary class 12 biology CBSE

