Optimizing a Multivariable Function with Lagrange Multipliers

  • Thread starter Thread starter Gekko
  • Start date Start date
  • Tags Tags
    Lagrange
Click For Summary

Homework Help Overview

The discussion revolves around optimizing a multivariable function using Lagrange multipliers, specifically the function f(x,y,z) = 4x² + 4y² + z², subject to the constraint x² + y² + z² = 1. Participants explore the implications of the optimization process and the validity of different cases derived from the method.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants examine the application of Lagrange multipliers and discuss the conditions under which different cases yield minimum and maximum values. Questions arise regarding the validity of both cases presented and the interpretation of the results.

Discussion Status

Some participants express agreement with the original poster's approach, while others question the uniqueness of the maximum solution and explore alternative methods for solving the problem without Lagrange multipliers. The discussion is ongoing with various interpretations being considered.

Contextual Notes

There is a noted potential typo in the constraint, with participants discussing the implications of the correct formulation. Additionally, the exploration of symmetry and alternative methods to solve the optimization problem is highlighted.

Gekko
Messages
69
Reaction score
0
f(x,y,z)=4x^2+4y^2+z^2 subject to x^2+y^2+z^z=1

So I have:

F(x,y,z,c) = 4x^2+4y^2+z^2+L(x^2+y^2+z^2-1)

dF/dx = 8x+2xL
dF/dy = 8y+2yL
dF/dz=2z+2zL

Either x=y=0 and L=-1 OR z=0 and L=-4

For first case, z^2=1 therefore z=+/- 1 giving f(0,0,1)=1
For second case, x^2+y^2=1 2x^2=1 x=y=+/-sqrt(1/2) giving f(sqrt(1/2),sqrt(1/2),0)=4

Is this correct?
The minimum is therefore the first case giving f(0,0,1)=1?
 
Last edited:
Physics news on Phys.org
Yup, it all looks right to me.
 
Does that mean both cases are valid? One is the maximum and one is the minimum?
 
I'm assuming
Gekko said:
subject to x^2+y^2+z^z=1
is typo for
x^2+y^2+z^2 = 1.

Without using Lagrange you could subtract x^2+y^2+z^2=1 from f(x,y,z)=4x^2+4y^2+z^2 giving you 3(x2 + y2) = f - 1. As this LHS contains only squares it cannot be less than 0. Which is f=1. That is your minimum.

For the maximum looking at the form of f and your constraint you see that so to speak, x, y and z contribute indifferently to your constraint, but taking stuff away from z and investing it in x or y yields you more f. So z=0 will maximise f. The constraint is a sphere round the origin, but the the maximum of f is along a circle z=0, x2 + y2 = 1.
I think it is everywhere along that circle. From this you still get the maximum of f=4, but if I am not mistaken :rolleyes: your answer is not unique but all points satisfying this x2 + y2 = 1 are solutions to the maximum problem.

It is necessary to know the Lagrange method but surprisingly often you can solve problems without it - use the constraint to solve or simplify your problem and use symmetry between variables.
 
Thanks for your replies. Very helpful
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
Replies
2
Views
2K
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
10
Views
1K