TOPIC 5.11 · STUDY

Solving Optimization Problems

To maximize the area of a rectangle with perimeter 40, use the constraint to write A(x) = 20x - x^2 for x between 0 and 20. Then A'(x) = 20 - 2x = 0 at x = 10, the area is 100, and A''(x) = -2 confirms a maximum.

FUN-4.C

Solving Optimization Problems

Solving an optimization problem takes the setup from the previous idea through calculus. Draw the figure, name the variables, write the constraint, and solve the constraint so the objective becomes a function of one variable. State the domain. Differentiate, solve for critical points inside the domain, and then show that the critical value is a maximum or a minimum. A second-derivative sign does that when it is nonzero. Comparing endpoint values does it as well.

Example. A rectangle has perimeter $40$. Find the side lengths that maximize the area. Let the sides be $x$ and $y$. The perimeter constraint is $2x+2y=40$, so $x+y=20$ and $y=20-x$. The area is the objective $A=xy=x(20-x)=20x-x^2$. A nondegenerate rectangle has positive sides, so $0<x<20$. The continuous function $A(x)=20x-x^2$ on the closed interval $[0,20]$ includes the degenerate endpoints, where the area is $0$, and those endpoints are useful for comparison.

A rectangle with the horizontal side labeled x and the vertical side labeled 20 - x. The interior is labeled area A.

Adjacent sides $x$ and $20-x$ add to $20$, so the perimeter is $2(x+20-x)=40$. The area to maximize is $A=x(20-x)$.

Differentiate: $A'(x)=20-2x$. Set the derivative equal to zero: $20-2x=0$, so $x=10$. Then $y=20-10=10$, and $A(10)=10\cdot 10=100$. The second derivative is $A''(x)=-2$, which is negative at $x=10$ and in fact negative everywhere. The second derivative test says $x=10$ is a local maximum. Because $A''$ is constantly $-2$, the graph of $A$ is a parabola opening downward, and this single critical point is the absolute maximum on $[0,20]$.

The candidates check agrees. The critical point in $[0,20]$ is $x=10$, and the endpoints are $x=0$ and $x=20$. Then $A(0)=0$, $A(10)=100$, and $A(20)=0$. The greatest area is $100$, when both sides are $10$. In context, the rectangle of maximum area with perimeter $40$ is a square of side $10$.

$x$ $y=20-x$ $A(x)=20x-x^2$
$0$ $20$ $0$
$10$ $10$ $100$
$20$ $0$ $0$
Graph of A = 20x - x squared on [0, 20], a downward parabola with vertex (10, 100) marked.

The graph of $A(x)=20x-x^2$ on $[0,20]$ has its highest point at $(10,100)$. The endpoint areas are $0$, and $A''(x)=-2$ confirms that $x=10$ is a maximum.

Key points

  • Use the constraint to write the objective as a function of one variable, and state the domain.
  • For perimeter $40$, $y=20-x$ and $A(x)=20x-x^2$ on $(0,20)$.
  • $A'(x)=20-2x=0$ at $x=10$, so $y=10$ and $A=100$.
  • $A''(x)=-2<0$, so the critical point is a maximum.
  • Endpoint values $A(0)=0$ and $A(20)=0$ are smaller than $100$.
  • The maximum-area rectangle is a square of side $10$.

A common mistake is to stop when $A'(x)=0$. The equation $20-2x=0$ only locates the candidate $x=10$. The conclusion that the area is a maximum uses $A''(x)=-2<0$, or the comparison $A(0)=A(20)=0<A(10)=100$. The two adjacent sides add to $20$ because the perimeter is $40$.

Practice this topic