Optimization from a Model

LESSON 9 OF 12See the unit map ↗

Translate constraints into a one-variable objective and justify a global optimum.

Builds on Reading Graphs with Derivatives

The bigger question: How can we measure change at a single instant?

On this page

The derivative is not the first step

An optimization problem begins with a quantity to improve and constraints on what is possible. Name the variables, attach units and draw a diagram if geometry is involved. Use the constraints to reduce the objective to one variable, then state the feasible domain.

Only after this modeling work should you differentiate. Solve for interior critical points, examine endpoints or limiting boundary behavior, and justify why the selected candidate is the desired global optimum. A numerical root of a derivative is not itself that justification.

Visual guide

VISUAL GUIDEA constraint turns geometry into one variable
A rectangle with perimeter 12 has sides x and 6 − x, so area A = x(6 − x) for 0 ≤ x ≤ 6. Its highest point is the square x = 3, A = 9. Endpoints represent collapsed rectangles with zero area.001.52.5354.57.5610side xarea
  • Area x(6 − x)
A rectangle with perimeter 12 has sides x and 6 − x, so area A = x(6 − x) for 0 ≤ x ≤ 6. Its highest point is the square x = 3, A = 9. Endpoints represent collapsed rectangles with zero area.

Worked example: a fence with one free side

A rectangular enclosure stands against a straight wall. There are 4040 meters of fencing for the other three sides. Let xx be the perpendicular width and yy the side parallel to the wall. The constraint is 2x+y=402x+y=40, so y=40−2xy=40-2x.

Area is A(x)=x(40−2x)A(x)=x(40-2x) with 0≤x≤200\le x\le20 if degenerate rectangles are admitted as boundary cases. Then A′=40−4xA'=40-4x, giving x=10x=10. The corresponding yy is 2020 and the area is 200200 m². The second derivative is −4-4, and the endpoint areas are zero. The concave quadratic therefore has its global maximum at this point.

Using 2x+2y=402x+2y=40 would solve a different problem. The physical constraint must be correct before the calculus can be meaningful.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

A rectangle has perimeter 20. Which area model uses only its width x?

Hint 1 · Find a starting point

Use the perimeter constraint to eliminate the length.

Hint 2 · Take the next step

2x+2y=20 means y=10−x.

Show the reasoning

Answer: A(x)=x(10−x), 0<x<10

Area is xy=x(10−x); positivity of both sides restricts x to (0,10).

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: minimum material for an open box

A square-base open box must hold 3232 volume units. With base side x>0x>0, its height is h=32/x2h=32/x^2. Material area is

S(x)=x2+4xh=x2+128x.S(x)=x^2+4xh=x^2+\frac{128}{x}.

Differentiate: S′=2x−128/x2S'=2x-128/x^2. Setting this to zero gives 2x3=1282x^3=128, hence x=4x=4 and h=2h=2. Also S′′=2+256/x3>0S''=2+256/x^3>0 for all feasible xx. Since SS grows without bound as x→0+x\to0^+ or x→∞x\to\infty, this is the global minimum, with area 4848.

The domain is open and unbounded, so the closed-interval recipe alone is not enough. Boundary limits supply the missing global check.

Sanity checks and limitations

Return to the original variables and verify the constraint. Check signs, dimensions and whether the solution is physically admissible. Real manufacturing may impose integer dimensions or minimum wall thickness; those constraints can alter the mathematical optimum. State the model rather than silently solving a more realistic problem than the information permits.

Practice

  1. A rectangle has perimeter 2424. Maximize its area.
  2. Minimize x+9/xx+9/x for x>0x>0.
  3. Why must endpoints be checked even after finding an interior stationary point?
Show worked solutions
  1. With sides xx and 12−x12-x, area 12x−x212x-x^2 is maximized at x=6x=6. The square has area 3636.
  2. The derivative is 1−9/x21-9/x^2, negative below 33 and positive above. The minimum is 66 at x=3x=3.
  3. A stationary point can be a minimum while the maximum occurs at a boundary, as with x2x^2 on [−1,2][-1,2].
MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →