DerivativesTopic #11 of 32

Higher Order Derivatives

Second derivatives, third derivatives, and the nth derivative.

Definition

Higher order derivatives are derivatives of derivatives:

DerivativeNotation
Firstf(x)f'(x), dydx\frac{dy}{dx}, yy'
Secondf(x)f''(x), d2ydx2\frac{d^2y}{dx^2}, yy''
Thirdf(x)f'''(x), d3ydx3\frac{d^3y}{dx^3}, yy'''
Fourthf(4)(x)f^{(4)}(x), d4ydx4\frac{d^4y}{dx^4}, y(4)y^{(4)}
nthf(n)(x)f^{(n)}(x), dnydxn\frac{d^ny}{dx^n}, y(n)y^{(n)}

Physical Interpretation

If s(t)s(t) is position as a function of time:

  • s(t)s'(t) = velocity (rate of change of position)
  • s(t)s''(t) = acceleration (rate of change of velocity)
  • s(t)s'''(t) = jerk (rate of change of acceleration)

Common Patterns

Polynomials

For f(x)=xnf(x) = x^n:

  • f(x)=nxn1f'(x) = nx^{n-1}
  • f(x)=n(n1)xn2f''(x) = n(n-1)x^{n-2}
  • f(n)(x)=n!f^{(n)}(x) = n!
  • f(n+1)(x)=0f^{(n+1)}(x) = 0

Exponentials

For f(x)=exf(x) = e^x:

  • f(n)(x)=exf^{(n)}(x) = e^x for all nn

For f(x)=eaxf(x) = e^{ax}:

  • f(n)(x)=aneaxf^{(n)}(x) = a^n e^{ax}

Trigonometric Functions

For f(x)=sin(x)f(x) = \sin(x):

f(x)=cos(x)f'(x) = \cos(x) f(x)=sin(x)f''(x) = -\sin(x) f(x)=cos(x)f'''(x) = -\cos(x) f(4)(x)=sin(x)(cycle repeats)f^{(4)}(x) = \sin(x) \quad \text{(cycle repeats)}

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

For f(x)=cos(x)f(x) = \cos(x):

f(x)=sin(x)f'(x) = -\sin(x) f(x)=cos(x)f''(x) = -\cos(x) f(x)=sin(x)f'''(x) = \sin(x) f(4)(x)=cos(x)(cycle repeats)f^{(4)}(x) = \cos(x) \quad \text{(cycle repeats)}

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

Examples

Example 1: Polynomial

f(x)=x53x3+2xf(x) = x^5 - 3x^3 + 2x

f(x)=5x49x2+2f'(x) = 5x^4 - 9x^2 + 2 f(x)=20x318xf''(x) = 20x^3 - 18x f(x)=60x218f'''(x) = 60x^2 - 18 f(4)(x)=120xf^{(4)}(x) = 120x f(5)(x)=120f^{(5)}(x) = 120 f(6)(x)=0f^{(6)}(x) = 0

Example 2: Natural log

f(x)=ln(x)f(x) = \ln(x)

f(x)=1x=x1f'(x) = \frac{1}{x} = x^{-1} f(x)=x2=1x2f''(x) = -x^{-2} = -\frac{1}{x^2} f(x)=2x3=2x3f'''(x) = 2x^{-3} = \frac{2}{x^3} f(4)(x)=6x4=6x4f^{(4)}(x) = -6x^{-4} = -\frac{6}{x^4}

Pattern: f(n)(x)=(1)n1(n1)!xnf^{(n)}(x) = \frac{(-1)^{n-1}(n-1)!}{x^n} for n1n \geq 1

Example 3: Product requiring chain rule

f(x)=x2exf(x) = x^2 e^x

f(x)=x2ex+2xex=ex(x2+2x)f'(x) = x^2 e^x + 2xe^x = e^x(x^2 + 2x) f(x)=ex(x2+2x)+ex(2x+2)=ex(x2+4x+2)f''(x) = e^x(x^2 + 2x) + e^x(2x + 2) = e^x(x^2 + 4x + 2) f(x)=ex(x2+4x+2)+ex(2x+4)=ex(x2+6x+6)f'''(x) = e^x(x^2 + 4x + 2) + e^x(2x + 4) = e^x(x^2 + 6x + 6)

Example 4: Implicit second derivative

For x2+y2=25x^2 + y^2 = 25, find d2ydx2\frac{d^2y}{dx^2}:

First: dydx=xy\frac{dy}{dx} = -\frac{x}{y}

d2ydx2=ddx[xy]\frac{d^2y}{dx^2} = \frac{d}{dx}\left[-\frac{x}{y}\right]

=y(1)x(dydx)y2= -\frac{y(1) - x\left(\frac{dy}{dx}\right)}{y^2}

=yx(xy)y2= -\frac{y - x\left(-\frac{x}{y}\right)}{y^2}

=y2+x2y3= -\frac{y^2 + x^2}{y^3}

=25y3= -\frac{25}{y^3}

The Leibniz Rule

For the nth derivative of a product:

(fg)(n)=k=0n(nk)f(nk)g(k)(fg)^{(n)} = \sum_{k=0}^{n} \binom{n}{k} f^{(n-k)} g^{(k)}

where (nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!(n-k)!} is the binomial coefficient.