SlideShare a Scribd company logo
1 of 63
Lagrange Multipliers
Lagrange Multipliers
Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an
equation in x and y.
Lagrange Multipliers
    Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an
    equation in x and y. The graph of z = f(x, y) is a surface and
    g(x, y) = 0 is a curve in the xy-plane,


                     z = f(x, y)




y                     g(x, y) = 0
                                    x
Lagrange Multipliers
    Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an
    equation in x and y. The graph of z = f(x, y) is a surface and
    g(x, y) = 0 is a curve in the xy-plane, and we assume this
    curve is in the domain of f(x, y).

                     z = f(x, y)




Domain
                      g(x, y) = 0
y                                   x
Lagrange Multipliers
    Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an
    equation in x and y. The graph of z = f(x, y) is a surface and
    g(x, y) = 0 is a curve in the xy-plane, and we assume this
    curve is in the domain of f(x, y).
                                        The set of points (x, y, z = f(x, y))
                     z = f(x, y)
                                        with (x, y) on the curve form a
                                        "trail" on the surface defined by
                                        f(x, y).




Domain
                      g(x, y) = 0
x                                   y
Lagrange Multipliers
    Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an
    equation in x and y. The graph of z = f(x, y) is a surface and
    g(x, y) = 0 is a curve in the xy-plane, and we assume this
    curve is in the domain of f(x, y).
                                        The set of points (x, y, z = f(x, y))
                     z = f(x, y)
                                        with (x, y) on the curve form a
                                        "trail" on the surface defined by
                                        f(x, y). Where are the extrema on
                                        this trail? That is, where are the
                                        highest point and the lowest point
                                        on this trail?

Domain
                      g(x, y) = 0
x                                   y
Lagrange Multipliers
    Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an
    equation in x and y. The graph of z = f(x, y) is a surface and
    g(x, y) = 0 is a curve in the xy-plane, and we assume this
    curve is in the domain of f(x, y).
                                        The set of points (x, y, z = f(x, y))
                     z = f(x, y)
                                        with (x, y) on the curve form a
                                        "trail" on the surface defined by
                                        f(x, y). Where are the extrema on
                                        this trail? That is, where are the
                                        highest point and the lowest point
                                        on this trail? The equation
                                        g(x, y) = 0 is called the
Domain                                  constraint equation in the set up.
                      g(x, y) = 0
x                                       These types of problems are
                                    y
                                        known as the "extrema with
                                        constraints" problems.
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
of z = f(x, y) in the xy plane,
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                               z = f(x, y)
of z = f(x, y) in the xy plane,




                                          Level curves z = c
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                                  z = f(x, y)
of z = f(x, y) in the xy plane,
at a point P where the tangent to
g(x, y) = 0 is different from the tangent
to the contour line means the trail
cuts across the contour line, thus
                                                                  P
the trail is still changing altitude at P.


                                             Level curves z = c
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                                  z = f(x, y)
of z = f(x, y) in the xy plane,
at a point P where the tangent to
g(x, y) = 0 is different from the tangent
to the contour line means the trail
cuts across the contour line, thus
                                                                  P
the trail is still changing altitude at P.


                                             Level curves z = c


                                                                                y
                                                                                    x




                                             Level curves z = c
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                                  z = f(x, y)
of z = f(x, y) in the xy plane,
at a point P where the tangent to
g(x, y) = 0 is different from the tangent
to the contour line means the trail
cuts across the contour line, thus
                                                                  P
the trail is still changing altitude at P.
So P could not be an extremum.

                                             Level curves z = c


                                                                                y
                                                                                    x




                                             Level curves z = c
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                                  z = f(x, y)
of z = f(x, y) in the xy plane,
at a point P where the tangent to
g(x, y) = 0 is different from the tangent
to the contour line means the trail
cuts across the contour line, thus
                                                                  P
the trail is still changing altitude at P.
So P could not be an extremum.
Thus at an extremum on the trail
over g(x, y) = 0, its tangent must be        Level curves z = c
                                                                      g(x, y) = 0
parallel to the tangent to the contour
                                                                                y
lines.                                                                              x




                                             Level curves z = c
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                                  z = f(x, y)
of z = f(x, y) in the xy plane,
at a point P where the tangent to
g(x, y) = 0 is different from the tangent
to the contour line means the trail
cuts across the contour line, thus
                                                                  P
the trail is still changing altitude at P.
So P could not be an extremum.
Thus at an extremum on the trail
over g(x, y) = 0, its tangent must be        Level curves z = c
                                                                      g(x, y) = 0
parallel to the tangent to the contour
                                                                                y
lines. Equivalently, at the extremum,                                               x
the normal vector to the constraint
N = ∇g(x, y), and the gradient
to the surface ∇ f(x, y), must be
parallel,
                                             Level curves z = c
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines
                                                                  z = f(x, y)
of z = f(x, y) in the xy plane,
at a point P where the tangent to
g(x, y) = 0 is different from the tangent
to the contour line means the trail
cuts across the contour line, thus
                                                                  P
the trail is still changing altitude at P.
So P could not be an extremum.
Thus at an extremum on the trail
over g(x, y) = 0, its tangent must be        Level curves z = c
                                                                      g(x, y) = 0
parallel to the tangent to the contour
                                                                                y
lines. Equivalently, at the extremum,                                               x
the normal vector to the constraint
N = ∇g(x, y), and the gradient
to the surface ∇ f(x, y), must be
parallel, i.e. there is a λ such that:
                                             Level curves z = c
∇g(x, y) = λ* ∇ f(x, y).
Lagrange Multipliers
Plot g(x, y) = 0 over the contour lines of z = f(x, y) in the xy
plane. At a point P where the tangent to g(x, y) = 0 is
different from the tangent to the contour line means the trail
cuts across the contour line at P, thus it is still changing
altitude. Therefore P could not be an extremum. Thus the
extrema points on g(x, y) = 0 must be tangential to the
contour lines. Equivalently, at the extremum, the gradient to
g(x, y) = 0 and the gradient to the contour line must be the
multiple of each other.

           P




               g(x, y) = 0
Lagrange Multipliers
    Plot g(x, y) = 0 over the contour lines of z = f(x, y) in the xy
    plane. At a point P where the tangent to g(x, y) = 0 is
    different from the tangent to the contour line means the trail
    cuts across the contour line at P, thus it is still changing
    altitude. Therefore P could not be an extremum. Thus the
    extrema points on g(x, y) = 0 must be tangential to the
    contour lines. Equivalently, at the extremum, the gradient to
    g(x, y) = 0 and the gradient to the contour line must be the
    multiple of each other, that is, there is a λ such that:
                                    ∇g(x, y) = λ* ∇ f(x, y) or that
                     P
                                    dg i + dg j = λ ( df i + df j )
                                    dx     dy         dx       dy
N= ∇g(x, y)
                                   so we have       gx = λfx
            ∇f(x, y)               the system:      gy = λfy
                                                    g(x, y) = 0
                       g(x, y) = 0 We solve this syetem for the extrema.
Lagrange Multipliers
The variable λ is called a multiplier.
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many different multipliers.
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx
                       gy = λfy
                       g(x, y) = 0
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx    that is: 2x = λy       eq1
                       gy = λfy             2y = λx       eq2
                       g(x, y) = 0          x2 + y2 = 2   eq3
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx    that is: 2x = λy       eq1
                       gy = λfy             2y = λx       eq2
                       g(x, y) = 0          x2 + y2 = 2   eq3
                         2x
From eq1, we get λ = y ,
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is: 2x = λy       eq1
                       gy = λfy              2y = λx       eq2
                       g(x, y) = 0           x2 + y2 = 2   eq3
                         2x                             2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is: 2x = λy       eq1
                       gy = λfy              2y = λx       eq2
                       g(x, y) = 0           x2 + y2 = 2   eq3
                         2x                             2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is: 2x = λy       eq1
                       gy = λfy              2y = λx       eq2
                       g(x, y) = 0           x2 + y2 = 2   eq3
                         2x                             2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy       eq1
                       gy = λfy                 2y = λx       eq2
                       g(x, y) = 0              x2 + y2 = 2   eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy       eq1
                       gy = λfy                 2y = λx       eq2
                       g(x, y) = 0              x2 + y2 = 2   eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Substitute y = x into eq3, we get 2x2 = 2
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy         eq1
                       gy = λfy                 2y = λx         eq2
                       g(x, y) = 0              x2 + y2 = 2     eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Substitute y = x into eq3, we get 2x2 = 2                x = ±1
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy         eq1
                       gy = λfy                 2y = λx         eq2
                       g(x, y) = 0              x2 + y2 = 2     eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Substitute y = x into eq3, we get 2x2 = 2                x = ±1
If y = x, there are two pairs of solutions (1, 1), (-1, -1).
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy         eq1
                       gy = λfy                 2y = λx         eq2
                       g(x, y) = 0              x2 + y2 = 2     eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Substitute y = x into eq3, we get 2x2 = 2                x = ±1
If y = x, there are two pairs of solutions (1, 1), (-1, -1).
Substitute y = -x into eq3, we get 2x2 = 2
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy         eq1
                       gy = λfy                 2y = λx         eq2
                       g(x, y) = 0              x2 + y2 = 2     eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Substitute y = x into eq3, we get 2x2 = 2                x = ±1
If y = x, there are two pairs of solutions (1, 1), (-1, -1).
Substitute y = -x into eq3, we get 2x2 = 2              x = ±1
Lagrange Multipliers
The variable λ is called a multiplier. In more complex problems,
we might use many differernt multipliers.
Example: Find the extrema of f(x, y) = xy given the constraint
g(x, y) = x2 + y2 – 2 = 0.
We are to solve:       gx = λfx     that is:    2x = λy         eq1
                       gy = λfy                 2y = λx         eq2
                       g(x, y) = 0              x2 + y2 = 2     eq3
                         2x                                2y
From eq1, we get λ = y ,         from eq2, we get λ = x .
                    2y      2x
Set them equal: x = y
         we get 2y2 = 2x2                   y = ±x
Substitute y = x into eq3, we get 2x2 = 2                x = ±1
If y = x, there are two pairs of solutions (1, 1), (-1, -1).
Substitute y = -x into eq3, we get 2x2 = 2              x = ±1
If y = -x, this gives two more pairs of solutions (1, -1), (-1, 1).
Lagrange Multipliers
To find out which is a max, a min,
or neither, evaluate each with f(x, y):
Lagrange Multipliers
To find out which is a max, a min,
or neither, evaluate each with f(x, y) = xy:
f(1, 1) = 1, f(-1, -1) =1,
f(-1, 1) = -1, f(1, -1) = -1,
Lagrange Multipliers
To find out which is a max, a min,
or neither, evaluate each with f(x, y) = xy:
f(1, 1) = 1, f(-1, -1) =1,
f(-1, 1) = -1, f(1, -1) = -1,
So (1, 1) , (-1, -1) are maxima,
and (-1, 1), (1, -1) are minima.
Lagrange Multipliers
To find out which is a max, a min,
or neither, evaluate each with f(x, y):
f(1, 1) = 1, f(-1, -1) =1,
f(-1, 1) = -1, f(1, -1) = -1,
So (1, 1) , (-1, -1) are maxima,
and (-1, 1), (1, -1) are minima.
Lagrange Multipliers
To find out which is a max, a min,
or neither, evaluate each with f(x, y):
f(1, 1) = 1, f(-1, -1) =1,
f(-1, 1) = -1, f(1, -1) = -1,
So (1, 1) , (-1, -1) are maxima,
and (-1, 1), (1, -1) are minima.
The procedure above is called the method of "Lagrange
Multipliers". It can be used in the case of finding extrema of a
three varaible function w=f(x, y, z) with a constraint
g(x, y, z) = 0. In the three variabe case, we solve the systems:
                          gx = λfx
                          gy = λfy
                          gz = λfz
                          g(x, y, z) = 0
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0.
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx
    gy = λfy
    gz = λfz
    g(x, y, z) = 0
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy
    gz = λfz
    g(x, y, z) = 0
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz
    g(x, y, z) = 0
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:
y + z = λyz
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:
y + z = λyz      y = λyz – z
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:
y + z = λyz      y = λyz – z
              y = (λy – 1)z
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:
y + z = λyz      y = λyz – z
              y = (λy – 1)z
               y
                    =z
             λy – 1
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:         From eq3, we solve for x:
y + z = λyz      y = λyz – z      x + y = λxy
              y = (λy – 1)z
               y
                    =z
             λy – 1
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:         From eq3, we solve for x:
y + z = λyz      y = λyz – z      x + y = λxy      y = λxy – x
              y = (λy – 1)z
               y
                    =z
             λy – 1
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:         From eq3, we solve for x:
y + z = λyz      y = λyz – z      x + y = λxy      y = λxy – x
              y = (λy – 1)z                       y = (λy – 1)x
               y
                    =z
             λy – 1
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:         From eq3, we solve for x:
y + z = λyz      y = λyz – z      x + y = λxy      y = λxy – x
              y = (λy – 1)z                       y = (λy – 1)x
               y                                    y
                    =z                                  =x
             λy – 1                               λy – 1
Lagrange Multipliers
Example: Find the largest volume possibe of a box with a
fixed total surface area.
The volume is V = xyz.
The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system:
    gx = λfx                   y + z = λyz      eq1
    gy = λfy                   x + z = λxz      eq2
    gz = λfz                   x + y = λxy      eq3
                               xy + xz + yz = c/2      eq4
    g(x, y, z) = 0
From eq1, we solve for z:          From eq3, we solve for x:
y + z = λyz        y = λyz – z     x + y = λxy       y = λxy – x
                y = (λy – 1)z                    y = (λy – 1)x
                 y                                 y
                      =z                                =x
               λy – 1                           λy – 1
 Hence either x = z or λy – 1 = 0.
Lagrange Multipliers
Assume λy – 1 = 0,
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Put this in eq1 and eq3, then x and z must be 0 also,
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Put this in eq1 and eq3, then x and z must be 0 also,
which is impossibe because of eq4 .
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Put this in eq1 and eq3, then x and z must be 0 also,
which is impossibe because of eq4 .
Therefore x = z.
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Put this in eq1 and eq3, then x and z must be 0 also,
which is impossibe because of eq4 .
Therefore x = z.
The system is symmetric so similar algebra yields x = y
and y = z.
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Put this in eq1 and eq3, then x and z must be 0 also,
which is impossibe because of eq4 .
Therefore x = z.
The system is symmetric so similar algebra yields x = y
and y = z.
Therefore x = y = z and the box must be a cube.
Lagrange Multipliers
Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
Put this in eq1 and eq3, then x and z must be 0 also,
which is impossibe because of eq4 .
Therefore x = z.
The system is symmetric so similar algebra yields x = y
and y = z.
Therefore x = y = z and the box must be a cube.

More Related Content

What's hot

14 unit tangent and normal vectors
14 unit tangent and normal vectors14 unit tangent and normal vectors
14 unit tangent and normal vectorsmath267
 
18 directional derivatives and gradient
18 directional  derivatives and gradient18 directional  derivatives and gradient
18 directional derivatives and gradientmath267
 
24 double integral over polar coordinate
24 double integral over polar coordinate24 double integral over polar coordinate
24 double integral over polar coordinatemath267
 
27 triple integrals in spherical and cylindrical coordinates
27 triple integrals in spherical and cylindrical coordinates27 triple integrals in spherical and cylindrical coordinates
27 triple integrals in spherical and cylindrical coordinatesmath267
 
3 dot product angles-projection
3 dot product angles-projection3 dot product angles-projection
3 dot product angles-projectionmath267
 
9 determinant and cross product
9 determinant and cross product9 determinant and cross product
9 determinant and cross productmath267
 
10 parametric eequations of lines
10 parametric eequations of lines10 parametric eequations of lines
10 parametric eequations of linesmath267
 
23 general double integrals
23 general double integrals23 general double integrals
23 general double integralsmath267
 
11 equations of planes
11 equations of planes11 equations of planes
11 equations of planesmath267
 
19 min max-saddle-points
19 min max-saddle-points19 min max-saddle-points
19 min max-saddle-pointsmath267
 
4 areas in polar coordinates
4 areas in polar coordinates4 areas in polar coordinates
4 areas in polar coordinatesmath267
 
12 quadric surfaces
12 quadric surfaces12 quadric surfaces
12 quadric surfacesmath267
 
26 triple integrals
26 triple integrals26 triple integrals
26 triple integralsmath267
 
16 partial derivatives
16 partial derivatives16 partial derivatives
16 partial derivativesmath267
 
1 3 d coordinate system
1 3 d coordinate system1 3 d coordinate system
1 3 d coordinate systemmath267
 
30 green's theorem
30 green's theorem30 green's theorem
30 green's theoremmath267
 
2.7 chain rule short cuts
2.7 chain rule short cuts2.7 chain rule short cuts
2.7 chain rule short cutsmath265
 
2 vectors
2 vectors2 vectors
2 vectorsmath267
 
2.2 limits ii
2.2 limits ii2.2 limits ii
2.2 limits iimath265
 
Applied Calculus Chapter 4 multiple integrals
Applied Calculus Chapter  4 multiple integralsApplied Calculus Chapter  4 multiple integrals
Applied Calculus Chapter 4 multiple integralsJ C
 

What's hot (20)

14 unit tangent and normal vectors
14 unit tangent and normal vectors14 unit tangent and normal vectors
14 unit tangent and normal vectors
 
18 directional derivatives and gradient
18 directional  derivatives and gradient18 directional  derivatives and gradient
18 directional derivatives and gradient
 
24 double integral over polar coordinate
24 double integral over polar coordinate24 double integral over polar coordinate
24 double integral over polar coordinate
 
27 triple integrals in spherical and cylindrical coordinates
27 triple integrals in spherical and cylindrical coordinates27 triple integrals in spherical and cylindrical coordinates
27 triple integrals in spherical and cylindrical coordinates
 
3 dot product angles-projection
3 dot product angles-projection3 dot product angles-projection
3 dot product angles-projection
 
9 determinant and cross product
9 determinant and cross product9 determinant and cross product
9 determinant and cross product
 
10 parametric eequations of lines
10 parametric eequations of lines10 parametric eequations of lines
10 parametric eequations of lines
 
23 general double integrals
23 general double integrals23 general double integrals
23 general double integrals
 
11 equations of planes
11 equations of planes11 equations of planes
11 equations of planes
 
19 min max-saddle-points
19 min max-saddle-points19 min max-saddle-points
19 min max-saddle-points
 
4 areas in polar coordinates
4 areas in polar coordinates4 areas in polar coordinates
4 areas in polar coordinates
 
12 quadric surfaces
12 quadric surfaces12 quadric surfaces
12 quadric surfaces
 
26 triple integrals
26 triple integrals26 triple integrals
26 triple integrals
 
16 partial derivatives
16 partial derivatives16 partial derivatives
16 partial derivatives
 
1 3 d coordinate system
1 3 d coordinate system1 3 d coordinate system
1 3 d coordinate system
 
30 green's theorem
30 green's theorem30 green's theorem
30 green's theorem
 
2.7 chain rule short cuts
2.7 chain rule short cuts2.7 chain rule short cuts
2.7 chain rule short cuts
 
2 vectors
2 vectors2 vectors
2 vectors
 
2.2 limits ii
2.2 limits ii2.2 limits ii
2.2 limits ii
 
Applied Calculus Chapter 4 multiple integrals
Applied Calculus Chapter  4 multiple integralsApplied Calculus Chapter  4 multiple integrals
Applied Calculus Chapter 4 multiple integrals
 

Similar to 21 lagrange multipliers

Vector calculus
Vector calculusVector calculus
Vector calculusKumar
 
X2 T07 03 addition, subtraction, multiplication & division (2011)
X2 T07 03 addition, subtraction,  multiplication & division (2011)X2 T07 03 addition, subtraction,  multiplication & division (2011)
X2 T07 03 addition, subtraction, multiplication & division (2011)Nigel Simmons
 
X2 T04 03 cuve sketching - addition, subtraction, multiplication and division
X2 T04 03 cuve sketching - addition, subtraction,  multiplication and divisionX2 T04 03 cuve sketching - addition, subtraction,  multiplication and division
X2 T04 03 cuve sketching - addition, subtraction, multiplication and divisionNigel Simmons
 
X2 t07 03 addition, subtraction, multiplication & division (2012)
X2 t07 03 addition, subtraction,  multiplication & division (2012)X2 t07 03 addition, subtraction,  multiplication & division (2012)
X2 t07 03 addition, subtraction, multiplication & division (2012)Nigel Simmons
 
13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx
13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx
13.1 Calculus_ch14_Partial_Directional_Derivatives.pptxTabrijiIslam
 
1 review on derivatives
1 review on derivatives1 review on derivatives
1 review on derivativesmath266
 
Reciprocals Oct 13th
Reciprocals Oct 13thReciprocals Oct 13th
Reciprocals Oct 13thingroy
 
Areas of bounded regions
Areas of bounded regionsAreas of bounded regions
Areas of bounded regionsHimani Asija
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Mel Anthony Pepito
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Matthew Leingang
 
Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Bindu Cm
 
ComplexNumber.ppt
ComplexNumber.pptComplexNumber.ppt
ComplexNumber.pptberenvaz
 
Algebric Functions.pdf
Algebric Functions.pdfAlgebric Functions.pdf
Algebric Functions.pdfMamadArip
 
2.4 defintion of derivative
2.4 defintion of derivative2.4 defintion of derivative
2.4 defintion of derivativemath265
 
Introduccio al calculo vectorial
Introduccio  al calculo vectorialIntroduccio  al calculo vectorial
Introduccio al calculo vectorialEDESMITCRUZ1
 

Similar to 21 lagrange multipliers (20)

Vector calculus
Vector calculusVector calculus
Vector calculus
 
X2 T07 03 addition, subtraction, multiplication & division (2011)
X2 T07 03 addition, subtraction,  multiplication & division (2011)X2 T07 03 addition, subtraction,  multiplication & division (2011)
X2 T07 03 addition, subtraction, multiplication & division (2011)
 
X2 T04 03 cuve sketching - addition, subtraction, multiplication and division
X2 T04 03 cuve sketching - addition, subtraction,  multiplication and divisionX2 T04 03 cuve sketching - addition, subtraction,  multiplication and division
X2 T04 03 cuve sketching - addition, subtraction, multiplication and division
 
X2 t07 03 addition, subtraction, multiplication & division (2012)
X2 t07 03 addition, subtraction,  multiplication & division (2012)X2 t07 03 addition, subtraction,  multiplication & division (2012)
X2 t07 03 addition, subtraction, multiplication & division (2012)
 
13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx
13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx
13.1 Calculus_ch14_Partial_Directional_Derivatives.pptx
 
1 review on derivatives
1 review on derivatives1 review on derivatives
1 review on derivatives
 
Integration. area undera curve
Integration. area undera curveIntegration. area undera curve
Integration. area undera curve
 
Reciprocals Oct 13th
Reciprocals Oct 13thReciprocals Oct 13th
Reciprocals Oct 13th
 
Areas of bounded regions
Areas of bounded regionsAreas of bounded regions
Areas of bounded regions
 
ComplexNumber.ppt
ComplexNumber.pptComplexNumber.ppt
ComplexNumber.ppt
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)
 
Normal
NormalNormal
Normal
 
Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10
 
ComplexNumber.ppt
ComplexNumber.pptComplexNumber.ppt
ComplexNumber.ppt
 
Algebric Functions.pdf
Algebric Functions.pdfAlgebric Functions.pdf
Algebric Functions.pdf
 
2.4 defintion of derivative
2.4 defintion of derivative2.4 defintion of derivative
2.4 defintion of derivative
 
Introduccio al calculo vectorial
Introduccio  al calculo vectorialIntroduccio  al calculo vectorial
Introduccio al calculo vectorial
 
ppt of Calculus
ppt of Calculusppt of Calculus
ppt of Calculus
 
Calc 3.9a
Calc 3.9aCalc 3.9a
Calc 3.9a
 

Recently uploaded

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Recently uploaded (20)

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

21 lagrange multipliers

  • 2. Lagrange Multipliers Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an equation in x and y.
  • 3. Lagrange Multipliers Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an equation in x and y. The graph of z = f(x, y) is a surface and g(x, y) = 0 is a curve in the xy-plane, z = f(x, y) y g(x, y) = 0 x
  • 4. Lagrange Multipliers Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an equation in x and y. The graph of z = f(x, y) is a surface and g(x, y) = 0 is a curve in the xy-plane, and we assume this curve is in the domain of f(x, y). z = f(x, y) Domain g(x, y) = 0 y x
  • 5. Lagrange Multipliers Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an equation in x and y. The graph of z = f(x, y) is a surface and g(x, y) = 0 is a curve in the xy-plane, and we assume this curve is in the domain of f(x, y). The set of points (x, y, z = f(x, y)) z = f(x, y) with (x, y) on the curve form a "trail" on the surface defined by f(x, y). Domain g(x, y) = 0 x y
  • 6. Lagrange Multipliers Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an equation in x and y. The graph of z = f(x, y) is a surface and g(x, y) = 0 is a curve in the xy-plane, and we assume this curve is in the domain of f(x, y). The set of points (x, y, z = f(x, y)) z = f(x, y) with (x, y) on the curve form a "trail" on the surface defined by f(x, y). Where are the extrema on this trail? That is, where are the highest point and the lowest point on this trail? Domain g(x, y) = 0 x y
  • 7. Lagrange Multipliers Let z = f(x,y) be a function in x and y and g(x, y) = 0 be an equation in x and y. The graph of z = f(x, y) is a surface and g(x, y) = 0 is a curve in the xy-plane, and we assume this curve is in the domain of f(x, y). The set of points (x, y, z = f(x, y)) z = f(x, y) with (x, y) on the curve form a "trail" on the surface defined by f(x, y). Where are the extrema on this trail? That is, where are the highest point and the lowest point on this trail? The equation g(x, y) = 0 is called the Domain constraint equation in the set up. g(x, y) = 0 x These types of problems are y known as the "extrema with constraints" problems.
  • 8. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines of z = f(x, y) in the xy plane,
  • 9. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, Level curves z = c
  • 10. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, at a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line, thus P the trail is still changing altitude at P. Level curves z = c
  • 11. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, at a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line, thus P the trail is still changing altitude at P. Level curves z = c y x Level curves z = c
  • 12. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, at a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line, thus P the trail is still changing altitude at P. So P could not be an extremum. Level curves z = c y x Level curves z = c
  • 13. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, at a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line, thus P the trail is still changing altitude at P. So P could not be an extremum. Thus at an extremum on the trail over g(x, y) = 0, its tangent must be Level curves z = c g(x, y) = 0 parallel to the tangent to the contour y lines. x Level curves z = c
  • 14. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, at a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line, thus P the trail is still changing altitude at P. So P could not be an extremum. Thus at an extremum on the trail over g(x, y) = 0, its tangent must be Level curves z = c g(x, y) = 0 parallel to the tangent to the contour y lines. Equivalently, at the extremum, x the normal vector to the constraint N = ∇g(x, y), and the gradient to the surface ∇ f(x, y), must be parallel, Level curves z = c
  • 15. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines z = f(x, y) of z = f(x, y) in the xy plane, at a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line, thus P the trail is still changing altitude at P. So P could not be an extremum. Thus at an extremum on the trail over g(x, y) = 0, its tangent must be Level curves z = c g(x, y) = 0 parallel to the tangent to the contour y lines. Equivalently, at the extremum, x the normal vector to the constraint N = ∇g(x, y), and the gradient to the surface ∇ f(x, y), must be parallel, i.e. there is a λ such that: Level curves z = c ∇g(x, y) = λ* ∇ f(x, y).
  • 16. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines of z = f(x, y) in the xy plane. At a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line at P, thus it is still changing altitude. Therefore P could not be an extremum. Thus the extrema points on g(x, y) = 0 must be tangential to the contour lines. Equivalently, at the extremum, the gradient to g(x, y) = 0 and the gradient to the contour line must be the multiple of each other. P g(x, y) = 0
  • 17. Lagrange Multipliers Plot g(x, y) = 0 over the contour lines of z = f(x, y) in the xy plane. At a point P where the tangent to g(x, y) = 0 is different from the tangent to the contour line means the trail cuts across the contour line at P, thus it is still changing altitude. Therefore P could not be an extremum. Thus the extrema points on g(x, y) = 0 must be tangential to the contour lines. Equivalently, at the extremum, the gradient to g(x, y) = 0 and the gradient to the contour line must be the multiple of each other, that is, there is a λ such that: ∇g(x, y) = λ* ∇ f(x, y) or that P dg i + dg j = λ ( df i + df j ) dx dy dx dy N= ∇g(x, y) so we have gx = λfx ∇f(x, y) the system: gy = λfy g(x, y) = 0 g(x, y) = 0 We solve this syetem for the extrema.
  • 18. Lagrange Multipliers The variable λ is called a multiplier.
  • 19. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many different multipliers.
  • 20. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0.
  • 21. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx gy = λfy g(x, y) = 0
  • 22. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3
  • 23. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x From eq1, we get λ = y ,
  • 24. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x .
  • 25. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y
  • 26. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2
  • 27. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x
  • 28. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x Substitute y = x into eq3, we get 2x2 = 2
  • 29. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x Substitute y = x into eq3, we get 2x2 = 2 x = ±1
  • 30. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x Substitute y = x into eq3, we get 2x2 = 2 x = ±1 If y = x, there are two pairs of solutions (1, 1), (-1, -1).
  • 31. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x Substitute y = x into eq3, we get 2x2 = 2 x = ±1 If y = x, there are two pairs of solutions (1, 1), (-1, -1). Substitute y = -x into eq3, we get 2x2 = 2
  • 32. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x Substitute y = x into eq3, we get 2x2 = 2 x = ±1 If y = x, there are two pairs of solutions (1, 1), (-1, -1). Substitute y = -x into eq3, we get 2x2 = 2 x = ±1
  • 33. Lagrange Multipliers The variable λ is called a multiplier. In more complex problems, we might use many differernt multipliers. Example: Find the extrema of f(x, y) = xy given the constraint g(x, y) = x2 + y2 – 2 = 0. We are to solve: gx = λfx that is: 2x = λy eq1 gy = λfy 2y = λx eq2 g(x, y) = 0 x2 + y2 = 2 eq3 2x 2y From eq1, we get λ = y , from eq2, we get λ = x . 2y 2x Set them equal: x = y we get 2y2 = 2x2 y = ±x Substitute y = x into eq3, we get 2x2 = 2 x = ±1 If y = x, there are two pairs of solutions (1, 1), (-1, -1). Substitute y = -x into eq3, we get 2x2 = 2 x = ±1 If y = -x, this gives two more pairs of solutions (1, -1), (-1, 1).
  • 34. Lagrange Multipliers To find out which is a max, a min, or neither, evaluate each with f(x, y):
  • 35. Lagrange Multipliers To find out which is a max, a min, or neither, evaluate each with f(x, y) = xy: f(1, 1) = 1, f(-1, -1) =1, f(-1, 1) = -1, f(1, -1) = -1,
  • 36. Lagrange Multipliers To find out which is a max, a min, or neither, evaluate each with f(x, y) = xy: f(1, 1) = 1, f(-1, -1) =1, f(-1, 1) = -1, f(1, -1) = -1, So (1, 1) , (-1, -1) are maxima, and (-1, 1), (1, -1) are minima.
  • 37. Lagrange Multipliers To find out which is a max, a min, or neither, evaluate each with f(x, y): f(1, 1) = 1, f(-1, -1) =1, f(-1, 1) = -1, f(1, -1) = -1, So (1, 1) , (-1, -1) are maxima, and (-1, 1), (1, -1) are minima.
  • 38. Lagrange Multipliers To find out which is a max, a min, or neither, evaluate each with f(x, y): f(1, 1) = 1, f(-1, -1) =1, f(-1, 1) = -1, f(1, -1) = -1, So (1, 1) , (-1, -1) are maxima, and (-1, 1), (1, -1) are minima. The procedure above is called the method of "Lagrange Multipliers". It can be used in the case of finding extrema of a three varaible function w=f(x, y, z) with a constraint g(x, y, z) = 0. In the three variabe case, we solve the systems: gx = λfx gy = λfy gz = λfz g(x, y, z) = 0
  • 39. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area.
  • 40. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz.
  • 41. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2
  • 42. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0.
  • 43. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx gy = λfy gz = λfz g(x, y, z) = 0
  • 44. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy gz = λfz g(x, y, z) = 0
  • 45. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz g(x, y, z) = 0
  • 46. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0
  • 47. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: y + z = λyz
  • 48. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: y + z = λyz y = λyz – z
  • 49. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: y + z = λyz y = λyz – z y = (λy – 1)z
  • 50. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: y + z = λyz y = λyz – z y = (λy – 1)z y =z λy – 1
  • 51. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: From eq3, we solve for x: y + z = λyz y = λyz – z x + y = λxy y = (λy – 1)z y =z λy – 1
  • 52. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: From eq3, we solve for x: y + z = λyz y = λyz – z x + y = λxy y = λxy – x y = (λy – 1)z y =z λy – 1
  • 53. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: From eq3, we solve for x: y + z = λyz y = λyz – z x + y = λxy y = λxy – x y = (λy – 1)z y = (λy – 1)x y =z λy – 1
  • 54. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: From eq3, we solve for x: y + z = λyz y = λyz – z x + y = λxy y = λxy – x y = (λy – 1)z y = (λy – 1)x y y =z =x λy – 1 λy – 1
  • 55. Lagrange Multipliers Example: Find the largest volume possibe of a box with a fixed total surface area. The volume is V = xyz. The constraint is 2xy + 2xz + 2yz = c or xy + xz + yz = c/2 Hence g(x, y, z) = xy + xz + yz – c/2 = 0. Set up the system: gx = λfx y + z = λyz eq1 gy = λfy x + z = λxz eq2 gz = λfz x + y = λxy eq3 xy + xz + yz = c/2 eq4 g(x, y, z) = 0 From eq1, we solve for z: From eq3, we solve for x: y + z = λyz y = λyz – z x + y = λxy y = λxy – x y = (λy – 1)z y = (λy – 1)x y y =z =x λy – 1 λy – 1 Hence either x = z or λy – 1 = 0.
  • 57. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0.
  • 58. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0. Put this in eq1 and eq3, then x and z must be 0 also,
  • 59. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0. Put this in eq1 and eq3, then x and z must be 0 also, which is impossibe because of eq4 .
  • 60. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0. Put this in eq1 and eq3, then x and z must be 0 also, which is impossibe because of eq4 . Therefore x = z.
  • 61. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0. Put this in eq1 and eq3, then x and z must be 0 also, which is impossibe because of eq4 . Therefore x = z. The system is symmetric so similar algebra yields x = y and y = z.
  • 62. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0. Put this in eq1 and eq3, then x and z must be 0 also, which is impossibe because of eq4 . Therefore x = z. The system is symmetric so similar algebra yields x = y and y = z. Therefore x = y = z and the box must be a cube.
  • 63. Lagrange Multipliers Assume λy – 1 = 0, then from y = (λy – 1)z, we get y = 0. Put this in eq1 and eq3, then x and z must be 0 also, which is impossibe because of eq4 . Therefore x = z. The system is symmetric so similar algebra yields x = y and y = z. Therefore x = y = z and the box must be a cube.