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 pThen 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=1So 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=0So 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=0So 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). ■
Lagrange multipliers find candidates only. The method produces candidates for constrained extrema but does not guarantee they are extrema. Always evaluate f at all candidates and use additional reasoning (e.g., compactness of the constraint set via the extreme value theorem) to determine which gives the max/min.
Boundary vs. Interior. For unconstrained problems on a closed, bounded domain, check both interior critical points and boundary points separately.
Degenerate Hessian. When the Hessian determinant D=0The second derivative test is inconclusive. Use higher-order Taylor expansions or direct analysis of the function near the critical point.
Non-normalised constraint gradients. Ensure the constraint functions are written in the form g=0; multiplying g by a constant changes λ but not the critical points.