AP Calculus AB and BC · Unit 5 · Topic 5.11

    5.11 Solving Optimization Problems

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    Harder optimization problems need more geometry in the setup, but the routine stays the same: objective, constraint, one variable, domain, derivative, critical points, justification, answer. This lesson works through three classic types, a box, a fence and a closest point, showing every step that earns a mark.

    What you need to know

    • Set up and solve optimization problems involving geometry and distance.
    • Use the domain to decide which critical points and endpoints to consider.
    • Justify an absolute maximum or minimum.
    • Report the answer with units in context.

    The open box

    Cut squares of side x from the corners of a 12 × 12 sheet and fold up the sides.

    A box is made from a 12 in by 12 in sheet by cutting squares of side xx from the corners. The volume is V(x)=x(12−2x)2V(x) = x(12 - 2x)^2 for 0≤x≤60 \le x \le 6. Using the product and chain rules:

    V′(x)=(12−2x)2−4x(12−2x)=(12−2x)(12−6x)\begin{aligned} V'(x) &= (12 - 2x)^2 - 4x(12 - 2x) \\ &= (12 - 2x)(12 - 6x) \end{aligned}

    So V′=0V' = 0 at x=2x = 2 and x=6x = 6. The candidates are V(0)=0V(0) = 0, V(2)=2(8)2=128V(2) = 2(8)^2 = 128 and V(6)=0V(6) = 0. The largest volume is 128 cubic inches, with 2 in squares cut from the corners.

    The fence along a river

    A field next to a straight river is fenced on three sides with 600 m of fence; the river side needs none. With xx the two sides perpendicular to the river and yy the side parallel to it, 2x+y=6002x + y = 600, so A(x)=x(600−2x)A(x) = x(600 - 2x) for 0<x<3000 < x < 300.

    A′(x)=600−4x=0A'(x) = 600 - 4x = 0 at x=150x = 150, and A′′(x)=−4<0A''(x) = -4 < 0, so with one critical point this is the absolute maximum. The field is 150 m by 300 m, with area 45 000 m². Notice the answer is not a square, because one side is free.

    The closest point on a curve

    Find the point on y=xy = \sqrt{x} closest to (4,0)(4, 0). The distance squared is D(x)=(x−4)2+(x)2=(x−4)2+xD(x) = (x - 4)^2 + (\sqrt{x})^2 = (x - 4)^2 + x for x≥0x \ge 0. Minimising DD also minimises the distance, because the square root is increasing, and it avoids messy algebra.

    D′(x)=2(x−4)+1=0D'(x) = 2(x - 4) + 1 = 0 at x=3.5x = 3.5, and D′′(x)=2>0D''(x) = 2 > 0, so this is the minimum. The closest point is (3.5,3.5)≈(3.5,1.871)(3.5, \sqrt{3.5}) \approx (3.5, 1.871) and the least distance is 3.75≈1.936\sqrt{3.75} \approx 1.936.

    A checklist for any optimization problem

    Before writing the final answer, run through four checks. Is the objective in one variable? Is the domain stated, and does the critical point lie inside it? Is there a justification, either a table of candidates or a derivative test with the single critical point rule? And does the final sentence answer exactly what was asked, with units?

    It also helps to ask whether the answer is reasonable. A box from a 12 inch sheet with 2 inch corners has a base of 8 inches and a height of 2, which looks sensible; a negative length or a cut wider than half the sheet would signal an error in the setup. Quick sanity checks like this catch most mistakes before they cost points.

    Key terms

    Open box problem
    Maximising the volume of a box formed by cutting squares from the corners of a sheet.
    Distance squared
    Used instead of distance to simplify differentiation; it has the same minimum location.
    Endpoint candidates
    Ends of a closed domain, which must be checked when using the Candidates Test.
    Absolute extremum in context
    The best possible value, justified for the whole feasible domain.

    Common mistakes

    • Using the sheet's side length as the box's base.

      The base is 12 − 2x, since a square is cut from each end.

    • Assuming the best shape is always a square.

      With a free river side, the best field is twice as long as it is wide.

    • Forgetting to take the square root at the end of a distance problem.

      Convert D back to the distance if the distance is asked for.

    How this topic is tested

    • Write the domain before differentiating.
    • On a closed domain, put candidates in a table.
    • Answer in a sentence with units.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      For the box V(x)=x(12−2x)2V(x) = x(12 - 2x)^2, what value of xx gives the largest volume?

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      A field along a river uses 600 m of fence on three sides. What is the largest area?

    3. Question 3 · MP 3 · Justification

      Why may we minimise (x−4)2+x(x - 4)^2 + x instead of the distance itself?

    4. Question 4 · MP 1 · Implementing Mathematical Processes

      What is the xx-coordinate of the point on y=xy = \sqrt{x} closest to (4,0)(4, 0)?

    5. Question 5 · MP 3 · Justification

      Why are 0 and 6 included as candidates for the box?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (calculator) · 4 points

    A cylindrical can must hold 500 cm³. The surface area is S=2πr2+2πrhS = 2\pi r^2 + 2\pi rh.

    1. (a) Write SS as a function of rr alone.
    2. (b) Find the radius that minimises the surface area. Justify.
    3. (c) Find the minimum surface area.

    Connected topics

    Frequently asked questions

    Which justification should I use?

    Whichever fits: Candidates Test on a closed domain, or the single critical point rule with either derivative test on an open one.

    How do I know the domain?

    Ask which values make physical sense: lengths are positive, and cuts cannot be more than half the sheet.

    Do I need exact answers?

    On no-calculator parts, yes. On calculator parts, three decimal places.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 5 cheat sheet

    Every topic in Unit 5: Analytical Applications of Differentiation on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 5 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    All topics in Unit 5: Analytical Applications of Differentiation

    1. 5.1 Using the Mean Value Theorem
    2. 5.2 Extreme Value Theorem, Global Versus Local Extrema, and Critical Points
    3. 5.3 Determining Intervals on Which a Function Is Increasing or Decreasing
    4. 5.4 Using the First Derivative Test to Determine Relative (Local) Extrema
    5. 5.5 Using the Candidates Test to Determine Absolute (Global) Extrema
    6. 5.6 Determining Concavity of Functions over Their Domains
    7. 5.7 Using the Second Derivative Test to Determine Extrema
    8. 5.8 Sketching Graphs of Functions and Their Derivatives
    9. 5.9 Connecting a Function, Its First Derivative, and Its Second Derivative
    10. 5.10 Introduction to Optimization Problems
    11. 5.11 Solving Optimization Problems
    12. 5.12 Exploring Behaviors of Implicit Relations

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.