Tutorials › AP Calculus › Writing a Complete Optimization Candidate Test

Justification and Candidate Tests · Tutorial 915 of 999

Writing a Complete Optimization Candidate Test

Build a complete optimization candidate test: define what values are feasible, evaluate all interior and boundary candidates, and justify which value is best.

Intermediate 10 min read

What You'll Learn

  • Define the feasible domain from a constraint and state whether its endpoints are included.
  • Distinguish interior critical points from boundary candidates.
  • Explain why an interior absolute extremum must be a critical point when the objective is differentiable there.
  • Use continuity on a closed interval to guarantee absolute extrema exist.
  • Evaluate every candidate and compare objective values, with units when appropriate.
  • Recognize when a candidate test is incomplete or its hypotheses do not apply.

Why Optimization Needs a Complete Candidate Test

Finding a value of the variable where the derivative is zero is only one part of an optimization problem. A maximum or minimum might occur at an endpoint of the feasible domain, or at an interior point where the derivative does not exist. A complete justification must identify every relevant candidate, evaluate the objective at each one, and compare the resulting values.

The method begins before differentiation: describe precisely which values of the variable are allowed. That feasible domain determines which points can be considered and whether an endpoint is part of the problem.

Definition: The feasible domain is the set of variable values that satisfy all restrictions in the optimization problem. For a continuous objective on a closed interval \([a,b]\), a complete candidate test includes both boundary points \(a,b\) and every interior critical point, meaning an interior point where the derivative is zero or does not exist.

Why These Points Are the Candidates

Two facts explain the candidate test. First, if a function is continuous on a closed, bounded interval, the Extreme Value Theorem guarantees that it attains an absolute maximum and an absolute minimum there. Second, an interior extremum at which the function is differentiable must have derivative zero. Thus an absolute extremum must occur at a boundary point, at an interior point where the derivative is zero, or at an interior point where the derivative does not exist.

Theorem: Suppose \(f\) is continuous on \([a,b]\). Then \(f\) attains an absolute maximum and an absolute minimum on \([a,b]\). If \(c\) is an interior point of \([a,b]\), \(f\) is differentiable at \(c\), and \(f\) has a local maximum or minimum at \(c\), then \(f'(c)=0\).

The second statement is Fermat’s theorem. To see why it holds at a local maximum, take a sufficiently small \(h>0\). The difference quotient to the right satisfies \(\frac{f(c+h)-f(c)}{h}\leq 0\), because \(f(c+h)\leq f(c)\). For a sufficiently small \(h<0\), the same quotient is nonnegative: the numerator is nonpositive and the denominator is negative. If \(f'(c)\) exists, both one-sided limits equal that derivative. It must therefore be both nonpositive and nonnegative, so \(f'(c)=0\). At a local minimum, the inequalities reverse and the same conclusion follows.

This explains why derivative-zero points are candidates, not automatic answers. Fermat’s theorem says an interior extremum that is differentiable must have derivative zero; it does not say every point where the derivative is zero is an extremum. And the theorem does not apply at a point where the derivative does not exist, so those interior points must also be checked.

A Reliable Structure for the Justification

For a one-variable problem with feasible domain \([a,b]\), organize the work so that a reader can verify both the domain and the comparison. State why the existence theorem applies, find the interior critical points, include both boundaries, and evaluate the objective at every candidate.

1
Define the feasible domain.
Translate the constraints into an interval or another explicit set, and state which boundary points are included.
2
Check that an absolute best value exists.
For the standard closed-interval test, establish that the objective is continuous on the closed, bounded feasible interval.
3
Find every interior critical point.
Within the feasible interval, solve \(f'(x)=0\) and check where \(f'(x)\) does not exist, while confirming that \(f\) itself is defined there.
4
Include the boundary candidates.
Evaluate the objective at every included endpoint. Endpoints are candidates even if the derivative there is nonzero or undefined.
5
Compare and conclude.
Use the objective values to identify the absolute maximum or minimum, and state the variable value where it occurs.

If the domain is not a closed, bounded interval, this procedure may need adjustment. For example, an open endpoint is not a feasible candidate, and an unbounded domain has no finite endpoint to test. In those situations the Extreme Value Theorem stated above does not guarantee an absolute best value. The candidate list must reflect the actual domain, and a separate argument may be needed to determine whether a best value exists.

Worked Example: Absolute Extrema on a Closed Interval

Worked Example: Absolute Extrema on a Closed Interval

Find the absolute maximum and minimum of \(f(x)=x^3-3x\) on \([-2,2]\), and justify the result with a complete candidate test.

1. State the domain and existence condition. The feasible domain is the closed interval \([-2,2]\). Since \(f\) is a polynomial, it is continuous there. The Extreme Value Theorem guarantees an absolute maximum and an absolute minimum.

2. Find the interior critical points. Differentiate: \(f'(x)=3x^2-3\). Set the derivative equal to zero: \(3x^2-3=0\), so \(3x^2=3\), \(x^2=1\), and \(x=-1\) or \(x=1\). The derivative exists at every real number, so there are no other interior critical points. Both \(-1\) and \(1\) lie in \((-2,2)\).

3. List and evaluate all candidates. Include the two endpoints and both interior critical points:

$$ \begin{aligned} f(-2)&=(-2)^3-3(-2)=-8+6=-2,\\ f(-1)&=(-1)^3-3(-1)=-1+3=2,\\ f(1)&=1^3-3(1)=1-3=-2,\\ f(2)&=2^3-3(2)=8-6=2. \end{aligned} $$

4. Compare and conclude. The greatest candidate value is \(2\), occurring at \(x=-1\) and \(x=2\). The least candidate value is \(-2\), occurring at \(x=-2\) and \(x=1\). Because an absolute extremum exists and every possible location for it is in the candidate list, these comparisons establish the absolute extrema on the interval.

Worked Example: Turning a Constraint into a Feasible Interval

Worked Example: Maximizing the Area of a Rectangle

A rectangle has perimeter \(20\) meters. What dimensions give the greatest area? Include degenerate endpoint cases in the candidate test.

1. Choose a variable and translate the constraint. Let \(x\) be one side length, in meters, and \(y\) the other. The perimeter constraint is \(2x+2y=20\), so \(x+y=10\) and \(y=10-x\). Nonnegative side lengths require \(x\geq 0\) and \(10-x\geq 0\). Thus the feasible interval is \(0\leq x\leq 10\). Its endpoints represent degenerate rectangles with zero area.

2. Write the objective and verify existence. The area, in square meters, is \(A(x)=xy=x(10-x)=10x-x^2\). This polynomial is continuous on the closed interval \([0,10]\), so the Extreme Value Theorem guarantees an absolute maximum and minimum.

3. Find interior critical points. Differentiate: \(A'(x)=10-2x\). Solve \(10-2x=0\), giving \(2x=10\) and \(x=5\). The derivative exists throughout the interval, so \(x=5\) is the only interior critical point.

4. Evaluate every candidate. The candidates are \(x=0,5,10\). Their areas are \(A(0)=10(0)-0^2=0\), \(A(5)=10(5)-5^2=50-25=25\), and \(A(10)=10(10)-10^2=100-100=0\). The greatest value is \(25\) square meters, at \(x=5\). The other side is \(y=10-5=5\) meters.

5. Check the result against the constraint. The proposed dimensions have perimeter \(2(5)+2(5)=20\) meters, as required, and area \(5\cdot 5=25\) square meters, matching the objective value. Therefore a \(5\)-meter by \(5\)-meter rectangle has the greatest feasible area.

Worked Example: Include an Interior Point Where the Derivative Fails

Worked Example: A Continuous Objective with a Nondifferentiable Point

Find the absolute maximum and minimum of \(g(x)=(x-1)^{2/3}\) on \([0,3]\).

1. Check the domain and existence. The function is defined and continuous for all real \(x\), so it is continuous on the closed interval \([0,3]\). The Extreme Value Theorem guarantees both absolute extrema exist.

2. Check for interior critical points. For \(x\ne 1\), the derivative is \(g'(x)=\frac{2}{3}(x-1)^{-1/3}\). This derivative is never zero where it exists. At \(x=1\), it does not exist because the denominator is zero, although \(g(1)=0\) is defined. Since \(1\) is in the interior of \([0,3]\), it must be included as a critical point.

3. Evaluate every candidate. The candidate list is \(0,1,3\). We have \(g(0)=(-1)^{2/3}=1\), \(g(1)=0^{2/3}=0\), and \(g(3)=2^{2/3}\). Since \(2^{2/3}>1>0\), the greatest value is \(2^{2/3}\) at \(x=3\), while the least value is \(0\) at \(x=1\).

4. Check the conclusions. The stated locations are feasible: \(1\) and \(3\) both belong to \([0,3]\). The objective values at those locations are \(g(1)=0\) and \(g(3)=2^{2/3}\), as reported. The comparison includes the endpoints as well as the nondifferentiable interior point, so no candidate has been omitted.

Common Mistake: Stopping at the Critical Points

A common error is to solve \(f'(x)=0\) and treat the resulting points as the complete answer. For example, consider \(f(x)=x^3\) on \([-1,2]\). Its derivative is \(f'(x)=3x^2\), so the only interior point where \(f'(x)=0\) is \(x=0\). A flawed conclusion might be, “The maximum occurs at \(x=0\) because it is the critical point.” But \(f(0)=0\), while the endpoint values are \(f(-1)=-1\) and \(f(2)=8\). The actual absolute maximum is \(8\) at \(x=2\), and the absolute minimum is \(-1\) at \(x=-1\). The critical point alone identifies neither answer.

The correction is to evaluate the objective at every candidate: \(x=-1,0,2\). The largest of \(-1,0,8\) is \(8\), and the smallest is \(-1\). This example also shows why \(f'(c)=0\) is a necessary condition for an interior extremum when the derivative exists, not a guarantee that an extremum occurs there.

What Makes the Written Justification Complete?

A well-supported conclusion connects the domain, the candidate list, and the comparison. It does not merely report a number. In a written response, make clear that all evaluated points are feasible and that the list is complete under the conditions of the candidate test.

  • State the constraint and feasible set. Do not differentiate before establishing which variable values are allowed.
  • Give the existence reason. For a continuous objective on a closed, bounded interval, name the Extreme Value Theorem and verify its conditions.
  • Account for every type of candidate. Check interior points where the derivative is zero or undefined, and check every included endpoint.
  • Compare objective values. Identify the greatest or least value, not only the input where a derivative condition holds.
  • Report the requested quantity clearly. If the objective represents area, distance, or another measured quantity, state its units. If the problem requests dimensions, report them as well as the optimized value.

If the candidate list is infinite, simply evaluating a finite table is not enough; further reasoning is needed to compare values. In many AP optimization problems, however, solving the derivative equation produces finitely many interior candidates, making a direct comparison practical.

Key takeaway: A complete optimization candidate test is a justified comparison over the feasible domain: establish where an absolute best value exists, list all possible locations for it, evaluate the objective at each, and state the best feasible value.

Check Your Understanding

For each question, focus on whether the domain, candidate list, and conclusion are all justified.

  1. What points must be included in a candidate test for a continuous objective on \([a,b]\) if it is differentiable at every interior point?
  2. Why does an interior point where the derivative does not exist need to be checked, provided the objective itself is defined there?
  3. A student finds one point where \(f'(x)=0\) on a closed interval and calls it the absolute maximum. What else must the student check?
  4. For \(h(x)=x^2-4x\) on \([0,5]\), identify the boundary and interior critical candidates. What values of \(h\) must be compared?
  5. Why does continuity on a closed, bounded interval matter before using the complete candidate test to claim that an absolute maximum and minimum exist?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon