ArticleslgStudy

mathematics

Lagrange multiplier

Lagrange multiplier is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Lagrange multiplier rather than just read about it. In short: In mathematical optimization, the method of Lagrange multipliers is a strategy for finding the local maxima and minima of a function subject to equation constraints (i.e., subject to the condition that one or more equations have to be satisfied exactly by the chosen values of the variables). It is named after the mathematician Joseph-Louis Lagrange.

Lagrange multiplier — main illustration
Lagrange multiplier — illustration

Key takeaways

  • Lagrange multiplier belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Lagrange multiplier to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Lagrange multiplier from memory before moving on to harder problems.

Reference excerpt

In mathematical optimization, the method of Lagrange multipliers is a strategy for finding the local maxima and minima of a function subject to equation constraints (i.e., subject to the condition that one or more equations have to be satisfied exactly by the chosen values of the variables). It is named after the mathematician Joseph-Louis Lagrange.

Summary and rationale The basic idea is to convert a constrained problem into a form such that the derivative test of an unconstrained problem can still be applied. The relationship between the gradient of the function and gradients of the constraints rather naturally leads to a reformulation of the original problem, known as the Lagrangian function or Lagrangian. In the general case, the Lagrangian is defined as

L ( x , λ ) ≡ f ( x ) + ⟨ λ , g ( x ) ⟩ {\displaystyle {\mathcal {L}}(x,\lambda )\equiv f(x)+\langle \lambda ,g(x)\rangle }

for functions f , g {\displaystyle f,g} ; the notation ⟨ ⋅ , ⋅ ⟩ {\displaystyle \langle \cdot ,\cdot \rangle } denotes an inner product. The value λ {\displaystyle \lambda } is called the Lagrange multiplier. In simple cases, where the inner product is defined as the dot product, the Lagrangian is

L ( x , λ ) ≡ f ( x ) + λ ⋅ g ( x ) {\displaystyle {\mathcal {L}}(x,\lambda )\equiv f(x)+\lambda \cdot g(x)}

The method can be summarized as follows: in order to find the maximum or minimum of a function f {\displaystyle f} subject to the equality constraint g ( x ) = 0 {\displaystyle g(x)=0} , find the stationary points of L {\displaystyle {\mathcal {L}}} considered as a function of x {\displaystyle x} and the Lagrange multiplier λ {\displaystyle \lambda ~} . This means that all partial derivatives should be zero, including the partial derivative with respect to λ {\displaystyle \lambda ~} .

or equivalently

The solution corresponding to the original constrained optimization is always a saddle point of the Lagrangian function, which can be identified among the stationary points from the definiteness of the bordered Hessian matrix. The great advantage of this method is that it allows the optimization to be solved without explicit parameterization in terms of the constraints. As a result, the method of Lagrange multipliers is widely used to solve challenging constrained optimization problems. Further, the method of Lagrange multipliers is generalized by the Karush–Kuhn–Tucker conditions, which can also take into account inequality constraints of the form h ( x ) ≤ c {\displaystyle h(\mathbf {x} )\leq c} for a given constant c {\displaystyle c} .

Statement The following is known as the Lagrange multiplier theorem. Let f : R n → R {\displaystyle f\colon \mathbb {R} ^{n}\to \mathbb {R} } be the objective function and let g : R n → R c {\displaystyle g\colon \mathbb {R} ^{n}\to \mathbb {R} ^{c}} be the constraints function, both belonging to C 1 {\displaystyle C^{1}} (that is, having continuous first derivatives). Consider the following constrained optimization problem:

maximize f ( x ) subject to: g ( x ) = 0 {\displaystyle {\begin{aligned}&{\text{maximize }}f(x)\\&{\text{subject to: }}g(x)=0\end{aligned}}}

… excerpt ends here. Continue reading the full article.

Illustrations

Lagrange multiplier: Figure 2: A paraboloid constrained along two intersecting lines.
Figure 2: A paraboloid constrained along two intersecting lines.
Lagrange multiplier: Figure 3: Contour map of Figure 2.
Figure 3: Contour map of Figure 2.
Lagrange multiplier: Illustration of the constrained optimization problem 1
Illustration of the constrained optimization problem 1
Lagrange multiplier: Illustration of the constrained optimization problem 2
Illustration of the constrained optimization problem 2
Lagrange multiplier: Illustration of constrained optimization problem 3.
Illustration of constrained optimization problem 3.

Worked examples

Example 1 — a first encounter with Lagrange multiplier

Start with the simplest possible case. Write down what Lagrange multiplier claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Lagrange multiplier before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Lagrange multiplier ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Lagrange multiplier

In research
Lagrange multiplier appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Lagrange multiplier in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Lagrange multiplier is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical and quantitative methods (economics), Mathematical optimization, Multivariable calculus, so understanding it makes those chapters shorter.
In everyday life
Look for Lagrange multiplier outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Lagrange multiplier in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Lagrange multiplier means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Lagrange multiplier out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Lagrange multiplier in simple terms?

In mathematical optimization, the method of Lagrange multipliers is a strategy for finding the local maxima and minima of a function subject to equation constraints (i.e., subject to the condition that one or more equations have to be satisfied exactly by the chosen values of the variables). It is…

Why does Lagrange multiplier matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Lagrange multiplier?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Lagrange multiplier.

Tags

  • Mathematical and quantitative methods (economics)
  • Mathematical optimization
  • Multivariable calculus

Keep exploring