Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

Differentiation rules

Print the chapter

Every lesson of the chapter, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.

To save a PDF, choose “Save as PDF” in the print dialog.

1. The power, constant multiple and sum rules

Warm-up

Three quick questions from earlier lessons.

  1. Here is the graph of y=f(x)y = f(x). Tap the point of the graph where f′(x)=0f'(x) = 0.
  2. f(x)=(x−3)2+3f(x) = (x - 3)^2 + 3, a parabola with its vertex at (3,3)(3, 3). Tick all the true statements.
    1. f′(3)=0f'(3) = 0
    2. f′(x)<0f'(x) < 0 for x<3x < 3
    3. f′(x)>0f'(x) > 0 for x>3x > 3
    4. f′(3)=3f'(3) = 3
    5. f′(x)>0f'(x) > 0 for every xx, because f(x)>0f(x) > 0
  3. f(x)=2x2+1xf(x) = 2x^2 + 1x. Use f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \displaystyle\lim_{h \to 0} \dfrac{f(x + h) - f(x)}{h} to find f′(x)f'(x).

Discover

From the limit definition: (x2)′=2x(x^2)' = 2x and (x3)′=3x2(x^3)' = 3x^2. Guess the pattern: what is (x4)′(x^4)'?

  1. 4x34x^3
  2. x3x^3

Key idea

Three rules replace the limit for every polynomial and power.

Power rule: (xn)′=n xn−1(x^n)' = n\,x^{n-1} for every real nn. Constant multiple: (k f)′=k f′(k\,f)' = k\,f'. Sum: (f+g)′=f′+g′(f + g)' = f' + g'. Constant: (c)′=0(c)' = 0.

Worked example

f(x)=5x3−2x+7f(x) = 5x^3 - \dfrac{2}{x} + 7. Find f′(x)f'(x).

f(x)=5x3−2x−1+7f(x) = 5x^3 - 2x^{-1} + 7
Write the fraction as a power.
f′(x)=15x2+2x−2f'(x) = 15x^2 + 2x^{-2}
Power rule term by term; the constant 7 gives 0.
f′(x)=15x2+2x2f'(x) = 15x^2 + \dfrac{2}{x^2}
Back to a fraction if you like.

Your turn, guided

Your turn: f(x)=4x5+3x−9f(x) = 4x^5 + 3x - 9.

f′(x)=20x4+3f'(x) = 20x^4 + 3
20x⁴ from 4x⁵, 3 from 3x, 0 from −9.

Practice ★

  1. f(x)=7x3+5xf(x) = 7x^{ 3 } + 5x. Find f′(x)f'(x).
  2. f(x)=13x10+28xf(x) = 13x^{ 10 } + 28x. Find f′(x)f'(x).
  3. f(x)=6x3+6xf(x) = 6x^{ 3 } + 6x. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=4x1f(x) = \dfrac{ 4 }{x^{ 1 } }. Find f′(x)f'(x).
  2. f(x)=19x5f(x) = \dfrac{ 19 }{x^{ 5 } }. Find f′(x)f'(x).
  1. f(x)=4x+8f(x) = 4\sqrt{x} + 8. Find f′(x)f'(x).
  2. f(x)=25x+36f(x) = 25\sqrt{x} + 36. Find f′(x)f'(x).

Exit ticket

Three questions to check you have got it.

  1. f(x)=7x3+5xf(x) = 7x^{ 3 } + 5x. Find f′(x)f'(x).
  2. f(x)=13x10+28xf(x) = 13x^{ 10 } + 28x. Find f′(x)f'(x).
  3. f(x)=6x3+6xf(x) = 6x^{ 3 } + 6x. Find f′(x)f'(x).

Summary card

Basic rules

  • (xn)′=nxn−1(x^n)' = n x^{n-1}; rewrite roots and fractions as powers first.
  • Constants factor out; sums split; a constant alone gives 0.

Watch out: with negative exponents, −2−1=−3-2 - 1 = -3.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=xnf(x) = x^n for a whole number nn, and f′(2)=80f'(2) = 80. What is nn?

2. Derivatives of exponential functions

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x2−3xf(x) = x^2 - 3x. Find the tangent line to its graph at x=3x = 3, from the definition.
    1. f(3)=  ?f(3) = \;?
    2. Simplify f(3+h)−f(3)h\dfrac{f(3 + h) - f(3)}{h} for h≠0h \ne 0:   ?\;?
    3. f′(3)=  ?f'(3) = \;?
    4. The tangent line: y=  ?y = \;?
    5. With the derivative rules: f′(x)=  ?f'(x) = \;?
    6. Approximation of f(3+0.1)f(3 + 0.1) by the tangent line:
  2. f(x)=7x3+5xf(x) = 7x^{ 3 } + 5x. Find f′(x)f'(x).
  3. f(x)=4x1f(x) = \dfrac{ 4 }{x^{ 1 } }. Find f′(x)f'(x).

Discover

The violet curve is y=exy = e^x, the blue line its tangent at x=ax = a. Move aa and compare the slope of the line with the height of the point.

The curve y = eˣ and its tangent at x = a. The tangent's slope equals the height eᵃ of the point of contact.

At a=0a = 0 the point is (0,1)(0, 1). What is the slope of the tangent there?

  1. 1
  2. 0

Key idea

The exponent varies, so the power rule does not apply.

(ex)′=ex(e^x)' = e^x. For any base b>0b > 0: (bx)′=bxln⁡b(b^x)' = b^x \ln b.

Worked example

f(x)=3ex−2xf(x) = 3e^x - 2^x. Find f′(x)f'(x).

(3ex)′=3ex(3e^x)' = 3e^x
eˣ is its own derivative.
(2x)′=2xln⁡2(2^x)' = 2^x \ln 2
Base 2: multiply by ln 2.
f′(x)=3ex−2xln⁡2f'(x) = 3e^x - 2^x \ln 2
Combine.

Your turn, guided

Your turn: f(x)=5ex+x3f(x) = 5e^x + x^3.

f′(x)=5ex+3x2f'(x) = 5e^x + 3x^2
5eˣ stays; x³ gives 3x².

Practice ★

  1. f(x)=3ex+2x2f(x) = 3e^x + 2x^2. Find f′(x)f'(x).
  2. f(x)=27ex+56x2f(x) = 27e^x + 56x^2. Find f′(x)f'(x).
  3. f(x)=2ex+1x2f(x) = 2e^x + 1x^2. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=3xf(x) = 3^x. Find f′(x)f'(x).
  2. f(x)=4xf(x) = 4^x. Find f′(x)f'(x).
  1. Find the slope of the tangent line to y=4ex+7y = 4e^x + 7 at x=0x = 0.
  2. Find the slope of the tangent line to y=19ex+21y = 19e^x + 21 at x=0x = 0.

Exit ticket

Three questions to check you have got it.

  1. f(x)=3xf(x) = 3^x. Find f′(x)f'(x).
  2. f(x)=4xf(x) = 4^x. Find f′(x)f'(x).
  3. f(x)=2xf(x) = 2^x. Find f′(x)f'(x).

Summary card

Exponentials

  • (ex)′=ex(e^x)' = e^x.
  • (bx)′=bxln⁡b(b^x)' = b^x \ln b.

Watch out: xnx^n (variable base) and bxb^x (variable exponent) have different rules.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Where does the tangent to y=exy = e^x at x=2x = 2 cross the yy-axis? Give the exact yy-value.

3. Derivatives of sine and cosine

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x2−3xf(x) = x^2 - 3x. Find the tangent line to its graph at x=3x = 3, from the definition.
    1. f(3)=  ?f(3) = \;?
    2. Simplify f(3+h)−f(3)h\dfrac{f(3 + h) - f(3)}{h} for h≠0h \ne 0:   ?\;?
    3. f′(3)=  ?f'(3) = \;?
    4. The tangent line: y=  ?y = \;?
    5. With the derivative rules: f′(x)=  ?f'(x) = \;?
    6. Approximation of f(3+0.1)f(3 + 0.1) by the tangent line:
  2. f(x)=7x3+5xf(x) = 7x^{ 3 } + 5x. Find f′(x)f'(x).
  3. f(x)=4x1f(x) = \dfrac{ 4 }{x^{ 1 } }. Find f′(x)f'(x).

Discover

The violet curves are y=sin⁡xy = \sin x and y=cos⁡xy = \cos x; the blue line is the tangent to sin⁡x\sin x at x=ax = a. Move aa and compare the slope of the line with the height of the cosine curve at x=ax = a.

The sine curve, the cosine curve and the tangent to the sine curve at x = a. The tangent's slope is always the height of the cosine curve at a.

At a=π/2≈1.57a = \pi/2 \approx 1.57, sine is at its top. What is the slope there, and what is cos⁡(π/2)\cos(\pi/2)?

  1. Both are 0
  2. Both are 1

Key idea

With xx in radians:

(sin⁡x)′=cos⁡x(\sin x)' = \cos x and (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x.

Worked example

f(x)=3sin⁡x−4cos⁡xf(x) = 3\sin x - 4\cos x. Find f′(x)f'(x).

(3sin⁡x)′=3cos⁡x(3\sin x)' = 3\cos x
(sin x)' = cos x.
(−4cos⁡x)′=4sin⁡x(-4\cos x)' = 4\sin x
(cos x)' = −sin x, and − · − = +.
f′(x)=3cos⁡x+4sin⁡xf'(x) = 3\cos x + 4\sin x
Combine.

Your turn, guided

Your turn: f(x)=2cos⁡x+x2f(x) = 2\cos x + x^2.

f′(x)=−2sin⁡x+2xf'(x) = -2\sin x + 2x
−2 sin x and 2x.

Practice ★

  1. f(x)=2sin⁡x+2cos⁡xf(x) = 2\sin x + 2\cos x. Find f′(x)f'(x).
  2. f(x)=19sin⁡x+44cos⁡xf(x) = 19\sin x + 44\cos x. Find f′(x)f'(x).
  3. f(x)=3sin⁡x+4cos⁡xf(x) = 3\sin x + 4\cos x. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. Find the slope of the tangent line to y=sin⁡xy = \sin x at x=π2x = \dfrac{\pi}{ 2 }. Give an exact value.
  2. Find the slope of the tangent line to y=sin⁡xy = \sin x at x=π3x = \dfrac{\pi}{ 3 }. Give an exact value.
  1. f(x)=4x−2cos⁡xf(x) = 4x - 2\cos x. Find f′(x)f'(x).
  2. f(x)=23x−48cos⁡xf(x) = 23x - 48\cos x. Find f′(x)f'(x).

Exit ticket

Three questions to check you have got it.

  1. f(x)=2sin⁡x+2cos⁡xf(x) = 2\sin x + 2\cos x. Find f′(x)f'(x).
  2. f(x)=19sin⁡x+44cos⁡xf(x) = 19\sin x + 44\cos x. Find f′(x)f'(x).
  3. f(x)=3sin⁡x+4cos⁡xf(x) = 3\sin x + 4\cos x. Find f′(x)f'(x).

Summary card

Sine and cosine

  • (sin⁡x)′=cos⁡x(\sin x)' = \cos x.
  • (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x.

Watch out: the minus sign goes with the derivative of cosine; radians only.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=2xsin⁡xf(x) = 2x\sin x. Find f′(π)f'(\pi).

4. The product rule

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x2−3xf(x) = x^2 - 3x. Find the tangent line to its graph at x=3x = 3, from the definition.
    1. f(3)=  ?f(3) = \;?
    2. Simplify f(3+h)−f(3)h\dfrac{f(3 + h) - f(3)}{h} for h≠0h \ne 0:   ?\;?
    3. f′(3)=  ?f'(3) = \;?
    4. The tangent line: y=  ?y = \;?
    5. With the derivative rules: f′(x)=  ?f'(x) = \;?
    6. Approximation of f(3+0.1)f(3 + 0.1) by the tangent line:
  2. f(x)=7x3+5xf(x) = 7x^{ 3 } + 5x. Find f′(x)f'(x).
  3. f(x)=4x1f(x) = \dfrac{ 4 }{x^{ 1 } }. Find f′(x)f'(x).

Discover

f(x)=xf(x) = x and g(x)=xg(x) = x, so f(x)g(x)=x2f(x)g(x) = x^2. Is (x2)′(x^2)' equal to f′(x) g′(x)=1⋅1f'(x)\,g'(x) = 1 \cdot 1?

  1. No
  2. Yes

Key idea

Each factor takes its turn to be differentiated.

Product rule: (f g)′=f′ g+f g′(f\,g)' = f'\,g + f\,g'.

Worked example

h(x)=x3exh(x) = x^3 e^x. Find h′(x)h'(x).

f′=3x2f' = 3x^2, g′=exg' = e^x
f = x³, g = eˣ.
h′(x)=3x2ex+x3exh'(x) = 3x^2 e^x + x^3 e^x
f'g + fg'.
h′(x)=x2ex(3+x)h'(x) = x^2 e^x (3 + x)
Factor if you like.

Your turn, guided

Your turn: h(x)=xcos⁡xh(x) = x\cos x.

f′=1f' = 1, g′=−sin⁡xg' = -\sin x
f = x, g = cos x.
h′(x)=cos⁡x−xsin⁡xh'(x) = \cos x - x\sin x
f'g + fg'.

Practice ★

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=x9sin⁡xf(x) = x^{ 9 }\sin x. Find f′(x)f'(x).
  1. f(x)=(x+3)exf(x) = (x + 3)e^x. Find f′(x)f'(x).
  2. f(x)=(x+74)exf(x) = (x + 74)e^x. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(2)=4f(2) = 4, f′(2)=4f'(2) = 4, g(2)=−4g(2) = -4 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).
  2. f(2)=−4f(2) = -4, f′(2)=−2f'(2) = -2, g(2)=2g(2) = 2 and g′(2)=3g'(2) = 3. Find (fg)′(2)(fg)'(2).
  3. f(2)=−1f(2) = -1, f′(2)=1f'(2) = 1, g(2)=5g(2) = 5 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).

Exit ticket

Three questions to check you have got it.

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=x9sin⁡xf(x) = x^{ 9 }\sin x. Find f′(x)f'(x).
  3. f(x)=x2sin⁡xf(x) = x^{ 2 }\sin x. Find f′(x)f'(x).

Summary card

Product rule

(fg)′=f′g+fg′(fg)' = f'g + fg': differentiate one factor at a time, keep the other.

Watch out: (fg)′≠f′g′(fg)' \ne f'g'.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=x4exf(x) = x^{ 4 }e^x. Find f′(1)f'(1).

5. The quotient rule

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=(x+3)exf(x) = (x + 3)e^x. Find f′(x)f'(x).
  3. f(2)=4f(2) = 4, f′(2)=4f'(2) = 4, g(2)=−4g(2) = -4 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).

Discover

x3x=x2\dfrac{x^3}{x} = x^2, whose derivative is 2x2x. The quotient of the derivatives would be 3x21\dfrac{3x^2}{1}. Do they agree?

  1. No
  2. Yes

Key idea

Top's derivative first, then subtract.

Quotient rule: (fg)′=f′ g−f g′g2\left(\dfrac{f}{g}\right)' = \dfrac{f'\,g - f\,g'}{g^2}, where g≠0g \ne 0.

Worked example

h(x)=x2x+1h(x) = \dfrac{x^2}{x + 1}. Find h′(x)h'(x).

f′=2xf' = 2x, g′=1g' = 1
f = x², g = x + 1.
h′(x)=2x(x+1)−x2(x+1)2h'(x) = \dfrac{2x(x + 1) - x^2}{(x + 1)^2}
f'g − fg' over g².
h′(x)=x2+2x(x+1)2h'(x) = \dfrac{x^2 + 2x}{(x + 1)^2}
Simplify the top.

Your turn, guided

Your turn: h(x)=exxh(x) = \dfrac{e^x}{x}.

h′(x)=xex−exx2h'(x) = \dfrac{xe^x - e^x}{x^2}
f = eˣ, g = x: f'g − fg' = xeˣ − eˣ.

Practice ★

  1. f(x)=xx+3f(x) = \dfrac{x}{x + 3}. Find f′(x)f'(x).
  2. f(x)=xx+94f(x) = \dfrac{x}{x + 94}. Find f′(x)f'(x).
  3. f(x)=xx+1f(x) = \dfrac{x}{x + 1}. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=1sin⁡xxf(x) = \dfrac{ 1\sin x}{x}. Find f′(x)f'(x).
  2. f(x)=30sin⁡xxf(x) = \dfrac{ 30\sin x}{x}. Find f′(x)f'(x).
  1. f(1)=1f(1) = 1, f′(1)=−2f'(1) = -2, g(1)=4g(1) = 4 and g′(1)=2g'(1) = 2. Find (fg)′(1)\left(\dfrac{f}{g}\right)'(1).
  2. f(1)=1f(1) = 1, f′(1)=1f'(1) = 1, g(1)=1g(1) = 1 and g′(1)=4g'(1) = 4. Find (fg)′(1)\left(\dfrac{f}{g}\right)'(1).

Exit ticket

Three questions to check you have got it.

  1. f(x)=xx+3f(x) = \dfrac{x}{x + 3}. Find f′(x)f'(x).
  2. f(x)=xx+94f(x) = \dfrac{x}{x + 94}. Find f′(x)f'(x).
  3. f(x)=xx+1f(x) = \dfrac{x}{x + 1}. Find f′(x)f'(x).

Summary card

Quotient rule

(fg)′=f′g−fg′g2\left(\dfrac{f}{g}\right)' = \dfrac{f'g - fg'}{g^2}: "low d-high minus high d-low, over low squared".

Watch out: the order in the numerator matters.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=x2+1xf(x) = \dfrac{x^2 + 1}{x} for x>0x > 0. Where does the graph have a horizontal tangent?

6. Derivatives of tangent, secant, cotangent and cosecant

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=xx+3f(x) = \dfrac{x}{x + 3}. Find f′(x)f'(x).
  2. f(x)=1sin⁡xxf(x) = \dfrac{ 1\sin x}{x}. Find f′(x)f'(x).
  3. f(1)=1f(1) = 1, f′(1)=−2f'(1) = -2, g(1)=4g(1) = 4 and g′(1)=2g'(1) = 2. Find (fg)′(1)\left(\dfrac{f}{g}\right)'(1).

Discover

tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}. With the quotient rule, the top of (tan⁡x)′(\tan x)' is cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)\cos x \cdot \cos x - \sin x \cdot (-\sin x). What does it simplify to?

  1. 1
  2. cos⁡2x−sin⁡2x\cos^2 x - \sin^2 x

Key idea

The quotient rule gives the other four.

(tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x, (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x \tan x, (cot⁡x)′=−csc⁡2x(\cot x)' = -\csc^2 x, (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x \cot x. The "co" functions get a minus sign.

Worked example

f(x)=2tan⁡x−csc⁡xf(x) = 2\tan x - \csc x. Find f′(x)f'(x).

(2tan⁡x)′=2sec⁡2x(2\tan x)' = 2\sec^2 x
(tan x)' = sec² x.
(−csc⁡x)′=csc⁡xcot⁡x(-\csc x)' = \csc x \cot x
(csc x)' = −csc x cot x, and − · − = +.
f′(x)=2sec⁡2x+csc⁡xcot⁡xf'(x) = 2\sec^2 x + \csc x\cot x
Combine.

Your turn, guided

Your turn: f(x)=sec⁡x+xf(x) = \sec x + x.

f′(x)=sec⁡xtan⁡x+1f'(x) = \sec x\tan x + 1
sec x tan x, plus 1.

Practice ★

  1. f(x)=2tan⁡xf(x) = 2\tan x. Find f′(x)f'(x).
  2. f(x)=74tan⁡xf(x) = 74\tan x. Find f′(x)f'(x).
  3. f(x)=3tan⁡xf(x) = 3\tan x. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=sec⁡x+2cot⁡xf(x) = \sec x + 2\cot x. Find f′(x)f'(x).
  2. f(x)=sec⁡x+8cot⁡xf(x) = \sec x + 8\cot x. Find f′(x)f'(x).
  1. Find the slope of the tangent line to y=tan⁡xy = \tan x at x=π6x = \dfrac{\pi}{ 6 }. Give an exact value.
  2. Find the slope of the tangent line to y=tan⁡xy = \tan x at x=π4x = \dfrac{\pi}{ 4 }. Give an exact value.

Exit ticket

Three questions to check you have got it.

  1. f(x)=2tan⁡xf(x) = 2\tan x. Find f′(x)f'(x).
  2. f(x)=74tan⁡xf(x) = 74\tan x. Find f′(x)f'(x).
  3. f(x)=3tan⁡xf(x) = 3\tan x. Find f′(x)f'(x).

Summary card

tan, sec, cot, csc

  • (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x, (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x\tan x.
  • (cot⁡x)′=−csc⁡2x(\cot x)' = -\csc^2 x, (csc⁡x)′=−csc⁡xcot⁡x(\csc x)' = -\csc x\cot x.

Watch out: co-functions take a minus sign. You may also write sec⁡2x\sec^2 x as 1cos⁡2x\dfrac{1}{\cos^2 x}.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=9tan⁡2xf(x) = 9\tan^2 x. Find f′(π4)f'\left(\dfrac{\pi}{4}\right).

7. The chain rule

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=(x+3)exf(x) = (x + 3)e^x. Find f′(x)f'(x).
  3. f(2)=4f(2) = 4, f′(2)=4f'(2) = 4, g(2)=−4g(2) = -4 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).

Discover

The violet curve is y=sin⁡xy = \sin x; the blue one is y=sin⁡(kx)y = \sin(kx). Increase kk.

The curves y = sin x and y = sin(kx). With k = 2 the blue curve oscillates twice as fast, and its steepest slope is 2 instead of 1.

At k=2k = 2 the blue curve goes twice as fast. At x=0x = 0, what is the slope of y=sin⁡(2x)y = \sin(2x)?

  1. 2
  2. 1

Key idea

For a function inside a function: differentiate the outside, keep the inside, multiply by the derivative of the inside.

Chain rule: (f(g(x)))′=f′(g(x))⋅g′(x)\big(f(g(x))\big)' = f'(g(x)) \cdot g'(x).

Worked example

h(x)=(x2+1)5h(x) = (x^2 + 1)^5. Find h′(x)h'(x).

f(u)=u5f(u) = u^5, g(x)=x2+1g(x) = x^2 + 1
Outside u⁵, inside u = x² + 1.
h′(x)=5(x2+1)4⋅2xh'(x) = 5(x^2 + 1)^4 \cdot 2x
f'(u) = 5u⁴ with the inside kept; g'(x) = 2x.
h′(x)=10x(x2+1)4h'(x) = 10x(x^2 + 1)^4
Tidy.

Your turn, guided

Your turn: h(x)=e3xh(x) = e^{3x}.

h′(x)=3e3xh'(x) = 3e^{3x}
Outside eᵘ, inside 3x: eᵘ times 3.

Practice ★

  1. f(x)=(3x+6)2f(x) = (3x + 6)^{ 2 }. Find f′(x)f'(x).
  2. f(x)=(8x+7)4f(x) = (8x + 7)^{ 4 }. Find f′(x)f'(x).
  3. f(x)=(2x+6)2f(x) = (2x + 6)^{ 2 }. Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=sin⁡(3x2)f(x) = \sin(3x^2). Find f′(x)f'(x).
  2. f(x)=sin⁡(50x2)f(x) = \sin(50x^2). Find f′(x)f'(x).
  1. f(x)=e3x2f(x) = e^{ 3x^2}. Find f′(x)f'(x).
  2. f(x)=e11x2f(x) = e^{ 11x^2}. Find f′(x)f'(x).

Exit ticket

Three questions to check you have got it.

  1. f(x)=(3x+6)2f(x) = (3x + 6)^{ 2 }. Find f′(x)f'(x).
  2. f(x)=(8x+7)4f(x) = (8x + 7)^{ 4 }. Find f′(x)f'(x).
  3. f(x)=(2x+6)2f(x) = (2x + 6)^{ 2 }. Find f′(x)f'(x).

Summary card

Chain rule

(f(g(x)))′=f′(g(x)) g′(x)\big(f(g(x))\big)' = f'(g(x))\,g'(x): outside's derivative (inside kept) times inside's derivative.

Watch out: do not forget the factor g′(x)g'(x).

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=(x2+1)2f(x) = (x^2 + 1)^{ 2 }. Find f′(1)f'(1).

8. Derivatives of inverse functions: ln x, arcsin x, arctan x

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=(3x+6)2f(x) = (3x + 6)^{ 2 }. Find f′(x)f'(x).
  2. f(x)=sin⁡(3x2)f(x) = \sin(3x^2). Find f′(x)f'(x).
  3. f(x)=e3x2f(x) = e^{ 3x^2}. Find f′(x)f'(x).

Discover

y=ln⁡xy = \ln x means ey=xe^y = x. The slope of eye^y is ey=xe^y = x. The graphs of ln⁡\ln and exp⁡\exp are reflections, so their slopes are reciprocal. What is (ln⁡x)′(\ln x)'?

  1. 1x\dfrac{1}{x}
  2. ln⁡x\ln x

Key idea

The derivatives of the inverse functions come from the chain rule.

(ln⁡x)′=1x(\ln x)' = \dfrac{1}{x} (x>0x > 0); (arcsin⁡x)′=11−x2(\arcsin x)' = \dfrac{1}{\sqrt{1 - x^2}}; (arctan⁡x)′=11+x2(\arctan x)' = \dfrac{1}{1 + x^2}. With an inside function: (ln⁡u)′=u′u(\ln u)' = \dfrac{u'}{u}.

Worked example

h(x)=ln⁡(x3+2)h(x) = \ln(x^3 + 2). Find h′(x)h'(x).

(ln⁡u)′=u′u(\ln u)' = \dfrac{u'}{u}
Inside u = x³ + 2, u' = 3x².
h′(x)=3x2x3+2h'(x) = \dfrac{3x^2}{x^3 + 2}
Substitute.

Your turn, guided

Your turn: h(x)=arctan⁡(x2)h(x) = \arctan(x^2).

h′(x)=2x1+x4h'(x) = \dfrac{2x}{1 + x^4}
u = x², u' = 2x; divide by 1 + u² = 1 + x⁴.

Practice ★

  1. f(x)=ln⁡(9x)f(x) = \ln(9x) for x>0x > 0. Find f′(x)f'(x).
  2. f(x)=ln⁡(2x)f(x) = \ln(2x) for x>0x > 0. Find f′(x)f'(x).
  1. f(x)=ln⁡(x2+2)f(x) = \ln(x^2 + 2). Find f′(x)f'(x).
  2. f(x)=ln⁡(x2+15)f(x) = \ln(x^2 + 15). Find f′(x)f'(x).

Watch out!

Practice ★★

  1. f(x)=arctan⁡(7x)f(x) = \arctan(7x). Find f′(x)f'(x).
  2. f(x)=arctan⁡(2x)f(x) = \arctan(2x). Find f′(x)f'(x).

Exit ticket

Three questions to check you have got it.

  1. f(x)=ln⁡(x2+2)f(x) = \ln(x^2 + 2). Find f′(x)f'(x).
  2. f(x)=ln⁡(x2+15)f(x) = \ln(x^2 + 15). Find f′(x)f'(x).
  3. f(x)=ln⁡(x2+3)f(x) = \ln(x^2 + 3). Find f′(x)f'(x).

Summary card

Inverse functions

  • (ln⁡x)′=1x(\ln x)' = \dfrac{1}{x}, (ln⁡u)′=u′u(\ln u)' = \dfrac{u'}{u}.
  • (arcsin⁡x)′=11−x2(\arcsin x)' = \dfrac{1}{\sqrt{1 - x^2}}, (arctan⁡x)′=11+x2(\arctan x)' = \dfrac{1}{1 + x^2}.

Watch out: the chain rule still applies to the inside.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=arcsin⁡(x2)f(x) = \arcsin\left(\dfrac{x}{ 2 }\right). Find f′(x)f'(x).

9. Logarithmic differentiation

Discover

How would you differentiate f(x)=xxf(x) = x^x? The base and the exponent both change.

  1. Take the logarithm first
  2. Use the power rule: x⋅xx−1x \cdot x^{x-1}

Key idea

Logarithmic differentiation.

If y=f(x)>0y = f(x) > 0, take ln⁡y\ln y, differentiate both sides, then multiply by yy:

y′y=(ln⁡y)′\dfrac{y'}{y} = (\ln y)', so y′=y (ln⁡y)′y' = y\,(\ln y)'.

Worked example

Differentiate y=xxy = x^x for x>0x > 0.

ln⁡y=xln⁡x\ln y = x\ln x
Take logarithms.
y′y=ln⁡x+1\dfrac{y'}{y} = \ln x + 1
Differentiate both sides (product rule on the right).
y′=xx(ln⁡x+1)y' = x^x(\ln x + 1)
Multiply by yy.

Your turn, guided

Your turn: for y=xxy = x^x, what is y′(1)y'(1)?

y′(1)=1y'(1) = 1
11(ln⁡1+1)=1×11^1(\ln 1 + 1) = 1 \times 1.

Practice ★

  1. f(x)=x3xf(x) = x^{ 3x} for x>0x > 0. Find f′(1)f'(1).
  2. f(x)=x2xf(x) = x^{ 2x} for x>0x > 0. Find f′(1)f'(1).
  3. f(x)=x8xf(x) = x^{ 8x} for x>0x > 0. Find f′(1)f'(1).

Practice ★★

  1. f(x)=xxf(x) = x^x. Find f′(4)f'(4) exactly.
  2. f(x)=xxf(x) = x^x. Find f′(2)f'(2) exactly.

Exit ticket

Two questions to check.

  1. f(x)=x3xf(x) = x^{ 3x} for x>0x > 0. Find f′(1)f'(1).
  2. f(x)=x2xf(x) = x^{ 2x} for x>0x > 0. Find f′(1)f'(1).

Summary card

Logarithmic differentiation

  • For y=f(x)g(x)y = f(x)^{g(x)}: write ln⁡y=g(x)ln⁡f(x)\ln y = g(x)\ln f(x).
  • Differentiate, then multiply by yy.

It also shortens long products and quotients.

10. History of calculus: Fermat, Newton and Leibniz

Discover

In the 1630s, the French lawyer Pierre de Fermat sent the Paris mathematicians his Method for determining maxima and minima and tangents to curved lines. Why would tangents and maxima belong in one method?

  1. At a maximum, the tangent is horizontal
  2. Both were needed to measure land

Key idea

One idea, found twice and written two ways.

16201640166016801700c. 1636Fermatc. 1636Fermat
  1. Step 116201640166016801700c. 1636Fermatc. 1636FermatPierre de Fermat c. 1607 – 1665Rolland Lefebvre. Public domain1630s: Fermat finds maxima, minima and tangents with one method and sends it to Paris.
  2. Step 216201640166016801700c. 1636Fermat1665Newtonc. 1636Fermat1665NewtonIsaac Newton 1642–1727Godfrey Kneller, 1689. Public domain1665: the plague closes Cambridge. At home in Lincolnshire, Newton develops his method of fluxions.
  3. Step 316201640166016801700c. 1636Fermat1665Newton1684Leibnizc. 1636Fermat1665Newton1684LeibnizGottfried Wilhelm Leibniz 1646–1716Christoph Bernhard Francke, before 1729. Public domain1684: Leibniz publishes 'A new method for maxima, minima and tangents', with the d-notation we still use.

Newton spoke of fluxions, quantities that flow in time. Leibniz wrote dxdx and dydy, and by 1676 he had the rule d(xn)=nxn−1 dxd(x^n) = n x^{n-1}\,dx. We still write dydx\dfrac{dy}{dx}, his notation.

Source

Nova methodus pro maximis et minimis, itemque tangentibus, quae nec fractas nec irrationales quantitates moratur, et singulare pro illis calculi genus.

A new method for maxima and minima, and also for tangents, which neither fractional nor irrational quantities hold up, and a singular kind of calculus for them.

Gottfried Wilhelm Leibniz, title of his 1684 article in Acta Eruditorum: the Latin, then our translation

What is Leibniz's 'new method' for?

  1. Finding maxima, minima and tangents
  2. Finding the areas of curved shapes

Worked example

Fermat's question, our way: which number xx makes x(10−x)x(10 - x) as large as possible?

10−2x=010 - 2x = 0
The slope of 10x−x210x - x^2 is 10−2x10 - 2x.
x=5x = 5, giving 2525
A flat tangent at the top.

Practice ★

  1. In 1684 Leibniz published 'A new method for maxima, minima and tangents'. What did his paper give the world?
    1. His differential calculus, with dx and dy
    2. The first table of logarithms
    3. Newton's laws of motion
  1. With Leibniz's rule d(xn)=nxn−1 dxd(x^n) = nx^{n-1}\,dx: find the slope of y=x4y = x^{ 4 } at x=2x = 2.
  2. With Leibniz's rule d(xn)=nxn−1 dxd(x^n) = nx^{n-1}\,dx: find the slope of y=x5y = x^{ 5 } at x=2x = 2.
  1. A Fermat-style question: a rectangle has perimeter 108 cm. Which side length gives the largest area?

Summary card

Derivatives today

  • Speed and acceleration in physics: rates of change.
  • Economics: marginal cost is the derivative of the cost.
  • Engineering and computer science: finding the best design, or training a neural network, means following slopes downhill.

Sources: MacTutor biographies of Fermat, Newton and Leibniz (see "Sources and credits").