Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Optimization with constraints is the process of finding the largest or smallest possible value of a quantity when the variables cannot vary freely. In calculus, this often means maximizing area, volume, profit, or minimizing cost or distance while obeying a fixed condition. A common visual example is a rectangle fitted under a downward-opening parabola, where the curve limits the rectangle's height.

The goal is to turn the geometry into one function, then use derivatives to locate the best value.

The key step is using the constraint to write all variables in terms of one independent variable. For a rectangle under y = a - bx^2 with its base on the x-axis and top corners on the parabola, symmetry gives width = 2x and height = a - bx^2. The area becomes A(x) = 2x(a - bx^2), so the maximum occurs where A'(x) = 0 and A''(x) < 0.

This method connects a diagram, a constraint equation, and a derivative test into one clear solution path.

Key Facts

  • Optimization target: identify the quantity to maximize or minimize, such as A, V, C, or P.
  • Constraint equation: use the given condition to eliminate extra variables before differentiating.
  • For a rectangle under y = a - bx^2, width = 2x and height = a - bx^2.
  • Area model for the parabola example: A(x) = 2x(a - bx^2) = 2ax - 2bx^3.
  • Critical point condition: f'(x) = 0 or f'(x) is undefined, with x inside the allowed domain.
  • Second derivative test: if f''(c) < 0, then f(c) is a local maximum; if f''(c) > 0, then f(c) is a local minimum.

Vocabulary

Objective function
The function that represents the quantity being maximized or minimized.
Constraint
An equation or condition that limits the possible values of the variables.
Critical point
A point in the domain where the derivative is zero or undefined and a maximum or minimum may occur.
Domain
The set of input values that make sense for the problem and satisfy all restrictions.
Second derivative test
A method that uses the sign of the second derivative to classify a critical point as a local maximum or minimum.

Common Mistakes to Avoid

  • Differentiating before using the constraint is wrong because the objective still has too many variables. First rewrite the objective as a function of one variable.
  • Ignoring the domain is wrong because a critical point outside the physical or geometric limits is not a valid answer. Always list restrictions such as x > 0 and height > 0.
  • Forgetting symmetry in the parabola rectangle problem is wrong because x usually measures half the width, not the full width. If the top corners are at x and -x, the width is 2x.
  • Stopping at f'(x) = 0 is wrong because that only finds candidates. Use the second derivative test, endpoint checks, or context to confirm whether the value is a maximum or minimum.

Practice Questions

  1. 1 A rectangle is inscribed under y = 12 - x^2 with its base on the x-axis and upper corners on the parabola. Let x be the positive x-coordinate of the upper right corner. Find the dimensions that maximize the area.
  2. 2 A farmer has 80 m of fencing for three sides of a rectangular pen against a straight wall. If the side perpendicular to the wall has length x, write the area as a function of x and find the maximum area.
  3. 3 A student models the rectangle under y = 9 - x^2 using A(x) = x(9 - x^2). Explain what geometric assumption this formula makes and why it may not match a rectangle centered on the y-axis.