Grade by GradeEssential student suppliesSign in
C. Content · Calculus 12: Functions, Limits, Derivatives, Integrals and Their Applications

The Chain Rule, Transcendental Functions and Implicit Differentiation

BC CALC 12: chain rule BC CALC 12: transcendental BC CALC 12: implicitAbout 80 minutes
Learning goals
  • I can use the chain rule to differentiate composite functions.
  • I can differentiate exponential, logarithmic, trigonometric and inverse trigonometric functions.
  • I can differentiate an equation implicitly and find dy/dx at a point.

Words to know

composite function
A function inside another, such as (3x^2 - 1)^5, where u = 3x^2 - 1 is inside y = u^5.
chain rule
d/dx f(g(x)) = f'(g(x)) · g'(x), or dy/dx = (dy/du)(du/dx).
transcendental function
A function that is not algebraic, such as e^x, ln x, sin x or arctan x.
natural logarithm
ln x = log_e x, where e ≈ 2.71828.
implicit differentiation
Differentiating both sides of an equation in x and y with respect to x, treating y as a function of x.

The chain rule

Most functions are built from simpler ones. In y = (3x^2 - 1)^5, an inner function u = 3x^2 - 1 feeds an outer function y = u^5. If u changes 6x times as fast as x, and y changes 5u^4 times as fast as u, then y changes (5u^4)(6x) times as fast as x.

Differentiate the outside (leave the inside alone), then multiply by the derivative of the inside.

xinneru = g(x)outery = f(u)yrate du/dxrate dy/dudy/dx = (dy/du) · (du/dx)rates multiply along the chain
The chain rule: when one quantity feeds another, the rates of change multiply.
Worked example

Example 1: Power of a function

Differentiate y = (3x^2 - 1)^5.

  1. Outer: u^5, derivative 5u^4. Inner: u = 3x^2 - 1, derivative 6x.
  2. y' = 5(3x^2 - 1)^4 · 6x.

y' = 30x(3x^2 - 1)^4

Worked example

Example 2: A root

Find the slope of y = sqrt(x^2 + 9) at x = 4.

  1. y = (x^2 + 9)^(1/2), so y' = (1/2)(x^2 + 9)^(-1/2) · 2x = x/sqrt(x^2 + 9).
  2. At x = 4: 4/sqrt(25).

4/5

Derivatives of transcendental functions

The exponential function e^x is special: it is its own derivative. Every other rule in the table follows from this, from d/dx sin x = cos x (x in radians), and from the chain rule. With an inside function u, multiply by u' as usual: for example d/dx e^(u) = e^(u) · u'.

f(x)f'(x)f(x)f'(x)
e^xe^xsin xcos x
a^xa^x ln acos x-sin x
ln x1/xtan xsec^2 x
log_a x1/(x ln a)arcsin x1/sqrt(1 - x^2)
ln |x|1/xarctan x1/(1 + x^2)
Derivatives of transcendental functions (x in radians). Also, d/dx arccos x = -1/sqrt(1 - x^2).
Worked example

Example 3: A cooling cup of tea

A model for the temperature of a cup of tea is T(t) = 20 + 70e^(-0.05t) °C after t minutes. How fast is it cooling at t = 10?

  1. T'(t) = 70 · e^(-0.05t) · (-0.05) = -3.5e^(-0.05t).
  2. T'(10) = -3.5e^(-0.5) ≈ -3.5(0.6065) ≈ -2.12.

About -2.12 °C/min: the tea is cooling at about 2.1 degrees per minute.

Worked example

Example 4: Mixing rules

Differentiate (a) y = ln(x^2 + 1), (b) y = sin^2(3x), (c) y = x^2 sin x.

  1. (a) Chain rule with u = x^2 + 1: y' = (1/u) · u' = 2x/(x^2 + 1).
  2. (b) sin^2(3x) = (sin 3x)^2. Three layers: y' = 2 sin(3x) · cos(3x) · 3 = 6 sin(3x)cos(3x), which also equals 3 sin(6x).
  3. (c) Product rule: y' = 2x sin x + x^2 cos x.

(a) 2x/(x^2 + 1) (b) 6 sin(3x)cos(3x) (c) 2x sin x + x^2 cos x

Implicit differentiation

The circle x^2 + y^2 = 25 is not one function y = f(x), but near most points it acts like one. Differentiate both sides with respect to x. Every time you differentiate an expression in y, the chain rule adds a factor dy/dx: d/dx (y^2) = 2y · dy/dx. Then solve for dy/dx.

Worked example

Example 5: Tangent to a circle

Find dy/dx for x^2 + y^2 = 25 and the tangent line at (3, 4).

  1. Differentiate: 2x + 2y · dy/dx = 0.
  2. Solve: dy/dx = -x/y.
  3. At (3, 4): slope -3/4. Tangent: y - 4 = -3/4 (x - 3), so y = -3x/4 + 25/4.
  4. Check: the radius to (3, 4) has slope 4/3, and the tangent is perpendicular to it ✓

dy/dx = -x/y; tangent y = -3x/4 + 25/4

Worked example

Example 6: Where the arctan rule comes from

Show that d/dx arctan x = 1/(1 + x^2).

  1. Let y = arctan x, so tan y = x with -pi/2 < y < pi/2.
  2. Differentiate implicitly: sec^2 y · dy/dx = 1, so dy/dx = 1/sec^2 y.
  3. sec^2 y = 1 + tan^2 y = 1 + x^2.

d/dx arctan x = 1/(1 + x^2)

Don't drop the inside

Work from the outside in, and write the inside derivative as you go. A missing inside factor (like the 3 in d/dx sin 3x = 3cos 3x) is the most common calculus error of all.

Hands-on activity

Continuous growth

A model for money in a savings account with continuous compounding is A(t) = 1000e^(0.04t) dollars after t years (rates change; this is only a model).

  1. Find A'(t) and A'(5). (A'(t) = 40e^(0.04t); A'(5) = 40e^(0.2) ≈ $48.86 per year.)
  2. Show that A'(t) = 0.04A(t). Explain in words what this says about the growth rate.
  3. Make up your own model with a different rate and test the same idea.
Just for fun

Up to a constant multiple, e^x is the only function that equals its own derivative: any function with f' = f has the form f(x) = Ce^x. A classic math joke: e^x walks into a party where a differential operator is greeting everyone. "Aren't you worried he'll change you?" someone asks. "No," says e^x, "I've been differentiated before. I stay the same."

Your turn

1

Differentiate y = (2x + 1)^4.

2

Differentiate y = e^(3x^2).

3

Differentiate y = ln(5x).

4

Differentiate y = cos(4x).

5

Differentiate y = tan(x^2).

6

Find dy/dx for x^2 + xy + y^2 = 7, then evaluate it at (1, 2).

More practice

1

Differentiate y = arcsin(2x).

2

Differentiate y = e^x sin x.

3

Differentiate y = ln(cos x).

4

Find the slope of y = 3^x at x = 2.

5

Differentiate y = x^x (x > 0). Hint: take ln of both sides first.

6

Find dy/dx for y^3 + y = x.

Check your understanding

Quiz

1.

What is d/dx sin(5x)?

2.

What is d/dx e^(x^2)?

3.

What is d/dx ln(x^3)?

4.

For x^2 + y^2 = 100, what is dy/dx at (6, 8)?

5.

What is d/dx arctan x?

For parents and teachers

How to help: Ask your teen to name the "inside" and "outside" functions before differentiating. Covering the inside with a finger ("something to the 5th") is a useful trick.

Common mistakes:

  • Forgetting the inside derivative.
  • Using the power rule on e^x (the derivative of e^x is not x e^(x - 1)).
  • Writing d/dx (y^2) = 2y instead of 2y · dy/dx in implicit differentiation.
  • Using degrees with trigonometric derivatives.