BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeCalculus III: Multivariable CalculusMastering Lagrange Multipliers: Constrained Optimization
Study Guide940 words

Mastering Lagrange Multipliers: Constrained Optimization

Lagrange Multipliers

Mastering Lagrange Multipliers: Constrained Optimization

This study guide covers the Method of Lagrange Multipliers, a powerful technique for finding the local maxima and minima of a function subject to equality constraints.

Learning Objectives

After studying this chapter, you should be able to:

  • Formulate the Lagrange system of equations for a given objective function and constraint.
  • Solve optimization problems involving one constraint using the multiplier λ\lambdaλ.
  • Extend the method to solve optimization problems involving two constraints using multipliers λ\lambdaλ and μ\muμ.
  • Interpret the geometric significance of the gradient vectors at a constrained extremum.

Key Terms & Glossary

  • Objective Function (fff): The function you want to maximize or minimize (e.g., profit, surface area).
  • Constraint Function (ggg): The equation that restricts the possible values of the variables (e.g., budget limits, fixed volume).
  • Lagrange Multiplier (λ\lambdaλ): A scalar constant that relates the gradient of the objective function to the gradient of the constraint.
  • Level Curve: A curve along which a function f(x,y)f(x, y)f(x,y) has a constant value ccc.

The "Big Idea"

At the point where a function fff reaches its maximum or minimum subject to a constraint g(x,y)=kg(x, y) = kg(x,y)=k, the level curve of fff is tangent to the constraint curve ggg. Geometrically, this means their gradient vectors point in the same (or opposite) direction. Since the vectors are parallel, one must be a scalar multiple of the other: ∇f=λ∇g\nabla f = \lambda \nabla g∇f=λ∇g.

Formula / Concept Box

CaseSystem of Equations
One Constraint∇f(x,y)=λ∇g(x,y)\nabla f(x, y) = \lambda \nabla g(x, y)∇f(x,y)=λ∇g(x,y) and g(x,y)=kg(x, y) = kg(x,y)=k
Two Constraints∇f(x,y,z)=λ∇g(x,y,z)+μ∇h(x,y,z)\nabla f(x, y, z) = \lambda \nabla g(x, y, z) + \mu \nabla h(x, y, z)∇f(x,y,z)=λ∇g(x,y,z)+μ∇h(x,y,z), g=k1g=k_1g=k1​, and h=k2h=k_2h=k2​

[!IMPORTANT] The method of Lagrange multipliers only works if ∇g≠0\nabla g \neq 0∇g=0 at the point of interest. If the gradient of the constraint is zero, the method may fail.

Hierarchical Outline

  1. Theoretical Foundation
    • Gradient Alignment: Gradients ∇f\nabla f∇f and ∇g\nabla g∇g are parallel at extrema.
    • Smoothness Requirements: Functions must have continuous partial derivatives.
  2. The Single Constraint Process
    • Step 1: Identify f(x,y)f(x, y)f(x,y) and g(x,y)=kg(x, y) = kg(x,y)=k.
    • Step 2: Set up the system: fx=λgxf_x = \lambda g_xfx​=λgx​, fy=λgyf_y = \lambda g_yfy​=λgy​, g(x,y)=kg(x, y) = kg(x,y)=k.
    • Step 3: Solve for x,y,λx, y, \lambdax,y,λ.
    • Step 4: Evaluate fff at all solution points to find absolute max/min.
  3. Multiple Constraints
    • Introduce a second multiplier μ\muμ for the second constraint h(x,y,z)=ch(x, y, z) = ch(x,y,z)=c.

Visual Anchors

Problem-Solving Flowchart

Loading Diagram...
Figure 1 — Mermaid diagram

Geometric Representation (TikZ)

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 2 — TikZ diagram

Definition-Example Pairs

  • Constraint Function (ggg): A restriction on the domain of the objective function.
    • Example: If you are building a box with a fixed volume of $12 ft^3, the constraint is g(x, y, z) = xyz - 12 = 0$.
  • Objective Function (fff): The quantity you are attempting to optimize.
    • Example: If you want to minimize the cost of the box materials, the objective function is f(x,y,z)=C1(xy)+C2(yz)+C3(xz)f(x, y, z) = C_1(xy) + C_2(yz) + C_3(xz)f(x,y,z)=C1​(xy)+C2​(yz)+C3​(xz).

Worked Examples

Example: Minimizing f(x,y)=x2+y2f(x, y) = x^2 + y^2f(x,y)=x2+y2 subject to xy=1xy = 1xy=1

1. Identify Functions:

  • f(x,y)=x2+y2f(x, y) = x^2 + y^2f(x,y)=x2+y2
  • g(x,y)=xy=1g(x, y) = xy = 1g(x,y)=xy=1

2. Set up Gradients:

  • \nabla f = \langle 2x$, $2y \rangle
  • \nabla g = \langle y$, $x \rangle

3. Form the System:

  1. 2x=λy2x = \lambda y2x=λy
  2. 2y=λx2y = \lambda x2y=λx
  3. xy=1xy = 1xy=1

4. Solve:

  • From (1), λ=2xy\lambda = \frac{2x}{y}λ=y2x​. Substitute into (2):
  • 2y=(2xy)x  ⟹  2y2=2x2  ⟹  y2=x2  ⟹  y=±x2y = (\frac{2x}{y})x \implies 2y^2 = 2x^2 \implies y^2 = x^2 \implies y = \pm x2y=(y2x​)x⟹2y2=2x2⟹y2=x2⟹y=±x.
  • Plug into (3): x(x)x(x) x(x)= 1 \implies x^2 = 1 \implies x = \pm 1$$.
  • If x=1x=1x=1, then y=1y=1y=1. If x=−1x=-1x=−1, then y=−1y=-1y=−1.
  • Points: (1,1)(1, 1)(1,1) and (−1,−1)(-1, -1)(−1,−1).

5. Evaluate:

  • f(1,1)=12+12=2f(1, 1) = 1^2 + 1^2 = 2f(1,1)=12+12=2
  • f(−1,−1)=(−1)2+(−1)2=2f(-1, -1) = (-1)^2 + (-1)^2 = 2f(−1,−1)=(−1)2+(−1)2=2
  • The minimum value is 2.

Checkpoint Questions

  1. What is the geometric relationship between the gradient of fff and the gradient of ggg at a constrained extremum point?
  2. Why do we need to include the constraint equation g(x,y)=kg(x, y) = kg(x,y)=k in our system of equations?
  3. If a problem has two constraints, ggg and hhh, what does the gradient equation ∇f=λ∇g+μ∇h\nabla f = \lambda \nabla g + \mu \nabla h∇f=λ∇g+μ∇h imply about the relationship between the three gradient vectors?
▶Click to reveal answers
  1. They are parallel (one is a scalar multiple of the other).
  2. Because the gradient equation provides only the relationship between variables; the constraint equation ensures the solution actually lies on the allowed path/surface.
  3. It implies that ∇f\nabla f∇f lies in the plane spanned by ∇g\nabla g∇g and ∇h\nabla h∇h.

Muddy Points & Cross-Refs

  • λ=0\lambda = 0λ=0: If you find λ=0\lambda = 0λ=0, it means the constrained extremum is also an unconstrained critical point of fff.
  • Multiple Solutions: Always check all (x,y)(x, y)(x,y) pairs found. Lagrange multipliers identify candidates for extrema; you must compare values to determine which is the max and which is the min.
  • Deep Dive: For inequality constraints (e.g., g(x,y)g(x,y) g(x,y)\leq k$$), look up the Karush-Kuhn-Tucker (KKT) conditions in advanced optimization texts.
All Calculus III: Multivariable Calculus Study Resources

Related Notes

  • Applications of Vectors: Force, Volume, and Geometric Analysis842 words
  • Arc Length and Curvature: Multivariable Calculus Study Guide780 words
  • Calculus III: Area and Arc Length in Polar Coordinates Study Guide875 words
  • Calculus of Parametric Curves: Comprehensive Study Guide892 words
  • Calculus of Vector-Valued Functions: A Comprehensive Study Guide825 words
  • Conic Sections: Geometric Foundations and Polar Representations845 words
  • Mastering Conservative Vector Fields: Path Independence and Potential Functions925 words
  • Mastering Cylindrical and Spherical Coordinates925 words
  • Study Guide: Directional Derivatives and the Gradient985 words
  • Divergence and Curl: Vector Calculus Study Guide860 words
  • Double Integrals in Polar Coordinates875 words
  • Study Guide: Double Integrals over General Regions875 words

Ready to study Calculus III: Multivariable Calculus?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Calculus III: Multivariable Calculus?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Calculus III: Multivariable Calculus ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.

Loading Diagram...
Flowchart, top to bottom. Identify Objective f and Constraint g connects to Calculate Gradients: grad f and grad g. B connects to Set up System: grad f = lambda * grad g. C connects to Add Constraint Equation: g = k. D connects to Solve for x, y, and lambda. E connects to Evaluate f at all critical points. F connects to Identify Max and Min values.