Sign up freeSign in

Explore · Flashcard deck

Calculus 3: Optimization and Lagrange Multipliers (University)

31 cards · 5 topics · by Quizcard team · 0 hearts · Updated 2026-11-22

Critical PointsSecond Derivative TestAbsolute ExtremaLagrange MultipliersCommon Mistakes
Quiz me (15 questions) Copy to my decks Make your own flashcards

Shared from Quizcard. Flip through the cards below, or copy the deck to edit and study it in your own account — free.

  Space flips · arrows move · Esc exits

Critical Points

Define a local maximum of f(x,y) at (a,b).

Answer: f(a,b) >= f(x,y) for all (x,y) in some disk centered at (a,b). A local minimum reverses the inequality: f(a,b) <= f(x,y) near (a,b).

Explanation

'Local' means only nearby points are compared, not the whole domain.

What is a critical point of f(x,y)?

Answer: A point (a,b) in the domain where fx(a,b) = 0 and fy(a,b) = 0, or where at least one first partial derivative does not exist.

Explanation

Example: f = sqrt(x^2 + y^2) has a critical point at (0,0) because its partials do not exist there. It is a minimum (the vertex of a cone).

State Fermat's theorem for functions of two variables.

Answer: If f has a local max or min at (a,b) and the first partials exist there, then fx(a,b) = 0 and fy(a,b) = 0. Equivalently, grad f(a,b) = 0. The converse is false.

Explanation

Geometrically, the tangent plane at a local extremum is horizontal: z = f(a,b).

First step to find the local extrema of f(x,y)?

Answer: Compute fx and fy, set both equal to 0, and solve the two equations simultaneously. Also note any points where a partial does not exist.

Explanation

Example: f = x^2 + y^2 - 2x - 6y + 14. fx = 2x - 2 = 0 and fy = 2y - 6 = 0 give (1,3), where f = 4. This is a minimum because f = (x-1)^2 + (y-3)^2 + 4.

What is a saddle point?

Answer: A critical point where f has neither a local max nor a local min. Every disk around it contains points where f is larger and points where f is smaller.

Explanation

Example: f = y^2 - x^2 at (0,0). Along the x-axis f = -x^2, so the origin is a max there. Along the y-axis f = y^2, so it is a min there.

Second Derivative Test

What is the discriminant D in the second derivative test?

Answer: D = fxx(a,b) * fyy(a,b) - [fxy(a,b)]^2. It is the determinant of the Hessian matrix [[fxx, fxy],[fxy, fyy]].

Explanation

Example: for f = x^2 + 3y^2 + xy, D = (2)(6) - 1^2 = 11.

What conditions are required to use the second derivative test at (a,b)?

Answer: The second partial derivatives of f must be continuous on a disk around (a,b), and (a,b) must be a critical point with fx = fy = 0.

Explanation

The test cannot be applied at critical points where a partial derivative fails to exist.

Second derivative test: what do you conclude when D > 0?

Answer: If D > 0 and fxx > 0, then f(a,b) is a local minimum. If D > 0 and fxx < 0, then f(a,b) is a local maximum.

Explanation

When D > 0, fxx and fyy have the same sign, so you may check fyy instead of fxx.

Second derivative test: what do you conclude when D < 0?

Answer: (a,b) is a saddle point. It is neither a local max nor a local min.

Explanation

Example: f = y^2 - x^2 gives D = (-2)(2) - 0 = -4 < 0, so the origin is a saddle point.

Second derivative test: what do you conclude when D = 0?

Answer: Nothing. The test is inconclusive, and the point could be a max, a min, or a saddle. You must analyze f directly.

Explanation

At (0,0), f = x^4 + y^4 has a min, -(x^4 + y^4) has a max, and x^4 - y^4 has a saddle. All three have D = 0.

Classify the critical points of f = x^4 + y^4 - 4xy + 1.

Answer: The critical points are (0,0), (1,1), and (-1,-1). D = 144x^2y^2 - 16. At (0,0), D = -16, so it is a saddle. At (±1,±1), D = 128 > 0 and fxx = 12 > 0, so both are local minima with f = -1.

Explanation

fx = 4x^3 - 4y = 0 gives y = x^3. Then fy = 4y^3 - 4x = 0 gives x^9 = x, so x = 0, 1, or -1.

Absolute Extrema

State the Extreme Value Theorem for functions of two variables.

Answer: If f is continuous on a closed, bounded set D in R^2, then f attains an absolute maximum value and an absolute minimum value at some points of D.

Explanation

Closed means D contains all of its boundary points. Bounded means D fits inside some disk.

Steps to find absolute extrema of f on a closed, bounded region D.

Answer: 1) Find the values of f at critical points in the interior of D. 2) Find the extreme values of f on the boundary of D. 3) The largest of these values is the absolute max, and the smallest is the absolute min.

Explanation

This is the two-variable version of the closed interval method.

How do you handle the boundary when finding absolute extrema on a region?

Answer: Split the boundary into pieces. Parametrize or substitute on each piece to get a one-variable function, then find its critical points and evaluate the endpoints and corners. Alternatively, use Lagrange multipliers on a curved boundary g = k.

Explanation

Example: on the edge y = 0 of a rectangle, study f(x,0) on the x-interval.

Find the absolute max and min of f = x^2 - 2xy + 2y on the rectangle 0<=x<=3, 0<=y<=2.

Answer: Interior critical point: (1,1), where f = 1. Checking the four edges gives a max of 9 at (3,0) and a min of 0 at (0,0) and at (2,2). Absolute max = 9, absolute min = 0.

Explanation

On the edge y = 2, f = x^2 - 4x + 4 = (x-2)^2, which has its min of 0 at x = 2. On the edge y = 0, f = x^2, which reaches its max of 9 at x = 3.

Lagrange Multipliers

State the method of Lagrange multipliers for one constraint.

Answer: To find extreme values of f(x,y,z) subject to g(x,y,z) = k, solve grad f = λ grad g together with g = k. Then evaluate f at every solution. The largest value is the max and the smallest is the min.

Explanation

λ (lambda) is the Lagrange multiplier.

Why does grad f = λ grad g hold at a constrained extremum?

Answer: At a constrained extremum, the level curve (or surface) of f is tangent to the constraint g = k. Both gradients are normal to that common tangent, so they are parallel.

Explanation

If grad f had a component along the constraint, you could move along the constraint and increase or decrease f.

When is the method of Lagrange multipliers valid?

Answer: f and g must have continuous first partials, and grad g ≠ 0 on the constraint. Extreme values must also exist, which is guaranteed when the constraint set is closed and bounded.

Explanation

On an unbounded constraint, such as xy = 1, the solutions are only candidates. A max or min may not exist.

First step in a Lagrange multiplier problem with f(x,y,z) and g = k?

Answer: Write the system fx = λgx, fy = λgy, fz = λgz, and g = k. This gives 4 equations in the 4 unknowns x, y, z, λ.

Explanation

In two variables the system is fx = λgx, fy = λgy, g = k, which is 3 equations in 3 unknowns.

Maximize f = xy subject to x + y = 10 using Lagrange multipliers.

Answer: The equations are y = λ and x = λ, so x = y. Then x + y = 10 gives x = y = 5. The maximum is f = 25.

Explanation

grad f = (y, x) and grad g = (1, 1).

Find the extreme values of f = x^2 + 2y^2 on the circle x^2 + y^2 = 1.

Answer: The equations are 2x = 2λx and 4y = 2λy. So either x = 0 or λ = 1, and either y = 0 or λ = 2. The candidates are (±1,0) with f = 1 and (0,±1) with f = 2. Max = 2, min = 1.

Explanation

x and y cannot both be 0, because (0,0) is not on the circle.

How do you optimize f on a closed disk g(x,y) <= k?

Answer: Find the interior critical points (where grad f = 0 and g < k). Use Lagrange multipliers on the boundary g = k. Then compare all the values.

Explanation

Example: f = x^2 + 2y^2 on x^2 + y^2 <= 1. The interior point (0,0) gives f = 0, which is the min. The boundary max is 2 at (0,±1).

Lagrange multipliers with two constraints g = k and h = c?

Answer: Solve grad f = λ grad g + μ grad h, together with g = k and h = c. For f(x,y,z) this gives 5 equations in the 5 unknowns x, y, z, λ, μ.

Explanation

The extremum lies on the curve where the two constraint surfaces intersect.

What does the Lagrange multiplier λ mean?

Answer: λ is the rate of change of the optimal value of f with respect to the constraint constant k: dM/dk = λ, where M is the max or min value.

Explanation

Example: maximizing xy subject to x + y = k gives M = k^2/4. At k = 10, dM/dk = 5, which matches λ = 5.

Useful strategies for solving a Lagrange system.

Answer: Eliminate λ, for example by dividing equations or solving each equation for λ. Factor instead of dividing, so that cases like x = 0 are handled separately. Look for symmetry. Substitute into the constraint last.

Explanation

Example: 2x = 2λx becomes x(1 - λ) = 0, so x = 0 or λ = 1.

Common Mistakes

Mistake: dividing by a variable in the Lagrange equations.

Answer: Dividing 2x = 2λx by x loses the solution x = 0, and so loses candidate points. Factor instead and treat each case separately.

Explanation

In the circle example, dividing by x misses the points (0,±1), which give the maximum.

Mistake: forgetting the constraint equation in Lagrange problems.

Answer: grad f = λ grad g alone has more unknowns than equations. You must include g = k to get isolated candidate points.

Mistake: assuming every critical point is a max or a min.

Answer: A critical point may be a saddle point. grad f = 0 is necessary for an interior extremum, but it is not sufficient.

Explanation

Example: f = y^2 - x^2 has grad f = 0 at the origin, but the origin is a saddle.

Mistake: treating D = 0 as a saddle or as 'no extremum'.

Answer: D = 0 means the second derivative test fails. The point could still be a max, a min, or a saddle, so you must examine f directly.

Mistake: using the second derivative test for absolute or constrained extrema.

Answer: The D-test only classifies local behavior at interior critical points. For absolute extrema on a region or along a constraint, evaluate f at all candidates and compare the values.

Mistake: missing corners and the interior when finding absolute extrema.

Answer: Students often skip the corner points of the boundary pieces, or check only the boundary. Absolute extrema can occur at interior critical points, along edges, or at corners.

Explanation

In the rectangle example, the max of 9 occurs at the corner (3,0).

More Calculus 3 decks

  • Calculus 3: Surface Integrals, Stokes’ Theorem and the Divergence Theorem35 cards · 10 topics
  • Calculus 3: Green’s Theorem31 cards · 8 topics
  • Calculus 3: Vector Fields and Line Integrals34 cards · 8 topics

All Calculus 3 decks → · Explore everything

Make your own deck like this

Upload a PDF, Word doc, or slides and Quizcard writes the cards for you, or build them by hand. Free to start, no credit card required.

Get startedRead the guides