Worked ExampleCalculusIntermediateMath Workspace (CAS)

Solve an optimization problem for the maximum area rectangle under a constraint

With perimeter fixed at , the area becomes the quadratic . That makes the optimization workflow concrete: use the constraint to reduce to one variable, then locate the peak of the area function.

Primary Tool

Math Workspace (CAS)

Open CAS workspace

CAS is useful here because it keeps the algebraic setup, the derivative test, and the final numerical area check in one place. The graph then shows why the critical point is the top of a downward-opening parabola.

Problem

A rectangle has perimeter . What dimensions maximize its area?

The point of the problem is that one geometric condition produces a one-variable objective function, so the derivative test answers a question about actual dimensions.

How the constraint reduces the problem

If the side lengths are and , then the perimeter condition gives , so .

That substitution removes one variable. The area becomes , so maximizing the rectangle area is the same as maximizing a quadratic function on the feasible interval.

Step-by-step walkthrough

The important move is replacing the geometric constraint with a one-variable area function that can be differentiated directly.

  1. 1Write the perimeter constraint as and solve for one side: .
  2. 2Substitute into the area formula to get .
  3. 3Differentiate to find .
  4. 4Solve to find the critical point .
  5. 5Differentiate again to get , so the graph is concave down and the critical point gives a maximum.
  6. 6Compute the matching side length and the maximum area .

Common Pitfall

The derivative is not taken on the original two-variable area formula by itself. You first have to use the constraint to rewrite the area in one variable, otherwise the optimization step is incomplete.

Try a Variation

Redo the same problem with perimeter . Which formulas change, and why does the maximizing rectangle still turn out to be a square?

Related Pages

Keep moving through the cluster

Back to Learn Math →