Find the constrained maxima and minima of ##f(x,y,z)=x+y^2+2z##

In summary, to find the constrained maxima and minima of the function \( f(x,y,z) = x + y^2 + 2z \), one typically employs the method of Lagrange multipliers. This involves defining a constraint \( g(x,y,z) = 0 \) and setting up the equations \( \nabla f = \lambda \nabla g \). By solving these equations alongside the constraint, one can identify critical points that yield the desired extrema under the given conditions.
  • #1
chwala
Gold Member
2,753
388
Homework Statement
See attached- My interest is on number 4.
Relevant Equations
##\nabla f=0## and Lagrange multiplier.
1701686538682.png


The interest is on number ##4##,
In my working,

##f(x,y,z) = x+y^2+2z## and ##g(x,y,z) = 4x^2+9y^2-36z^2 = 36##

##f_x = 1, f_y=2y## and ##f_z = 2## and also ## g_x = 8λx, g_y = 18λy## and ##g_z = -72λz##

using ##\nabla f (x,y,z) = λ\nabla f (x,y,z)##

i shall have,

##1 = 8λx ##

##2y = 18λy##

##2 = -72λz##

then,

##λ =\dfrac{1}{8x} = \dfrac{1}{9}= \dfrac{-1}{36z}##

##\dfrac{1}{9}= \dfrac{-1}{36z}##

##z= \dfrac{-1}{4} ## and we also have, ##\dfrac{1}{8x} = \dfrac{1}{9} ⇒ x = \dfrac{9}{8}##

We have ##4x^2+9y^2-36z^2=36##

To find ##y##,

⇒##4⋅\left(\dfrac{9}{8}\right)^2 + 9y^2 - 36 ⋅\left(\dfrac{-1}{4}\right)^2=36##

##576y^2 = 2124##

##y^2 = \dfrac{59}{\sqrt{16}}##

##y = \dfrac{\sqrt{59}}{4}##

##(x,y,z) = \left(\dfrac{9}{8}, \dfrac{\sqrt{59}}{4},\dfrac{-1}{4} \right)##

also when ##y=0## from the equation, ##2y = 18λy##

we shall have with similar steps ##(x,y,z) = \left(\dfrac{-9}{\sqrt{5}}, 0, \dfrac{2}{\sqrt{5}}\right)##

any input or alternative welcome...

Bingo!
 
Last edited:
Physics news on Phys.org
  • #2
chwala said:
Homework Statement: See attached- My interest is on number 4.
Relevant Equations: ##\nabla f=0## and Lagrange multiplier.

View attachment 336621

The interest is on number ##4##,
In my working,

##f(x,y,z) = x+y^2+2z## and ##g(x,y,z) = 4x^2+9y^2-36z^2 = 36##

This should be [itex]g(x,y,z) = 4x^2 + 9y^2 - 36z^2 - 36.[/itex] Note that [itex]y[/itex] appears in [itex]f[/itex] and [itex]g[/itex] only as [itex]y^2[/itex], so if [itex](x,y,z)[/itex] is a constrained extremum then so is [itex](x,-y,z)[/itex].

##f_x = 1, f_y=2y## and ##f_z = 2## and also ## g_x = 8λx, g_y = 18λy## and ##g_z = -72λz##

using ##\nabla f (x,y,z) = λ\nabla f (x,y,z)##

You mean [itex]\nabla f = \lambda \nabla g[/itex].

i shall have,

##1 = 8λx ##

##2y = 18λy##

##2 = -72λz##

then,

##λ =\dfrac{1}{8x} = \dfrac{1}{9}= \dfrac{-1}{36z}##

So we are assuming here that [itex]9\lambda = 1[/itex].

##\dfrac{1}{9}= \dfrac{-1}{36z}##

##z= \dfrac{-1}{4} ## and we also have, ##\dfrac{1}{8x} = \dfrac{1}{9} ⇒ x = \dfrac{9}{8}##

We have ##4x^2+9y^2-36z^2=36##

To find ##y##,

⇒##4⋅\left(\dfrac{9}{8}\right)^2 + 9y^2 - 36 ⋅\left(\dfrac{-1}{4}\right)^2=36##

##576y^2 = 2124##

##y^2 = \dfrac{59}{\sqrt{16}}##

##y = \dfrac{\sqrt{59}}{4}##

##(x,y,z) = \left(\dfrac{9}{8}, \dfrac{\sqrt{59}}{4},\dfrac{-1}{4} \right)##

also when ##y=0## from the equation, ##2y = 18λy##

we shall have with similar steps ##(x,y,z) = \left(\dfrac{-9}{\sqrt{5}}, 0, \dfrac{2}{\sqrt{5}}\right)##

For [itex]y = 0[/itex] you need [tex]4x^2 - 36z^2 = 4\frac{1}{(8\lambda)^2} - 36\frac{1}{(36\lambda)^2} = 36.[/tex] That gives two solutions for [itex]\lambda[/itex]; you have shown only one result.
 
  • Like
Likes chwala
  • #3
pasmith said:
This should be [itex]g(x,y,z) = 4x^2 + 9y^2 - 36z^2 - 36.[/itex] Note that [itex]y[/itex] appears in [itex]f[/itex] and [itex]g[/itex] only as [itex]y^2[/itex], so if [itex](x,y,z)[/itex] is a constrained extremum then so is [itex](x,-y,z)[/itex].
You mean [itex]\nabla f = \lambda \nabla g[/itex].
So we are assuming here that [itex]9\lambda = 1[/itex].
For [itex]y = 0[/itex] you need [tex]4x^2 - 36z^2 = 4\frac{1}{(8\lambda)^2} - 36\frac{1}{(36\lambda)^2} = 36.[/tex] That gives two solutions for [itex]\lambda[/itex]; you have shown only one result.
Let me check on the second result.
 

FAQ: Find the constrained maxima and minima of ##f(x,y,z)=x+y^2+2z##

What are constrained maxima and minima?

Constrained maxima and minima refer to the highest and lowest values of a function subject to certain restrictions or constraints. These constraints are often given as equations that the variables must satisfy.

What is the constraint for this problem?

The constraint is typically given as another equation involving the variables x, y, and z. For example, it could be something like \( g(x, y, z) = 0 \). Without a specific constraint, we cannot solve for the maxima and minima of the function \( f(x, y, z) = x + y^2 + 2z \).

How do you find the constrained maxima and minima?

To find the constrained maxima and minima, you can use the method of Lagrange multipliers. This involves introducing a new variable (the Lagrange multiplier) and solving the system of equations formed by the gradients of the function and the constraint.

What is the Lagrange multiplier method?

The Lagrange multiplier method involves creating a new function called the Lagrangian, which combines the original function and the constraint using a new variable (the Lagrange multiplier). You then take the partial derivatives of the Lagrangian with respect to each variable and set them to zero to solve for the variables and the Lagrange multiplier.

Can you provide an example using a specific constraint?

Sure, let's consider the constraint \( g(x, y, z) = x^2 + y^2 + z^2 - 1 = 0 \). The Lagrangian is \( \mathcal{L}(x, y, z, \lambda) = x + y^2 + 2z + \lambda (x^2 + y^2 + z^2 - 1) \). Taking the partial derivatives and setting them to zero, we get the following system of equations: 1. \( \frac{\partial \mathcal{L}}{\partial x} = 1 + 2\lambda x = 0 \)2. \( \frac{\partial \mathcal{L}}{\partial y} = 2y + 2\lambda y = 0 \)3. \( \frac{\partial \mathcal{L}}{\partial z} = 2 + 2\lambda z = 0 \)4. \( \frac{\partial \mathcal{L}}{\partial \lambda} = x^2 + y^2 + z^2 - 1 = 0 \)Solving this system will give the values of \( x, y, z, \) and \( \lambda \) that satisfy both the function and the constraint.

Back
Top