AP Calculus AB and BC

First Derivative Test: Sign Charts and Relative Extrema

A function is increasing where its derivative is positive and decreasing where its derivative is negative. The first derivative test classifies a critical point by the sign change of f' there: positive to negative means a relative maximum, negative to positive means a relative minimum, and no sign change means neither.

The sign of f' gives the direction of f

The derivative is the slope of the graph, so its sign tells you which way the graph is heading. If f′(x)>0f'(x) > 0 at every point of an interval, then ff is increasing on that interval. If f′(x)<0f'(x) < 0 at every point of an interval, then ff is decreasing on it. This is CED Topic 5.3, Determining Intervals on Which a Function Is Increasing or Decreasing.

Finding those intervals comes down to finding where f′f' is positive and where it is negative. On an interval where ff is differentiable, f′f' can change sign only by passing through zero. So the places where f′f' is zero or undefined split the number line into intervals, and on each one the sign of f′f' stays the same.

How to build a sign chart

  1. Find f′(x)f'(x) and factor it as far as you can.
  2. Mark every xx where f′(x)=0f'(x) = 0 or f′(x)f'(x) is undefined. Include points where ff itself is undefined, such as a vertical asymptote, because the sign of f′f' can change there too.
  3. These marks cut the domain into intervals. Pick one test value in each interval and find the sign of f′f' there. With a factored derivative you only need the sign of each factor.
  4. Record the sign of f′f' on each interval and what it means for ff: positive means increasing, negative means decreasing.

A sign does not always alternate from one interval to the next. A squared factor such as (x−2)2(x - 2)^2 is positive on both sides of its zero, so the sign of f′f' does not change there. Test every interval instead of assuming a pattern.

Label the chart

Write f′f' next to the row of plus and minus signs. An unlabeled chart does not say which function the signs belong to, and the same problem may have you tracking signs of ff, f′f', and f′′f''.

The first derivative test

The first derivative test (CED Topic 5.4, Using the First Derivative Test to Determine Relative (Local) Extrema) reads relative extrema straight off the sign chart. Suppose cc is a critical point of ff and ff is continuous at cc.

Sign of f′f' left of ccSign of f′f' right of ccConclusion at x=cx = c
PositiveNegativeRelative maximum
NegativePositiveRelative minimum
PositivePositiveNeither
NegativeNegativeNeither

The logic is direct. If ff rises into cc and falls away from it, then f(c)f(c) is higher than the nearby values. If ff falls into cc and rises away, f(c)f(c) is lower than the nearby values. The test works at critical points where f′(c)=0f'(c) = 0 and at critical points where f′(c)f'(c) does not exist, as long as ff is continuous there.

Writing the justification

The sign chart organizes your work. The justification is the sentence you write from it. Tie the conclusion to the sign change of f′f' at the specific point.

  • For a relative maximum: ff has a relative maximum at x=cx = c because f′f' changes from positive to negative at x=cx = c.
  • For a relative minimum: ff has a relative minimum at x=cx = c because f′f' changes from negative to positive at x=cx = c.
  • For an interval: ff is increasing on (a,b)(a, b) because f′(x)>0f'(x) > 0 for all xx in (a,b)(a, b).

Name the function in every sentence. Phrases such as 'it goes from positive to negative' or 'the slope changes' leave the reader guessing whether you mean ff or f′f'. Describing the graph ('the function goes up then down') restates the conclusion and does not use the derivative, so it does not justify anything.

Where students lose points

  • Assuming every zero of f′f' is an extremum. If f′f' does not change sign at cc, there is no relative extremum at cc.
  • Leaving out points where f′f' is undefined when cutting the number line.
  • Calling a point a relative extremum when ff is not defined there. A vertical asymptote can separate an increasing interval from a decreasing one without producing a maximum.
  • Testing a value in the original function when the sign of the derivative is needed.
  • Reporting the xx-value when the question asks for the relative maximum value. The value is f(c)f(c).
  • Confusing relative with absolute. The first derivative test finds relative extrema. Absolute extrema on a closed interval need the candidates test.

Worked examples

Worked example

A cubic with two relative extrema

Find the intervals where f(x)=x3−3x2−9x+4f(x) = x^3 - 3x^2 - 9x + 4 is increasing and decreasing, and find its relative extrema.

  1. Differentiate and factor: f′(x)=3x2−6x−9=3(x−3)(x+1)f'(x) = 3x^2 - 6x - 9 = 3(x - 3)(x + 1). The critical points are x=−1x = -1 and x=3x = 3.
  2. Test each interval. At x=−2x = -2: f′(−2)=3(−5)(−1)=15>0f'(-2) = 3(-5)(-1) = 15 > 0. At x=0x = 0: f′(0)=3(−3)(1)=−9<0f'(0) = 3(-3)(1) = -9 < 0. At x=4x = 4: f′(4)=3(1)(5)=15>0f'(4) = 3(1)(5) = 15 > 0.
  3. Read the intervals: ff is increasing on (−∞,−1)(-\infty, -1) and on (3,∞)(3, \infty) because f′>0f' > 0 there, and decreasing on (−1,3)(-1, 3) because f′<0f' < 0 there.
  4. Apply the first derivative test. At x=−1x = -1, f′f' changes from positive to negative, so ff has a relative maximum. At x=3x = 3, f′f' changes from negative to positive, so ff has a relative minimum.
  5. Compute the values: f(−1)=−1−3+9+4=9f(-1) = -1 - 3 + 9 + 4 = 9 and f(3)=27−27−27+4=−23f(3) = 27 - 27 - 27 + 4 = -23.

Increasing on (−∞,−1)(-\infty, -1) and (3,∞)(3, \infty); decreasing on (−1,3)(-1, 3). Relative maximum of 99 at x=−1x = -1; relative minimum of −23-23 at x=3x = 3.

Worked example

A critical point that is not an extremum

Classify the critical points of f(x)=x4−4x3f(x) = x^4 - 4x^3.

  1. Differentiate and factor: f′(x)=4x3−12x2=4x2(x−3)f'(x) = 4x^3 - 12x^2 = 4x^2(x - 3). The critical points are x=0x = 0 and x=3x = 3.
  2. Find the sign of f′f' on each interval. The factor 4x24x^2 is positive for every x≠0x \neq 0, so the sign of f′f' matches the sign of x−3x - 3: negative on (−∞,0)(-\infty, 0), negative on (0,3)(0, 3), and positive on (3,∞)(3, \infty).
  3. At x=0x = 0, f′f' is negative on both sides. There is no sign change, so ff has neither a relative maximum nor a relative minimum there.
  4. At x=3x = 3, f′f' changes from negative to positive, so ff has a relative minimum. Its value is f(3)=81−108=−27f(3) = 81 - 108 = -27.

No relative extremum at x=0x = 0 (the sign of f′f' does not change). Relative minimum of −27-27 at x=3x = 3.

Worked example

A rational function with a break in the domain

Find the relative extrema of f(x)=x2x−1f(x) = \frac{x^2}{x - 1}.

  1. Differentiate with the quotient rule: f′(x)=2x(x−1)−x2⋅1(x−1)2=x2−2x(x−1)2=x(x−2)(x−1)2f'(x) = \frac{2x(x - 1) - x^2 \cdot 1}{(x - 1)^2} = \frac{x^2 - 2x}{(x - 1)^2} = \frac{x(x - 2)}{(x - 1)^2}.
  2. Mark the chart. f′(x)=0f'(x) = 0 at x=0x = 0 and x=2x = 2. f′f' is undefined at x=1x = 1, where ff is also undefined, so x=1x = 1 goes on the chart but is not a critical point.
  3. Find the signs. The denominator is positive wherever it is defined, so the sign of f′f' is the sign of x(x−2)x(x - 2): positive on (−∞,0)(-\infty, 0), negative on (0,1)(0, 1), negative on (1,2)(1, 2), and positive on (2,∞)(2, \infty).
  4. Classify. At x=0x = 0, f′f' changes from positive to negative: relative maximum, with f(0)=0f(0) = 0. At x=2x = 2, f′f' changes from negative to positive: relative minimum, with f(2)=41=4f(2) = \frac{4}{1} = 4.

Relative maximum of 00 at x=0x = 0 and relative minimum of 44 at x=2x = 2. The relative minimum value is larger than the relative maximum value, which can happen because the two points sit on opposite sides of the vertical asymptote x=1x = 1.

Frequently asked questions

Does f′(c)=0f'(c) = 0 mean there is a maximum or minimum at c?

No. It means cc is a critical point, which makes it a candidate. There is a relative extremum only if f′f' changes sign at cc. For f(x)=x3f(x) = x^3, f′(0)=0f'(0) = 0 but f′f' is positive on both sides of 00, so there is no extremum.

Can a relative extremum happen where the derivative does not exist?

Yes. f(x)=∣x∣f(x) = |x| has no derivative at x=0x = 0, yet f′f' changes from −1-1 to 11 there and ff is continuous, so ff has a relative minimum at x=0x = 0. Points where f′f' is undefined and ff is defined are critical points and must be tested.

When should I use the first derivative test instead of the second derivative test?

The first derivative test needs only f′f' and works at both kinds of critical point, where f′(c)=0f'(c) = 0 and where f′(c)f'(c) does not exist. The second derivative test can be quicker when f′′f'' is easy to compute, but it applies only where f′(c)=0f'(c) = 0 and is inconclusive when f′′(c)=0f''(c) = 0.