A function may increase or decrease, but its manner of doing so can differ significantly. Some functions rise in such a way that they bend upwards, while others rise but bend downwards. Similarly, a function that decreases may do so while curving in either direction. To distinguish these behaviors, we introduce the concept of concavity, which describes how a function bends in relation to its secant lines.
A function f defined on an interval I is said to be concave upwards (also called convex downwards) if, for any two points on its graph, the function lies below or on the secant line connecting them. This means that if we take any two points x1,x2 in the domain and consider an intermediate point between them, the function value at that point does not exceed the corresponding value on the secant line.
Conversely, f is concave downwards (also called convex upwards) if the function lies above or on all secant lines. This means that for any two points in the domain, the function value at an intermediate point is at least as large as the corresponding secant line value.
These conditions provide a way to determine whether a function bends upwards or downwards without having to graph it explicitly. To express these ideas precisely, we introduce the secant line condition.
Consider two points (x1,f(x1)) and (x2,f(x2)) on the graph of f, where x1<x2. The secant line connecting these points is the unique linear function given by
S(x)=f(x1)+x2−x1f(x2)−f(x1)(x−x1).
To analyze how f behaves relative to this secant line, take an intermediate point x between x1 and x2. Expressing x in terms of a parameter λ, we write
x=λx1+(1−λ)x2,where 0≤λ≤1.
This representation ensures that x remains between x1 and x2, with λ=1 corresponding to x1 and λ=0 corresponding to x2.
Substituting this value into the secant line equation,
A function f is concave upwards (convex downwards) on I if, for all x1,x2∈I with x1<x2 and for all λ∈[0,1],
f(λx1+(1−λ)x2)≤(1−λ)f(x2)+λf(x1).
This condition states that at every intermediate point, the function value is at most the corresponding secant line value. That is, the function lies below or on every secant line, forming an upward-bending shape.
Similarly, f is concave downwards (convex upwards) on I if, for all x1,x2∈I and all λ∈[0,1],
f(λx1+(1−λ)x2)≥(1−λ)f(x2)+λf(x1).
This means that at every intermediate point, the function value is at least the corresponding secant line value. That is, the function lies above or on every secant line, forming a downward-bending shape.
If f is concave upwards (convex downwards), its graph has a shape resembling a bowl (⌣). Every secant line lies above or on the function.
If f is concave downwards (convex upwards), its graph has a shape resembling an inverted bowl (⌢). Every secant line lies below or on the function.
A function’s concavity describes how its graph bends—whether it curves upwards like a bowl or downwards like an arch. Previously, concavity was defined using secant lines, which compare the function’s values at two different points. We can also define concavity using tangent lines. While secant lines examine the function’s behavior over an interval, tangent lines describe how the function bends at every individual point.
The tangent line to a function f at a point x is the unique straight line that just touches the curve at x without crossing it locally. The equation of the tangent line at x is given by:
Tx(y)=f(x)+m(y−x),
where m is the slope of the tangent at x. If f is differentiable, the slope is given by m=f′(x), so the equation simplifies to:
Tx(y)=f(x)+f′(x)(y−x).
This equation tells us how the function behaves in a small neighborhood around x. To determine concavity, we compare the function f(y) with its tangent line Tx(y) for all points y in the interval.
A function f is concave upwards on an interval I if, for every x∈I and for all y∈I,
f(y)≥Tx(y).
This means that at every point x, the function lies above or on its tangent line. The graph never dips below any of its tangent lines.
Similarly, f is concave downwards on I if, for every x∈I and for all y∈I,
f(y)≤Tx(y).
This means that at every point x, the function lies below or on its tangent line. The graph never rises above any of its tangent lines.
Concavity and the Behavior of the First Derivative§
We can also characterize concavity by examining how the slope of the function changes across an interval. The function’s derivative provides a direct way to determine whether the function bends upwards or downwards.
A function f defined on an interval I is said to be concave upwards if its slope increases as x moves from left to right. That is, at any two points in the interval, the slope at the later point is greater than or equal to the slope at the earlier point. To ensure a well-defined notion of concavity at every point, we require that f be continuous on I, though it may not necessarily be differentiable everywhere.
Formally, a function f that is continuous on I is concave upwards on I if f′, wherever it exists, is an increasing function on I. That is, for any x1,x2∈I with x1<x2,
f′(x1)≤f′(x2),
where f′(x) exists.
Similarly, f is concave downwards on I if its slope decreases as x moves from left to right. That is, the derivative, wherever it exists, is decreasing across the interval. Formally, a function f that is continuous on I is concave downwards on I if f′, wherever it exists, satisfies
f′(x1)≥f′(x2),
for all x1,x2∈I with x1<x2.
Consider the function f(x)=x2. To determine whether it is concave upwards or downwards, we analyze how its slope behaves. The derivative of f is
f′(x)=2x.
Since f′(x) increases as x increases, this suggests that the function bends upwards. More formally, concavity is established by checking whether f′ is increasing. Computing the second derivative,
f′′(x)=2,
we see that it is positive for all x. This confirms that f′ is strictly increasing, meaning that f satisfies the definition of concave upwards.
Visually, the function x2 curves upwards at every point, never flattening out or bending downwards. The slopes of the tangent lines become steeper as x moves from left to right. This example illustrates how the second derivative provides a direct method to determine concavity, without needing to compare secants or examine specific values of f′.
First, let f be a function that is continuous on an interval I but possibly non-differentiable at some points. If f is concave upwards on I, then the second derivative, wherever it exists, must be nonnegative:
f′′(x)≥0for all x where f′′(x) exists.
Similarly, if f is concave downwards on I, then
f′′(x)≤0for all x where f′′(x) exists.
This condition provides a necessary test for concavity, meaning that if f is known to be concave upwards, then f′′(x)≥0 must hold at all points where f′′(x) exists.
Examples
Consider f(x)=ex. Its derivatives are
f′(x)=ex,f′′(x)=ex.
Since f′′(x)>0 for all x∈R, this confirms that f is concave upwards everywhere.
Consider f(x)=∣x∣. The first derivative is
f′(x)={1,−1,x>0,x<0.
Since f′ is not continuous at x=0, the second derivative does not exist at x=0. However, for x=0,
f′′(x)=0for all x∈R∖{0}.
This suggests that f′′(x)=0 almost everywhere.
The Converse is Not True
The previous conditions only provide a necessary test, but not a sufficient one. Consider the function f(x)=∣x∣. As observed, f′′(x)=0 for all x=0, but the same would be true for another function, such as g(x)=−∣x∣, which has
g′′(x)=0for all x∈R∖{0}.
However, f(x)=∣x∣ is concave upwards, while g(x)=−∣x∣ is concave downwards, as we can understand from secant analysis. This shows that knowing only the second derivative is not enough to determine concavity: two functions with different concavity can have the same second derivative at all points where it exists.
Take another example:
Consider the function
f(x)=e−∣x∣
for x∈R. This function is continuous on R because both its left-hand and right-hand expressions match at x=0, and exponentials are continuous everywhere.
Now, we examine its differentiability. The function can be rewritten as a piecewise function:
f(x)={e−x,ex,x≥0x<0
Since exponentials are differentiable everywhere, we only need to check at x=0. Computing the derivatives on either side,
f′(x)={−e−x,ex,x>0x<0
Taking the limits,
x→0+limf′(x)=−1,x→0−limf′(x)=1.
Since these limits are not equal, f′(x) is discontinuous at x=0, implying that f(x) is not differentiable atx=0.
Next, consider the second derivative:
f′′(x)={e−x,ex,x>0x<0.
Since both expressions are positive for x=0, we conclude that f′′(x)>0 for all x=0.
To analyze concavity, we examine the behavior of secants. If both endpoints of a secant are within the same branch (i.e., either both in x>0 or both in x<0), the function appears concave upward. But if the endpoints belong to different branches (one in x>0 and the other in x<0), then the secant lies below the function, contradicting concavity.
Thus, while f(x) is concave upward separately for x>0 and x<0, that is it is piecewise concave upwards, it fails to be globally concave upwards or downwards on R.
A Stricter Condition: The Second Derivative as a Sufficient Test
To make a stronger claim, we require a stricter assumption. Suppose f is differentiable on I (not just continuous). Then we can indeed use the second derivative to decide concavity.
If f′′(x)≥0 wherever it exists for all x∈I, then f is concave upwards on I.
If f′′(x)≤0 wherever it exists for all x∈I, then f is concave downwards on I.
If f is only continuous but not differentiable, the second derivative test cannot always be applied, as we saw in examples.
Consider the function
f(x)=x2∣x∣,x∈R.
Since ∣x∣ is continuous and polynomial functions are continuous, f(x) is continuous on R. To examine its differentiability, rewrite it in piecewise form:
f(x)={x3,−x3,x≥0x<0.
This function is differentiable everywhere except possibly at x=0. Compute its derivative separately for x>0 and x<0:
f′(x)={3x2,−3x2,x>0x<0.
Taking the limit as x→0,
x→0+limf′(x)=0,x→0−limf′(x)=0.
Since these limits agree, f′(x) exists at x=0, and defining f′(0)=0 ensures f′(x) is continuous everywhere. Thus,
f′(x)={3x2,−3x2,x≥0x<0.
Proceeding to the second derivative,
f′′(x)={6x,−6x,x>0x<0.
Evaluating at x=0,
x→0+limf′′(x)=0,x→0−limf′′(x)=0.
Since these limits agree, define f′′(0)=0, ensuring f′′(x) exists for all x∈R. Thus,
f′′(x)={6x,−6x,x≥0x<0.
Since f′′(x)≥0 for all x∈R, the function is concave upwards everywhere. Here is the graph:
Take another example:
Consider the function
f(x)=x34,x∈R.
Since power functions are continuous, f(x) is continuous for all x. Compute its derivative:
f′(x)=34x31.
This function is differentiable everywhere since x31 is defined for all x∈R. Proceeding to the second derivative,
f′′(x)=94x−32.
For all x=0, f′′(x) exists and satisfies
f′′(x)>0.
Even though f′′(x) does not exist at x=0, it is positive wherever defined, ensuring f(x) is concave upwards everywhere. Here is its graph:
Critical Points of second kind and finding intervals of Concavity§
In the study of monotonicity, we identify critical points where a function might change from increasing to decreasing or vice versa. Analogously, to determine the concavity of a function, we seek points where the function might transition between concave upward and concave downward behavior. These points serve as candidates for changes in concavity and allow us to partition the domain into intervals where the function exhibits uniform concavity.
Let f be a function that is differentiable on an open interval (a,b). A point c∈(a,b) is said to be a critical point of second kind if the second derivative f′′(c) either vanishes, i.e.,
f′′(c)=0,
or fails to exist. Such points are potential locations where the concavity of f may change. To determine the precise nature of concavity in different regions, we analyze the sign of f′′(x) on the intervals defined by these points.
Consider the function
f(x)=x3−3x+1.
To determine where the function is concave upward or concave downward, we analyze its second derivative.
Differentiating,
f′(x)=3x2−3.
Differentiating again,
f′′(x)=6x.
A critical point of second kind occurs where f′′(x)=0 or where f′′(x) is undefined. Since f′′(x)=6x is defined everywhere, we solve
6x=0⟹x=0.
This is a candidate for a change in concavity.
To determine the concavity on either side of x=0, we check the sign of f′′(x) in the intervals (−∞,0) and (0,∞). For x<0, choosing x=−1 gives
f′′(−1)=6(−1)=−6<0,
which implies f(x) is concave downward for x<0.
For x>0, choosing x=1 gives
f′′(1)=6(1)=6>0,
which implies f(x) is concave upward for x>0.
Hence, the function is concave downward on (−∞,0) and concave upward on (0,∞).
General Procedure to find intervals of concavity
To determine the intervals where a function is concave upward or concave downward, follow these general steps:
Ensure Differentiability:
The function f(x) must be at least differentiable on the given interval (or on subintervals where differentiability holds). If f(x) is not differentiable at some points, then we apply general secant method.
Compute the Second Derivative:
Differentiate f(x) twice to obtain f′′(x). That is,
f′′(x)=dx2d2f(x).
Find Critical Points of second kind:
Solve for x where f′′(x)=0 or where f′′(x) does not exist. These points are candidates where concavity might change.
Determine Concavity on Intervals:
The points obtained in the previous step partition the domain into subintervals. Choose a test point in each interval and evaluate f′′(x) at that point:
If f′′(x)>0 on an interval, the function is concave upward there.
If f′′(x)<0 on an interval, the function is concave downward there.
A sign graph of f′′(x) can be useful for visualizing how the second derivative behaves across the domain, aiding in determining concavity changes systematically.
An inflection point of a function f is a point where the concavity of f changes, meaning f transitions from being concave upward to concave downward or vice versa. However, a mere change in concavity is not sufficient to conclude that a point is an inflection point. A change in concavity can occur at points of discontinuity. Such points do not qualify as inflection points.
An inflection point of a function f is a point where the function changes concavity. That is, the function transitions from being concave up to concave down, or vice versa.
Let f be a continuous function on an open interval (a,b), and suppose c∈(a,b) is a point where f is twice differentiable in a neighborhood of c (except possibly at c itself). Then, c is an inflection point if the second derivative changes sign around c, meaning:
f′′(x)>0for x<c,andf′′(x)<0for x>c,
or vice versa:
f′′(x)<0for x<c,andf′′(x)>0for x>c.
Thus, the sign of f′′(x) must change as x moves through c.
The Role of f′′(c)
If f′′(c)exists, then necessarily f′′(c)=0, since a change in sign would require passing through zero.
However, f′′(c)does not need to exist at c for c to be an inflection point. The function can still change concavity if f′′(x) is positive on one side of c and negative on the other, even if f′′(c) is undefined.
Example of an Inflection Point with f′′(c)=0
Consider f(x)=x3, which is twice differentiable everywhere:
f′′(x)=6x.
Here, f′′(x) changes sign at x=0, and since f′′(0)=0, x=0 is an inflection point.
Example of an Inflection Point Where f′′(c) Does Not Exist
Consider the function
f(x)=x31,x∈R.
Differentiating,
f′(x)=31x−32.
For x>0, f′(x) is positive and finite. For x<0, f′(x) is also positive and finite. However, at x=0,
x→0+limf′(x)=+∞,x→0−limf′(x)=+∞.
Since these limits are infinite, f′(0) does not exist, meaning the function has a vertical tangent at x=0.
Differentiating again,
f′′(x)=−92x−35,x=0.
For x>0, f′′(x)<0, indicating concave down behavior. For x<0, f′′(x)>0, indicating concave up behavior. Since f′′(x) changes sign at x=0, the function has an inflection point at x=0, even though f′′(0) does not exist.
How to find inflection points
Given a continuous function f on an open interval (a,b), to determine its inflection points:
Differentiate f(x) twice to obtain f′′(x). Solve for points where f′′(x)=0 or where f′′(x) does not exist. These points are called critical points of the second kind.
To confirm an inflection point at x=c, check the sign of f′′(x) on either side of c. If f′′(x) changes sign at c, then c is an inflection point.
The second derivative does not exist at x=0. For x>0, f′′(x)>0 (concave up). For x<0, f′′(x)<>0 (concave down). Since f′′(x) changes sign at x=0, there is a inflection point at x=0.
Section 4 of 8 · Application of Derivatives
Mark this section complete when you have worked through its proofs.
Type any topic, theorem, or concept to jump directly to the section.