Skip to content
Family Table Math
Auto

Concavity and the Second Derivative Test

Knowing that a graph is going up isn’t the whole story: is it curving upward like a smile, or bending over like a frown? That bending is called concavity, and the second derivative measures it. Concavity helps you sketch accurate graphs, find where a rate of change is greatest, and gives a quick second way to classify maximums and minimums.

On an interval:

  • If f′′(x)>0f''(x) \gt 0, then ff is concave up: the graph bends upward like a cup, and the slopes f′f' are increasing.
  • If f′′(x)<0f''(x) \lt 0, then ff is concave down: the graph bends downward like a cap, and the slopes f′f' are decreasing.

Another way to see it: a concave-up graph lies above its tangent lines, and a concave-down graph lies below them.

The graph of f(x) = x cubed minus 6x squared plus 9x plus 1 with short tangent lines. Left of x = 2 the curve is concave down and the tangent slopes decrease; right of x = 2 it is concave up and the slopes increase. The inflection point is (2, 3). inflection point (2, 3) concave down f′′(x) < 0, slopes decreasing concave up f′′(x) > 0, slopes increasing 1 2 3 4 5 −1 1 2 3 4 5 6 7
f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1 has f′′(x)=6x−12f''(x) = 6x - 12: concave down for x<2x \lt 2, concave up for x>2x \gt 2.

Concavity and increasing/decreasing are separate ideas. A graph can be increasing and concave down (rising, but more and more slowly) or decreasing and concave up (falling, but levelling off).

A point of inflection is a point on the graph where ff is continuous and the concavity changes (from up to down or from down to up). That happens exactly where f′′f'' changes sign.

To find them, make a sign chart for f′′f'', just like the one you make for f′f':

  1. Find where f′′(x)=0f''(x) = 0 or f′′(x)f''(x) doesn’t exist (with ff defined there).
  2. Test the sign of f′′f'' on each interval.
  3. A point of inflection is where the sign of f′′f'' actually changes.

f′′(c)=0f''(c) = 0 on its own is not enough. For f(x)=x4f(x) = x^4, f′′(x)=12x2f''(x) = 12x^2 is 00 at x=0x = 0, but it’s positive on both sides, so the graph is concave up everywhere and (0,0)(0, 0) is not a point of inflection.

Justification (the wording AP graders expect): ”f′′(x)f''(x) changes from negative to positive at x=2x = 2, so the graph of ff has a point of inflection at x=2x = 2.”

Suppose f′(c)=0f'(c) = 0 and f′′(c)f''(c) exists.

f′′(c)f''(c)ConclusionPicture
f′′(c)>0f''(c) \gt 0relative minimum at x=cx = cflat tangent at the bottom of a cup
f′′(c)<0f''(c) \lt 0relative maximum at x=cx = cflat tangent at the top of a cap
f′′(c)=0f''(c) = 0inconclusive: could be max, min, or neitheruse the first derivative test

The test is quick when f′′f'' is easy to compute, because you only evaluate at the critical point instead of building a sign chart.

Inconclusive really means inconclusive. All three functions x4x^4, −x4-x^4, and x3x^3 have f′(0)=0f'(0) = 0 and f′′(0)=0f''(0) = 0. The first has a minimum at 00, the second has a maximum, and the third has neither.

Justification: ”f′(3)=0f'(3) = 0 and f′′(3)>0f''(3) \gt 0, so ff has a relative minimum at x=3x = 3.”

Example 1: Concavity and an inflection point

Section titled “Example 1: Concavity and an inflection point”

Find the intervals where f(x)=x3−6x2+5f(x) = x^3 - 6x^2 + 5 is concave up and concave down, and any points of inflection.

Solution.

f′(x)=3x2−12x,f′′(x)=6x−12=6(x−2)f'(x) = 3x^2 - 12x, \qquad f''(x) = 6x - 12 = 6(x - 2)

f′′(x)=0f''(x) = 0 at x=2x = 2. For x<2x \lt 2, f′′(x)<0f''(x) \lt 0; for x>2x \gt 2, f′′(x)>0f''(x) \gt 0.

ff is concave down on (−∞,2)(-\infty, 2) and concave up on (2,∞)(2, \infty). f′′f'' changes sign at x=2x = 2, and f(2)=8−24+5=−11f(2) = 8 - 24 + 5 = -11, so the point of inflection is (2,−11)(2, -11).

Find the intervals of concavity and the points of inflection of f(x)=3x4−8x3f(x) = 3x^4 - 8x^3.

Solution.

f′(x)=12x3−24x2,f′′(x)=36x2−48x=12x(3x−4)f'(x) = 12x^3 - 24x^2, \qquad f''(x) = 36x^2 - 48x = 12x(3x - 4)

f′′(x)=0f''(x) = 0 at x=0x = 0 and x=43x = \dfrac{4}{3}.

Interval(−∞,0)(-\infty, 0)(0,43)\left(0, \frac{4}{3}\right)(43,∞)\left(\frac{4}{3}, \infty\right)
Sign of f′′f''(−)(−)=+(-)(-) = +(+)(−)=−(+)(-) = -(+)(+)=+(+)(+) = +
Concavityupdownup

f′′f'' changes sign at both x=0x = 0 and x=43x = \dfrac{4}{3}. Since f(0)=0f(0) = 0 and

f(43)=3⋅25681−8⋅6427=25627−51227=−25627,f\left(\tfrac{4}{3}\right) = 3 \cdot \frac{256}{81} - 8 \cdot \frac{64}{27} = \frac{256}{27} - \frac{512}{27} = -\frac{256}{27},

the points of inflection are (0,0)(0, 0) and (43,−25627)\left(\dfrac{4}{3}, -\dfrac{256}{27}\right).

Use the second derivative test to find the relative extrema of f(x)=2x3−9x2+12xf(x) = 2x^3 - 9x^2 + 12x.

Solution.

f′(x)=6x2−18x+12=6(x−1)(x−2),f′′(x)=12x−18f'(x) = 6x^2 - 18x + 12 = 6(x - 1)(x - 2), \qquad f''(x) = 12x - 18

Critical points: x=1x = 1 and x=2x = 2.

  • f′′(1)=12−18=−6<0f''(1) = 12 - 18 = -6 \lt 0, so ff has a relative maximum at x=1x = 1: f(1)=2−9+12=5f(1) = 2 - 9 + 12 = 5.
  • f′′(2)=24−18=6>0f''(2) = 24 - 18 = 6 \gt 0, so ff has a relative minimum at x=2x = 2: f(2)=16−36+24=4f(2) = 16 - 36 + 24 = 4.

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

Solution. From Example 2, f′(x)=12x3−24x2=12x2(x−2)f'(x) = 12x^3 - 24x^2 = 12x^2(x - 2), so the critical points are x=0x = 0 and x=2x = 2, and f′′(x)=36x2−48xf''(x) = 36x^2 - 48x.

  • f′′(2)=144−96=48>0f''(2) = 144 - 96 = 48 \gt 0, so there’s a relative minimum at x=2x = 2: f(2)=48−64=−16f(2) = 48 - 64 = -16.
  • f′′(0)=0f''(0) = 0: the second derivative test is inconclusive. Switch to the first derivative test. f′(x)=12x2(x−2)f'(x) = 12x^2(x - 2) is negative just left of 00 and just right of 00 (since x2>0x^2 \gt 0 and x−2<0x - 2 \lt 0). f′f' doesn’t change sign, so there’s no extremum at x=0x = 0.

In fact, (0,0)(0, 0) is a point of inflection (Example 2) with a horizontal tangent.

Saying f″(c) = 0 means a point of inflection. It only makes cc a candidate. Check that f′′f'' actually changes sign there. f(x)=x4f(x) = x^4 is the classic counterexample.

Saying f″(c) = 0 means “no extremum”. It means the second derivative test can’t decide. Use the first derivative test, which always gives an answer.

Mixing up which sign means max or min. f′′(c)>0f''(c) \gt 0 means concave up, a cup, so the flat point is at the bottom: a minimum. Picture the cup, don’t memorize the signs.

Using the second derivative test at a point where f′(c) ≠ 0. The test only classifies critical points where f′(c)=0f'(c) = 0. A positive f′′f'' at an ordinary point just means concave up there.

Forgetting points where f″ doesn’t exist. For f(x)=x3f(x) = \sqrt[3]{x}, f′′f'' is undefined at 00, but the concavity still changes there, so (0,0)(0, 0) is a point of inflection.

Giving only the x-value of a point of inflection when the question asks for the point. “Find the point of inflection” wants both coordinates: (2,−11)(2, -11), not just x=2x = 2.

1. (Warm-up) Find the intervals of concavity and the point of inflection of f(x)=x3+3x2−2f(x) = x^3 + 3x^2 - 2.

Solution

f′(x)=3x2+6xf'(x) = 3x^2 + 6x and f′′(x)=6x+6=6(x+1)f''(x) = 6x + 6 = 6(x + 1).

f′′(x)<0f''(x) \lt 0 for x<−1x \lt -1 and f′′(x)>0f''(x) \gt 0 for x>−1x \gt -1. So ff is concave down on (−∞,−1)(-\infty, -1) and concave up on (−1,∞)(-1, \infty).

Point of inflection: f(−1)=−1+3−2=0f(-1) = -1 + 3 - 2 = 0, so (−1,0)(-1, 0).

2. (Warm-up) A function gg has g′(4)=0g'(4) = 0 and g′′(4)=−3g''(4) = -3. What does gg have at x=4x = 4? Justify your answer.

Solution

A relative maximum. ”g′(4)=0g'(4) = 0 and g′′(4)<0g''(4) \lt 0, so by the second derivative test, gg has a relative maximum at x=4x = 4.”

3. (Warm-up) For f(x)=x4f(x) = x^4, f′′(0)=0f''(0) = 0. Does the graph of ff have a point of inflection at x=0x = 0? Explain.

Solution

No. f′′(x)=12x2f''(x) = 12x^2, which is positive for every x≠0x \ne 0. f′′f'' doesn’t change sign at x=0x = 0, so the graph is concave up on both sides and there’s no point of inflection.

4. (Core) Find the intervals of concavity and the point of inflection of f(x)=xexf(x) = xe^x.

Solutionf′(x)=ex+xex=(x+1)ex,f′′(x)=ex+(x+1)ex=(x+2)exf'(x) = e^x + xe^x = (x + 1)e^x, \qquad f''(x) = e^x + (x + 1)e^x = (x + 2)e^x

ex>0e^x \gt 0, so the sign of f′′f'' is the sign of x+2x + 2. Concave down on (−∞,−2)(-\infty, -2), concave up on (−2,∞)(-2, \infty).

Point of inflection: (−2,−2e−2)≈(−2,−0.271)\left(-2, -2e^{-2}\right) \approx (-2, -0.271).

5. (Core) Find the intervals of concavity and the points of inflection of f(x)=sin⁡x+cos⁡xf(x) = \sin x + \cos x on (0,2π)(0, 2\pi) (radians).

Solution

f′(x)=cos⁡x−sin⁡xf'(x) = \cos x - \sin x and f′′(x)=−sin⁡x−cos⁡xf''(x) = -\sin x - \cos x.

f′′(x)=0f''(x) = 0 when sin⁡x=−cos⁡x\sin x = -\cos x, so tan⁡x=−1\tan x = -1: x=3π4x = \dfrac{3\pi}{4} or x=7π4x = \dfrac{7\pi}{4}.

Test values: f′′(π2)=−1−0=−1<0f''\left(\frac{\pi}{2}\right) = -1 - 0 = -1 \lt 0; f′′(π)=0+1=1>0f''(\pi) = 0 + 1 = 1 \gt 0; f′′(15π8)≈0.383−0.924<0f''\left(\frac{15\pi}{8}\right) \approx 0.383 - 0.924 \lt 0.

Concave down on (0,3π4)\left(0, \dfrac{3\pi}{4}\right) and (7π4,2π)\left(\dfrac{7\pi}{4}, 2\pi\right); concave up on (3π4,7π4)\left(\dfrac{3\pi}{4}, \dfrac{7\pi}{4}\right).

f(3π4)=22−22=0f\left(\frac{3\pi}{4}\right) = \frac{\sqrt{2}}{2} - \frac{\sqrt{2}}{2} = 0 and f(7π4)=−22+22=0f\left(\frac{7\pi}{4}\right) = -\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2} = 0. Points of inflection: (3π4,0)\left(\dfrac{3\pi}{4}, 0\right) and (7π4,0)\left(\dfrac{7\pi}{4}, 0\right).

6. (Core) Use the second derivative test to find the relative extrema of f(x)=x3−12x+1f(x) = x^3 - 12x + 1.

Solution

f′(x)=3x2−12=3(x−2)(x+2)f'(x) = 3x^2 - 12 = 3(x - 2)(x + 2), so the critical points are x=±2x = \pm 2. f′′(x)=6xf''(x) = 6x.

  • f′′(−2)=−12<0f''(-2) = -12 \lt 0: relative maximum, f(−2)=−8+24+1=17f(-2) = -8 + 24 + 1 = 17.
  • f′′(2)=12>0f''(2) = 12 \gt 0: relative minimum, f(2)=8−24+1=−15f(2) = 8 - 24 + 1 = -15.

7. (Core) Show that f(x)=x3f(x) = \sqrt[3]{x} has a point of inflection at (0,0)(0, 0), even though f′′(0)f''(0) doesn’t exist.

Solution

f(x)=x1/3f(x) = x^{1/3}, f′(x)=13x−2/3f'(x) = \dfrac{1}{3}x^{-2/3}, and

f′′(x)=−29x−5/3=−29x5/3f''(x) = -\frac{2}{9}x^{-5/3} = -\frac{2}{9x^{5/3}}

f′′(0)f''(0) is undefined, but ff is continuous at 00. For x<0x \lt 0, x5/3<0x^{5/3} \lt 0, so f′′(x)>0f''(x) \gt 0 (concave up). For x>0x \gt 0, f′′(x)<0f''(x) \lt 0 (concave down). The concavity changes at x=0x = 0, so (0,0)(0, 0) is a point of inflection.

8. (Core) Let f(x)=x+4xf(x) = x + \dfrac{4}{x} for x>0x \gt 0. Use the second derivative test to classify the critical point.

Solution

f′(x)=1−4x2=0f'(x) = 1 - \dfrac{4}{x^2} = 0 gives x2=4x^2 = 4, so x=2x = 2 (since x>0x \gt 0).

f′′(x)=8x3f''(x) = \dfrac{8}{x^3}, so f′′(2)=1>0f''(2) = 1 \gt 0. ff has a relative minimum at x=2x = 2: f(2)=2+2=4f(2) = 2 + 2 = 4.

9. (Challenge) Find constants aa and bb so that f(x)=ax3+bx2f(x) = ax^3 + bx^2 has a point of inflection at (1,2)(1, 2).

Solution

f′′(x)=6ax+2bf''(x) = 6ax + 2b. For an inflection at x=1x = 1 we need f′′(1)=0f''(1) = 0: 6a+2b=06a + 2b = 0, so b=−3ab = -3a.

The point (1,2)(1, 2) is on the graph: f(1)=a+b=2f(1) = a + b = 2. Substitute: a−3a=2a - 3a = 2, so a=−1a = -1 and b=3b = 3.

Check: f(x)=−x3+3x2f(x) = -x^3 + 3x^2 has f′′(x)=−6x+6f''(x) = -6x + 6, which changes from positive to negative at x=1x = 1, and f(1)=−1+3=2f(1) = -1 + 3 = 2. ✓

10. (Challenge) A function ff has derivative f′(x)=(x−1)2(x+3)f'(x) = (x - 1)^2(x + 3). Find the xx-values of all relative extrema and points of inflection of ff, and the intervals of concavity.

Solution

Extrema: f′=0f' = 0 at x=1x = 1 and x=−3x = -3. (x−1)2≥0(x - 1)^2 \ge 0, so the sign of f′f' is the sign of x+3x + 3: negative for x<−3x \lt -3, positive for x>−3x \gt -3 (except 00 at x=1x = 1). f′f' changes from negative to positive at x=−3x = -3: relative minimum. No sign change at x=1x = 1: no extremum.

Concavity: by the product rule,

f′′(x)=2(x−1)(x+3)+(x−1)2=(x−1)(2(x+3)+(x−1))=(x−1)(3x+5)\begin{aligned} f''(x) &= 2(x - 1)(x + 3) + (x - 1)^2 \\ &= (x - 1)\big(2(x + 3) + (x - 1)\big) \\ &= (x - 1)(3x + 5) \end{aligned}

f′′(x)=0f''(x) = 0 at x=−53x = -\dfrac{5}{3} and x=1x = 1.

Interval(−∞,−53)\left(-\infty, -\frac{5}{3}\right)(−53,1)\left(-\frac{5}{3}, 1\right)(1,∞)(1, \infty)
Sign of f′′f''(−)(−)=+(-)(-) = +(−)(+)=−(-)(+) = -(+)(+)=+(+)(+) = +

Concave up on (−∞,−53)\left(-\infty, -\frac{5}{3}\right) and (1,∞)(1, \infty); concave down on (−53,1)\left(-\frac{5}{3}, 1\right). Points of inflection at x=−53x = -\dfrac{5}{3} and x=1x = 1.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site. Justify inflection points by a change of concavity. Check that the first derivative vanishes before using the second derivative test for extrema. Angles are in radians; cube roots are real.

H1. (Foundations) At an input cc, a twice continuously differentiable function has f′(c)=−2f'(c)=-2 and f′′(c)=5f''(c)=5. Describe its local direction and concavity. Does the second derivative test show a minimum there?

H2. (Foundations) Find the concavity intervals and every inflection point of f(x)=x3−3x2+2f(x)=x^3-3x^2+2, including both coordinates.

H3. (Core) For f(x)=x4−6x2f(x)=x^4-6x^2, find all concavity intervals and inflection points. Then classify every critical number using the second derivative test and give each relative extreme value.

H4. (Core) Use the second derivative test to classify every critical number of f(x)=x3−9x+2f(x)=x^3-9x+2. Give exact locations and values.

H5. (Core) Find the concavity intervals and inflection point of f(x)=xe−xf(x)=xe^{-x}. Explain why positivity of the exponential simplifies your analysis.

H6. (Core) Find every inflection point and concavity interval of f(x)=cos⁡(2x)f(x)=\cos(2x) for 0<x<π0\lt x\lt\pi.

H7. (Challenge) Analyse the concavity of f(x)=x−23+3f(x)=\sqrt[3]{x-2}+3 on both sides of 2. Does it have an inflection point even though its second derivative is undefined there? Justify using continuity and signs.

H8. (Challenge) Compare f(x)=x6f(x)=x^6, g(x)=−x6g(x)=-x^6, and h(x)=x5h(x)=x^5 at zero. Show that all three have zero first and second derivatives there. For each, decide whether zero is a relative extremum, an inflection point, both, or neither, and explain why the second derivative test cannot decide.

H9. (Challenge) Find a,b,c,da,b,c,d so that f(x)=ax3+bx2+cx+df(x)=ax^3+bx^2+cx+d has a horizontal tangent at the inflection point (2,1)(2,1) and satisfies f(0)=−7f(0)=-7. Verify the concavity change, and decide whether this horizontal tangent is an extremum.

H10. (Challenge) A differentiable function has f′(x)=(x−2)2(x+4)f'(x)=(x-2)^2(x+4). Find all relative extrema, concavity intervals, and inflection inputs. Explain what happens at the stationary input 2 and why the extreme and inflection heights cannot be found from the derivative alone.