Thomas’ Calculus · Chapter 14 · Section 14.8
By Muhammad Abdullah Athar · SymPy Verified
Lagrange Multipliers
Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.
Part One
Section Notes
Section 14.8: Lagrange Multipliers
The method of Lagrange multipliers optimizes functions subject to equality constraints.
1. Single Constraint
Solve the system of equations:
The scalar represents the marginal rate of change of the optimal value with respect to the constraint level : .
2. Two Constraints
When restricted to the intersection curve of two surfaces and :
Part Two
Key Ideas to Remember
2 essential statements for this section, each with a plain-words explanation.
Method of Lagrange Multipliers (One Constraint)
To find the maximum and minimum values of f(x, y, z) subject to constraint g(x, y, z) = k (assuming grad g != 0 on the constraint surface), find all values of x, y, z and scalar multiplier lambda satisfying grad f = lambda grad g alongside g = k.
Conditions: grad g != 0 on the level surface g = k; f and g have continuous partials
Remember — Transforms constrained optimization into an unconstrained system of equations.
Lagrange Multipliers with Two Constraints
To optimize f subject to two simultaneous constraints g = k_1 and h = k_2, the gradient of f must lie in the plane spanned by the constraint gradients grad g and grad h.
Conditions: grad g and grad h are linearly independent
Remember — Optimizes functions along space curves formed by intersecting surfaces.
Part Three
Worked Examples
5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.
Example 01(Section 14.8, Exercise 1)
Warm-upProblem. Maximize f(x, y) = xy subject to the constraint x + y = 10.
Step-by-Step Derivation (3 steps)
Set Up Lagrange Multiplier Gradients
Compute gradients of objective f and constraint g(x, y) = x + y - 10.
Solve for Variables and Multiplier
Equate x and y and substitute into constraint.
Evaluate Maximum Value
Multiply optimal values.
Answer:
✓ Verified by SymPy CAS
Example 02(Section 14.8, Exercise 2)
Core practiceProblem. Find the point on the plane 2x - y + z = 6 closest to the origin, and compute that minimum distance.
Step-by-Step Derivation (4 steps)
Formulate Squared Distance Objective Function
Minimizing squared distance avoids square root radicals.
Apply Lagrange Gradient Condition
Express coordinates in terms of multiplier lambda.
Substitute into Plane Constraint
Solve for multiplier lambda = 2.
Compute Coordinates and Distance
Calculate Euclidean distance from origin.
Answer:
✓ Verified by SymPy CAS
Example 03(Section 14.8, Exercise 3)
Core practiceProblem. Find the maximum and minimum values of f(x, y) = x^2 + 2y subject to x^2 + y^2 = 1.
Step-by-Step Derivation (3 steps)
Set Up Lagrange System
Equate gradient components with scalar multiplier lambda.
Analyze Case x = 0 and Case lambda = 1
Examine roots of the first equation.
Evaluate Objective at Candidate Points
Compare candidate values.
Answer:
✓ Verified by SymPy CAS
Example 04(Section 14.8, Exercise 4)
ChallengeProblem. Find the difference between the maximum and minimum values of f(x, y, z) = z subject to x + y + z = 1 and x^2 + y^2 = 1.
Step-by-Step Derivation (3 steps)
Express z in Terms of Constraint Variables
From the planar constraint x + y + z = 1, z is maximized when x + y is minimized.
Optimize x + y on the Unit Circle
The extrema of x + y on the unit circle are +- sqrt(2).
Compute Maximum and Minimum Values of z
Subtract minimum from maximum.
Answer:
✓ Verified by SymPy CAS
Example 05(Section 14.8, Exercise 5)
Core practiceProblem. Maximize production P(L, K) = 50 L^(0.5) K^(0.5) subject to budget constraint 100 L + 200 K = 40000.
Step-by-Step Derivation (3 steps)
Set Up Lagrange Ratio of Marginal Productivities
Equating marginal product per dollar yields capital-labor expansion path L = 2K.
Substitute into Budget Constraint
Solve linear budget equation.
Compute Maximum Production
Substitute optimal L and K into production function.
Answer:
✓ Verified by SymPy CAS