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

  • #1
chwala
Gold Member
2,650
351
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.
 

1. How do you find the constrained maxima and minima of a function?

To find the constrained maxima and minima of a function, we typically use the method of Lagrange multipliers. This involves setting up the Lagrangian function, taking partial derivatives, and solving the resulting system of equations.

2. What is the Lagrangian function?

The Lagrangian function is a function used in the method of Lagrange multipliers to find constrained extrema. It is defined as the original function plus a multiple of the constraint function, where the multiple is the Lagrange multiplier.

3. How do you set up the Lagrangian function for this problem?

To set up the Lagrangian function for this problem, we would write L(x, y, z, λ) = f(x, y, z) + λ(g(x, y, z)), where f(x, y, z) is the original function and g(x, y, z) is the constraint function. λ is the Lagrange multiplier.

4. What are the steps to find the constrained maxima and minima using Lagrange multipliers?

The steps to find the constrained maxima and minima using Lagrange multipliers are: 1. Set up the Lagrangian function. 2. Take partial derivatives of the Lagrangian with respect to x, y, z, and λ. 3. Set the partial derivatives equal to zero and solve the resulting system of equations. 4. Check the critical points and boundary points to determine the extrema.

5. Can Lagrange multipliers be used for functions with multiple constraints?

Yes, Lagrange multipliers can be used for functions with multiple constraints. In such cases, we would set up a Lagrangian function for each constraint and solve the resulting system of equations to find the constrained extrema.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
464
  • Calculus and Beyond Homework Help
Replies
24
Views
2K
  • Calculus and Beyond Homework Help
Replies
10
Views
448
  • Calculus and Beyond Homework Help
Replies
2
Views
454
  • Calculus and Beyond Homework Help
Replies
7
Views
800
  • Calculus and Beyond Homework Help
Replies
2
Views
601
  • Calculus and Beyond Homework Help
Replies
1
Views
734
  • Calculus and Beyond Homework Help
Replies
5
Views
549
  • Calculus and Beyond Homework Help
Replies
6
Views
762
  • Calculus and Beyond Homework Help
Replies
3
Views
609
Back
Top