🌌 Calculus Kingdom · Calculus

Increasing, Decreasing & Extrema

Read the sign of the derivative as the direction of the graph: critical numbers, intervals of increase and decrease, the first derivative test for local extrema, absolute extrema on a closed interval, and the Mean Value Theorem.

In short

  • The sign of f' is the direction of f: positive means increasing, negative means decreasing, and f cannot change direction anywhere except at a critical number.
  • A critical number is an x in the DOMAIN of f where f'(x) = 0 or where f' has no value β€” so a cusp or a sharp corner counts, and a hole in the domain does not.
  • The first derivative test reads the sign chart at each critical number: positive then negative is a local maximum, negative then positive is a local minimum, and no change of sign is neither.
  • On a closed interval the absolute extremes can only be at an interior critical number or at an endpoint, so work out f at every candidate and compare the heights.
  • The Mean Value Theorem promises a c inside the interval where the instantaneous slope equals the average slope; for a parabola that c is the midpoint, and for anything else it has to be solved for.

The sign of the slope is the direction of the curve

Technician Fluxion keeps one instrument on the bench of the Tangent Laboratory: a needle that reads the slope of whatever curve is clamped under it. The needle does not say how high the curve is. It says which way the curve is going, right now, at this x.

That single reading is the whole of this craft.

f'(x) > 0 means the curve is climbing at x β€” f is increasing there f'(x) < 0 means the curve is falling at x β€” f is decreasing there f'(x) = 0 means the tangent is flat for that instant

Read the middle line carefully, because it is the one students misuse. A negative derivative does not mean a small function. f(x) = 1000 - x has f'(x) = -1 everywhere: the function is enormous and going down the whole time. Height and direction are different questions, and f' only ever answers the second one.

The consequence is the point of the topic. If f' keeps one sign across a whole stretch of the number line, then f keeps going one way across that whole stretch β€” no peaks, no valleys, no surprises. So to describe the shape of f you do not need to plot a hundred points. You need to know where f' changes sign, and nothing else.

A continuous f' can only change sign by passing through zero or by breaking off entirely. Those two events are the only candidates, and they have a name.

Critical numbers: the only places anything can happen

A critical number of f is an x in the domain of f where

f'(x) = 0, or f'(x) has no value.

All three parts of that sentence do work.

f'(x) = 0. Differentiate, set the derivative equal to zero, solve. For a polynomial this is the whole job, because a polynomial is defined and differentiable everywhere.

f(x) = x3 - 3x2 - 9x + 2 f'(x) = 3x2 - 6x - 9 = 3(x + 1)(x - 3)

so the critical numbers are x = -1 and x = 3. Notice the factoring: reading a root off a factor means asking what makes that factor zero, so (x + 1) gives -1, not +1.

f' has no value. A derivative can simply stop existing at a point while the function sails on through it. The standard example is a cusp:

f(x) = x2/3 has f'(x) = 2 / (3 x1/3)

That fraction has 2 on top, so it is never zero β€” and at x = 0 its denominator is zero, so it has no value at all. Yet f(0) = 0 is perfectly well defined. The graph comes to a sharp point at the origin, and x = 0 is a critical number. A sharp corner, like the one in f(x) = |x - 2| at x = 2, is the same story.

In the domain of f. This is the guard that stops the previous rule running wild. For

f(x) = x + 9/x, f'(x) = 1 - 9/x2

f' has no value at x = 0 β€” but neither does f, so x = 0 is not in the domain and is not a critical number. Setting 1 - 9/x2 = 0 gives x2 = 9, so the critical numbers are x = -3 and x = 3, and that is the complete list.

A critical number is a *candidate*, not a promise. Every peak and every valley of a differentiable function sits at a critical number, but a critical number does not have to be a peak or a valley. Which is why there is a test.

The first derivative test, run on a sign chart

Once the critical numbers are known, they cut the number line into pieces, and f' cannot change sign inside a piece. So one test value per piece settles the sign of the whole piece. Write the results in a row β€” that is a sign chart.

For f'(x) = 3(x + 1)(x - 3), with critical numbers -1 and 3, test x = -2, x = 0 and x = 4:

f' is positive for x < -1, negative for -1 < x < 3, positive for x > 3

Now read the chart at each critical number, left to right:

  • positive then negative: the curve climbed, flattened, and fell. That is a local maximum.
  • negative then positive: the curve fell, flattened, and climbed. That is a local minimum.
  • no change of sign: the curve flattened for an instant and carried straight on. That is neither.

So this f has a local maximum at x = -1 and a local minimum at x = 3. And the intervals come free from the same chart: f is increasing for x < -1 and x > 3, and decreasing for -1 < x < 3.

The third case is not a curiosity. It happens whenever a factor of f' is repeated an even number of times:

f'(x) = 12(x - 3)2 (x - 4)

The squared factor cannot change sign β€” it touches zero and comes straight back positive β€” so the sign of f' before and after x = 3 is the same. x = 3 is a genuine critical number with a genuinely horizontal tangent, and it is neither a maximum nor a minimum. At x = 4 the sign really does turn, from negative to positive, so there is a local minimum there.

Writing the answer down. An interval of increase or decrease is a set of x-values, written with plain inequalities and joined with "and" when there is more than one piece: increasing for x < -1 and x > 3. Two separate intervals are not one big interval β€” between them the curve is going the other way, and saying "increasing for x < 3" would be flatly untrue on the middle stretch.

Absolute extrema on a closed interval: the candidates test

A local maximum beats its immediate neighbours. An absolute maximum beats everything on the interval. They are different claims, and on a closed interval [a, b] the second one has a short, complete recipe.

On [a, b], with f continuous, the extreme values can only be reached at

1. a critical number inside the interval, or 2. an endpoint, x = a or x = b.

That is the whole list. So work out f at every candidate, put the heights side by side, and pick the largest and the smallest. This is the candidates test, and it needs no sign chart and no second derivative β€” just arithmetic and a comparison.

f(x) = 2x3 - 21x2 + 72x - 2 on [1, 11] f'(x) = 6x2 - 42x + 72 = 6(x - 3)(x - 4)

Candidates: the endpoints 1 and 11, and the critical numbers 3 and 4, which both lie inside.

f(1) = 51 f(3) = 79 f(4) = 78 f(11) = 911

The absolute maximum value is 911, at the endpoint x = 11. The absolute minimum value is 51, at the other endpoint. The interior critical numbers, which are the ones the sign chart makes a fuss about, produced neither.

That is the trap the whole idea exists to catch. x = 3 is a perfectly good local maximum β€” it beats everything nearby β€” and it is nowhere near the highest point of the interval, because the curve turns round again at x = 4 and climbs past it. A local high point is not automatically the absolute high point, and the only way to know is to compare the endpoints against it.

Two more habits worth building. Say whether the answer wanted is the value (a height, f of something) or the place (an x): they are different numbers and the question always specifies. And discard any critical number that falls outside the interval β€” it is not a candidate at all, however interesting it is elsewhere.

Why does the recipe work? Because a continuous function on a closed interval really does reach a highest and a lowest value β€” that is the Extreme Value Theorem β€” and if that value is not at an end, it is a local extreme, and so it sits at a critical number. Continuity and a closed interval are the entire price of entry; the theorem asks nothing about derivatives, and it says nothing about *where* the extremes are.

The Mean Value Theorem: the average slope is reached

The last idea connects the average behaviour of f across an interval with the instantaneous behaviour somewhere inside it.

The Mean Value Theorem. If f is continuous on [a, b] and differentiable between a and b, then there is at least one c strictly between a and b with

f'(c) = (f(b) - f(a)) / (b - a)

In words: at some instant, the actual slope equals the average slope. Drive 120 km in 2 hours and, at some moment, your speedometer read exactly 60 km/h β€” the theorem is a promise about that moment, and it never says which moment.

Finding c is a two-sided calculation. Work out the number on the right first, then set f'(x) equal to it and solve.

f(x) = 3x2 + 8x on [0, 5] average rate of change = (f(5) - f(0)) / (5 - 0) = (115 - 0) / 5 = 23 f'(x) = 6x + 8, so 6c + 8 = 23 and c = 5/2

For a parabola c always lands on the midpoint of the interval, because f' is a straight line and a straight line hits its average value halfway along. Do not carry that habit any further: for a cubic the derivative is curved, the equation to solve is a quadratic, and the answer is whatever it is β€” often not the midpoint, and often one of two roots, only one of which lies inside the interval. The other root is not an answer; the theorem promises a c strictly between a and b.

Rolle's theorem is the special case where the two endpoint heights are equal. If f is continuous on [a, b], differentiable between a and b, and f(a) = f(b), then somewhere inside f'(c) = 0. Geometrically: leave at one height, come back to the same height, and at some point you must have turned round.

All three conditions have to hold before either theorem promises anything, and each one can go missing:

  • f(a) and f(b) come out different, so Rolle does not apply (the Mean Value Theorem still does).
  • f has a sharp corner inside the interval, as f(x) = |x - 2| does at x = 2, so it is not differentiable there and neither theorem applies.
  • f has a break in it, so it is not continuous and neither theorem applies.

Checking the conditions is not a formality. A theorem whose conditions are not met makes no claim at all, true or false.

Worked examples

Example 1

f(x) = 2x3 + 3x2 - 36x + 5. Find every critical number, say where f is increasing and where it is decreasing, and classify each critical number.

  1. Differentiate: f'(x) = 6x2 + 6x - 36.
  2. Take out the common factor and factor the rest: f'(x) = 6(x2 + x - 6) = 6(x + 3)(x - 2).
  3. Set it to zero. A product is zero when a factor is zero, so x = -3 or x = 2. f is a polynomial, defined everywhere, so those two are the complete list of critical numbers.
  4. They cut the line into three pieces. Test one x in each: f'(-4) = 6(-1)(-6) = 36, positive; f'(0) = 6(3)(-2) = -36, negative; f'(3) = 6(6)(1) = 36, positive.
  5. Sign chart: positive for x < -3, negative for -3 < x < 2, positive for x > 2.
  6. So f is increasing for x < -3 and x > 2, and decreasing for -3 < x < 2. The two increasing pieces are separate; they are not one interval.
  7. At x = -3 the sign goes positive then negative: a local maximum. At x = 2 it goes negative then positive: a local minimum.

Example 2

Find the absolute maximum and minimum values of f(x) = x3 - 12x + 1 on the closed interval [-3, 4].

  1. f'(x) = 3x2 - 12 = 3(x + 2)(x - 2), so the critical numbers are x = -2 and x = 2, and both lie inside [-3, 4].
  2. Candidates are the two endpoints and the two interior critical numbers: x = -3, x = -2, x = 2 and x = 4.
  3. f(-3) = -27 + 36 + 1 = 10.
  4. f(-2) = -8 + 24 + 1 = 17.
  5. f(2) = 8 - 24 + 1 = -15.
  6. f(4) = 64 - 48 + 1 = 17.
  7. Compare the heights. The largest is 17 and the smallest is -15, so the absolute maximum value is 17 and the absolute minimum value is -15.
  8. Note that the maximum height 17 is reached twice, once at the interior critical number x = -2 and once at the endpoint x = 4 β€” which is exactly why the endpoints had to be checked, and why "the value" and "the place" are different questions.

Example 3

The graph of f' (the derivative, not f) crosses the x-axis at x = -1 and touches it without crossing at x = 4. f' is negative for x < -1 and positive everywhere after that. Describe f, and find the c the Mean Value Theorem promises for g(x) = x2 - 6x on [1, 7].

  1. Read the sign chart off the description: f' is negative for x < -1, positive for -1 < x < 4, positive for x > 4.
  2. So f is decreasing for x < -1 and increasing for x > -1 β€” apart from one flat instant.
  3. At x = -1 the sign of f' changes from negative to positive, so f has a local minimum there.
  4. At x = 4 the sign of f' does not change at all: f' touches zero and comes back positive. The tangent is horizontal for an instant, and x = 4 is neither a maximum nor a minimum.
  5. Now the second part. Average rate of change of g on [1, 7]: g(7) = 49 - 42 = 7 and g(1) = 1 - 6 = -5, so it is (7 - (-5)) / (7 - 1) = 12 / 6 = 2.
  6. g'(x) = 2x - 6, so solve 2c - 6 = 2, giving c = 4.
  7. Check it: 4 is strictly between 1 and 7, and it is the midpoint of the interval β€” which is where c always lands for a parabola.

Practice problems, with solutions

Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.

Problem 1

Difficulty 1 of 5

f(x) = 2x2 - 8x + 6 Find the critical number of f β€” the x where f'(x) = 0.

Answer: 2

  1. f'(x) = 4x - 8
  2. 4x - 8 = 0
  3. x = 2, and f is defined there, so 2 is the critical number.

Problem 2

Difficulty 3 of 5

f(x) = x3 - 48x + 5 On which set of x-values is f increasing?

  1. x < -4
  2. x < -4 and x > 4
  3. x > 4
  4. -4 < x < 4

Answer: B. x < -4 and x > 4

  1. f'(x) = 3x2 - 48
  2. f'(x) = 3(x + 4)(x - 4)
  3. Testing one x in each piece: f' is positive for x < -4, negative for -4 < x < 4 and positive for x > 4.
  4. f is increasing exactly where f' is positive, so the answer is x < -4 and x > 4.

Problem 3

Difficulty 4 of 5

f(x) = 3x4 - 4x3 - 72x2 - 3 Use the first derivative test to classify every critical number of f.

  1. a local maximum at x = -3, a local maximum at x = 0 and a local maximum at x = 4
  2. a local minimum at x = -3, a local maximum at x = 0 and a local minimum at x = 4
  3. a local minimum at x = -3, a local minimum at x = 0 and a local minimum at x = 4
  4. a local maximum at x = -3, a local minimum at x = 0 and a local maximum at x = 4

Answer: B. a local minimum at x = -3, a local maximum at x = 0 and a local minimum at x = 4

  1. f'(x) = 12x3 - 12x2 - 144x = 12(x + 3)x(x - 4)
  2. Testing one x in each piece: f' is negative for x < -3, positive for -3 < x < 0, negative for 0 < x < 4 and positive for x > 4.
  3. At x = -3, f' goes from negative to positive: a local minimum at x = -3.
  4. At x = 0, f' goes from positive to negative: a local maximum at x = 0.
  5. At x = 4, f' goes from negative to positive: a local minimum at x = 4.

Common mistakes

  • Reading the sign of f' backwards, so an interval where the derivative is negative gets reported as increasing. Test one value in each piece and check the sign you actually get.
  • Giving only half of an answer that comes in two pieces β€” writing "increasing for x > 3" when f is also increasing for x < -1. Two separate intervals are joined with "and", never merged into one.
  • Assuming every critical number is a maximum or a minimum. When a factor of f' is repeated an even number of times the sign does not change there, and the curve simply flattens and carries on the same way.
  • Counting an x where f' has no value as a critical number without checking that f has a value there. In f(x) = x + 9/x, x = 0 is outside the domain of f, so it is not a critical number at all.
  • Stopping at the interior critical numbers on a closed interval. A local high point is not automatically the absolute high point, and until the endpoints are worked out and compared, nothing can be called absolute.
  • Confusing the value with the place: the absolute maximum VALUE is a height, f of something, while the x it happens at is a different number. Read which one the question asks for.

What you should be able to do

  • Find the critical numbers of a function.
  • Find the intervals where a function increases and decreases from the sign of its derivative.
  • Classify local extrema with the first derivative test, from a rule or a graph of the derivative.
  • Find absolute extrema on a closed interval, and the point the Mean Value Theorem promises.

Where this fits in the curriculum

Common Core

  • FUN-4.A

    AP Calculus AB, Unit 5 β€” Justify conclusions about the behaviour of a function based on the behaviour of its derivatives: intervals of increase and decrease, the first derivative test, absolute extrema.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • FUN-1.B

    AP Calculus AB, Unit 5 β€” Justify conclusions about functions by applying the Mean Value Theorem over an interval.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • FUN-1.C

    AP Calculus AB, Unit 5 β€” Justify conclusions about functions by applying the Extreme Value Theorem.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

Learn these first

This leads on to