Skip to content
← All questions

Why are the gradients of the objective and constraint functions parallel at the extremum points in the Lagrange multiplier method?

At the extremum points, the level curves of the objective function are tangent to the constraint curve. Because gradient vectors are always perpendicular to their respective level curves, the gradients of the objective and constraint functions must be parallel at these points of tangency. This geometric alignment is the core principle that leads to the Lagrange multiplier equation ∇f=λ∇g\nabla f = \lambda \nabla g.

Conditions

  • The functions ff and gg are differentiable.
  • The extremum occurs at a point where the constraint curve is smooth (non-zero gradient for gg).
  • The level curves of ff are tangent to the constraint curve g=0g=0.

Reasoning, step by step

  1. Identify the objective function f(x,y)f(x,y) and its level curves.
  2. Identify the constraint function g(x,y)=0g(x,y)=0 and its curve.
  3. Observe that at the extremum, a level curve of ff touches the constraint curve tangentially.
  4. Recall that the gradient of a function is perpendicular to its level curves.
  5. Conclude that since both gradients are perpendicular to the same tangent line, they must be parallel to each other.
  6. Express this parallel relationship mathematically as ∇f=λ∇g\nabla f = \lambda \nabla g.

Example

The video uses f(x,y)=x2+y2f(x,y) = x^2 + y^2 (level curves are circles) and g(x,y)=x2+y2/2−1=0g(x,y) = x^2 + y^2/2 - 1 = 0 (constraint is an ellipse). At the points where the circles are tangent to the ellipse, the blue arrows (∇f\nabla f) and yellow arrows (∇g\nabla g) point in the same or opposite directions, illustrating parallelism.

Common misconceptions

  • Believing that the gradients must be equal in magnitude, rather than just parallel.
  • Thinking that the gradients are parallel everywhere on the constraint curve, not just at the extremum points.

Watch the explanation

Connected concepts

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.