Course contentsShow
← Mathematics
Lesson 1877 of 3,12140. Multivariable OptimizationFree lesson

Setting Up the Lagrange System

Forming the system of equations from ∇f = λ∇g and the constraint g(x,y) = k to find critical points.

Setting Up the Lagrange System

You'll learn how to construct the system of equations needed to find optimal points under a constraint using Lagrange multipliers.

The Core Idea

Once you've identified that the gradients of your objective function and constraint must be parallel at optimal points (∇f = λ∇g), you need to translate this geometric insight into a concrete system of equations you can solve.

The Lagrange system consists of:

  1. The components of ∇f = λ∇g (one equation per variable)
  2. The constraint equation g(x,y) = k itself

This gives you exactly as many equations as unknowns (including λ), which you can then solve to find critical points.

Building the System Step-by-Step

For a function f(x,y) subject to constraint g(x,y) = k:

Step 1: Compute the gradients

  • ∇f = ⟨∂f/∂x, ∂f/∂y⟩
  • ∇g = ⟨∂g/∂x, ∂g/∂y⟩

Step 2: Write the vector equation ∇f = λ∇g as component equations:

  • ∂f/∂x = λ(∂g/∂x)
  • ∂f/∂y = λ(∂g/∂y)

Step 3: Add the constraint equation:

  • g(x,y) = k

Your system: Three equations in three unknowns (x, y, λ).

Example Structure

Maximize f(x,y) = xy subject to x² + y² = 1:

∇f = ⟨y, x⟩ and ∇g = ⟨2x, 2y⟩

System:

  • y = λ(2x)
  • x = λ(2y)
  • x² + y² = 1

Now you can solve algebraically by elimination or substitution to find the critical points.

Key Takeaway: The Lagrange system combines the parallel gradient condition (∇f = λ∇g split into components) with the original constraint equation, creating a solvable system that reveals where constrained extrema occur.