Concavity and inflection
The sign of \(f'\) tells where a graph rises and where it falls (topic 5.3). A graph also bends, like a cup or like a cap, and the bend depends on how its slope changes. Let \(f\) be differentiable on an open interval \(I\). The graph of \(f\) is concave up on \(I\) if \(f'\) is increasing on \(I\). It is concave down on \(I\) if \(f'\) is decreasing on \(I\).
This topic finds where a graph is concave up and where it is concave down, and the points where its concavity changes.
The second derivative gives the bend
Three graphs, one above another, on the same x-scale, with no numbers. The top graph is a curve f: it dips a little, rises steeply through a point of inflection, reaches its highest point, falls through a second point of inflection to a low point and rises again at the right. A dot marks each point of inflection, with the words inflection point above it. An orange point on the curve, which can be dragged, carries its orange tangent line. The middle graph is f′, green where it rises and red where it falls, with an orange bar from its axis to f′(x). The bottom graph is f″, a parabola shaded green above its axis and red below it, with an orange bar to f″(x). Under it, a sign chart of f″ shows plus with a cup, minus with a cap, and plus with a cup. A faint dashed line marks x on every graph. A button makes the two zeros of f″ meet: the red stretch disappears, f″ touches its axis at one point and is positive on both sides, and the top graph becomes concave up everywhere, with a dot at that x and the words no inflection point above it.
Figure 1 graphs \(f\) at the top, \(f'\) in the middle and \(f''\) at the bottom. The orange bar on the middle graph reaches \(f'(x)\), the slope of the orange tangent line on the top graph. Move \(x\) across the figure. Where the middle graph is green, \(f'\) is increasing, so the top graph is concave up there. It bends like a cup, and it lies above the tangent line, which turns counterclockwise as \(x\) moves to the right. Where the middle graph is red, \(f'\) is decreasing, and the top graph is concave down, like a cap, below the tangent line.
Topic 4.6 showed that on an interval where a graph is concave up, the graph lies above its tangent lines. On an interval where it is concave down, it lies below them.
The second derivative \(f''\) is the derivative of \(f'\) (topic 3.6). By the Increasing/Decreasing Test (topic 5.3), a function whose derivative is positive on an interval is increasing there. Applied to \(f'\), this shows that \(f''>0\) on \(I\) makes \(f'\) increasing, so the graph of \(f\) is concave up on \(I\). In the same way, \(f''<0\) on \(I\) makes the graph concave down on \(I\). This result is the Concavity Test, which some books call the Second Derivative Test for Concavity.
Whether a graph rises depends on the sign of \(f'\), and how it bends depends on the sign of \(f''\). In Figure 1, shortly to the left of its highest point, the top graph rises and is concave down.
Points of inflection
A point of inflection, or inflection point, is a point \(\big(c,\ f(c)\big)\) of the graph where \(f\) is continuous and the concavity changes. The graph is concave up on one side of \(c\) and concave down on the other. Some books also require a tangent line at the point, and every point of inflection on this page has one. In Figure 1, filled dots mark the two points of inflection.
Suppose, as for every function in this topic, that \(f''\) is continuous wherever it exists. The \(x\)-values where \(f''\) is 0 or does not exist are its cut points, as in topic 5.3 for \(f'\). On an interval with no cut point, \(f''\) is continuous and never 0. By the Intermediate Value Theorem (topic 1.16), it cannot take both signs there, so the graph has one concavity on that interval.
The concavity can therefore change only at a cut point. A cut point \(c\) where \(f\) is continuous is a candidate for a point of inflection. A cut point outside the domain of \(f\) is not a candidate: the graph has no point there, even if the concavity changes across it.
To test a candidate \(c\), compare the signs of \(f''\) on its two sides. One test point on each side, with no cut point between it and \(c\), gives the sign there. If the signs differ, \(\big(c,\ f(c)\big)\) is a point of inflection. If they agree, the concavity is the same on both sides, and there is no point of inflection at \(c\), even if \(f''(c)=0\).
Use the button under Figure 1 to make the two zeros of \(f''\) meet. The red stretch of the bottom graph shrinks and disappears, and the two points of inflection disappear with it. At the end, the bottom graph touches the axis at one \(x\) and lies above it on both sides. The signs of \(f''\) agree, so the top graph has no point of inflection there, although \(f''=0\). Move \(x\) to the zero of \(f''\). The tangent line lies below the top graph on both sides.
Here \(f''>0\) except at that one \(x\). By the Increasing/Decreasing Test (topic 5.3), \(f'\) is then increasing on the whole interval shown, so the graph is concave up on all of it.
A point of inflection lies on the graph, so its \(y\)-coordinate is \(f(c)\), found from \(f\) itself. The value \(f''(c)\) is no substitute, because at every candidate it is 0 or does not exist, whatever the height of the graph.
Where the second derivative does not exist
Two graphs on the same x-scale, from −1.5 to 1.5. The top graph is y equals the cube root of x, which rises through the origin with a vertical tangent there: concave up on the left of 0 and concave down on the right. A dot at the origin is labelled inflection point. An orange point on the curve, which can be dragged, carries its orange tangent line. The bottom graph is y″, positive and shaded green on the left of 0 and negative and shaded red on the right, growing without bound near 0, with an orange bar to y″ at x. Under it, a sign chart of y″ shows plus with a cup, an open ring at 0, and minus with a cap. A button folds the left half of the top graph up, so the graph becomes the cube root of the absolute value of x, with a cusp at the origin and concave down on both sides. Then y″ is negative and shaded red on both sides, the chart shows minus with a cap on both sides, and the dot is labelled no inflection point.
A cut point where \(f''\) does not exist is tested in the same way. In Figure 2, the top graph is \(y=\sqrt[3]{x}\), which is continuous for every \(x\). The power rule gives
and neither exists at \(x=0\), where the tangent line is vertical. For \(x<0\), the power \(x^{-5/3}\) is negative, so \(y''>0\). For \(x>0\), \(y''<0\). The concavity changes at 0, so \((0,0)\) is a point of inflection, although \(y''\) does not exist there. Move \(x\) to 0. The vertical tangent line crosses the graph.
Use the button under Figure 2 to fold the left half of the graph up. The graph becomes \(y=\sqrt[3]{|x|}\), which has a cusp at 0 and no second derivative there. The fold replaces \(y\) by \(-y\) on the left half, which reverses the sign of \(y''\) there, so \(y''<0\) on both sides of 0. The graph is concave down on both sides. The origin is not a point of inflection. Whether \(f''\) is 0 at a candidate or does not exist, the signs on the two sides decide.
Example 1
Determine concavity on intervals
The derivative of a function \(h\) is \(h'(x)=x\,e^{-x^2/2}\). On which intervals is the graph of \(h\) concave up, and on which is it concave down? Give a reason for your answer.
Solution
The derivative \(h'\) is a product of differentiable functions, so \(h''\) exists for every \(x\). By the product rule and the chain rule,
The factor \(e^{-x^2/2}\) is positive for every \(x\), so \(h''\) has the sign of \(1-x^2\). That factor is positive where \(x^2<1\), for \(-1<x<1\), and negative where \(x^2>1\), for \(x<-1\) and for \(x>1\).
The graph of \(h\) is concave up on \((-1,1)\), because \(h''>0\) there, and concave down on \((-\infty,-1)\) and on \((1,\infty)\), because \(h''<0\) there. Equivalently, \(h'\) is increasing on \((-1,1)\) and decreasing on the other two intervals.
Example 2
Find candidate inflection locations
Let \(p(x)=x^2+\dfrac{1}{x}\). Find all values of \(x\) at which the graph of \(p\) could have a point of inflection.
Solution
The function \(p\) is defined and continuous for every \(x\) except 0. With \(\frac{1}{x}=x^{-1}\), the power rule gives
The second derivative is 0 where its numerator is 0, so \(x^3=-1\) and \(x=-1\). It does not exist where its denominator is 0, at \(x=0\). But 0 is not in the domain of \(p\), so the graph has no point there, and 0 is not a candidate.
The only candidate is \(x=-1\), where \(p\) is continuous.
Example 3
Verify a change in concavity
The function \(q\) is twice differentiable on the interval \(0<x<2\pi\), and \(q''(x)=\sin^2 x\cos x\). Find the \(x\)-coordinates of the points of inflection of the graph of \(q\) on this interval. Justify your answer.
Solution
Because \(q\) is differentiable, it is continuous, so a candidate is a point of inflection when \(q''\) changes sign there. The second derivative exists on the whole interval, and it is 0 where \(\sin x=0\) or \(\cos x=0\):
The factor \(\sin^2 x\) is positive except at \(\pi\), where it is 0, so on each side of every candidate \(q''\) has the sign of \(\cos x\):
The sign changes at \(\frac{\pi}{2}\) and at \(\frac{3\pi}{2}\), so the graph of \(q\) has points of inflection at \(x=\frac{\pi}{2}\) and \(x=\frac{3\pi}{2}\). At \(x=\pi\), \(q''\) is negative on both sides, so the concavity does not change there.
Example 4
Report an inflection point
Find the coordinates of the point of inflection of the graph of \(w(x)=e^x-x^2\).
Solution
The function \(w\) is differentiable for every \(x\), with
The second derivative exists everywhere, and it is 0 only where \(e^x=2\), at \(x=\ln 2\). Because \(e^x\) is increasing, \(w''<0\) for \(x<\ln 2\) and \(w''>0\) for \(x>\ln 2\). The sign changes at this only candidate, where \(w\) is continuous, so the graph has one point of inflection, at \(x=\ln 2\).
Its \(y\)-coordinate is the value of \(w\) itself:
The point of inflection is \(\big(\ln 2,\ 2-(\ln 2)^2\big)\).
Example 5
Handle an undefined second derivative
Find the \(x\)-coordinates of the points of inflection of the graph of \(k(x)=x^{5/3}(x-4)\).
Solution
The power \(x^{5/3}=\big(\sqrt[3]{x}\big)^5\) is defined for every \(x\), so \(k\) is continuous everywhere. With \(k(x)=x^{8/3}-4x^{5/3}\), the power rule gives
The second derivative is 0 at \(x=1\). It does not exist at \(x=0\), because the term \(x^{2/3}\) of \(k'\) has no derivative there. The function \(k\) is continuous at both inputs, so both are candidates. The numerator \(x-1\) changes sign at 1, and the denominator \(\sqrt[3]{x}\) has the sign of \(x\):
The sign changes at both candidates, so the graph has points of inflection at \(x=0\) and at \(x=1\). At \(x=0\), \(k''\) does not exist, even though \(k'(0)=0\) and the graph has a horizontal tangent line there.
Each example is one of the five skills of topic 5.6 in Which & Why: AP Calculus.