MatheramaMatherama
← Application of Derivatives
Application of Derivatives·Section 4·25 min read

Concavity

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 ff defined on an interval II 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,x2x_1, x_2 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, ff 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.

alt text

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.

Definition of Concavity Using Secants§

Consider two points (x1,f(x1))(x_1, f(x_1)) and (x2,f(x2))(x_2, f(x_2)) on the graph of ff, where x1<x2x_1 < x_2. The secant line connecting these points is the unique linear function given by

S(x)=f(x1)+f(x2)−f(x1)x2−x1(x−x1).S(x) = f(x_1) + \frac{f(x_2) - f(x_1)}{x_2 - x_1} (x - x_1).

alt text

To analyze how ff behaves relative to this secant line, take an intermediate point xx between x1x_1 and x2x_2. Expressing xx in terms of a parameter λ\lambda, we write

x=λx1+(1−λ)x2,where 0≤λ≤1.x = \lambda x_1 + (1-\lambda)x_2, \quad \text{where } 0 \leq \lambda \leq 1.

This representation ensures that xx remains between x1x_1 and x2x_2, with λ=1\lambda = 1 corresponding to x1x_1 and λ=0\lambda = 0 corresponding to x2x_2.

Substituting this value into the secant line equation,

S(λx1+(1−λ)x2)=f(x1)+f(x2)−f(x1)x2−x1((λx1+(1−λ)x2)−x1).S(\lambda x_1 + (1-\lambda)x_2) = f(x_1) + \frac{f(x_2) - f(x_1)}{x_2 - x_1} \big( (\lambda x_1 + (1-\lambda)x_2) - x_1 \big).

Since

(λx1+(1−λ)x2)−x1=(1−λ)(x2−x1),(\lambda x_1 + (1-\lambda)x_2) - x_1 = (1-\lambda)(x_2 - x_1),

it follows that

S(λx1+(1−λ)x2)=f(x1)+f(x2)−f(x1)x2−x1(1−λ)(x2−x1).S(\lambda x_1 + (1-\lambda)x_2) = f(x_1) + \frac{f(x_2) - f(x_1)}{x_2 - x_1} (1-\lambda)(x_2 - x_1).

Canceling x2−x1x_2 - x_1 in the fraction,

S(λx1+(1−λ)x2)=f(x1)+(1−λ)(f(x2)−f(x1)).S(\lambda x_1 + (1-\lambda)x_2) = f(x_1) + (1-\lambda)(f(x_2) - f(x_1)).

Rewriting terms,

S(λx1+(1−λ)x2)=(1−λ)f(x2)+λf(x1).S(\lambda x_1 + (1-\lambda)x_2) = (1-\lambda) f(x_2) + \lambda f(x_1).

A function ff is concave upwards (convex downwards) on II if, for all x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2 and for all λ∈[0,1]\lambda \in [0,1],

f(λx1+(1−λ)x2)≤(1−λ)f(x2)+λf(x1).f(\lambda x_1 + (1-\lambda)x_2) \leq (1-\lambda) f(x_2) + \lambda f(x_1).

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, ff is concave downwards (convex upwards) on II if, for all x1,x2∈Ix_1, x_2 \in I and all λ∈[0,1]\lambda \in [0,1],

f(λx1+(1−λ)x2)≥(1−λ)f(x2)+λf(x1).f(\lambda x_1 + (1-\lambda)x_2) \geq (1-\lambda) f(x_2) + \lambda f(x_1).

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 ff is concave upwards (convex downwards), its graph has a shape resembling a bowl (⌣\smile). Every secant line lies above or on the function.
  • If ff is concave downwards (convex upwards), its graph has a shape resembling an inverted bowl (⌢\frown). Every secant line lies below or on the function.

Defining Concavity using Tangents§

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 ff at a point xx is the unique straight line that just touches the curve at xx without crossing it locally. The equation of the tangent line at xx is given by:

Tx(y)=f(x)+m(y−x),T_x(y) = f(x) + m(y - x),

where mm is the slope of the tangent at xx. If ff is differentiable, the slope is given by m=f′(x)m = f'(x), so the equation simplifies to:

Tx(y)=f(x)+f′(x)(y−x).T_x(y) = f(x) + f'(x)(y - x).

This equation tells us how the function behaves in a small neighborhood around xx. To determine concavity, we compare the function f(y)f(y) with its tangent line Tx(y)T_x(y) for all points yy in the interval.


A function ff is concave upwards on an interval II if, for every x∈Ix \in I and for all y∈Iy \in I,

f(y)≥Tx(y).f(y) \geq T_x(y).

This means that at every point xx, the function lies above or on its tangent line. The graph never dips below any of its tangent lines.

Similarly, ff is concave downwards on II if, for every x∈Ix \in I and for all y∈Iy \in I,

f(y)≤Tx(y).f(y) \leq T_x(y).

This means that at every point xx, 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 ff defined on an interval II is said to be concave upwards if its slope increases as xx 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 ff be continuous on II, though it may not necessarily be differentiable everywhere.

Formally, a function ff that is continuous on II is concave upwards on II if f′f', wherever it exists, is an increasing function on II. That is, for any x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2,

f′(x1)≤f′(x2),f'(x_1) \leq f'(x_2),

where f′(x)f'(x) exists.

Similarly, ff is concave downwards on II if its slope decreases as xx moves from left to right. That is, the derivative, wherever it exists, is decreasing across the interval. Formally, a function ff that is continuous on II is concave downwards on II if f′f', wherever it exists, satisfies

f′(x1)≥f′(x2),f'(x_1) \geq f'(x_2),

for all x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2.

Consider the function f(x)=x2f(x) = x^2. To determine whether it is concave upwards or downwards, we analyze how its slope behaves. The derivative of ff is

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

Since f′(x)f'(x) increases as xx increases, this suggests that the function bends upwards. More formally, concavity is established by checking whether f′f' is increasing. Computing the second derivative,

f′′(x)=2,f''(x) = 2,

we see that it is positive for all xx. This confirms that f′f' is strictly increasing, meaning that ff satisfies the definition of concave upwards.

Visually, the function x2x^2 curves upwards at every point, never flattening out or bending downwards. The slopes of the tangent lines become steeper as xx 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′f'.

Using the Second Derivative to Decide Concavity§

First, let ff be a function that is continuous on an interval II but possibly non-differentiable at some points. If ff is concave upwards on II, then the second derivative, wherever it exists, must be nonnegative:

f′′(x)≥0for all x where f′′(x) exists.f''(x) \geq 0 \quad \text{for all } x \text{ where } f''(x) \text{ exists}.

Similarly, if ff is concave downwards on II, then

f′′(x)≤0for all x where f′′(x) exists.f''(x) \leq 0 \quad \text{for all } x \text{ where } f''(x) \text{ exists}.

This condition provides a necessary test for concavity, meaning that if ff is known to be concave upwards, then f′′(x)≥0f''(x) \geq 0 must hold at all points where f′′(x)f''(x) exists.

Examples

  1. Consider f(x)=exf(x) = e^x. Its derivatives are

    f′(x)=ex,f′′(x)=ex.f'(x) = e^x, \quad f''(x) = e^x.

    Since f′′(x)>0f''(x) > 0 for all x∈Rx \in \mathbb{R}, this confirms that ff is concave upwards everywhere.

  2. Consider f(x)=∣x∣f(x) = |x|. The first derivative is

    f′(x)={1,x>0,−1,x<0.f'(x) = \begin{cases} 1, & x > 0, \\ -1, & x < 0. \end{cases}

    Since f′f' is not continuous at x=0x = 0, the second derivative does not exist at x=0x = 0. However, for x≠0x \neq 0,

    f′′(x)=0for all x∈R∖{0}.f''(x) = 0 \quad \text{for all } x \in \mathbb{R} \setminus \{0\}.

    This suggests that f′′(x)=0f''(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∣f(x) = |x|. As observed, f′′(x)=0f''(x) = 0 for all x≠0x \neq 0, but the same would be true for another function, such as g(x)=−∣x∣g(x) = -|x|, which has

g′′(x)=0for all x∈R∖{0}.g''(x) = 0 \quad \text{for all } x \in \mathbb{R} \setminus \{0\}.

However, f(x)=∣x∣f(x) = |x| is concave upwards, while g(x)=−∣x∣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∣f(x) = e^{-|x|}

for x∈Rx \in \mathbb{R}. This function is continuous on R\mathbb{R} because both its left-hand and right-hand expressions match at x=0x = 0, and exponentials are continuous everywhere.

Now, we examine its differentiability. The function can be rewritten as a piecewise function:

f(x)={e−x,x≥0ex,x<0f(x) = \begin{cases} e^{-x}, & x \geq 0 \\ e^{x}, & x < 0 \end{cases}

Since exponentials are differentiable everywhere, we only need to check at x=0x = 0. Computing the derivatives on either side,

f′(x)={−e−x,x>0ex,x<0f'(x) = \begin{cases} - e^{-x}, & x > 0 \\ e^x, & x < 0 \end{cases}

Taking the limits,

lim⁡x→0+f′(x)=−1,lim⁡x→0−f′(x)=1.\lim_{x \to 0^+} f'(x) = -1, \quad \lim_{x \to 0^-} f'(x) = 1.

Since these limits are not equal, f′(x)f'(x) is discontinuous at x=0x = 0, implying that f(x)f(x) is not differentiable at x=0x = 0.

Next, consider the second derivative:

f′′(x)={e−x,x>0ex,x<0.f''(x) = \begin{cases} e^{-x}, & x > 0 \\ e^x, & x < 0. \end{cases}

Since both expressions are positive for x≠0x \neq 0, we conclude that f′′(x)>0f''(x) > 0 for all x≠0x \neq 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>0x > 0 or both in x<0x < 0), the function appears concave upward. But if the endpoints belong to different branches (one in x>0x > 0 and the other in x<0x < 0), then the secant lies below the function, contradicting concavity.

alt text

Thus, while f(x)f(x) is concave upward separately for x>0x > 0 and x<0x < 0, that is it is piecewise concave upwards, it fails to be globally concave upwards or downwards on R\mathbb{R}.

A Stricter Condition: The Second Derivative as a Sufficient Test

To make a stronger claim, we require a stricter assumption. Suppose ff is differentiable on II (not just continuous). Then we can indeed use the second derivative to decide concavity.

  • If f′′(x)≥0f''(x) \geq 0 wherever it exists for all x∈Ix \in I, then ff is concave upwards on II.
  • If f′′(x)≤0f''(x) \leq 0 wherever it exists for all x∈Ix \in I, then ff is concave downwards on II.

If ff 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.f(x) = x^2 |x|, \quad x \in \mathbb{R}.

Since ∣x∣|x| is continuous and polynomial functions are continuous, f(x)f(x) is continuous on R\mathbb{R}. To examine its differentiability, rewrite it in piecewise form:

f(x)={x3,x≥0−x3,x<0.f(x) = \begin{cases} x^3, & x \geq 0 \\ - x^3, & x < 0. \end{cases}

This function is differentiable everywhere except possibly at x=0x = 0. Compute its derivative separately for x>0x > 0 and x<0x < 0:

f′(x)={3x2,x>0−3x2,x<0.f'(x) = \begin{cases} 3x^2, & x > 0 \\ -3x^2, & x < 0. \end{cases}

Taking the limit as x→0x \to 0,

lim⁡x→0+f′(x)=0,lim⁡x→0−f′(x)=0.\lim_{x \to 0^+} f'(x) = 0, \quad \lim_{x \to 0^-} f'(x) = 0.

Since these limits agree, f′(x)f'(x) exists at x=0x = 0, and defining f′(0)=0f'(0) = 0 ensures f′(x)f'(x) is continuous everywhere. Thus,

f′(x)={3x2,x≥0−3x2,x<0.f'(x) = \begin{cases} 3x^2, & x \geq 0 \\ -3x^2, & x < 0. \end{cases}

Proceeding to the second derivative,

f′′(x)={6x,x>0−6x,x<0.f''(x) = \begin{cases} 6x, & x > 0 \\ -6x, & x < 0. \end{cases}

Evaluating at x=0x = 0,

lim⁡x→0+f′′(x)=0,lim⁡x→0−f′′(x)=0.\lim_{x \to 0^+} f''(x) = 0, \quad \lim_{x \to 0^-} f''(x) = 0.

Since these limits agree, define f′′(0)=0f''(0) = 0, ensuring f′′(x)f''(x) exists for all x∈Rx \in \mathbb{R}. Thus,

f′′(x)={6x,x≥0−6x,x<0.f''(x) = \begin{cases} 6x, & x \geq 0 \\ -6x, & x < 0. \end{cases}

Since f′′(x)≥0f''(x) \geq 0 for all x∈Rx \in \mathbb{R}, the function is concave upwards everywhere. Here is the graph:

alt text

Take another example:

Consider the function

f(x)=x43,x∈R.f(x) = x^{\frac{4}{3}}, \quad x \in \mathbb{R}.

Since power functions are continuous, f(x)f(x) is continuous for all xx. Compute its derivative:

f′(x)=43x13.f'(x) = \frac{4}{3} x^{\frac{1}{3}}.

This function is differentiable everywhere since x13x^{\frac{1}{3}} is defined for all x∈Rx \in \mathbb{R}. Proceeding to the second derivative,

f′′(x)=49x−23.f''(x) = \frac{4}{9} x^{-\frac{2}{3}}.

For all x≠0x \neq 0, f′′(x)f''(x) exists and satisfies

f′′(x)>0.f''(x) > 0.

Even though f′′(x)f''(x) does not exist at x=0x = 0, it is positive wherever defined, ensuring f(x)f(x) is concave upwards everywhere. Here is its graph:

graph of f(x) = x^(4/3)

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 ff be a function that is differentiable on an open interval (a,b)(a, b). A point c∈(a,b)c \in (a, b) is said to be a critical point of second kind if the second derivative f′′(c)f''(c) either vanishes, i.e.,

f′′(c)=0,f''(c) = 0,

or fails to exist. Such points are potential locations where the concavity of ff may change. To determine the precise nature of concavity in different regions, we analyze the sign of f′′(x)f''(x) on the intervals defined by these points.

Consider the function

f(x)=x3−3x+1.f(x) = x^3 - 3x + 1.

To determine where the function is concave upward or concave downward, we analyze its second derivative.

Differentiating,

f′(x)=3x2−3.f'(x) = 3x^2 - 3.

Differentiating again,

f′′(x)=6x.f''(x) = 6x.

A critical point of second kind occurs where f′′(x)=0f''(x) = 0 or where f′′(x)f''(x) is undefined. Since f′′(x)=6xf''(x) = 6x is defined everywhere, we solve

6x=0  ⟹  x=0.6x = 0 \implies x = 0.

This is a candidate for a change in concavity.

To determine the concavity on either side of x=0x = 0, we check the sign of f′′(x)f''(x) in the intervals (−∞,0)(-\infty,0) and (0,∞)(0,\infty). For x<0x < 0, choosing x=−1x = -1 gives

f′′(−1)=6(−1)=−6<0,f''(-1) = 6(-1) = -6 < 0,

which implies f(x)f(x) is concave downward for x<0x < 0.

For x>0x > 0, choosing x=1x = 1 gives

f′′(1)=6(1)=6>0,f''(1) = 6(1) = 6 > 0,

which implies f(x)f(x) is concave upward for x>0x > 0.

Hence, the function is concave downward on (−∞,0)(-\infty,0) and concave upward on (0,∞)(0,\infty).

General Procedure to find intervals of concavity

To determine the intervals where a function is concave upward or concave downward, follow these general steps:

  1. Ensure Differentiability:

    The function f(x)f(x) must be at least differentiable on the given interval (or on subintervals where differentiability holds). If f(x)f(x) is not differentiable at some points, then we apply general secant method.

  2. Compute the Second Derivative:

    Differentiate f(x)f(x) twice to obtain f′′(x)f''(x). That is,

    f′′(x)=d2dx2f(x).f''(x) = \frac{d^2}{dx^2} f(x).
  3. Find Critical Points of second kind:

    Solve for xx where f′′(x)=0f''(x) = 0 or where f′′(x)f''(x) does not exist. These points are candidates where concavity might change.

  4. 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)f''(x) at that point:

    • If f′′(x)>0f''(x) > 0 on an interval, the function is concave upward there.
    • If f′′(x)<0f''(x) < 0 on an interval, the function is concave downward there.

A sign graph of f′′(x)f''(x) can be useful for visualizing how the second derivative behaves across the domain, aiding in determining concavity changes systematically.

Inflection Points§

Definition

An inflection point of a function ff is a point where the concavity of ff changes, meaning ff 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.

alt text

An inflection point of a function ff is a point where the function changes concavity. That is, the function transitions from being concave up to concave down, or vice versa.

Let ff be a continuous function on an open interval (a,b)(a, b), and suppose c∈(a,b)c \in (a, b) is a point where ff is twice differentiable in a neighborhood of cc (except possibly at cc itself). Then, cc is an inflection point if the second derivative changes sign around cc, meaning:

f′′(x)>0for x<c,andf′′(x)<0for x>c,f''(x) > 0 \quad \text{for } x < c, \quad \text{and} \quad f''(x) < 0 \quad \text{for } x > c,

or vice versa:

f′′(x)<0for x<c,andf′′(x)>0for x>c.f''(x) < 0 \quad \text{for } x < c, \quad \text{and} \quad f''(x) > 0 \quad \text{for } x > c.

Thus, the sign of f′′(x)f''(x) must change as xx moves through cc.

The Role of f′′(c)f''(c)

  • If f′′(c)f''(c) exists, then necessarily f′′(c)=0f''(c) = 0, since a change in sign would require passing through zero.
  • However, f′′(c)f''(c) does not need to exist at cc for cc to be an inflection point. The function can still change concavity if f′′(x)f''(x) is positive on one side of cc and negative on the other, even if f′′(c)f''(c) is undefined.

Example of an Inflection Point with f′′(c)=0f''(c) = 0

Consider f(x)=x3f(x) = x^3, which is twice differentiable everywhere:

f′′(x)=6x.f''(x) = 6x.

Here, f′′(x)f''(x) changes sign at x=0x = 0, and since f′′(0)=0f''(0) = 0, x=0x = 0 is an inflection point.

Example of an Inflection Point Where f′′(c)f''(c) Does Not Exist

Consider the function

f(x)=x13,x∈R.f(x) = x^{\frac{1}{3}}, \quad x \in \mathbb{R}.

Differentiating,

f′(x)=13x−23.f'(x) = \frac{1}{3} x^{-\frac{2}{3}}.

For x>0x > 0, f′(x)f'(x) is positive and finite. For x<0x < 0, f′(x)f'(x) is also positive and finite. However, at x=0x = 0,

lim⁡x→0+f′(x)=+∞,lim⁡x→0−f′(x)=+∞.\lim_{x \to 0^+} f'(x) = +\infty, \quad \lim_{x \to 0^-} f'(x) = +\infty.

Since these limits are infinite, f′(0)f'(0) does not exist, meaning the function has a vertical tangent at x=0x = 0.

Differentiating again,

f′′(x)=−29x−53,x≠0.f''(x) = -\frac{2}{9} x^{-\frac{5}{3}}, \quad x \neq 0.

For x>0x > 0, f′′(x)<0f''(x) < 0, indicating concave down behavior. For x<0x < 0, f′′(x)>0f''(x) > 0, indicating concave up behavior. Since f′′(x)f''(x) changes sign at x=0x = 0, the function has an inflection point at x=0x = 0, even though f′′(0)f''(0) does not exist.

the graph of cube root of x

How to find inflection points

Given a continuous function ff on an open interval (a,b)(a, b), to determine its inflection points:

Differentiate f(x)f(x) twice to obtain f′′(x)f''(x). Solve for points where f′′(x)=0f''(x) = 0 or where f′′(x)f''(x) does not exist. These points are called critical points of the second kind.

To confirm an inflection point at x=cx = c, check the sign of f′′(x)f''(x) on either side of cc. If f′′(x)f''(x) changes sign at cc, then cc is an inflection point.

Example: f(x)=x5/3f(x) = x^{5/3}§

Compute the first derivative:

f′(x)=53x2/3.f'(x) = \frac{5}{3} x^{2/3}.

Compute the second derivative:

f′′(x)=109x−1/3.f''(x) = \frac{10}{9} x^{-1/3}.

The second derivative does not exist at x=0x = 0. For x>0x > 0, f′′(x)>0f''(x) > 0 (concave up). For x<0x < 0, f′′(x)<>0f''(x) <> 0 (concave down). Since f′′(x)f''(x) changes sign at x=0x = 0, there is a inflection point at x=0x = 0.

graph of x^(5/3)

Section 4 of 8 · Application of Derivatives

Mark this section complete when you have worked through its proofs.