AP Calculus AB and BC · Unit 5 · Topic 5.4

    5.4 Using the First Derivative Test to Determine Relative (Local) Extrema

    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

    At a critical point cc, if f′f' changes from positive to negative, ff has a local maximum; from negative to positive, a local minimum; if f′f' does not change sign, there is no local extremum. This is the First Derivative Test, and its justification, "f′f' changes sign from … to … at x=cx = c", appears on almost every AP exam.

    What you need to know

    • State the First Derivative Test.
    • Classify critical points as local maxima, local minima or neither.
    • Apply the test from a formula, a sign chart or a graph of f′.
    • Write a complete justification for a local extremum.

    The test

    First Derivative Test at a critical point c
    Sign of f′ left of cSign of f′ right of cConclusion
    +−local maximum at c
    −+local minimum at c
    ++no extremum
    −−no extremum

    The idea is simple: if ff rises up to cc and falls after it, f(c)f(c) is higher than its neighbours. The test works even where f′(c)f'(c) does not exist, such as at a corner, provided ff is continuous at cc.

    Worked example

    Classify the critical points of f(x)=x4−4x3f(x) = x^4 - 4x^3. From topic 5.3, f′(x)=4x2(x−3)f'(x) = 4x^2(x - 3), with critical points x=0x = 0 and x=3x = 3.

    • Left of 0 (x=−1x = -1): f′=4(1)(−4)=−16<0f' = 4(1)(-4) = -16 < 0.
    • Between 0 and 3 (x=1x = 1): f′=4(1)(−2)=−8<0f' = 4(1)(-2) = -8 < 0.
    • Right of 3 (x=4x = 4): f′=4(16)(1)=64>0f' = 4(16)(1) = 64 > 0.

    At x=0x = 0, f′f' does not change sign (negative to negative), so there is no extremum: the graph flattens briefly and keeps falling. At x=3x = 3, f′f' changes from negative to positive, so ff has a local minimum, f(3)=81−108=−27f(3) = 81 - 108 = -27.

    Using a graph of f′

    Given the graph of f′f', local maxima of ff are where the graph of f′f' crosses the axis going down (from above to below), and local minima where it crosses going up. A point where f′f' only touches the axis, without crossing, is not an extremum of ff.

    Squared factors are the usual cause of 'touching'. In h′(x)=(x−1)(x+2)2h'(x) = (x - 1)(x + 2)^2, the factor (x+2)2(x + 2)^2 never changes sign, so x=−2x = -2 is not an extremum, while x=1x = 1 is a local minimum since h′h' goes from negative to positive.

    The test also handles corners. For f(x)=∣x−2∣+1f(x) = |x - 2| + 1, f′f' is −1-1 for x<2x < 2 and 11 for x>2x > 2, so although f′(2)f'(2) does not exist, the derivative changes from negative to positive and ff has a local minimum of 1 at x=2x = 2. Continuity at the point is what matters, because a function with a jump can change direction without a true minimum.

    Key terms

    First Derivative Test
    Classifies a critical point by the change in sign of f′ across it.
    Relative (local) maximum
    A value greater than or equal to all nearby values; f′ changes from + to −.
    Relative (local) minimum
    A value less than or equal to all nearby values; f′ changes from − to +.
    Sign change
    f′ is positive on one side of a point and negative on the other.

    Common mistakes

    • Using f′(c) = 0 alone as the justification.

      State the change in sign of f′ and its direction.

    • Calling a touching point of the graph of f′ an extremum.

      If f′ does not cross the axis, there is no local extremum.

    • Reversing max and min.

      Positive then negative is a peak (maximum); negative then positive is a valley (minimum).

    How this topic is tested

    • Find critical points, then test the sign of f′ on each side.
    • Watch for squared factors that do not change sign.
    • Give the location (x) and, if asked, the value f(x).

    Practice questions

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

    1. Question 1 · MP 2 · Connecting Representations

      f′f' changes from positive to negative at x=2x = 2. What does ff have at x=2x = 2?

    2. Question 2 · MP 2 · Connecting Representations

      For f(x)=x4−4x3f(x) = x^4 - 4x^3, what happens at x=0x = 0?

    3. Question 3 · MP 1 · Implementing Mathematical Processes

      h′(x)=(x−1)(x+2)2h'(x) = (x - 1)(x + 2)^2. Where does hh have a local minimum?

    4. Question 4 · MP 4 · Communication and Notation

      Which justification earns credit for a local maximum at x = 4?

    5. Question 5 · MP 1 · Implementing Mathematical Processes

      f(x)=x3−3xf(x) = x^3 - 3x. What is the local maximum value?

    Free-response practice

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

    Free response (no calculator) · 3 points

    The derivative of a function gg is g′(x)=(x−4)exg'(x) = (x - 4)e^{x}.

    1. (a) Find the critical point of g.
    2. (b) Determine whether g has a relative maximum, relative minimum or neither at that point. Justify.

    Connected topics

    Frequently asked questions

    Does the test need f′(c) to exist?

    No. It works at corners too, as long as f is continuous at c.

    Does it find absolute extrema?

    Not by itself. For absolute extrema use the Candidates Test (5.5) or a single-critical-point argument.

    How is it different from the Second Derivative Test?

    It uses signs of f′ on both sides; the second test uses the sign of f″ at the point.

    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.