| Study Guides
AP · First derivative test for relative extrema · 14 min read · Updated 2026-05-10

First derivative test for relative extrema — AP Calculus AB Study Guide

For: AP Calculus AB candidates sitting AP Calculus AB.

Covers: Identifying critical points, classifying critical points as relative maxima or minima via sign changes of the first derivative, handling critical points with undefined derivatives, and applying the test to polynomial, rational, and contextual functions for AP Calculus AB.

You should already know: How to compute first derivatives of common elementary functions; how to apply core differentiation rules (product, quotient, chain); how to test the sign of a function on an open interval.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Calculus AB style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is First derivative test for relative extrema?

The First Derivative Test is a core analytical technique in Unit 5: Analytical Applications of Differentiation, which counts for 15–18% of the total AP Calculus AB exam score per the official College Board CED. It is tested regularly in both multiple-choice (MCQ) and free-response (FRQ) sections, often combined with curve sketching, optimization, or contextual modeling problems. The test uses the change in sign of the first derivative of a function around a critical point to classify the critical point as a relative (local) maximum, relative (local) minimum, or neither. A relative extremum is a point where the function value is higher (maximum) or lower (minimum) than all other nearby points on the function’s domain. "Relative" and "local" are used interchangeably on the AP exam. Unlike the Second Derivative Test, which only works for differentiable points with a non-zero second derivative, the First Derivative Test works for all valid critical points, including points where the first derivative is undefined, making it more broadly applicable for most AP problems.

2. Critical Points and Sign Interval Setup

Before you can apply the First Derivative Test, you must complete two non-negotiable preliminary steps: find all critical points of the function, then split the function’s domain into intervals separated by these critical points to test the sign of on each interval. By definition, a critical point of a function defined at is any point where either (called a stationary point) or is undefined. Fermat’s Theorem confirms that all relative extrema must occur at critical points, so no other locations need to be tested. Once you collect all critical points, sort them in increasing order: they divide the domain of into open intervals, and can only change sign at critical points, so it is entirely positive or entirely negative on each interval. To find the sign of on an interval, simply pick any test value strictly inside the interval, plug it into , and record the sign of the result.

Worked Example

Problem: Find all critical points of and create sign intervals for the first derivative.

  1. Compute the first derivative: . Since is a polynomial, it is defined for all real .
  2. Find critical points by setting : Critical points are at and .
  3. Sort critical points to split the domain into three intervals: , , .
  4. Test the sign of in each interval: For , test : . For , test : . For , test : .

Exam tip: Always sort your critical points from smallest to largest before creating intervals. Skipping this step often leads to testing the wrong interval and misclassifying extrema on the AP exam.

3. First Derivative Test Classification Rules

Once you have the sign of on either side of a critical point , you use the pattern of sign change to classify the critical point. The rules follow directly from the relationship between derivative sign and function behavior: a positive first derivative means the function is increasing, and a negative first derivative means the function is decreasing. If changes from positive to negative when moving left to right across , the function increases to then decreases after , so is a relative maximum. If changes from negative to positive when moving left to right across , the function decreases to then increases after , so is a relative minimum. If does not change sign (stays positive or stays negative on both sides of ), there is no relative extremum at : it is neither a maximum nor a minimum. This rule works for all valid critical points, regardless of whether or is undefined.

Worked Example

Problem: Using the sign data from with critical points at and , classify each critical point and find the coordinates of all relative extrema.

  1. Recall the sign pattern we found: on , on , on .
  2. Classify : Moving left to right across , changes from positive to negative. By the First Derivative Test, this is a relative maximum.
  3. Calculate the function value at : . The relative maximum is at .
  4. Classify : Moving left to right across , changes from negative to positive. By the First Derivative Test, this is a relative minimum.
  5. Calculate the function value at : . The relative minimum is at .

Exam tip: Always compute the full function value for the extremum if the question asks for the point or value. The AP exam will dock points if you only give the x-coordinate when the question asks for the full extremum.

4. Classifying Critical Points with Undefined Derivatives

A common AP exam problem type features functions with critical points where the first derivative is undefined (corner points, cusps, or vertical tangents). The First Derivative Test works exactly the same for these points as it does for stationary points, as long as the original function is defined at the critical point (a requirement for any critical point, and for any extremum to exist there). Many new students mistakenly assume only points where can be extrema, but this is incorrect: for example, has a relative minimum at , where is undefined, and the First Derivative Test correctly classifies it. The key mistake to avoid is omitting these critical points from your interval setup: you must include all critical points (both and undefined, with defined) when sorting and splitting the domain.

Worked Example

Problem: Classify all relative extrema of .

  1. Compute the first derivative using the product rule: .
  2. Find critical points: when the numerator is zero, so . is undefined when the denominator is zero, so . is defined, so is also a critical point.
  3. Sort critical points to get intervals: , , .
  4. Test the sign of : Denominator is always positive for , so sign depends on numerator , which is positive when and negative when . So on , on , on .
  5. Classify: At , does not change sign, so no extremum. At , changes from negative to positive, so relative minimum. , so the relative minimum is at .

Exam tip: Never forget to add critical points where is undefined to your list. AP exam writers regularly include these to test if you remember all types of critical points.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Calling any critical point automatically a maximum or minimum without testing sign change. Why: Students confuse "possible location of an extremum" with "guaranteed extremum" because most introductory examples have extrema at every stationary point. Correct move: Always test the sign of on both sides of every critical point to confirm a sign change occurs.
  • Wrong move: Omitting critical points where is undefined from your interval setup. Why: Students only look for solutions to and ignore zeros in the denominator of the derivative. Correct move: After computing , always check where is undefined, and if is defined at that point, add it to your list of critical points.
  • Wrong move: Reversing the classification rule (calling positive-to-negative change a minimum and negative-to-positive a maximum). Why: Students mix up the direction when moving left to right across the critical point. Correct move: Sketch a tiny increasing/decreasing line segment next to each interval to visualize: increasing then decreasing is a peak (maximum), decreasing then increasing is a valley (minimum).
  • Wrong move: Using a critical point as the test value for an adjacent interval. Why: Students rush and pick the interval endpoint as the test point, which gives or undefined. Correct move: Always pick a test value strictly inside the open interval to get a valid sign.
  • Wrong move: Classifying a domain endpoint as a relative extremum using the First Derivative Test. Why: Students forget you need derivative values on both sides of the point to check for a sign change. Correct move: Only classify interior critical points of the domain as relative extrema; endpoints can only be absolute extrema, per AP CED conventions.
  • Wrong move: Rounding messy test values early and getting an incorrect sign. Why: Students approximate irrational test values and round a small negative number to zero or a positive number. Correct move: Keep test values in exact factored form to determine the sign, do not approximate until after you confirm the sign.

6. Practice Questions (AP Calculus AB Style)

Question 1 (Multiple Choice)

Let . Which of the following correctly lists all values of where has a relative maximum? (A) only (B) only (C) and (D) and

Worked Solution: The critical points of are the roots of , sorted as , , . We find the sign of on each interval by counting negative factors: on , all three factors are negative, so ; on , and are negative, so two negatives multiply to positive, ; on , only is negative, so ; on , all factors are positive, so . A relative maximum requires a change from positive to negative, which only occurs at . The correct answer is B.


Question 2 (Free Response)

Let for . (a) Find all critical points of . Justify your answer. (b) Use the First Derivative Test to classify each critical point as a relative maximum, relative minimum, or neither. (c) Find the coordinates of all relative extrema of .

Worked Solution: (a) Use the quotient rule to compute : for , , . Critical points occur where or is undefined with defined: at and . is undefined at , but is also undefined at , so it is not a critical point. The only critical points are and .

(b) Sort critical points to get intervals: , , , . The denominator is always positive for , so sign depends on numerator . on , on , on , on . At , changes from positive to negative: relative maximum. At , changes from negative to positive: relative minimum.

(c) Calculate function values: , so relative maximum at . , so relative minimum at .


Question 3 (Application / Real-World Style)

A city park models the height of a new roller coaster hill , where is height in meters, and is horizontal distance from the start of the hill in meters. Use the First Derivative Test to find the horizontal distance that corresponds to the relative maximum height on this hill, and interpret your result in context.

Worked Solution: Compute the first derivative: . Set and multiply through by 100: . Use the quadratic formula: and . Test intervals: for , ; for , ; for , . A relative maximum occurs at meters. In context, the roller coaster hill reaches a local peak height of ~35 meters at 27 meters horizontally from the start of the hill, after which height decreases down the other side of the hill.

7. Quick Reference Cheatsheet

Category Formula/Rule Notes
Critical Point Definition is critical if is defined at , and OR undefined Only critical points can be relative extrema
Relative Maximum Rule changes from to moving left to right across Works for both stationary and undefined derivative points
Relative Minimum Rule changes from to moving left to right across Same broad applicability as the maximum rule
No Extremum Rule does not change sign across Common for stationary inflection points, e.g. at
Endpoint Classification Rule Endpoints of the domain cannot be relative extrema No derivative on both sides to test for sign change
Sign Test Method Pick any test point strictly inside the interval The sign of at the test point holds for the entire interval
Test Scope Works for all interior critical points More general than the Second Derivative Test, works for undefined

8. What's Next

Mastering the First Derivative Test is a non-negotiable prerequisite for all remaining topics in Unit 5, including curve sketching, finding absolute extrema, and optimization, which make up a large portion of the AP exam score. This topic also lays the groundwork for the Second Derivative Test, a complementary technique that speeds up classification of stationary points, and for analyzing concavity and inflection points. Without correctly finding and classifying relative extrema, you will not be able to accurately solve optimization problems or sketch function curves, which are common FRQ tasks on the AP exam. This topic also connects to particle motion in Unit 4, where identifying direction changes is just an application of the First Derivative Test to position functions.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →