Theorem 4.1 (First Derivative Test). If f has a local extremum at an interior point a And ∇f(a) exists, then ∇f(a)=0.
Points where ∇f=0 are called critical points (or stationary points).
Remark. Not all critical points are extrema. A critical point can be a local minimum, local maximum, Or saddle point. The second derivative test (Section 4.2) distinguishes these cases.
Theorem 4.3 (Method of Lagrange Multipliers). To find the extrema of f(x,y,z) subject to the Constraint g(x,y,z)=0Solve the system:
∇f=λ∇g,g=0
More generally, for k constraints g1=0,…,gk=0:
∇f=λ1∇g1+⋯+λk∇gk
Proof (single constraint, geometric justification). Let M=(x,y,z):g(x,y,z)=0 be the constraint surface. If f has a local extremum on M at p Then the directional derivative Dvf(p)=0 for every tangent Vector v to M at p. Since ∇f(p)⋅v=0 for all Such vThe gradient ∇f(p) must be orthogonal to the tangent space of M At p. But the tangent space of M is orthogonal to ∇g(p) (by the implicit Function theorem). Therefore ∇f(p) must be parallel to ∇g(p)I.e., ∇f(p)=λ∇g(p) for some scalar λ. ■
Problem. Maximise f(x,y,z)=xyz subject to x+y+z=1 and x2+y2+z2=1/3.
Solution
Set g1=x+y+z−1 and g2=x2+y2+z2−1/3. The Lagrange multiplier system is:
∇f=λ1∇g1+λ2∇g2
(yz,xz,xy)=λ1(1,1,1)+λ2(2x,2y,2z)
This gives three equations:
yz=λ1+2λ2x,xz=λ1+2λ2y,xy=λ1+2λ2z
Subtracting the first two: z(y−x)=2λ2(x−y)Giving (y−x)(z+2λ2)=0.
Similarly, (z−y)(x+2λ2)=0 and (x−z)(y+2λ2)=0.
If x=y=z: From g1: 3x=1 So x=1/3. From g2: 3(1/9)=1/3. This satisfies both constraints.
At (1/3,1/3,1/3): f=1/27.
If x=y: Then z+2λ2=0. If also y=z: x+2λ2=0 So x=z.
With x=z: from x+y+z=1: 2x+y=1. From 2x2+y2=1/3: Substituting y=1−2x: 6x2−4x+2/3=0I.e., (3x−1)2=0 So x=1/3y=1/3. This reduces to the symmetric case.
Therefore the only critical point is (1/3,1/3,1/3)Which gives f=1/27.
Since the constraint set is compact (intersection of a plane and a sphere in R3), the Extreme value theorem guarantees both a maximum and minimum exist. The maximum of xyz is 1/27 at (1/3,1/3,1/3). ■
Optimization asks: what is the best I can do under constraints? In unconstrained problems, the gradient points uphill — critical points are where it vanishes, meaning all first-order effects balance. The Hessian (matrix of second derivatives) tells you whether the critical point is a minimum, maximum, or saddle, like feeling the curvature of a bowl. Lagrange multipliers handle constraints by saying: at an optimum, the gradient of the objective must be parallel to the gradient of the constraint. Geometrically, this means the level curves of the objective are tangent to the constraint surface. The multiplier λ measures the sensitivity — how much the optimum changes if you relax the constraint slightly.
Partial Derivatives: The gradient and Hessian matrices used in optimisation are constructed from first and second partial derivatives.
Vector Calculus: Lagrange multipliers use the geometric relationship between gradients and tangent spaces, which is formalised in the study of conservative fields.
Sequences and Limits: The extreme value theorem and convergence of iterative optimisation methods rely on completeness and compactness from real analysis.
Multiple Integrals: Computing volumes and moments over constraint surfaces uses the multiple integration techniques developed in this chapter.