Tutorials › Calculus I › Classifying Concavity with the Second Derivative

Concavity and Inflection · Tutorial 790 of 1495

Classifying Concavity with the Second Derivative

Use the sign of the second derivative to identify concavity on intervals and interpret the special case in which that derivative is identically zero.

Intermediate 9 min read

What You'll Learn

  • State the second-derivative criterion for concavity on an interval.
  • Distinguish positive, negative, nonnegative, and nonpositive second derivatives.
  • Calculate second derivatives and use their signs to classify concavity.
  • Explain why an identically zero second derivative means the function is affine.
  • Avoid confusing the sign of the first derivative with concavity.

From the Second Derivative to Concavity

A function can rise or fall while bending in different ways. To describe that bending, we use concavity. The second derivative provides a practical test: where it is positive, the first derivative is increasing; where it is negative, the first derivative is decreasing.

This tutorial focuses on classifying concavity on intervals from the sign of \(f''\). The test must be applied on an interval where the function is twice differentiable, and the sign must hold throughout the interval—not merely at a selected point.

Key criterion: Let \(f\) be twice differentiable on an interval \(I\). If \(f''(x)>0\) for every \(x\in I\), then \(f\) is strictly concave up on \(I\). If \(f''(x)<0\) for every \(x\in I\), then \(f\) is strictly concave down on \(I\). The corresponding weak conditions \(f''(x)\geq 0\) and \(f''(x)\leq 0\) give concavity up and concavity down, respectively.

The weak conditions allow equality at some or even all points. In this convention, a function that is both concave up and concave down on an interval is a straight line there. The distinction between strict and weak concavity matters when the second derivative is zero at some points.

What the Sign Tells You

The first derivative describes how the function changes. The second derivative describes how the first derivative changes. In particular, a positive second derivative means that \(f'\) is increasing, while a negative second derivative means that \(f'\) is decreasing. This change in slope corresponds to the function bending upward or downward.

The criterion is about the sign throughout an interval. For example, knowing that \(f''(2)>0\) tells you something locally about the curvature near \(2\), but by itself it does not establish concavity on a whole interval. To classify a specified interval, check that the required sign holds at every point in it.

Second-derivative condition on \(I\) Conclusion on \(I\)
\(f''(x)>0\) throughout \(I\) Strictly concave up
\(f''(x)\geq 0\) throughout \(I\) Concave up
\(f''(x)<0\) throughout \(I\) Strictly concave down
\(f''(x)\leq 0\) throughout \(I\) Concave down
\(f''(x)=0\) throughout \(I\) Affine; both concave up and concave down

The terminology “concave up” is also commonly called “convex.” “Concave down” is also called “concave.” The labels refer to the shape, not to whether the function itself is positive or negative.

Worked Example: A Positive Second Derivative

Worked Example: A Positive Second Derivative

Classify the concavity of \(f(x)=x^2+2x+3\) on \(\mathbb{R}\).

First differentiate:

$$ f'(x)=2x+2. $$

Differentiate again:

$$ f''(x)=2. $$

For every real \(x\), \(2>0\). Thus \(f''(x)>0\) throughout \(\mathbb{R}\), so the second-derivative criterion shows that \(f\) is strictly concave up on \(\mathbb{R}\).

As a check, \(f'\) is increasing: if \(a<b\), then

$$ f'(b)-f'(a)=(2b+2)-(2a+2)=2(b-a)>0. $$

This agrees with the positive second derivative and the concavity classification.

Worked Example: A Negative Second Derivative

Worked Example: A Negative Second Derivative

Classify the concavity of \(g(x)=\ln x\) on its domain.

The domain is \((0,\infty)\). On this interval,

$$ g'(x)=\frac{1}{x} \qquad\text{and}\qquad g''(x)=-\frac{1}{x^2}. $$

For every \(x>0\), \(x^2>0\), so \(-1/x^2<0\). Therefore \(g''\) is negative throughout its domain, and \(g\) is strictly concave down on \((0,\infty)\).

We can check the sign by testing any domain value, such as \(x=2\):

$$ g''(2)=-\frac{1}{2^2}=-\frac14<0. $$

That substitution illustrates the sign, but the conclusion for the entire domain comes from the expression \(-1/x^2<0\) for every \(x>0\), not from the single test value.

When the Second Derivative Is Identically Zero

There is an important difference between \(f''\) being zero at a particular input and \(f''\) being zero at every point of an interval. If \(f''\) is identically zero on an interval, then \(f'\) is constant there and \(f\) is a straight line on that interval.

Theorem: If \(f\) is twice differentiable on an interval \(I\) and \(f''(x)=0\) for every \(x\in I\), then there are constants \(m\) and \(b\) such that \(f(x)=mx+b\) for every \(x\in I\).

Here is a proof. Take any \(a,b\in I\) with \(a<b\). Since \(f\) is twice differentiable, \(f'\) is continuous on \([a,b]\) and differentiable on \((a,b)\). The Mean Value Theorem applied to \(f'\) gives a point \(c\in(a,b)\) such that

$$ f'(b)-f'(a)=f''(c)(b-a). $$

By assumption, \(f''(c)=0\). Hence \(f'(b)-f'(a)=0\), so \(f'(b)=f'(a)\). Because \(a\) and \(b\) were arbitrary, \(f'\) has one constant value, say \(m\), throughout \(I\). Apply the Mean Value Theorem to \(f\) between any two points \(a<b\) in \(I\). For some \(d\in(a,b)\),

$$ f(b)-f(a)=f'(d)(b-a)=m(b-a). $$

Rearranging gives \(f(b)-mb=f(a)-ma\). Thus \(f(x)-mx\) has the same value, say \(b_0\), at every point in \(I\). Therefore \(f(x)=mx+b_0\) on \(I\), as claimed.

An affine function has constant slope, so its graph neither bends upward nor downward. It satisfies both weak concavity conditions. It is not strictly concave up or strictly concave down.

Worked Example: An Identically Zero Second Derivative

Worked Example: An Identically Zero Second Derivative

Classify the concavity of \(h(x)=4-3x\) on \(\mathbb{R}\).

Differentiate once and then twice:

$$ h'(x)=-3, \qquad h''(x)=0. $$

Because \(h''(x)=0\) for every real \(x\), the theorem shows that \(h\) is affine. In fact, its given formula is already of the form \(mx+b\), with \(m=-3\) and \(b=4\).

Consequently, \(h\) is both concave up and concave down in the weak sense on \(\mathbb{R}\), but it is strictly neither. To check the calculation, differentiating the antiderivative steps in reverse gives \(\frac{d}{dx}(-3) = 0\), as required for \(h''\).

Concavity Can Differ on Different Intervals

A function need not have the same concavity everywhere. If the second derivative has different signs on different intervals, apply the criterion separately on each interval. This is why the conclusion should always name the interval on which it holds.

Worked Example: Classifying on Two Intervals

Let \(p(x)=x^3\). Determine its concavity on \((-\infty,0)\) and \((0,\infty)\).

Differentiate twice:

$$ p'(x)=3x^2, \qquad p''(x)=6x. $$

If \(x<0\), then \(6x<0\). Thus \(p''\) is negative throughout \((-\infty,0)\), and \(p\) is strictly concave down there. If \(x>0\), then \(6x>0\). Thus \(p''\) is positive throughout \((0,\infty)\), and \(p\) is strictly concave up there.

The endpoint \(0\) is not in either of those open intervals. The classification above concerns the sign of \(p''\) on each named interval; the conclusion for one interval should not be extended to the other.

For a direct sign check, choose one value in each interval. At \(x=-1\), \(p''(-1)=6(-1)=-6<0\). At \(x=1\), \(p''(1)=6(1)=6>0\). These checks agree with the expression \(6x\), whose sign is negative for every \(x<0\) and positive for every \(x>0\).

A Common Mistake: Using the First Derivative Instead

The first derivative and the second derivative answer different questions. The sign of \(f'\) describes whether \(f\) is increasing or decreasing; the sign of \(f''\) describes whether its slope is increasing or decreasing. Confusing these roles can produce an incorrect concavity conclusion.

For \(p(x)=x^3\), a mistaken argument might say:

$$ p'(x)=3x^2\geq 0 \quad\Longrightarrow\quad p\text{ is concave up everywhere.} $$

The implication is wrong: \(p'\geq 0\) indicates that \(p\) is increasing, not that it is concave up. The correction is to calculate the second derivative:

$$ p''(x)=6x. $$

Its sign is negative for \(x<0\) and positive for \(x>0\). Therefore \(p\) is concave down on \((-\infty,0)\) and concave up on \((0,\infty)\). Keeping the jobs of \(f'\) and \(f''\) separate prevents this error.

A Reliable Classification Routine

For a given function and interval, the process is short, but each part matters:

1
Differentiate twice.
Find \(f'\), then calculate \(f''\) carefully.
2
Identify the interval under consideration.
Make sure the function is twice differentiable throughout that interval.
3
Determine the sign throughout the interval.
Use the formula for \(f''\) and the conditions defining the interval.
4
State the matching conclusion.
Positive means concave up; negative means concave down. Include the interval and whether the claim is strict or weak.

If \(f''\) is identically zero on the interval, state that the function is affine there and hence both weakly concave up and weakly concave down. If the sign is not the same throughout the interval, do not use a single positive-or-negative conclusion for that whole interval; examine the intervals on which the sign is consistent.

Why This Classification Matters

Concavity describes how a graph bends, but it also summarizes how its slope changes. When \(f''>0\), the slopes increase as \(x\) increases; when \(f''<0\), they decrease. This information helps organize the global shape of a function and complements what the first derivative tells you about increasing and decreasing behavior.

The most dependable habit is to write down the second derivative, establish its sign on the interval, and then state the conclusion precisely. A sign at one sample point is not a substitute for a sign argument on the whole interval, and the sign of the first derivative is not a concavity test.

Check Your Understanding

For each question, identify the interval or condition being discussed and justify your conclusion using the second derivative.

  1. If \(f''(x)=5\) for every \(x\in I\), what type of concavity does \(f\) have on \(I\)?
  2. If \(g''(x)=-2/x^2\) for every \(x>0\), classify the concavity of \(g\) on \((0,\infty)\).
  3. What can you conclude if \(h''(x)=0\) for every \(x\) in an interval \(I\)?
  4. For \(q(x)=x^3\), calculate \(q''(x)\) and classify concavity on \((-\infty,0)\) and \((0,\infty)\).
  5. Why does \(f'(x)\geq 0\) on an interval not by itself show that \(f\) is concave up there?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon