Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
5.1 Important theorems
5.2 1st derivative test
5.3 2nd derivative test
5.3.1 Concavity
5.3.2 Inflection points
5.4 Graphs & curve sketching
5.5 Optimization
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
5.3.1 Concavity
Achievable AP Calculus AB
5. Analytical uses
5.3. 2nd derivative test
Our AP Calculus AB course is currently in development and is a work-in-progress.

Concavity

9 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • How to classify relative extrema using the 2nd derivative test instead of the 1st derivative sign chart
  • Understanding the 2nd derivative as concavity

You might recall from section 4.4 on linear approximations that concavity describes whether a graph bends upward or downward.

Once you’ve found a critical point using f′(x), you can often classify it as a relative maximum or minimum using the 2nd derivative test. This lets you use f′′(x) (concavity) instead of building a full sign chart for f′(x).

2nd derivative test

  1. Find the critical points (where f′(x)=0 or is undefined).
  2. Find the 2nd derivative, f′′(x).
  3. Plug each critical point into f′′(x):
  • If f′′(x)>0, then f(x) is concave up (shaped “like a cup”), and the critical point is a relative minimum.
  • If f′′(x)<0, then f(x) is concave down (shaped “like a frown”), and the critical point is a relative maximum.
  • If f′′(x)=0, the 2nd derivative test is inconclusive, so you’ll need to use the 1st derivative test to classify the point.
2nd derivative test
2nd derivative test

Here’s why this works:

  • The 1st derivative f′(x) tells you the slope of the tangent line to f(x).
  • The 2nd derivative f′′(x) tells you how those slopes are changing as x increases.

So:

  • If f′′(x)>0, the slopes are increasing (tangent lines get “less negative” and then more positive). That corresponds to a concave-up shape.
  • If f′′(x)<0, the slopes are decreasing. That corresponds to a concave-down shape.

For example, take f(x)=x2.

  • f′(x)=2x
  • f′′(x)=2 (always positive, so the graph is always concave up)

At x=−2, the slope is f′(−2)=−4. At x=−1, the slope is f′(−1)=−2. The slope increased from −4 to −2, which matches f′′(x)>0.

Now compare that to f(x)=−x2.

  • f′(x)=−2x
  • f′′(x)=−2 (always negative, so the graph is always concave down)

As you move left to right, the slopes decrease, matching f′′(x)<0.

Examples

Classify the extrema of

f(x)=x3−3x2+1

Solution

The 1st derivative is

f′(x)=3x2−6x

To find the critical points, solve

3x2−6x=0

3x(x−2)=0

x=0,2

These are the two critical points.

Now use the 2nd derivative test. The 2nd derivative is

f′′(x)=6x−6

Plug in each critical point:

f′′(0)=6(0)−6=−6

f′′(2)=6(2)−6=6

  • Since f′′(0)<0, f(x) is concave down at x=0, so x=0 is a relative max.
  • Since f′′(2)>0, f(x) is concave up at x=2, so x=2 is a relative min.

Classify the extrema of

f(x)=x3+1x2−1​

Solution

(spoiler)

This function can be factored into

f(x)=(x+1)​(x2−x+1)(x+1)​(x−1)​

=x2−x+1x−1​

where x=−1 is excluded from the domain.

Differentiating,

f′(x)=(x2−x+1)2(x2−x+1)(1)−(x−1)(2x−1)​

=(x2−x+1)2x2−x+1−(2x2−x−2x+1)​

=(x2−x+1)2−x2+2x​

where x=−1 still.

The critical points occur when f′(x)=0, which happens when the numerator is zero:

−x2+2x=0

So x=0 and x=2.

f′(x) is undefined when the denominator (x2−x+1)2=0. There are no solutions for this (you can check the discriminant, or try solving x2−x+1=0 with the quadratic formula and see there are no real solutions).

So x=0 and x=2 are the only critical points.

Now use the 2nd derivative test. Differentiate f′(x) (quotient rule) and plug in the critical points. For calculator-active problems, you can also use technology to evaluate f′′(0) and f′′(2).

For example, in Desmos:

  1. Type f(x)=(x2−x+1)2−x2+2x​
    • This is f′(x) in the problem, but Desmos doesn’t support prime notation, so you enter it as a new function.
  2. Type f′(0) and f′(2). These outputs correspond to f′′(0) and f′′(2) for this problem.

You should see that:

f′′(0)=2

f′′(2)=−0.22...

  • Since f′′(0)>0, f(x) is concave up at x=0, so x=0 is a relative min.
  • Since f′′(2)<0, f(x) is concave down at x=2, so x=2 is a relative max.

Classify the extrema of

f(x)=cos(x)−sec(x)

in the interval (0,2π).

Solution

(spoiler)

The 1st derivative is

f′(x)=−sin(x)−sec(x)tan(x)

To find the critical points, solve

−sin(x)−sec(x)tan(x)=0

Rewrite in terms of sine and cosine:

−sin(x)−cos(x)1​×cos(x)sin(x)​=0

−sin(x)−cos2(x)sin(x)​=0

Combine into a single fraction:

cos2(x)−sin(x)cos2(x)−sin(x)​=0

=cos2(x)−sin(x)(cos2(x)+1))​=0

A fraction is zero when its numerator is zero, so either

cos2(x)+1=0

(which has no real solutions), or

−sin(x)=0

so

x=0,π,2π,...

f′(x) is undefined when sec(x) and tan(x) are undefined (equivalently, when cos(x)=0). But those values are not in the domain of the original function, so they aren’t critical points of f.

The only critical point in the interval (0,2π) is x=π.

For the 2nd derivative test,

f′′(x)=−cos(x)−(sec(x)⋅sec2(x)+tan(x)⋅sec(x)tan(x))

=−cos(x)−sec3(x)−sec(x)tan2(x)

Classify the critical point x=π:

f′′(π)=2

Since f′′(π)>0, f(x) is concave up at x=π, so x=π is a relative min.

Classify the extrema of

f(x)=xe−x

Solution

(spoiler)

The 1st derivative is

f′(x)=xe−x(−1)+e−x(1)

=−e−x(x−1)

To find the critical points, solve

−e−x(x−1)=0

x=1

The 2nd derivative is

f′′(x)=−e−x(1)+(x−1)(e−x)

=−e−x(1−(x−1))

=−e−x(−x+2)

Classify the critical point x=1:

f′′(1)=−e−1(−1+2)=−e1​

Since f′′(1)<0, f(x) is concave down at x=1, so x=1 is a relative max.

Classify the extrema of

f(x)=ln(x2+1)

Solution

(spoiler)

The 1st derivative is

f′(x)=x2+12x​

To find the critical points, solve

x2+12x​=0

x=0

The 2nd derivative is

f′′(x)=(x2+1)2(x2+1)(2)−(2x)(2x)​

=(x2+1)22x2+2−4x2​

=(x2+1)22−2x2​

Classify the critical point x=0:

f′′(0)=(02+1)22−2(0)2​

=2

Since f′′(0)>0, f(x) is concave up at x=0, so x=0 is a relative min.

Challenge problem

A curve with derivative

dxdy​=y+5x2−4x+3​

has y=−2 as a tangent line. At what point is the line tangent to the curve, and is it a relative maximum, a relative minimum, or neither?

Solution

(spoiler)

The curve meets y=−2 at the point of tangency (a,−2).

Because y=−2 is a horizontal tangent line, its slope is 0, so at the tangency point we must have

dxdy​=0.

From

dxdy​=y+5x2−4x+3​,

the derivative is zero when the numerator is zero:

x2−4x+3=0

(x−1)(x−3)=0

x=1,3

So (1,−2) and (3,−2) are both points where the tangent line could be horizontal. (And the derivative is defined there because y+5=−2+5=3=0.)

Now classify each point using the 2nd derivative.

The 2nd derivative is

dx2d2y​=(y+5)2(y+5)(2x−4)−(x2−4x+3)(dxdy​)​

For (1,−2):

dx2d2y​=(−2+5)2(−2+5)(2⋅1−4)−(12−4⋅1+3)(0)​

=9(3)(−2)​

=−32​

Since the 2nd derivative is negative, the curve is concave down at (1,−2), so (1,−2) is a relative max.

For (3,−2):

dx2d2y​=(−2+5)2(−2+5)(2⋅3−4)−(32−4⋅3+3)(0)​

=9(3)(2)​

=32​

Since the 2nd derivative is positive, the curve is concave up at (3,−2), so (3,−2) is a relative min.

2nd derivative test

  • Classifies critical points using f′′(x) (concavity)
  • Steps:
    • Find critical points: f′(x)=0 or undefined
    • Compute f′′(x) at each critical point
  • Interpretation:
    • f′′(x)>0: concave up, relative minimum
    • f′′(x)<0: concave down, relative maximum
    • f′′(x)=0: test is inconclusive, use 1st derivative test

Concavity and derivatives

  • f′(x): slope of tangent line
  • f′′(x): rate of change of slope (concavity)
    • f′′(x)>0: slopes increase, graph bends upward
    • f′′(x)<0: slopes decrease, graph bends downward

Worked examples

  • f(x)=x3−3x2+1
    • Critical points: x=0,2
    • f′′(0)=−6 (max), f′′(2)=6 (min)
  • f(x)=x3+1x2−1​
    • Critical points: x=0,2
    • f′′(0)=2 (min), f′′(2)<0 (max)
  • f(x)=cos(x)−sec(x) on (0,2π)
    • Critical point: x=π
    • f′′(π)=2 (min)
  • f(x)=xe−x
    • Critical point: x=1
    • f′′(1)<0 (max)
  • f(x)=ln(x2+1)
    • Critical point: x=0
    • f′′(0)=2 (min)

Challenge problem

  • Given dxdy​=y+5x2−4x+3​, y=−2 tangent line
    • Points of tangency: (1,−2) (max), (3,−2) (min)
    • Classified using 2nd derivative at each point

Sign up for free to take 6 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Concavity

What you’ll learn:

  • How to classify relative extrema using the 2nd derivative test instead of the 1st derivative sign chart
  • Understanding the 2nd derivative as concavity

You might recall from section 4.4 on linear approximations that concavity describes whether a graph bends upward or downward.

Once you’ve found a critical point using f′(x), you can often classify it as a relative maximum or minimum using the 2nd derivative test. This lets you use f′′(x) (concavity) instead of building a full sign chart for f′(x).

2nd derivative test

  1. Find the critical points (where f′(x)=0 or is undefined).
  2. Find the 2nd derivative, f′′(x).
  3. Plug each critical point into f′′(x):
  • If f′′(x)>0, then f(x) is concave up (shaped “like a cup”), and the critical point is a relative minimum.
  • If f′′(x)<0, then f(x) is concave down (shaped “like a frown”), and the critical point is a relative maximum.
  • If f′′(x)=0, the 2nd derivative test is inconclusive, so you’ll need to use the 1st derivative test to classify the point.

Here’s why this works:

  • The 1st derivative f′(x) tells you the slope of the tangent line to f(x).
  • The 2nd derivative f′′(x) tells you how those slopes are changing as x increases.

So:

  • If f′′(x)>0, the slopes are increasing (tangent lines get “less negative” and then more positive). That corresponds to a concave-up shape.
  • If f′′(x)<0, the slopes are decreasing. That corresponds to a concave-down shape.

For example, take f(x)=x2.

  • f′(x)=2x
  • f′′(x)=2 (always positive, so the graph is always concave up)

At x=−2, the slope is f′(−2)=−4. At x=−1, the slope is f′(−1)=−2. The slope increased from −4 to −2, which matches f′′(x)>0.

Now compare that to f(x)=−x2.

  • f′(x)=−2x
  • f′′(x)=−2 (always negative, so the graph is always concave down)

As you move left to right, the slopes decrease, matching f′′(x)<0.

Examples

Classify the extrema of

f(x)=x3−3x2+1

Solution

The 1st derivative is

f′(x)=3x2−6x

To find the critical points, solve

3x2−6x=0

3x(x−2)=0

x=0,2

These are the two critical points.

Now use the 2nd derivative test. The 2nd derivative is

f′′(x)=6x−6

Plug in each critical point:

f′′(0)=6(0)−6=−6

f′′(2)=6(2)−6=6

  • Since f′′(0)<0, f(x) is concave down at x=0, so x=0 is a relative max.
  • Since f′′(2)>0, f(x) is concave up at x=2, so x=2 is a relative min.

Classify the extrema of

f(x)=x3+1x2−1​

Solution

(spoiler)

This function can be factored into

f(x)=(x+1)​(x2−x+1)(x+1)​(x−1)​

=x2−x+1x−1​

where x=−1 is excluded from the domain.

Differentiating,

f′(x)=(x2−x+1)2(x2−x+1)(1)−(x−1)(2x−1)​

=(x2−x+1)2x2−x+1−(2x2−x−2x+1)​

=(x2−x+1)2−x2+2x​

where x=−1 still.

The critical points occur when f′(x)=0, which happens when the numerator is zero:

−x2+2x=0

So x=0 and x=2.

f′(x) is undefined when the denominator (x2−x+1)2=0. There are no solutions for this (you can check the discriminant, or try solving x2−x+1=0 with the quadratic formula and see there are no real solutions).

So x=0 and x=2 are the only critical points.

Now use the 2nd derivative test. Differentiate f′(x) (quotient rule) and plug in the critical points. For calculator-active problems, you can also use technology to evaluate f′′(0) and f′′(2).

For example, in Desmos:

  1. Type f(x)=(x2−x+1)2−x2+2x​
    • This is f′(x) in the problem, but Desmos doesn’t support prime notation, so you enter it as a new function.
  2. Type f′(0) and f′(2). These outputs correspond to f′′(0) and f′′(2) for this problem.

You should see that:

f′′(0)=2

f′′(2)=−0.22...

  • Since f′′(0)>0, f(x) is concave up at x=0, so x=0 is a relative min.
  • Since f′′(2)<0, f(x) is concave down at x=2, so x=2 is a relative max.

Classify the extrema of

f(x)=cos(x)−sec(x)

in the interval (0,2π).

Solution

(spoiler)

The 1st derivative is

f′(x)=−sin(x)−sec(x)tan(x)

To find the critical points, solve

−sin(x)−sec(x)tan(x)=0

Rewrite in terms of sine and cosine:

−sin(x)−cos(x)1​×cos(x)sin(x)​=0

−sin(x)−cos2(x)sin(x)​=0

Combine into a single fraction:

cos2(x)−sin(x)cos2(x)−sin(x)​=0

=cos2(x)−sin(x)(cos2(x)+1))​=0

A fraction is zero when its numerator is zero, so either

cos2(x)+1=0

(which has no real solutions), or

−sin(x)=0

so

x=0,π,2π,...

f′(x) is undefined when sec(x) and tan(x) are undefined (equivalently, when cos(x)=0). But those values are not in the domain of the original function, so they aren’t critical points of f.

The only critical point in the interval (0,2π) is x=π.

For the 2nd derivative test,

f′′(x)=−cos(x)−(sec(x)⋅sec2(x)+tan(x)⋅sec(x)tan(x))

=−cos(x)−sec3(x)−sec(x)tan2(x)

Classify the critical point x=π:

f′′(π)=2

Since f′′(π)>0, f(x) is concave up at x=π, so x=π is a relative min.

Classify the extrema of

f(x)=xe−x

Solution

(spoiler)

The 1st derivative is

f′(x)=xe−x(−1)+e−x(1)

=−e−x(x−1)

To find the critical points, solve

−e−x(x−1)=0

x=1

The 2nd derivative is

f′′(x)=−e−x(1)+(x−1)(e−x)

=−e−x(1−(x−1))

=−e−x(−x+2)

Classify the critical point x=1:

f′′(1)=−e−1(−1+2)=−e1​

Since f′′(1)<0, f(x) is concave down at x=1, so x=1 is a relative max.

Classify the extrema of

f(x)=ln(x2+1)

Solution

(spoiler)

The 1st derivative is

f′(x)=x2+12x​

To find the critical points, solve

x2+12x​=0

x=0

The 2nd derivative is

f′′(x)=(x2+1)2(x2+1)(2)−(2x)(2x)​

=(x2+1)22x2+2−4x2​

=(x2+1)22−2x2​

Classify the critical point x=0:

f′′(0)=(02+1)22−2(0)2​

=2

Since f′′(0)>0, f(x) is concave up at x=0, so x=0 is a relative min.

Challenge problem

A curve with derivative

dxdy​=y+5x2−4x+3​

has y=−2 as a tangent line. At what point is the line tangent to the curve, and is it a relative maximum, a relative minimum, or neither?

Solution

(spoiler)

The curve meets y=−2 at the point of tangency (a,−2).

Because y=−2 is a horizontal tangent line, its slope is 0, so at the tangency point we must have

dxdy​=0.

From

dxdy​=y+5x2−4x+3​,

the derivative is zero when the numerator is zero:

x2−4x+3=0

(x−1)(x−3)=0

x=1,3

So (1,−2) and (3,−2) are both points where the tangent line could be horizontal. (And the derivative is defined there because y+5=−2+5=3=0.)

Now classify each point using the 2nd derivative.

The 2nd derivative is

dx2d2y​=(y+5)2(y+5)(2x−4)−(x2−4x+3)(dxdy​)​

For (1,−2):

dx2d2y​=(−2+5)2(−2+5)(2⋅1−4)−(12−4⋅1+3)(0)​

=9(3)(−2)​

=−32​

Since the 2nd derivative is negative, the curve is concave down at (1,−2), so (1,−2) is a relative max.

For (3,−2):

dx2d2y​=(−2+5)2(−2+5)(2⋅3−4)−(32−4⋅3+3)(0)​

=9(3)(2)​

=32​

Since the 2nd derivative is positive, the curve is concave up at (3,−2), so (3,−2) is a relative min.

Key points

2nd derivative test

  • Classifies critical points using f′′(x) (concavity)
  • Steps:
    • Find critical points: f′(x)=0 or undefined
    • Compute f′′(x) at each critical point
  • Interpretation:
    • f′′(x)>0: concave up, relative minimum
    • f′′(x)<0: concave down, relative maximum
    • f′′(x)=0: test is inconclusive, use 1st derivative test

Concavity and derivatives

  • f′(x): slope of tangent line
  • f′′(x): rate of change of slope (concavity)
    • f′′(x)>0: slopes increase, graph bends upward
    • f′′(x)<0: slopes decrease, graph bends downward

Worked examples

  • f(x)=x3−3x2+1
    • Critical points: x=0,2
    • f′′(0)=−6 (max), f′′(2)=6 (min)
  • f(x)=x3+1x2−1​
    • Critical points: x=0,2
    • f′′(0)=2 (min), f′′(2)<0 (max)
  • f(x)=cos(x)−sec(x) on (0,2π)
    • Critical point: x=π
    • f′′(π)=2 (min)
  • f(x)=xe−x
    • Critical point: x=1
    • f′′(1)<0 (max)
  • f(x)=ln(x2+1)
    • Critical point: x=0
    • f′′(0)=2 (min)

Challenge problem

  • Given dxdy​=y+5x2−4x+3​, y=−2 tangent line
    • Points of tangency: (1,−2) (max), (3,−2) (min)
    • Classified using 2nd derivative at each point