MathIsimple
Course 6

Chain Rule and Higher Derivatives

Section 1: Chain Rule

Theorem 1.1: Chain Rule

If gg is differentiable at xx and ff is differentiable at g(x)g(x), then:

(fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x)

In Leibniz notation: dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} where u=g(x)u = g(x).

Proof of Chain Rule:

Let y=f(g(x))y = f(g(x)) and u=g(x)u = g(x).

By definition:

dydx=limh0f(g(x+h))f(g(x))h\frac{dy}{dx} = \lim_{h \to 0} \frac{f(g(x+h)) - f(g(x))}{h}

Let Δu=g(x+h)g(x)\Delta u = g(x+h) - g(x). Then:

dydx=limh0f(u+Δu)f(u)ΔuΔuh=f(u)g(x)\frac{dy}{dx} = \lim_{h \to 0} \frac{f(u + \Delta u) - f(u)}{\Delta u} \cdot \frac{\Delta u}{h} = f'(u) \cdot g'(x)

Therefore (fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x). ∎

Example 1.1: Chain Rule Application

Find: (sin(x2))(\sin(x^2))'

Solution: Let u=x2u = x^2, then y=sinuy = \sin u.

dydx=dydududx=cosu2x=2xcos(x2)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = \cos u \cdot 2x = 2x\cos(x^2)
Example 1.2: Multiple Chain Rule

Find: (esin(x2))(e^{\sin(x^2)})'

Solution: Apply chain rule twice:

ddxesin(x2)=esin(x2)cos(x2)2x=2xcos(x2)esin(x2)\frac{d}{dx}e^{\sin(x^2)} = e^{\sin(x^2)} \cdot \cos(x^2) \cdot 2x = 2x\cos(x^2)e^{\sin(x^2)}

Section 2: Inverse Function Derivatives

Theorem 2.1: Inverse Function Derivative

If ff is differentiable and has an inverse f1f^{-1}, then:

(f1)(y)=1f(f1(y))(f^{-1})'(y) = \frac{1}{f'(f^{-1}(y))}

Provided f(f1(y))0f'(f^{-1}(y)) \neq 0.

Example 2.1: Derivative of Arctan

Prove: (arctanx)=11+x2(\arctan x)' = \frac{1}{1+x^2}

Proof: Let y=arctanxy = \arctan x, so x=tanyx = \tan y.

Differentiating: 1=sec2ydydx1 = \sec^2 y \cdot \frac{dy}{dx}

dydx=1sec2y=11+tan2y=11+x2\frac{dy}{dx} = \frac{1}{\sec^2 y} = \frac{1}{1 + \tan^2 y} = \frac{1}{1 + x^2}

Section 3: Implicit Differentiation

Definition 3.1: Implicit Differentiation

When yy is defined implicitly by an equation F(x,y)=0F(x, y) = 0, we differentiate both sides with respect to xx, treating yy as a function of xx.

Example 3.1: Circle Equation

Find: dydx\frac{dy}{dx} for x2+y2=25x^2 + y^2 = 25

Solution: Differentiate both sides:

2x+2ydydx=02x + 2y \frac{dy}{dx} = 0

Solving for dydx\frac{dy}{dx}:

dydx=xy\frac{dy}{dx} = -\frac{x}{y}
Example 3.2: Implicit with Exponential

Find: dydx\frac{dy}{dx} for ey=xye^y = xy

Solution: Differentiate:

eydydx=y+xdydxe^y \frac{dy}{dx} = y + x \frac{dy}{dx}

Solving:

dydx=yeyx\frac{dy}{dx} = \frac{y}{e^y - x}

Section 4: Parametric Derivatives

Theorem 4.1: Parametric Derivative

If x=x(t)x = x(t) and y=y(t)y = y(t) are differentiable, then:

dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt}

Provided dxdt0\frac{dx}{dt} \neq 0.

Example 4.1: Parametric Curve

Find: dydx\frac{dy}{dx} for x=t2,y=t3x = t^2, y = t^3

Solution:

dydx=dy/dtdx/dt=3t22t=3t2\frac{dy}{dx} = \frac{dy/dt}{dx/dt} = \frac{3t^2}{2t} = \frac{3t}{2}

Section 5: Higher-Order Derivatives

Definition 5.1: Higher-Order Derivatives

The nn-th derivative of ff is defined recursively:

f(n)(x)=ddx[f(n1)(x)]f^{(n)}(x) = \frac{d}{dx}[f^{(n-1)}(x)]

Notations: f,f,f(n)f'', f''', f^{(n)} or d2ydx2,d3ydx3,dnydxn\frac{d^2y}{dx^2}, \frac{d^3y}{dx^3}, \frac{d^ny}{dx^n}

Example 5.1: Second Derivative

Find: f(x)f''(x) for f(x)=e2xf(x) = e^{2x}

Solution:

f(x)=2e2xf'(x) = 2e^{2x}

f(x)=22e2x=4e2xf''(x) = 2 \cdot 2e^{2x} = 4e^{2x}
Example 5.2: n-th Derivative

Find: f(n)(x)f^{(n)}(x) for f(x)=eaxf(x) = e^{ax}

Solution: Each differentiation brings down a factor of aa:

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

Section 6: Logarithmic Differentiation

Example 6.1: Logarithmic Differentiation

Find: yy' for y=xxy = x^x

Solution: Take logarithms: lny=xlnx\ln y = x \ln x

Differentiate: yy=lnx+1\frac{y'}{y} = \ln x + 1

y=y(lnx+1)=xx(lnx+1)y' = y(\ln x + 1) = x^x(\ln x + 1)

Section 7: Related Rates

Example 7.1: Related Rates Problem

A balloon is inflated so its volume increases at 100 cm³/s. Find the rate of change of radius when r = 5 cm.

V=43πr3V = \frac{4}{3}\pi r^3, so dVdt=4πr2drdt\frac{dV}{dt} = 4\pi r^2 \frac{dr}{dt}

At r = 5: 100=4π(25)drdt100 = 4\pi (25) \frac{dr}{dt}

drdt=1π cm/s\frac{dr}{dt} = \frac{1}{\pi} \text{ cm/s}
Practice Quiz: Chain Rule and Higher Derivatives
10
Questions
0
Correct
0%
Accuracy
1
If y=sin(x2)y = \sin(x^2), what is dydx\frac{dy}{dx}?
Easy
Not attempted
2
If y=esinxy = e^{\sin x}, find dydx\frac{dy}{dx}.
Easy
Not attempted
3
For the inverse function, if f(x)=3x2f'(x) = 3x^2 and f(2)=8f(2) = 8, what is (f1)(8)(f^{-1})'(8)?
Medium
Not attempted
4
Using implicit differentiation on x2+y2=25x^2 + y^2 = 25, find dydx\frac{dy}{dx}.
Easy
Not attempted
5
If x=t2x = t^2 and y=t3y = t^3, what is dydx\frac{dy}{dx}?
Medium
Not attempted
6
What is the second derivative of f(x)=e2xf(x) = e^{2x}?
Easy
Not attempted
7
Find (ln(x2+1))(\ln(x^2+1))'.
Easy
Not attempted
8
If y=arctanxy = \arctan x, what is yy'?
Easy
Not attempted
9
For ey=xye^y = xy, find dydx\frac{dy}{dx} using implicit differentiation.
Medium
Not attempted
10
What is (sin2x)(\sin^2 x)'?
Easy
Not attempted

Frequently Asked Questions

Why is the chain rule important?

The chain rule allows us to differentiate composite functions, which appear everywhere in applications. Without it, we couldn't differentiate functions like sin(x²), e^(cos x), or ln(1+x²).

How do I know when to use implicit differentiation?

Use implicit differentiation when y is not explicitly given as a function of x, such as in equations like x² + y² = 1 or xy + sin(y) = x.

What's the connection between parametric derivatives and chain rule?

The formula dy/dx = (dy/dt)/(dx/dt) comes from the chain rule: dy/dx = (dy/dt)·(dt/dx) = (dy/dt)/(dx/dt).

Is d²y/dx² the same as (dy/dx)²?

No! d²y/dx² is the second derivative (derivative of the derivative), while (dy/dx)² is the square of the first derivative. These are different quantities.

How do I identify the 'inner' and 'outer' functions?

The outer function is applied last. In f(g(x)), f is outer, g is inner. Example: sin(x²) has outer=sin, inner=x². Think about order of operations.