MatheramaMatherama
← Differentiation
Differentiation·Section 9·7 min read

Higher Order Derivatives

Higher-Order Derivatives: Rigorous Definition and Notation§

If a function y=f(x)y = f(x) is differentiable, we can compute its first derivative f′(x)f'(x) or dydx\frac{dy}{dx}, which represents the rate of change of yy with respect to xx. If this derivative itself is differentiable, we can differentiate it again to obtain the second derivative, and this process can be continued to define derivatives of higher order.

Second-Order Derivative

The second derivative is defined as the derivative of the first derivative:

ddx(dydx)=d2ydx2\frac{d}{dx} \left( \frac{dy}{dx} \right) = \frac{d^2y}{dx^2}

or equivalently, in function notation:

ddx(f′(x))=f′′(x)\frac{d}{dx} \left( f'(x) \right) = f''(x)

This represents the rate of change of the first derivative, which provides information about the curvature or concavity of the function (we will learn later the correct interpretation).

Third-Order Derivative

If the second derivative exists and is differentiable, we can differentiate it again:

ddx(d2ydx2)=d3ydx3\frac{d}{dx} \left( \frac{d^2y}{dx^2} \right) = \frac{d^3y}{dx^3}

or in function notation:

ddx(f′′(x))=f′′′(x)\frac{d}{dx} \left( f''(x) \right) = f'''(x)

nnth-Order Derivative

Proceeding inductively, if the (n−1)(n-1)th derivative exists and is differentiable, then the nnth-order derivative is defined as:

ddx(dn−1ydxn−1)=dnydxn\frac{d}{dx} \left( \frac{d^{n-1}y}{dx^{n-1}} \right) = \frac{d^n y}{dx^n}

or, equivalently,

ddx(f(n−1)(x))=f(n)(x)\frac{d}{dx} \left( f^{(n-1)}(x) \right) = f^{(n)}(x)

where f(n)(x)f^{(n)}(x) represents the nnth derivative of f(x)f(x).

Thus, the process of differentiation can be iterated indefinitely, provided that the required derivatives exist. The notation follows a structured pattern:

  • For small values of nn:

    f′(x),f′′(x),f′′′(x)f'(x), \quad f''(x), \quad f'''(x)
  • For n≥4n \geq 4, parentheses are used:

    f(4)(x),f(5)(x),…,f(n)(x)f^{(4)}(x), \quad f^{(5)}(x), \quad \dots, \quad f^{(n)}(x)
  • In Leibniz notation, the general form is:

    dnydxn\frac{d^n y}{dx^n}

which emphasizes that the differentiation operator ddx\frac{d}{dx} is applied nn times.

nth order derivatives of some common functions§

Let us now calculate the nnth-order derivatives of some common functions by differentiating repeatedly and then generalizing the pattern using induction.


1. Power Function: f(x)=xmf(x) = x^m

We begin with a power function f(x)=xmf(x) = x^m, where mm is any real number. The first derivative is:

f′(x)=mxm−1.f'(x) = m x^{m-1}.

Differentiating again,

f′′(x)=m(m−1)xm−2.f''(x) = m (m-1) x^{m-2}.

Continuing this process, we observe the pattern:

f(n)(x)=m(m−1)(m−2)…(m−n+1)xm−n.f^{(n)}(x) = m (m-1) (m-2) \dots (m-n+1) x^{m-n}.

Using factorial notation, we write:

f(n)(x)=m!(m−n)!xm−n,for m≥n.f^{(n)}(x) = \frac{m!}{(m-n)!} x^{m-n}, \quad \text{for } m \geq n.

For n>mn > m, the derivative vanishes:

f(n)(x)=0,for n>m.f^{(n)}(x) = 0, \quad \text{for } n > m.

2. Exponential Function: f(x)=exf(x) = e^x

The function exe^x is unique in that differentiating it any number of times gives the same function:

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

Thus, for any n≥1n \geq 1,

f(n)(x)=ex.f^{(n)}(x) = e^x.

3. General Exponential Function: f(x)=axf(x) = a^x

For a constant base a>0a > 0, the first derivative is:

f′(x)=(ln⁡a)ax.f'(x) = (\ln a) a^x.

Differentiating again,

f′′(x)=(ln⁡a)2ax.f''(x) = (\ln a)^2 a^x.

By induction, the nnth derivative follows as:

f(n)(x)=(ln⁡a)nax.f^{(n)}(x) = (\ln a)^n a^x.

4. Reciprocal Function: f(x)=1xf(x) = \frac{1}{x}

Rewriting as f(x)=x−1f(x) = x^{-1}, the first derivative is:

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

Differentiating again,

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

Proceeding inductively, we obtain:

f(n)(x)=(−1)nn!xn+1,n≥1.f^{(n)}(x) = (-1)^n \frac{n!}{x^{n+1}}, \quad n \geq 1.

5. Reciprocal of a Linear Function: f(x)=1ax+bf(x) = \frac{1}{ax+b}

Using the chain rule, the first derivative is:

f′(x)=−a(ax+b)2.f'(x) = -\frac{a}{(ax+b)^2}.

Differentiating again,

f′′(x)=2a2(ax+b)3.f''(x) = \frac{2a^2}{(ax+b)^3}.

Observing the pattern, we generalize:

f(n)(x)=(−1)nn!an(ax+b)n+1,n≥1.f^{(n)}(x) = (-1)^n \frac{n! a^n}{(ax+b)^{n+1}}, \quad n \geq 1.

6. Sine Function: f(x)=sin⁡xf(x) = \sin x

The derivatives of sin⁡x\sin x follow a cyclic pattern:

f′(x)=cos⁡x,f′′(x)=−sin⁡x,f′′′(x)=−cos⁡x,f(4)(x)=sin⁡x.f'(x) = \cos x, \quad f''(x) = -\sin x, \quad f'''(x) = -\cos x, \quad f^{(4)}(x) = \sin x.

Extending this to the nnth derivative, we observe:

f(n)(x)=sin⁡(x+nπ2).f^{(n)}(x) = \sin \left( x + n \frac{\pi}{2} \right).

7. Cosine Function: f(x)=cos⁡xf(x) = \cos x

Similar to the sine function, the derivatives of cos⁡x\cos x repeat every four steps:

f′(x)=−sin⁡x,f′′(x)=−cos⁡x,f′′′(x)=sin⁡x,f(4)(x)=cos⁡x.f'(x) = -\sin x, \quad f''(x) = -\cos x, \quad f'''(x) = \sin x, \quad f^{(4)}(x) = \cos x.

Thus, the general formula for the nnth derivative is:

f(n)(x)=cos⁡(x+nπ2).f^{(n)}(x) = \cos \left( x + n \frac{\pi}{2} \right).

8. Product Function: f(x)=xexf(x) = x e^x

We now compute the nnth derivative of f(x)=xexf(x) = x e^x. Using the product rule:

f′(x)=(x+1)ex.f'(x) = (x+1)e^x.

Differentiating again,

f′′(x)=(x+2)ex.f''(x) = (x+2)e^x.

Repeating this process, we obtain the general form:

f(n)(x)=(x+n)ex.f^{(n)}(x) = (x+n) e^x.

Summary of Results

Function nnth Derivative
xmx^m m!(m−n)!xm−n,n≤m\frac{m!}{(m-n)!} x^{m-n}, \quad n \leq m; 0 otherwise
exe^x exe^x
axa^x (ln⁡a)nax(\ln a)^n a^x
1x\frac{1}{x} (−1)nn!xn+1(-1)^n \frac{n!}{x^{n+1}}
1ax+b\frac{1}{ax+b} (−1)nn!an(ax+b)n+1(-1)^n \frac{n! a^n}{(ax+b)^{n+1}}
sin⁡x\sin x sin⁡(x+nπ2)\sin \left( x + n \frac{\pi}{2} \right)
cos⁡x\cos x cos⁡(x+nπ2)\cos \left( x + n \frac{\pi}{2} \right)
xexx e^x (x+n)ex(x+n) e^x

These formulas illustrate how different types of functions exhibit distinct patterns in their higher-order derivatives. Understanding these patterns allows for efficient computation of derivatives in various mathematical contexts.

Leibniz Rule for product of two fucntions§

Let us compute the derivatives of a product of two differentiable functions f(x)f(x) and g(x)g(x) systematically, starting with the first few derivatives and then generalizing to the nnth-order case.

First Derivative (Standard Product Rule)

Applying the product rule:

ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x).\frac{d}{dx} [f(x) g(x)] = f'(x) g(x) + f(x) g'(x).

This formula states that the derivative of a product is the sum of two terms: one where we differentiate f(x)f(x) while keeping g(x)g(x) fixed, and another where we differentiate g(x)g(x) while keeping f(x)f(x) fixed.


Second Derivative

Differentiating both sides again:

d2dx2[f(x)g(x)]=ddx[f′(x)g(x)+f(x)g′(x)].\frac{d^2}{dx^2} [f(x) g(x)] = \frac{d}{dx} \left[ f'(x) g(x) + f(x) g'(x) \right].

Applying the product rule to each term:

=f′′(x)g(x)+f′(x)g′(x)+f′(x)g′(x)+f(x)g′′(x).= f''(x) g(x) + f'(x) g'(x) + f'(x) g'(x) + f(x) g''(x).

Rearranging,

d2dx2[f(x)g(x)]=f′′(x)g(x)+2f′(x)g′(x)+f(x)g′′(x).\frac{d^2}{dx^2} [f(x) g(x)] = f''(x) g(x) + 2 f'(x) g'(x) + f(x) g''(x).

Notice that the coefficient 2 appears in front of the middle term.


Third Derivative

Differentiating again:

d3dx3[f(x)g(x)]=ddx[f′′(x)g(x)+2f′(x)g′(x)+f(x)g′′(x)].\frac{d^3}{dx^3} [f(x) g(x)] = \frac{d}{dx} \left[ f''(x) g(x) + 2 f'(x) g'(x) + f(x) g''(x) \right].

Applying the product rule to each term:

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

Rearranging,

d3dx3[f(x)g(x)]=f′′′(x)g(x)+3f′′(x)g′(x)+3f′(x)g′′(x)+f(x)g′′′(x).\frac{d^3}{dx^3} [f(x) g(x)] = f'''(x) g(x) + 3 f''(x) g'(x) + 3 f'(x) g''(x) + f(x) g'''(x).

The coefficients 1, 3, 3, 1 are exactly the third row of Pascal’s triangle (binomial coefficients).


Pattern and Generalization

Observing the derivatives, we notice the general structure:

dndxn[f(x)g(x)]=∑k=0n(nk)f(k)(x)g(n−k)(x).\frac{d^n}{dx^n} [f(x) g(x)] = \sum_{k=0}^{n} \binom{n}{k} f^{(k)}(x) g^{(n-k)}(x).

where (nk)\binom{n}{k} is the binomial coefficient:

(nk)=n!k!(n−k)!.\binom{n}{k} = \frac{n!}{k!(n-k)!}.

This follows by induction and generalizes the product rule to higher-order derivatives.

Thus, for any order nn, the derivative of a product follows the structure of expanding a binomial expression, where each term consists of a combination of derivatives of f(x)f(x) and g(x)g(x) multiplied by the corresponding binomial coefficient. COnsider the following example:

Let f(x)=x2f(x) = x^2 and g(x)=exg(x) = e^x. We compute d3dx3(x2ex)\frac{d^3}{dx^3} (x^2 e^x):

Applying Leibniz's rule:

d3dx3(x2ex)=∑k=03(3k)f(k)(x)g(3−k)(x).\frac{d^3}{dx^3} (x^2 e^x) = \sum_{k=0}^{3} \binom{3}{k} f^{(k)}(x) g^{(3-k)}(x).

Computing individual terms:

  • f(x)=x2⇒f(0)(x)=x2,f(1)(x)=2x,f(2)(x)=2,f(3)(x)=0f(x) = x^2 \Rightarrow f^{(0)}(x) = x^2, \quad f^{(1)}(x) = 2x, \quad f^{(2)}(x) = 2, \quad f^{(3)}(x) = 0.
  • g(x)=ex⇒g(n)(x)=exg(x) = e^x \Rightarrow g^{(n)}(x) = e^x for all nn.

Substituting:

d3dx3(x2ex)=(30)x2ex+(31)2xex+(32)2ex+(33)0.\frac{d^3}{dx^3} (x^2 e^x) = \binom{3}{0} x^2 e^x + \binom{3}{1} 2x e^x + \binom{3}{2} 2 e^x + \binom{3}{3} 0.

Simplifying:

(x2+6x+6)ex.(x^2 + 6x + 6) e^x.

Double Derivative of Inverse of a Function§

Let ff be an invertible function, and let gg be its inverse, so that g(x)=f−1(x)g(x) = f^{-1}(x). We already know that the first derivative of g(x)g(x) is given by

g′(x)=1f′(g(x)).g'(x) = \frac{1}{f'(g(x))}.

Differentiating both sides again,

g′′(x)=ddx(1f′(g(x))).g''(x) = \frac{d}{dx} \left( \frac{1}{f'(g(x))} \right).

Applying the chain rule,

g′′(x)=−1[f′(g(x))]2⋅ddx[f′(g(x))].g''(x) = -\frac{1}{[f'(g(x))]^2} \cdot \frac{d}{dx} [f'(g(x))].

Since f′(g(x))f'(g(x)) is a composite function, differentiating it gives

ddx[f′(g(x))]=f′′(g(x))g′(x).\frac{d}{dx} [f'(g(x))] = f''(g(x)) g'(x).

Substituting this back,

g′′(x)=−1[f′(g(x))]2⋅f′′(g(x))g′(x).g''(x) = -\frac{1}{[f'(g(x))]^2} \cdot f''(g(x)) g'(x).

Using the previously known result g′(x)=1f′(g(x))g'(x) = \frac{1}{f'(g(x))}, we substitute g′(x)g'(x):

g′′(x)=−f′′(g(x))[f′(g(x))]3.\boxed{g''(x) = -\frac{f''(g(x))}{[f'(g(x))]^3}}.

This result expresses the second derivative of an inverse function purely in terms of the derivatives of f(x)f(x), evaluated at g(x)g(x).

Double Derivative of a Parametric Function§

Let x=f(t)x = f(t) and y=g(t)y = g(t) be a parametrically defined function. We already know that the first derivative of yy with respect to xx is given by

dydx=dydtdxdt=g′(t)f′(t).\frac{dy}{dx} = \frac{\frac{dy}{dt}}{\frac{dx}{dt}} = \frac{g'(t)}{f'(t)}.

Differentiating this again with respect to xx,

d2ydx2=ddx(g′(t)f′(t)).\frac{d^2y}{dx^2} = \frac{d}{dx} \left( \frac{g'(t)}{f'(t)} \right).

Since tt is an implicit function of xx, we use the chain rule,

d2ydx2=ddt(g′(t)f′(t))dtdx.\frac{d^2y}{dx^2} = \frac{d}{dt} \left( \frac{g'(t)}{f'(t)} \right) \frac{dt}{dx}.

Applying the quotient rule to differentiate g′(t)f′(t)\frac{g'(t)}{f'(t)},

ddt(g′(t)f′(t))=f′(t)g′′(t)−g′(t)f′′(t)[f′(t)]2.\frac{d}{dt} \left( \frac{g'(t)}{f'(t)} \right) = \frac{f'(t) g''(t) - g'(t) f''(t)}{[f'(t)]^2}.

Since dtdx=1dx/dt=1f′(t)\frac{dt}{dx} = \frac{1}{dx/dt} = \frac{1}{f'(t)}, substituting this,

d2ydx2=f′(t)g′′(t)−g′(t)f′′(t)[f′(t)]2⋅1f′(t).\frac{d^2y}{dx^2} = \frac{f'(t) g''(t) - g'(t) f''(t)}{[f'(t)]^2} \cdot \frac{1}{f'(t)}.

Simplifying,

d2ydx2=f′(t)g′′(t)−g′(t)f′′(t)[f′(t)]3.\frac{d^2y}{dx^2} = \frac{f'(t) g''(t) - g'(t) f''(t)}{[f'(t)]^3}.

This expresses the second derivative of a parametrically defined function in terms of the first and second derivatives of f(t)f(t) and g(t)g(t).

Section 9 of 10 · Differentiation

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