SlideShare a Scribd company logo
Lesson 28 (Sections 18.2–5)
                Lagrange Multipliers II

                          Math 20


                     November 28, 2007


Announcements
   Problem Set 11 assigned today. Due December 5.
   next OH: Today 1–3 (SC 323)
   Midterm II review: Tuesday 12/4, 7:30-9:00pm in Hall E
   Midterm II: Thursday, 12/6, 7-8:30pm in Hall A
Outline

   A homework problem

   Restating the Method of Lagrange Multipliers
      Statement
      Justifications

   Second order conditions
      Compact feasibility sets
      Ad hoc arguments
      Analytic conditions

   Example: More than two variables

   More than one constraint
Problem 17.1.10

   Problem
   Maximize the quantity f (x, y , z) = Ax a y b z c subject to the
   constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are
   positive constants.)
Problem 17.1.10

   Problem
   Maximize the quantity f (x, y , z) = Ax a y b z c subject to the
   constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are
   positive constants.)

   Solution (By elimination)
   Solving the constraint for z in terms of x and y , we get
                                    m − px − qy
                             z=
                                         r
   So we optimize the unconstrained function
                                  Aab
                                     x y (m − px − qy )c
                    f (x, y ) =
                                  rc
We have
∂f (x, y )   A
           = c ax a−1 y b (m − px − qy )c + x a y b c(m − px − qy )c−1 (−p)
    x       r
             A
           = c x a−1 y b (m − px − qy )c−1 [a(m − px − qy ) − cpx]
            r
Likewise
 ∂f (x, y )   A
            = c x a y b−1 (m − px − qy )c−1 [b(m − px − qy ) − cqy ]
     y       r
So throwing out the critical points where x = 0, y = 0, or z = 0
(these give minimal values of f , not maximal), we get

                      (a + c)px + aqy = am
                      bpx + (b + c)qy = bm
This is a fun exercise in Cramer’s Rule:
                       am    aq                  1  1
                                           amq
                       bm (b + c)q               b b+c
          x=                       =
               (a + c)p     aq           a+c  a
                                      pq
                  bp     (b + c)q          b b+c
                    amqc           m     a
            =                    =
              pq(ac + bc + c 2 )   p a+b+c

It follows that
                       m   b               m   c
                  y=                 z=
                       q a+b+c             r a+b+c
If this is a utility-maximization problem subject to fixed budget,
the portion spent on each good ( px , for instance) is the relative
                                    m
                                                  a
degree to which that good multiplies utility ( a+b+c ).
Outline

   A homework problem

   Restating the Method of Lagrange Multipliers
      Statement
      Justifications

   Second order conditions
      Compact feasibility sets
      Ad hoc arguments
      Analytic conditions

   Example: More than two variables

   More than one constraint
Theorem (The Method of Lagrange Multipliers)
Let f (x1 , x2 , . . . , xn ) and g (x1 , x2 , . . . , xn ) be functions of several
variables. The critical points of the function f restricted to the set
g = 0 are solutions to the equations:
  ∂f                              ∂g
      (x1 , x2 , . . . , xn ) = λ     (x1 , x2 , . . . , xn ) for each i = 1, . . . , n
  ∂xi                             ∂xi
    g (x1 , x2 , . . . , xn ) = 0.

Note that this is n + 1 equations in n + 1 variables x1 , . . . , xn , λ.
Graphical Justification
   In two variables, the critical points of f restricted to the level curve
   g = 0 are found when the tangent to the the level curve of f is
   parallel to the tangent to the level curve g = 0.
These tangents have slopes

                dy            fx       dy            gx
                         =−                     =−
                                 and
                dx            fy       dx            gy
                     f                      g
These tangents have slopes

                dy            fx         dy            gx
                         =−                       =−
                                 and
                dx            fy         dx            gy
                     f                        g

So they are equal when

                                   fy
                     fx  g     f
                        = x =⇒ x =
                     fy  gy    gx  gy
or

                              fx = λgx
                              fy = λgy
Symbolic Justification


   Suppose that we can use the relation g (x1 , . . . , xn ) = 0 to solve for
   xn in terms of the the other variables x1 , . . . , xn−1 , after making
   some choices. Then the critical points of f (x1 , . . . , xn ) are
   unconstrained critical points of f (x1 , . . . , xn (x1 , . . . , xn−1 )).

                               f


               x1        x2                   xn
                                   ···


                                                           xn−1
                              x1         x2        ···
Now for any i = 1, . . . , n − 1,

                           ∂f            ∂f    ∂f    ∂xn
                                     =       +
                           ∂xi           ∂xi   ∂xn   ∂xi
                                 g                         g
                                       ∂f    ∂f ∂g /∂xi
                                           −
                                     =
                                       ∂xi   ∂xn ∂g /∂xn

     ∂f
If             = 0, then
     ∂xi   g

                ∂f /∂xi   ∂g /∂xi    ∂f /∂xi   ∂f /∂xn
                                  ⇐⇒
                        =                    =
                ∂f /∂xn   ∂g /∂xn    ∂g /∂xi   ∂g /∂xn

                  ∂f     ∂g
So as before,         =λ     for all i.
                  ∂xi    ∂xi
Another perspective

   To find the critical points of f subject to the constraint that
   g = 0, create the lagrangian function

                L = f (x1 , x2 , . . . , xn ) − λg (x1 , x2 , . . . , xn )

   If L is restricted to the set g = 0, L = f and so the constrained
   critical points are unconstrained critical points of L . So for each i,
                          ∂L         ∂f     ∂g
                              = 0 =⇒     =λ     .
                          ∂xi        ∂xi    ∂xi
   But also,
                    ∂L
                       = 0 =⇒ g (x1 , x2 , . . . , xn ) = 0.
                    ∂λ
Outline

   A homework problem

   Restating the Method of Lagrange Multipliers
      Statement
      Justifications

   Second order conditions
      Compact feasibility sets
      Ad hoc arguments
      Analytic conditions

   Example: More than two variables

   More than one constraint
Second order conditions




   The Method of Lagrange Multipliers finds the constrained critical
   points, but doesn’t determine their “type” (max, min, neither).
   So what then?
A dash of topology
Cf. Sections 17.2–3



    Definition
    A subset of Rn is called closed if it includes its boundary.
A dash of topology
Cf. Sections 17.2–3



    Definition
    A subset of Rn is called closed if it includes its boundary.




                                 x2 + y2 ≤ 1
      x2 + y2 ≤ 1                                                 y ≥0
                                  not closed                      closed
         closed

    Basically, if a subset is described by ≤ or ≥ inequalities, it is closed.
Definition
A subset of Rn is called bounded if it is contained within some
ball centered at the origin.




                           x2 + y2 ≤ 1
x2 + y2 ≤ 1                                             y ≥0
                            bounded                  not bounded
 bounded
Definition
A subset of Rn is called compact if it is closed and bounded.




                          x2 + y2 ≤ 1
x2 + y2 ≤ 1                                             y ≥0
                          not compact                not compact
  compact
Optimizing over compact sets




   Theorem (Compact Set Method)
   To find the extreme values of function f on a compact set D of
   Rn , it suffices to find
       the (unconstrained) critical points of f “inside” D
       the (constrained) critical points of f on the “boundary” of D.
Ad hoc arguments




  If D is not compact, sometimes it’s still easy to argue that as x
  gets farther away, f becomes larger, or smaller, so the critical
  points are “obviously” maxes, or mins.
Ad hoc arguments




  If D is not compact, sometimes it’s still easy to argue that as x
  gets farther away, f becomes larger, or smaller, so the critical
  points are “obviously” maxes, or mins.
  (Example later)
Analytic conditions
Recall Equation 16.13, cf. Section 18.4


          For the two-variable constrained optimization problem, we
          have (look in the book if you want the gory details):

                                                           Lλλ Lλx    Lλy
                          0          gx           gy
             d 2f
                                              fxy − λgxy = Lxλ Lxx    Lxy
                                     − λgxx
                        = gx   fxx
             dx 2
                                                           Ly λ Lyx   Lyy
                    g                − λgyx   gyy − λgyy
                          gy   fyx

          The critical point is a local max if this determinant is
          negative, and a local min if this is positive.
          The matrix on the right is the Hessian of the Lagrangian. But
          there is still a distinction between this and the unconstrained
          case. The constrained extrema are critical points of the
          Lagrangian, not extrema.
          Don’t worry too much about this!
Outline

   A homework problem

   Restating the Method of Lagrange Multipliers
      Statement
      Justifications

   Second order conditions
      Compact feasibility sets
      Ad hoc arguments
      Analytic conditions

   Example: More than two variables

   More than one constraint
Problem 17.1.10

   Problem
   Maximize the quantity f (x, y , z) = Ax a y b z c subject to the
   constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are
   positive constants.)
Problem 17.1.10

   Problem
   Maximize the quantity f (x, y , z) = Ax a y b z c subject to the
   constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are
   positive constants.)

   Solution
   The Lagrange equations are

                            Aax a−1 y b z c = λp
                            Abx a y b−1 z c = λq
                            Acx a y b z c−1 = λr


   We rule out any solution with x, y , z, or λ equal to 0 (they will
   minimize f , not maximize it).
Dividing the first two equations gives
                      ay   p        bp
                         =   =⇒ y =    x
                      bx   q        aq
Dividing the first and last equations gives
                      az   p       cp
                         =   =⇒ z = x
                      cx   r       ar
Plugging these into the equation of constraint gives
                 bp    cp            m   a
          px +      x + x = m =⇒ x =
                  a     a            p a+b+c
Outline

   A homework problem

   Restating the Method of Lagrange Multipliers
      Statement
      Justifications

   Second order conditions
      Compact feasibility sets
      Ad hoc arguments
      Analytic conditions

   Example: More than two variables

   More than one constraint
General method for more than one constraint

   If we are optimizing f (x1 , . . . , xn ) subject to gj (x1 , . . . , xn ) ≡ 0,
   j = 1, . . . , m we need multiple lambdas for them. The new
   Lagrangian is
                                                            m
            L (x1 , . . . , xn ) = f (x1 , . . . , xn ) −         λj gj (x1 , . . . , xn )
                                                            j=1

                                   ∂L                 ∂L
   The conditions are that               = 0 and            = 0 for all i and j. In
                                   ∂xi                ∂λj
   other words,
                             ∂f        ∂g1              ∂gm
                                           + · · · + λm
                                  = λ1                                           (all i)
                            ∂xi        ∂xi              ∂xi
            gj (x1 , . . . , xn ) = 0                                            (all j)
Example
Find the minimum distance between the curves xy = 1 and
x + 2y = 1.
Example
Find the minimum distance between the curves xy = 1 and
x + 2y = 1.
Reframing this, we can minimize

                f (x, y , u, v ) = (x − u)2 + (y − v )2

subject to the constraints

               xy − 1 = 0                  u + 2v = 1.
•
•
    •
                •   xy = 1
            •
•
    •           •
                    x + 2y = 1
The Lagrangian is

     L = (x − u)2 + (y − v )2 − λ(xy − 1) − µ(u + 2v − 1)

So the Lagrangian equations are

           2(x − u) = λy             −2(x − u) = µ
           2(y − v ) = λx            −2(y − v ) = 2µ

Dividing the two λ equations and the two µ equations gives
              x −u                     x −u
                     y                       1
                   =                        =.
              y −v                     y −v
                     x                       2
Since the left-hand-sides are the same, we have 2y =√ Since
                                                    x.
                                √        1                    1
                                        √ , or x = − 2, y = − √
xy = 1, we can say either x = 2, y = 2                          2
√            1
Suppose x =       2, y =   √.   Then
                            2
                  √                      √
                     2−u   1             32
                             =⇒ 2u − v =
                         =
                    1      2             2
                   √ −v
                     2

This along with u + 2v = 1 gives
                         √                      √
                 1                    1
                                          4−3 2
           u=       1+3 2        v=
                 5                   10
                          √         1
If we instead choose x = − 2, y = − √2 , we get

                        √
                   1                        1      3
                                                2+ √
                     1−3 2
              u=                       v=
                   5                        5        2
√
              1
                9−4 2
              5

          •       •
                        xy = 1
              •
     •

                        x + 2y = 1
     √
1
  9+4 2
5
Because f gets larger as x, y , u, and v get larger, the absolute
minimum is the smaller of these two critical values. So the
                               √
                     1
minimum distance is 5 9 − 4 2 .

More Related Content

What's hot

RuFiDiM
RuFiDiMRuFiDiM
Numerical Methods 3
Numerical Methods 3Numerical Methods 3
Numerical Methods 3
Dr. Nirav Vyas
 
Imc2017 day1-solutions
Imc2017 day1-solutionsImc2017 day1-solutions
Imc2017 day1-solutions
Christos Loizos
 
Lesson 10: The Chain Rule (slides)
Lesson 10: The Chain Rule (slides)Lesson 10: The Chain Rule (slides)
Lesson 10: The Chain Rule (slides)
Matthew Leingang
 
Andrei rusu-2013-amaa-workshop
Andrei rusu-2013-amaa-workshopAndrei rusu-2013-amaa-workshop
Andrei rusu-2013-amaa-workshop
Andries Rusu
 
Low Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse ProblemsLow Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse Problems
Gabriel Peyré
 
Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!
A Jorge Garcia
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
Dr. Nirav Vyas
 
Continuity and Uniform Continuity
Continuity and Uniform ContinuityContinuity and Uniform Continuity
Continuity and Uniform Continuity
DEVTYPE
 
Calculus cheat sheet_integrals
Calculus cheat sheet_integralsCalculus cheat sheet_integrals
Calculus cheat sheet_integrals
UrbanX4
 
Imc2017 day2-solutions
Imc2017 day2-solutionsImc2017 day2-solutions
Imc2017 day2-solutions
Christos Loizos
 
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Gabriel Peyré
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation
math265
 
O2
O2O2
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
Tarun Gehlot
 
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse ProblemsLow Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Gabriel Peyré
 
Crib Sheet AP Calculus AB and BC exams
Crib Sheet AP Calculus AB and BC examsCrib Sheet AP Calculus AB and BC exams
Crib Sheet AP Calculus AB and BC exams
A Jorge Garcia
 

What's hot (17)

RuFiDiM
RuFiDiMRuFiDiM
RuFiDiM
 
Numerical Methods 3
Numerical Methods 3Numerical Methods 3
Numerical Methods 3
 
Imc2017 day1-solutions
Imc2017 day1-solutionsImc2017 day1-solutions
Imc2017 day1-solutions
 
Lesson 10: The Chain Rule (slides)
Lesson 10: The Chain Rule (slides)Lesson 10: The Chain Rule (slides)
Lesson 10: The Chain Rule (slides)
 
Andrei rusu-2013-amaa-workshop
Andrei rusu-2013-amaa-workshopAndrei rusu-2013-amaa-workshop
Andrei rusu-2013-amaa-workshop
 
Low Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse ProblemsLow Complexity Regularization of Inverse Problems
Low Complexity Regularization of Inverse Problems
 
Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
Continuity and Uniform Continuity
Continuity and Uniform ContinuityContinuity and Uniform Continuity
Continuity and Uniform Continuity
 
Calculus cheat sheet_integrals
Calculus cheat sheet_integralsCalculus cheat sheet_integrals
Calculus cheat sheet_integrals
 
Imc2017 day2-solutions
Imc2017 day2-solutionsImc2017 day2-solutions
Imc2017 day2-solutions
 
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
Low Complexity Regularization of Inverse Problems - Course #2 Recovery Guaran...
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation
 
O2
O2O2
O2
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
 
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse ProblemsLow Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
Low Complexity Regularization of Inverse Problems - Course #1 Inverse Problems
 
Crib Sheet AP Calculus AB and BC exams
Crib Sheet AP Calculus AB and BC examsCrib Sheet AP Calculus AB and BC exams
Crib Sheet AP Calculus AB and BC exams
 

Viewers also liked

Kontzentrazio-esparruak: egi ezkutua
Kontzentrazio-esparruak: egi ezkutuaKontzentrazio-esparruak: egi ezkutua
Kontzentrazio-esparruak: egi ezkutuaeztizen
 
Optmization techniques
Optmization techniquesOptmization techniques
Optmization techniques
Deepshika Reddy
 
Opzet online strategie Dance4Life NL in 10 stappen
Opzet online strategie Dance4Life NL in 10 stappenOpzet online strategie Dance4Life NL in 10 stappen
Opzet online strategie Dance4Life NL in 10 stappen
Marnix Bras
 
European ‘Research Game’ TR
European ‘Research Game’ TREuropean ‘Research Game’ TR
European ‘Research Game’ TR
Joel Josephson
 
變精度粗集合模型
變精度粗集合模型變精度粗集合模型
變精度粗集合模型winniedp2002
 
A Scottish Prayer By Mafalda And InéS
A Scottish Prayer By Mafalda And InéSA Scottish Prayer By Mafalda And InéS
A Scottish Prayer By Mafalda And InéS
TweenyWeeny
 
Signing Show
Signing ShowSigning Show
Signing Show
jkeisenhaur
 
Ihecs12 13
Ihecs12 13 Ihecs12 13
Ihecs12 13
Patrick Willemarck
 
Z@H3k Opera Apple 2007
Z@H3k Opera Apple 2007Z@H3k Opera Apple 2007
Z@H3k Opera Apple 2007zahek
 
Multilingual Families : Informace k projektu
Multilingual Families : Informace k projektu Multilingual Families : Informace k projektu
Multilingual Families : Informace k projektu
Joel Josephson
 
Business & Lifestyle
Business & LifestyleBusiness & Lifestyle
Business & Lifestyle
Andrew Stamelakis
 
E-mailmarketing workshop Agis
E-mailmarketing workshop AgisE-mailmarketing workshop Agis
E-mailmarketing workshop Agis
Marnix Bras
 
Local Government Meets Social Media
Local Government Meets Social MediaLocal Government Meets Social Media
Local Government Meets Social Media
Kerri Karvetski, Company K Media
 

Viewers also liked (14)

Kontzentrazio-esparruak: egi ezkutua
Kontzentrazio-esparruak: egi ezkutuaKontzentrazio-esparruak: egi ezkutua
Kontzentrazio-esparruak: egi ezkutua
 
Optmization techniques
Optmization techniquesOptmization techniques
Optmization techniques
 
Opzet online strategie Dance4Life NL in 10 stappen
Opzet online strategie Dance4Life NL in 10 stappenOpzet online strategie Dance4Life NL in 10 stappen
Opzet online strategie Dance4Life NL in 10 stappen
 
European ‘Research Game’ TR
European ‘Research Game’ TREuropean ‘Research Game’ TR
European ‘Research Game’ TR
 
happy
happyhappy
happy
 
變精度粗集合模型
變精度粗集合模型變精度粗集合模型
變精度粗集合模型
 
A Scottish Prayer By Mafalda And InéS
A Scottish Prayer By Mafalda And InéSA Scottish Prayer By Mafalda And InéS
A Scottish Prayer By Mafalda And InéS
 
Signing Show
Signing ShowSigning Show
Signing Show
 
Ihecs12 13
Ihecs12 13 Ihecs12 13
Ihecs12 13
 
Z@H3k Opera Apple 2007
Z@H3k Opera Apple 2007Z@H3k Opera Apple 2007
Z@H3k Opera Apple 2007
 
Multilingual Families : Informace k projektu
Multilingual Families : Informace k projektu Multilingual Families : Informace k projektu
Multilingual Families : Informace k projektu
 
Business & Lifestyle
Business & LifestyleBusiness & Lifestyle
Business & Lifestyle
 
E-mailmarketing workshop Agis
E-mailmarketing workshop AgisE-mailmarketing workshop Agis
E-mailmarketing workshop Agis
 
Local Government Meets Social Media
Local Government Meets Social MediaLocal Government Meets Social Media
Local Government Meets Social Media
 

Similar to Lesson 28: Lagrange Multipliers II

Lesson 27: Lagrange Multipliers I
Lesson 27: Lagrange Multipliers ILesson 27: Lagrange Multipliers I
Lesson 27: Lagrange Multipliers I
Matthew Leingang
 
Lesson18 Double Integrals Over Rectangles Slides
Lesson18   Double Integrals Over Rectangles SlidesLesson18   Double Integrals Over Rectangles Slides
Lesson18 Double Integrals Over Rectangles Slides
Matthew Leingang
 
Lesson 21: Curve Sketching II (Section 4 version)
Lesson 21: Curve Sketching  II (Section 4 version)Lesson 21: Curve Sketching  II (Section 4 version)
Lesson 21: Curve Sketching II (Section 4 version)
Matthew Leingang
 
Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)
Matthew Leingang
 
Lesson 21: Curve Sketching II (Section 10 version)
Lesson 21: Curve Sketching II (Section 10 version)Lesson 21: Curve Sketching II (Section 10 version)
Lesson 21: Curve Sketching II (Section 10 version)
Matthew Leingang
 
Roots equations
Roots equationsRoots equations
Roots equations
oscar
 
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Matthew Leingang
 
Lesson 25: Evaluating Definite Integrals (Section 10 version)
Lesson 25: Evaluating Definite Integrals (Section 10 version)Lesson 25: Evaluating Definite Integrals (Section 10 version)
Lesson 25: Evaluating Definite Integrals (Section 10 version)
Matthew Leingang
 
Matlab
MatlabMatlab
Matlab
gueste03a52
 
Lesson 19: Partial Derivatives
Lesson 19: Partial DerivativesLesson 19: Partial Derivatives
Lesson 19: Partial Derivatives
Matthew Leingang
 
Bai giang ham so kha vi va vi phan cua ham nhieu bien
Bai giang ham so kha vi va vi phan cua ham nhieu bienBai giang ham so kha vi va vi phan cua ham nhieu bien
Bai giang ham so kha vi va vi phan cua ham nhieu bien
Nhan Nguyen
 
Lesson 25: Evaluating Definite Integrals (Section 4 version)
Lesson 25: Evaluating Definite Integrals (Section 4 version)Lesson 25: Evaluating Definite Integrals (Section 4 version)
Lesson 25: Evaluating Definite Integrals (Section 4 version)
Matthew Leingang
 
X2 T05 06 Partial Fractions
X2 T05 06 Partial FractionsX2 T05 06 Partial Fractions
X2 T05 06 Partial Fractions
Nigel Simmons
 
Lesson 24: The Definite Integral (Section 10 version)
Lesson 24: The Definite Integral (Section 10 version)Lesson 24: The Definite Integral (Section 10 version)
Lesson 24: The Definite Integral (Section 10 version)
Matthew Leingang
 
Lesson 24: The Definite Integral (Section 4 version)
Lesson 24: The Definite Integral (Section 4 version)Lesson 24: The Definite Integral (Section 4 version)
Lesson 24: The Definite Integral (Section 4 version)
Matthew Leingang
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and Continuity
Matthew Leingang
 
Lesson 21: Curve Sketching (Section 4 version)
Lesson 21: Curve Sketching (Section 4 version)Lesson 21: Curve Sketching (Section 4 version)
Lesson 21: Curve Sketching (Section 4 version)
Matthew Leingang
 
Midterm I Review
Midterm I ReviewMidterm I Review
Midterm I Review
Matthew Leingang
 
Lesson 4: Calculating Limits
Lesson 4: Calculating LimitsLesson 4: Calculating Limits
Lesson 4: Calculating Limits
Matthew Leingang
 
Lesson 4 - Calculating Limits (Slides+Notes)
Lesson 4 - Calculating Limits (Slides+Notes)Lesson 4 - Calculating Limits (Slides+Notes)
Lesson 4 - Calculating Limits (Slides+Notes)
Matthew Leingang
 

Similar to Lesson 28: Lagrange Multipliers II (20)

Lesson 27: Lagrange Multipliers I
Lesson 27: Lagrange Multipliers ILesson 27: Lagrange Multipliers I
Lesson 27: Lagrange Multipliers I
 
Lesson18 Double Integrals Over Rectangles Slides
Lesson18   Double Integrals Over Rectangles SlidesLesson18   Double Integrals Over Rectangles Slides
Lesson18 Double Integrals Over Rectangles Slides
 
Lesson 21: Curve Sketching II (Section 4 version)
Lesson 21: Curve Sketching  II (Section 4 version)Lesson 21: Curve Sketching  II (Section 4 version)
Lesson 21: Curve Sketching II (Section 4 version)
 
Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 4 version)
 
Lesson 21: Curve Sketching II (Section 10 version)
Lesson 21: Curve Sketching II (Section 10 version)Lesson 21: Curve Sketching II (Section 10 version)
Lesson 21: Curve Sketching II (Section 10 version)
 
Roots equations
Roots equationsRoots equations
Roots equations
 
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
 
Lesson 25: Evaluating Definite Integrals (Section 10 version)
Lesson 25: Evaluating Definite Integrals (Section 10 version)Lesson 25: Evaluating Definite Integrals (Section 10 version)
Lesson 25: Evaluating Definite Integrals (Section 10 version)
 
Matlab
MatlabMatlab
Matlab
 
Lesson 19: Partial Derivatives
Lesson 19: Partial DerivativesLesson 19: Partial Derivatives
Lesson 19: Partial Derivatives
 
Bai giang ham so kha vi va vi phan cua ham nhieu bien
Bai giang ham so kha vi va vi phan cua ham nhieu bienBai giang ham so kha vi va vi phan cua ham nhieu bien
Bai giang ham so kha vi va vi phan cua ham nhieu bien
 
Lesson 25: Evaluating Definite Integrals (Section 4 version)
Lesson 25: Evaluating Definite Integrals (Section 4 version)Lesson 25: Evaluating Definite Integrals (Section 4 version)
Lesson 25: Evaluating Definite Integrals (Section 4 version)
 
X2 T05 06 Partial Fractions
X2 T05 06 Partial FractionsX2 T05 06 Partial Fractions
X2 T05 06 Partial Fractions
 
Lesson 24: The Definite Integral (Section 10 version)
Lesson 24: The Definite Integral (Section 10 version)Lesson 24: The Definite Integral (Section 10 version)
Lesson 24: The Definite Integral (Section 10 version)
 
Lesson 24: The Definite Integral (Section 4 version)
Lesson 24: The Definite Integral (Section 4 version)Lesson 24: The Definite Integral (Section 4 version)
Lesson 24: The Definite Integral (Section 4 version)
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and Continuity
 
Lesson 21: Curve Sketching (Section 4 version)
Lesson 21: Curve Sketching (Section 4 version)Lesson 21: Curve Sketching (Section 4 version)
Lesson 21: Curve Sketching (Section 4 version)
 
Midterm I Review
Midterm I ReviewMidterm I Review
Midterm I Review
 
Lesson 4: Calculating Limits
Lesson 4: Calculating LimitsLesson 4: Calculating Limits
Lesson 4: Calculating Limits
 
Lesson 4 - Calculating Limits (Slides+Notes)
Lesson 4 - Calculating Limits (Slides+Notes)Lesson 4 - Calculating Limits (Slides+Notes)
Lesson 4 - Calculating Limits (Slides+Notes)
 

Recently uploaded

Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
Claudio Di Ciccio
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 

Recently uploaded (20)

Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
CAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on BlockchainCAKE: Sharing Slices of Confidential Data on Blockchain
CAKE: Sharing Slices of Confidential Data on Blockchain
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 

Lesson 28: Lagrange Multipliers II

  • 1. Lesson 28 (Sections 18.2–5) Lagrange Multipliers II Math 20 November 28, 2007 Announcements Problem Set 11 assigned today. Due December 5. next OH: Today 1–3 (SC 323) Midterm II review: Tuesday 12/4, 7:30-9:00pm in Hall E Midterm II: Thursday, 12/6, 7-8:30pm in Hall A
  • 2. Outline A homework problem Restating the Method of Lagrange Multipliers Statement Justifications Second order conditions Compact feasibility sets Ad hoc arguments Analytic conditions Example: More than two variables More than one constraint
  • 3. Problem 17.1.10 Problem Maximize the quantity f (x, y , z) = Ax a y b z c subject to the constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are positive constants.)
  • 4. Problem 17.1.10 Problem Maximize the quantity f (x, y , z) = Ax a y b z c subject to the constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are positive constants.) Solution (By elimination) Solving the constraint for z in terms of x and y , we get m − px − qy z= r So we optimize the unconstrained function Aab x y (m − px − qy )c f (x, y ) = rc
  • 5. We have ∂f (x, y ) A = c ax a−1 y b (m − px − qy )c + x a y b c(m − px − qy )c−1 (−p) x r A = c x a−1 y b (m − px − qy )c−1 [a(m − px − qy ) − cpx] r Likewise ∂f (x, y ) A = c x a y b−1 (m − px − qy )c−1 [b(m − px − qy ) − cqy ] y r So throwing out the critical points where x = 0, y = 0, or z = 0 (these give minimal values of f , not maximal), we get (a + c)px + aqy = am bpx + (b + c)qy = bm
  • 6. This is a fun exercise in Cramer’s Rule: am aq 1 1 amq bm (b + c)q b b+c x= = (a + c)p aq a+c a pq bp (b + c)q b b+c amqc m a = = pq(ac + bc + c 2 ) p a+b+c It follows that m b m c y= z= q a+b+c r a+b+c If this is a utility-maximization problem subject to fixed budget, the portion spent on each good ( px , for instance) is the relative m a degree to which that good multiplies utility ( a+b+c ).
  • 7. Outline A homework problem Restating the Method of Lagrange Multipliers Statement Justifications Second order conditions Compact feasibility sets Ad hoc arguments Analytic conditions Example: More than two variables More than one constraint
  • 8. Theorem (The Method of Lagrange Multipliers) Let f (x1 , x2 , . . . , xn ) and g (x1 , x2 , . . . , xn ) be functions of several variables. The critical points of the function f restricted to the set g = 0 are solutions to the equations: ∂f ∂g (x1 , x2 , . . . , xn ) = λ (x1 , x2 , . . . , xn ) for each i = 1, . . . , n ∂xi ∂xi g (x1 , x2 , . . . , xn ) = 0. Note that this is n + 1 equations in n + 1 variables x1 , . . . , xn , λ.
  • 9. Graphical Justification In two variables, the critical points of f restricted to the level curve g = 0 are found when the tangent to the the level curve of f is parallel to the tangent to the level curve g = 0.
  • 10. These tangents have slopes dy fx dy gx =− =− and dx fy dx gy f g
  • 11. These tangents have slopes dy fx dy gx =− =− and dx fy dx gy f g So they are equal when fy fx g f = x =⇒ x = fy gy gx gy or fx = λgx fy = λgy
  • 12. Symbolic Justification Suppose that we can use the relation g (x1 , . . . , xn ) = 0 to solve for xn in terms of the the other variables x1 , . . . , xn−1 , after making some choices. Then the critical points of f (x1 , . . . , xn ) are unconstrained critical points of f (x1 , . . . , xn (x1 , . . . , xn−1 )). f x1 x2 xn ··· xn−1 x1 x2 ···
  • 13. Now for any i = 1, . . . , n − 1, ∂f ∂f ∂f ∂xn = + ∂xi ∂xi ∂xn ∂xi g g ∂f ∂f ∂g /∂xi − = ∂xi ∂xn ∂g /∂xn ∂f If = 0, then ∂xi g ∂f /∂xi ∂g /∂xi ∂f /∂xi ∂f /∂xn ⇐⇒ = = ∂f /∂xn ∂g /∂xn ∂g /∂xi ∂g /∂xn ∂f ∂g So as before, =λ for all i. ∂xi ∂xi
  • 14. Another perspective To find the critical points of f subject to the constraint that g = 0, create the lagrangian function L = f (x1 , x2 , . . . , xn ) − λg (x1 , x2 , . . . , xn ) If L is restricted to the set g = 0, L = f and so the constrained critical points are unconstrained critical points of L . So for each i, ∂L ∂f ∂g = 0 =⇒ =λ . ∂xi ∂xi ∂xi But also, ∂L = 0 =⇒ g (x1 , x2 , . . . , xn ) = 0. ∂λ
  • 15. Outline A homework problem Restating the Method of Lagrange Multipliers Statement Justifications Second order conditions Compact feasibility sets Ad hoc arguments Analytic conditions Example: More than two variables More than one constraint
  • 16. Second order conditions The Method of Lagrange Multipliers finds the constrained critical points, but doesn’t determine their “type” (max, min, neither). So what then?
  • 17. A dash of topology Cf. Sections 17.2–3 Definition A subset of Rn is called closed if it includes its boundary.
  • 18. A dash of topology Cf. Sections 17.2–3 Definition A subset of Rn is called closed if it includes its boundary. x2 + y2 ≤ 1 x2 + y2 ≤ 1 y ≥0 not closed closed closed Basically, if a subset is described by ≤ or ≥ inequalities, it is closed.
  • 19. Definition A subset of Rn is called bounded if it is contained within some ball centered at the origin. x2 + y2 ≤ 1 x2 + y2 ≤ 1 y ≥0 bounded not bounded bounded
  • 20. Definition A subset of Rn is called compact if it is closed and bounded. x2 + y2 ≤ 1 x2 + y2 ≤ 1 y ≥0 not compact not compact compact
  • 21. Optimizing over compact sets Theorem (Compact Set Method) To find the extreme values of function f on a compact set D of Rn , it suffices to find the (unconstrained) critical points of f “inside” D the (constrained) critical points of f on the “boundary” of D.
  • 22. Ad hoc arguments If D is not compact, sometimes it’s still easy to argue that as x gets farther away, f becomes larger, or smaller, so the critical points are “obviously” maxes, or mins.
  • 23. Ad hoc arguments If D is not compact, sometimes it’s still easy to argue that as x gets farther away, f becomes larger, or smaller, so the critical points are “obviously” maxes, or mins. (Example later)
  • 24. Analytic conditions Recall Equation 16.13, cf. Section 18.4 For the two-variable constrained optimization problem, we have (look in the book if you want the gory details): Lλλ Lλx Lλy 0 gx gy d 2f fxy − λgxy = Lxλ Lxx Lxy − λgxx = gx fxx dx 2 Ly λ Lyx Lyy g − λgyx gyy − λgyy gy fyx The critical point is a local max if this determinant is negative, and a local min if this is positive. The matrix on the right is the Hessian of the Lagrangian. But there is still a distinction between this and the unconstrained case. The constrained extrema are critical points of the Lagrangian, not extrema. Don’t worry too much about this!
  • 25. Outline A homework problem Restating the Method of Lagrange Multipliers Statement Justifications Second order conditions Compact feasibility sets Ad hoc arguments Analytic conditions Example: More than two variables More than one constraint
  • 26. Problem 17.1.10 Problem Maximize the quantity f (x, y , z) = Ax a y b z c subject to the constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are positive constants.)
  • 27. Problem 17.1.10 Problem Maximize the quantity f (x, y , z) = Ax a y b z c subject to the constraint that px + qy + rz = m. (Here A, a, b, c, p, q, r , m are positive constants.) Solution The Lagrange equations are Aax a−1 y b z c = λp Abx a y b−1 z c = λq Acx a y b z c−1 = λr We rule out any solution with x, y , z, or λ equal to 0 (they will minimize f , not maximize it).
  • 28. Dividing the first two equations gives ay p bp = =⇒ y = x bx q aq Dividing the first and last equations gives az p cp = =⇒ z = x cx r ar Plugging these into the equation of constraint gives bp cp m a px + x + x = m =⇒ x = a a p a+b+c
  • 29. Outline A homework problem Restating the Method of Lagrange Multipliers Statement Justifications Second order conditions Compact feasibility sets Ad hoc arguments Analytic conditions Example: More than two variables More than one constraint
  • 30. General method for more than one constraint If we are optimizing f (x1 , . . . , xn ) subject to gj (x1 , . . . , xn ) ≡ 0, j = 1, . . . , m we need multiple lambdas for them. The new Lagrangian is m L (x1 , . . . , xn ) = f (x1 , . . . , xn ) − λj gj (x1 , . . . , xn ) j=1 ∂L ∂L The conditions are that = 0 and = 0 for all i and j. In ∂xi ∂λj other words, ∂f ∂g1 ∂gm + · · · + λm = λ1 (all i) ∂xi ∂xi ∂xi gj (x1 , . . . , xn ) = 0 (all j)
  • 31. Example Find the minimum distance between the curves xy = 1 and x + 2y = 1.
  • 32. Example Find the minimum distance between the curves xy = 1 and x + 2y = 1. Reframing this, we can minimize f (x, y , u, v ) = (x − u)2 + (y − v )2 subject to the constraints xy − 1 = 0 u + 2v = 1.
  • 33. • • • • xy = 1 • • • • x + 2y = 1
  • 34. The Lagrangian is L = (x − u)2 + (y − v )2 − λ(xy − 1) − µ(u + 2v − 1) So the Lagrangian equations are 2(x − u) = λy −2(x − u) = µ 2(y − v ) = λx −2(y − v ) = 2µ Dividing the two λ equations and the two µ equations gives x −u x −u y 1 = =. y −v y −v x 2 Since the left-hand-sides are the same, we have 2y =√ Since x. √ 1 1 √ , or x = − 2, y = − √ xy = 1, we can say either x = 2, y = 2 2
  • 35. 1 Suppose x = 2, y = √. Then 2 √ √ 2−u 1 32 =⇒ 2u − v = = 1 2 2 √ −v 2 This along with u + 2v = 1 gives √ √ 1 1 4−3 2 u= 1+3 2 v= 5 10 √ 1 If we instead choose x = − 2, y = − √2 , we get √ 1 1 3 2+ √ 1−3 2 u= v= 5 5 2
  • 36. 1 9−4 2 5 • • xy = 1 • • x + 2y = 1 √ 1 9+4 2 5
  • 37. Because f gets larger as x, y , u, and v get larger, the absolute minimum is the smaller of these two critical values. So the √ 1 minimum distance is 5 9 − 4 2 .