AP Calculus AB and BC · Unit 5 · Topic 5.10

    5.10 Introduction to 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

    Optimization means finding the largest or smallest value of a quantity, such as an area, a cost or a distance. The calculus is what you already know; the new skill is setting up: identify the quantity to optimise, write it as a function, use the constraint to reduce it to one variable, and state the domain. Then find and justify the extremum.

    What you need to know

    • Identify the objective function and the constraint in a word problem.
    • Use the constraint to write the objective as a function of one variable.
    • State a sensible domain for the variable.
    • Find and justify the optimal value.

    Setting up

    • Objective: the quantity to make largest or smallest (area, volume, cost, time).
    • Variables: name them, ideally on a sketch.
    • Constraint: an equation linking the variables (a fixed perimeter, a fixed volume).
    • One variable: use the constraint to substitute.
    • Domain: the values that make physical sense.

    Example. Two positive numbers have sum 20. Make their product as large as possible. Objective: P=xyP = xy. Constraint: x+y=20x + y = 20, so y=20−xy = 20 - x and P(x)=x(20−x)=20x−x2P(x) = x(20 - x) = 20x - x^2 on 0<x<200 < x < 20.

    Solving and justifying

    P′(x)=20−2x=0P'(x) = 20 - 2x = 0 gives x=10x = 10. Since P′′(x)=−2<0P''(x) = -2 < 0, PP is concave down everywhere, so this single critical point is the absolute maximum. The numbers are 10 and 10, and the largest product is 100.

    Fencing. A farmer has 200 m of fence for a rectangular pen. With side lengths xx and yy, 2x+2y=2002x + 2y = 200, so y=100−xy = 100 - x, and the area is A(x)=x(100−x)A(x) = x(100 - x) on 0<x<1000 < x < 100. A′(x)=100−2x=0A'(x) = 100 - 2x = 0 at x=50x = 50, and A′′=−2<0A'' = -2 < 0. The best pen is a 50 m by 50 m square with area 2500 m².

    A minimum problem

    Find the smallest value of the sum of a positive number and its reciprocal. Objective: S(x)=x+1xS(x) = x + \frac{1}{x} for x>0x > 0. Then S′(x)=1−1x2=0S'(x) = 1 - \frac{1}{x^2} = 0 at x=1x = 1 (rejecting −1-1, which is outside the domain). S′S' changes from negative to positive at 1, and it is the only critical point, so the absolute minimum is S(1)=2S(1) = 2.

    The domain here is open and unbounded, so there are no endpoints to test. That is exactly when the single critical point argument is useful.

    Most real design problems are optimization problems in disguise: the least material for a container of fixed volume, the shortest route between two places, the price that brings in the most revenue. Topic 5.11 works through harder versions where the setup needs more geometry.

    Key terms

    Optimization
    Finding the maximum or minimum value of a quantity under given conditions.
    Objective function
    The function whose value is to be maximised or minimised.
    Constraint
    An equation or condition linking the variables.
    Feasible domain
    The set of input values that make sense in the problem.

    Common mistakes

    • Differentiating a function of two variables.

      Use the constraint to write the objective in one variable first.

    • Forgetting the domain.

      State the domain; it decides which critical points and endpoints count.

    • Stopping at the critical point.

      Justify that it gives a maximum or minimum, then answer the actual question.

    How this topic is tested

    • Draw and label a diagram before writing any equation.
    • Write the objective in words first, then as a formula.
    • Finish with a sentence giving the answer 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

      Two positive numbers have sum 20. What is their largest possible product?

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      A rectangle has perimeter 200 m. What is its largest possible area?

    3. Question 3 · MP 3 · Justification

      In an optimization problem, what is the constraint used for?

    4. Question 4 · MP 1 · Implementing Mathematical Processes

      What is the smallest value of x+1xx + \frac{1}{x} for x>0x > 0?

    5. Question 5 · MP 4 · Communication and Notation

      Which is a valid justification that x = 50 maximises A(x) = x(100 − x) on (0, 100)?

    Free-response practice

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

    Free response (no calculator) · 4 points

    A rectangle has one side on the x-axis and its upper corners on the parabola y = 12 − x², for −√12 < x < √12.

    1. (a) Write the area of the rectangle as a function of x, where (x, 12 − x²) is the upper right corner and x > 0.
    2. (b) Find the value of x that maximises the area. Justify.
    3. (c) Find the maximum area.

    Connected topics

    Frequently asked questions

    How do I know which quantity to optimise?

    The question says: look for words like largest, smallest, least cost, maximum volume.

    What if the domain is closed?

    Then use the Candidates Test and include the endpoints.

    Are calculators allowed?

    Some optimization questions are on calculator sections, where solving f′ = 0 numerically is fine.

    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.