Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 7 of 20

Constrained extrema and Lagrange multipliers

Find regular constrained candidates and inspect exceptional points and global bounds.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

A rectangle has side lengths x,y≥0 and fixed perimeter 12. The constraint is x+y=6 and the area is f=xy. Substitution gives f=x(6−x)=9−(x−3)², so the maximum area is 9 at a square. This concrete calculation already illustrates constrained optimization: most directions in the plane are forbidden because they change the perimeter. The unconstrained gradient of area is not zero at the constrained maximum.

Predict

Predict how the gradient relates to the allowed direction. Along x+y=6, a tangent direction is (1,−1). At the square, ∇f=(3,3), perpendicular to that tangent. The constraint gradient ∇g=(1,1), for g=x+y, is also perpendicular. Thus ∇f=3∇g. The scalar 3 is a Lagrange multiplier; it records proportional normal directions, not a claim that either gradient vanishes.

Experiment

Solve the same problem with ∇f=λ∇g: y=λ, x=λ and x+y=6. These equations give x=y=3. Include the nonnegative boundary possibilities x=0 or y=0, which have zero area. The feasible segment is compact and the area continuous, so a global maximum exists. Comparing every candidate establishes the answer.

Now replace the perimeter by 2x+4y=12. The equations y=2λ and x=4λ yield x=3,y=3/2, area 9/2. More costly y-direction length changes the optimal shape. Verify the result by substituting y=3−x/2 into xy.

Understand

For a differentiable constraint g(x)=c, suppose ∇g is nonzero at a constrained local extremum. The level set is locally regular: allowed tangent directions are perpendicular to ∇g. At a constrained extremum, the derivative of f along every such tangent must vanish. Therefore ∇f is also normal to the tangent space and must be a scalar multiple of ∇g.

The multiplier equations are necessary under this regularity hypothesis. They are not sufficient, do not establish existence, and do not include irregular points automatically. For several equality constraints, the relevant regularity condition is independence of their gradients; then the objective gradient is a linear combination of those constraint gradients. Inequality constraints need additional active-boundary reasoning beyond this introductory equality method.

Apply

Examine f(x,y)=x subject to x²+y²=1. The equations (1,0)=λ(2x,2y) give y=0 and x=±1. Compactness ensures extrema exist; the values ±1 classify the two candidates. No parameter was divided away without checking whether it could vanish.

Now diagnose the invalid argument “if the multiplier equations have no solution, no optimum exists.” Under x²+y²=0 the only feasible point is the origin. Every objective has both a maximum and minimum on that one-point set, but the constraint gradient is zero there. The regularity condition fails. Singular feasible points must be examined directly, not discarded as impossible.

Continue

For optional depth, the multiplier can sometimes describe sensitivity of an optimal value to a constraint level, provided the optimum and multiplier vary smoothly and the chosen sign convention is tracked. This interpretation requires more than solving one system of equations; it is not a general shadow-price guarantee.

Save a constrained solution with four parts: feasible domain, regular candidates, exceptional or boundary cases, and the argument establishing global or merely local status. The constraint optimization investigation offers a bounded computational comparison. A successful numerical iteration suggests a feasible candidate; it does not replace the conditions and completeness reasoning developed here.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

Find the maximum of x+y on x²+y²=8.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

On x+y=10 with x,y≥0, find the maximum xy.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

For one equality g=c, the standard multiplier necessity at a local extremum requires:

Your response

Solving ∇f=λ∇g gives:

Your response

Find extrema of f=x on x²+4y²=16 using multipliers and justify they are global.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Show why f(x)=x constrained by g(x)=x²=0 can have an extremum without any multiplier satisfying f′=λg′.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.