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.

The derivative

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. Average and instantaneous velocity

Warm-up

Three quick questions from earlier lessons.

  1. Two models for a club's members after tt years: L(t)=5+5tL(t) = 5 + 5t and E(t)=5⋅2tE(t) = 5 \cdot 2^t.
    1. The average rate of change of L on [0,3][0, 3]:
    2. The average rate of change of E on [0,3][0, 3]:
    3. E is multiplied by the same factor each year. That factor:
    4. Write a model that starts at 5 and triples every year:
    5. The models are used for 0≤t≤50 \le t \le 5 only. The largest value of E on this domain:
  2. Find the average rate of change of f(x)=1x2f(x) = 1x^2 from x=0x = 0 to x=7x = 7.
  3. f(x)=−(x−5)2+8f(x) = -(x - 5)^2 + 8. On which interval is ff increasing?
    1. (−∞,5)(-\infty, 5)
    2. (5,∞)(5, \infty)
    3. (−∞,8)(-\infty, 8)

Discover

A ball is thrown up. Its height after tt seconds is s(t)s(t) meters. Here is the line through the points of the graph at t=1t = 1 and t=1+ht = 1 + h (the curve is in violet). Make hh smaller.

The height s(t) = 20t − 5t² and the line through its points at t = 1 and t = 1 + h. As h shrinks, the line settles on the tangent at t = 1, of slope 10.

The slope of that line is the average velocity on [1,1+h][1, 1 + h]. As hh shrinks, what does it approach?

  1. About 10 m/s
  2. 15

Key idea

Velocity at one instant is the limit of average velocities over shorter and shorter intervals.

Average velocity on [a,a+h][a, a + h]: s(a+h)−s(a)h\dfrac{s(a + h) - s(a)}{h}. Instantaneous velocity at t=at = a: lim⁡h→0s(a+h)−s(a)h\displaystyle\lim_{h \to 0} \dfrac{s(a + h) - s(a)}{h}.

Worked example

s(t)=20t−5t2s(t) = 20t - 5t^2. Find the velocity at t=1t = 1.

s(1+h)=15+10h−5h2s(1 + h) = 15 + 10h - 5h^2
Substitute 1 + h and expand: 20 + 20h − 5(1 + 2h + h²).
s(1+h)−s(1)h=10−5h\dfrac{s(1 + h) - s(1)}{h} = 10 - 5h
Subtract s(1) = 15 and divide by h ≠ 0.
velocity at t=1t = 1: 1010 m/s
Let h → 0.

Your turn, guided

Your turn: same ball, t=3t = 3. The average velocity on [3,3+h][3, 3 + h] simplifies to −10−5h-10 - 5h.

velocity at t=3t = 3: −10-10 m/s
Let h → 0: the ball is on its way down.

Practice ★

  1. A ball's position is s(t)=2t2+4ts(t) = 2t^2 + 4t meters after tt seconds. Find its average velocity on [0,5][0, 5], in m/s.
  2. A ball's position is s(t)=10t2+10ts(t) = 10t^2 + 10t meters after tt seconds. Find its average velocity on [5,14][5, 14], in m/s.
  3. A ball's position is s(t)=2t2+7ts(t) = 2t^2 + 7t meters after tt seconds. Find its average velocity on [1,5][1, 5], in m/s.

Watch out!

Practice ★★

  1. s(t)=5t2s(t) = 5t^2. Simplify the average velocity on [3,3+h][3, 3 + h], s(3+h)−s(3)h\dfrac{s(3 + h) - s(3)}{h} for h≠0h \ne 0. Enter an expression in hh.
  2. s(t)=2t2s(t) = 2t^2. Simplify the average velocity on [2,2+h][2, 2 + h], s(2+h)−s(2)h\dfrac{s(2 + h) - s(2)}{h} for h≠0h \ne 0. Enter an expression in hh.
  1. s(t)=1t2+2ts(t) = 1t^2 + 2t meters. The average velocity on [4,4+h][4, 4 + h] simplifies to 10+1h10 + 1h m/s. Find the instantaneous velocity at t=4t = 4, in m/s.
  2. s(t)=6t2+10ts(t) = 6t^2 + 10t meters. The average velocity on [8,8+h][8, 8 + h] simplifies to 106+6h106 + 6h m/s. Find the instantaneous velocity at t=8t = 8, in m/s.

Exit ticket

Three questions to check you have got it.

  1. s(t)=1t2+2ts(t) = 1t^2 + 2t meters. The average velocity on [4,4+h][4, 4 + h] simplifies to 10+1h10 + 1h m/s. Find the instantaneous velocity at t=4t = 4, in m/s.
  2. s(t)=6t2+10ts(t) = 6t^2 + 10t meters. The average velocity on [8,8+h][8, 8 + h] simplifies to 106+6h106 + 6h m/s. Find the instantaneous velocity at t=8t = 8, in m/s.
  3. s(t)=2t2+7ts(t) = 2t^2 + 7t meters. The average velocity on [5,5+h][5, 5 + h] simplifies to 27+2h27 + 2h m/s. Find the instantaneous velocity at t=5t = 5, in m/s.

Summary card

Velocity

  • Average: s(a+h)−s(a)h\dfrac{s(a + h) - s(a)}{h}, change in position ÷ change in time.
  • Instantaneous: the limit of that as h→0h \to 0.

Watch out: divide by the time; a change in position alone is not a velocity.

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

Challenge ★★★

  1. s(t)=3t2+9ts(t) = 3t^2 + 9t. At what time tt does the instantaneous velocity equal the average velocity on [0,6][0, 6]?

2. The derivative at a point: the limit definition

Warm-up

Three quick questions from earlier lessons.

  1. A ball's position is s(t)=2t2+4ts(t) = 2t^2 + 4t meters after tt seconds. Find its average velocity on [0,5][0, 5], in m/s.
  2. s(t)=5t2s(t) = 5t^2. Simplify the average velocity on [3,3+h][3, 3 + h], s(3+h)−s(3)h\dfrac{s(3 + h) - s(3)}{h} for h≠0h \ne 0. Enter an expression in hh.
  3. s(t)=1t2+2ts(t) = 1t^2 + 2t meters. The average velocity on [4,4+h][4, 4 + h] simplifies to 10+1h10 + 1h m/s. Find the instantaneous velocity at t=4t = 4, in m/s.

Discover

The violet curve is y=x2y = x^2. The blue line goes through its points at x=ax = a and x=a+hx = a + h. Move aa, then shrink hh.

The parabola y = x² and a secant line through its points at x = a and x = a + h. As h shrinks, the secant turns into the tangent line at x = a, of slope 2a.

With a=1a = 1, the slope of the blue line is 2+h2 + h. What does it approach as h→0h \to 0?

  1. 2
  2. 1

Key idea

The derivative at a point is the limit of the secant slopes.

  1. Step 1h = 2: the secant through P and Q has slope 2.
  2. Step 2h = 1: slope 1.5.
  3. Step 3h = 0.5: slope 1.25.
  4. Step 4h = 0.1: slope 1.05 — the slopes approach 1, the slope of the tangent at P.

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \displaystyle\lim_{h \to 0} \dfrac{f(a + h) - f(a)}{h}, when this limit exists. It is the instantaneous rate of change of ff at aa and the slope of the tangent line at (a,f(a))(a, f(a)).

Worked example

f(x)=x2+3xf(x) = x^2 + 3x. Find f′(2)f'(2).

f(2+h)−f(2)=7h+h2f(2 + h) - f(2) = 7h + h^2
f(2 + h) = 4 + 4h + h² + 6 + 3h; f(2) = 10.
f(2+h)−f(2)h=7+h\dfrac{f(2 + h) - f(2)}{h} = 7 + h
Divide by h ≠ 0.
f′(2)=7f'(2) = 7
Let h → 0.

Your turn, guided

Your turn: f(x)=x2+3xf(x) = x^2 + 3x at a=1a = 1.

f(1+h)−f(1)=5h+h2f(1 + h) - f(1) = 5h + h^2
f(1 + h) = 1 + 2h + h² + 3 + 3h; f(1) = 4.
f′(1)=5f'(1) = 5
Divide by h, then let h → 0.

Practice ★

  1. f(x)=x2+2xf(x) = x^2 + 2x. Use f′(3)=lim⁡h→0f(3+h)−f(3)hf'(3) = \displaystyle\lim_{h \to 0} \dfrac{f(3 + h) - f(3)}{h} to find f′(3)f'(3).
  2. f(x)=x2+14xf(x) = x^2 + 14x. Use f′(12)=lim⁡h→0f(12+h)−f(12)hf'(12) = \displaystyle\lim_{h \to 0} \dfrac{f(12 + h) - f(12)}{h} to find f′(12)f'(12).
  3. f(x)=x2+3xf(x) = x^2 + 3x. Use f′(2)=lim⁡h→0f(2+h)−f(2)hf'(2) = \displaystyle\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h} to find f′(2)f'(2).

Watch out!

Practice ★★

  1. Which expression is f′(2)f'(2)?
    1. lim⁡h→0f(2+h)−f(2)h\displaystyle\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h}
    2. lim⁡h→0(f(2+h)−f(2))\displaystyle\lim_{h \to 0} \big(f(2 + h) - f(2)\big)
    3. f(2+1)−f(2)1\dfrac{f(2 + 1) - f(2)}{1}
    4. f(2)f(2)
  1. f(x)=3xf(x) = \dfrac{ 3 }{x}. Use the limit definition to find f′(2)f'(2).
  2. f(x)=18xf(x) = \dfrac{ 18 }{x}. Use the limit definition to find f′(7)f'(7).

Exit ticket

Three questions to check you have got it.

  1. f(x)=x2+2xf(x) = x^2 + 2x. Use f′(3)=lim⁡h→0f(3+h)−f(3)hf'(3) = \displaystyle\lim_{h \to 0} \dfrac{f(3 + h) - f(3)}{h} to find f′(3)f'(3).
  2. f(x)=x2+14xf(x) = x^2 + 14x. Use f′(12)=lim⁡h→0f(12+h)−f(12)hf'(12) = \displaystyle\lim_{h \to 0} \dfrac{f(12 + h) - f(12)}{h} to find f′(12)f'(12).
  3. f(x)=x2+3xf(x) = x^2 + 3x. Use f′(2)=lim⁡h→0f(2+h)−f(2)hf'(2) = \displaystyle\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h} to find f′(2)f'(2).

Summary card

The derivative at a point

  1. Write f(a+h)−f(a)f(a + h) - f(a) and simplify.
  2. Divide by hh.
  3. Let h→0h \to 0: the result is f′(a)f'(a).

Watch out: f′(a)f'(a) is a slope, not the value f(a)f(a).

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

Challenge ★★★

  1. f(x)=x3f(x) = x^3. Use the definition to find f′(4)f'(4) (expand (4+h)3(4 + h)^3).

3. The tangent line

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x2+2xf(x) = x^2 + 2x. Use f′(3)=lim⁡h→0f(3+h)−f(3)hf'(3) = \displaystyle\lim_{h \to 0} \dfrac{f(3 + h) - f(3)}{h} to find f′(3)f'(3).
  2. Which expression is f′(2)f'(2)?
    1. lim⁡h→0f(2+h)−f(2)h\displaystyle\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h}
    2. lim⁡h→0(f(2+h)−f(2))\displaystyle\lim_{h \to 0} \big(f(2 + h) - f(2)\big)
    3. f(2+1)−f(2)1\dfrac{f(2 + 1) - f(2)}{1}
    4. f(2)f(2)
  3. f(x)=3xf(x) = \dfrac{ 3 }{x}. Use the limit definition to find f′(2)f'(2).

Discover

The blue line is the tangent to y=x2y = x^2 at x=ax = a. Move aa.

The parabola y = x² and its tangent line at x = a, which touches the curve at (a, a²) with slope 2a.

At a=1a = 1, the tangent has slope 2 and touches the curve at (1,1)(1, 1). Which equation is it?

  1. y=1+2(x−1)y = 1 + 2(x - 1)
  2. y=2xy = 2x

Key idea

The tangent line touches the graph at (a,f(a))(a, f(a)) with slope f′(a)f'(a).

Tangent line to y=f(x)y = f(x) at x=ax = a: y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a).

Worked example

f(2)=5f(2) = 5 and f′(2)=−3f'(2) = -3. Write the tangent line at x=2x = 2.

y=5+(−3)(x−2)y = 5 + (-3)(x - 2)
The point (2, 5) and the slope −3.
y=−3x+11y = -3x + 11
Expand if you like.

Your turn, guided

Your turn: f(4)=1f(4) = 1 and f′(4)=2f'(4) = 2.

y=1+2(x−4)y = 1 + 2(x - 4)
Point (4, 1), slope 2.
y=2x−7y = 2x - 7
Expanded: 2x − 8 + 1.

Practice ★

  1. For f(x)=x2f(x) = x^2, f′(x)=2xf'(x) = 2x. Draw the tangent line to the graph at x=1x = 1: place two points on it.
  2. For f(x)=x2f(x) = x^2, f′(x)=2xf'(x) = 2x. Draw the tangent line to the graph at x=−2x = -2: place two points on it.
  1. f(1)=2f(1) = 2 and f′(1)=3f'(1) = 3. Write the tangent line to the graph of ff at x=1x = 1: enter the right-hand side of y=…y = \ldots
  2. f(2)=−5f(2) = -5 and f′(2)=3f'(2) = 3. Write the tangent line to the graph of ff at x=2x = 2: enter the right-hand side of y=…y = \ldots

Watch out!

Practice ★★

  1. For f(x)=x3f(x) = x^3, the difference quotient at x=−3x = -3 simplifies to 27+−9h+h227 + -9h + h^2. What is the slope of the tangent line at x=−3x = -3?
  2. For f(x)=x3f(x) = x^3, the difference quotient at x=−2x = -2 simplifies to 12+−6h+h212 + -6h + h^2. What is the slope of the tangent line at x=−2x = -2?

Exit ticket

Three questions to check you have got it.

  1. f(1)=2f(1) = 2 and f′(1)=3f'(1) = 3. Write the tangent line to the graph of ff at x=1x = 1: enter the right-hand side of y=…y = \ldots
  2. f(2)=−5f(2) = -5 and f′(2)=3f'(2) = 3. Write the tangent line to the graph of ff at x=2x = 2: enter the right-hand side of y=…y = \ldots
  3. f(1)=−4f(1) = -4 and f′(1)=−3f'(1) = -3. Write the tangent line to the graph of ff at x=1x = 1: enter the right-hand side of y=…y = \ldots

Summary card

The tangent line

  • Point: (a,f(a))(a, f(a)). Slope: f′(a)f'(a).
  • y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a).

Watch out: y=f′(a) xy = f'(a)\,x has the right slope but usually misses the point.

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

Challenge ★★★

  1. At which point (xx-value) is the tangent to y=x2y = x^2 parallel to the line y=−4x+1y = -4x + 1?

4. The derivative function

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x2+2xf(x) = x^2 + 2x. Use f′(3)=lim⁡h→0f(3+h)−f(3)hf'(3) = \displaystyle\lim_{h \to 0} \dfrac{f(3 + h) - f(3)}{h} to find f′(3)f'(3).
  2. Which expression is f′(2)f'(2)?
    1. lim⁡h→0f(2+h)−f(2)h\displaystyle\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h}
    2. lim⁡h→0(f(2+h)−f(2))\displaystyle\lim_{h \to 0} \big(f(2 + h) - f(2)\big)
    3. f(2+1)−f(2)1\dfrac{f(2 + 1) - f(2)}{1}
    4. f(2)f(2)
  3. f(x)=3xf(x) = \dfrac{ 3 }{x}. Use the limit definition to find f′(2)f'(2).

Discover

The violet curve is y=x3−3xy = x^3 - 3x. The blue line is its tangent at x=ax = a. Slide aa from −2-2 to 22 and watch the slope.

The cubic y = x³ − 3x and its tangent at x = a. The tangent is horizontal at x = −1 and x = 1, slopes down between them, and slopes up outside.

Between x=−1x = -1 and x=1x = 1, the graph falls. What is the sign of the slope there?

  1. Negative
  2. Positive

Key idea

Computing f′(a)f'(a) at every aa gives a new function.

The derivative function is f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \displaystyle\lim_{h \to 0} \dfrac{f(x + h) - f(x)}{h}. Where ff rises, f′(x)>0f'(x) > 0; where ff falls, f′(x)<0f'(x) < 0; where the tangent is horizontal, f′(x)=0f'(x) = 0.

Worked example

f(x)=x2−4xf(x) = x^2 - 4x. Find f′(x)f'(x).

f(x+h)−f(x)=2xh+h2−4hf(x + h) - f(x) = 2xh + h^2 - 4h
Expand (x + h)² − 4(x + h) and subtract x² − 4x.
f(x+h)−f(x)h=2x+h−4\dfrac{f(x + h) - f(x)}{h} = 2x + h - 4
Divide by h ≠ 0.
f′(x)=2x−4f'(x) = 2x - 4
Let h → 0. Check: f' = 0 at x = 2, the vertex.

Your turn, guided

Your turn: f(x)=x2+6xf(x) = x^2 + 6x.

f(x+h)−f(x)h=2x+h+6\dfrac{f(x + h) - f(x)}{h} = 2x + h + 6
The same steps.
f′(x)=2x+6f'(x) = 2x + 6
Let h → 0.

Practice ★

  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. Here is the graph of y=f(x)y = f(x). Tap the point of the graph where f′(x)=0f'(x) = 0.
  1. 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

Watch out!

Practice ★★

  1. 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).
  2. f(x)=10x2+14xf(x) = 10x^2 + 14x. 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).
  3. f(x)=3x2+2xf(x) = 3x^2 + 2x. 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).

Exit ticket

Three questions to check you have got it.

  1. 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).
  2. f(x)=10x2+14xf(x) = 10x^2 + 14x. 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).
  3. f(x)=3x2+2xf(x) = 3x^2 + 2x. 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).

Summary card

The derivative function

  • f′(x)f'(x) is the slope of ff at each xx.
  • ff rises: f′>0f' > 0. ff falls: f′<0f' < 0. Horizontal tangent: f′=0f' = 0.

Watch out: f′=0f' = 0 (flat) is not the same as f=0f = 0 (on the axis).

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

Challenge ★★★

  1. f(x)=x2−10xf(x) = x^2 - 10x. For which xx is f′(x)=0f'(x) = 0?

5. Interpreting the derivative: rates and units

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x2+2xf(x) = x^2 + 2x. Use f′(3)=lim⁡h→0f(3+h)−f(3)hf'(3) = \displaystyle\lim_{h \to 0} \dfrac{f(3 + h) - f(3)}{h} to find f′(3)f'(3).
  2. Which expression is f′(2)f'(2)?
    1. lim⁡h→0f(2+h)−f(2)h\displaystyle\lim_{h \to 0} \dfrac{f(2 + h) - f(2)}{h}
    2. lim⁡h→0(f(2+h)−f(2))\displaystyle\lim_{h \to 0} \big(f(2 + h) - f(2)\big)
    3. f(2+1)−f(2)1\dfrac{f(2 + 1) - f(2)}{1}
    4. f(2)f(2)
  3. f(x)=3xf(x) = \dfrac{ 3 }{x}. Use the limit definition to find f′(2)f'(2).

Discover

T(m)T(m) is the temperature of a cup of coffee, in °F, mm minutes after it is poured. T′(10)=−2T'(10) = -2. What are the units of −2-2?

  1. °F per minute
  2. °F

Key idea

A derivative is a rate, with units.

If f(x)f(x) is measured in output units and xx in input units, then f′(a)f'(a) is in output units per input unit. f′(a)=rf'(a) = r means: at x=ax = a, ff changes by about rr for each extra unit of xx.

Worked example

Interpret T′(10)=−2T'(10) = -2.

Ten minutes after it is poured…
Input 10 minutes, output a rate in °F per minute.
…the coffee is cooling by about 2 °F per minute
Negative: the temperature goes down.
So T(11)≈T(10)−2T(11) \approx T(10) - 2
A rate lets you estimate a small change.

Your turn, guided

Your turn: s(t)s(t) meters, tt seconds. s(4)=30s(4) = 30 and s(4.5)=34s(4.5) = 34.

s′(4)≈34−300.5s'(4) \approx \dfrac{34 - 30}{0.5}
4 meters in 0.5 seconds.
s′(4)≈8s'(4) \approx 8 m/s
4 ÷ 0.5.

Practice ★

  1. V(t)V(t) is the volume of water in a tank, in liters, tt minutes after a tap is opened. V′(2)=8V'(2) = 8. What does this mean?
    1. At t=2t = 2 min, the volume is increasing at about 8 liters per minute.
    2. After 2 minutes, the tank holds 8 liters.
    3. In the first 2 minutes, 8 liters flowed in.
    4. It takes 8 minutes to add 2 liters.
  2. V(t)V(t) is the volume of water in a tank, in liters, tt minutes after a tap is opened. V′(7)=11V'(7) = 11. What does this mean?
    1. At t=7t = 7 min, the volume is increasing at about 11 liters per minute.
    2. After 7 minutes, the tank holds 11 liters.
    3. In the first 7 minutes, 11 liters flowed in.
    4. It takes 11 minutes to add 7 liters.
  1. C(q)C(q) is the cost, in dollars, of making qq bikes. What are the units of C′(125)C'(125)?
    1. dollars per bike
    2. dollars
    3. bikes per dollar

Watch out!

Practice ★★

  1. A car's position is s(t)s(t) meters after tt seconds. s(2)=31s(2) = 31 and s(2.5)=39s(2.5) = 39. Estimate s′(2)s'(2), in m/s.
  2. A car's position is s(t)s(t) meters after tt seconds. s(14)=239s(14) = 239 and s(14.5)=256s(14.5) = 256. Estimate s′(14)s'(14), in m/s.
  3. A car's position is s(t)s(t) meters after tt seconds. s(4)=34s(4) = 34 and s(4.5)=38s(4.5) = 38. Estimate s′(4)s'(4), in m/s.

Exit ticket

Three questions to check you have got it.

  1. V(t)V(t) is the volume of water in a tank, in liters, tt minutes after a tap is opened. V′(2)=8V'(2) = 8. What does this mean?
    1. At t=2t = 2 min, the volume is increasing at about 8 liters per minute.
    2. After 2 minutes, the tank holds 8 liters.
    3. In the first 2 minutes, 8 liters flowed in.
    4. It takes 8 minutes to add 2 liters.
  2. V(t)V(t) is the volume of water in a tank, in liters, tt minutes after a tap is opened. V′(7)=11V'(7) = 11. What does this mean?
    1. At t=7t = 7 min, the volume is increasing at about 11 liters per minute.
    2. After 7 minutes, the tank holds 11 liters.
    3. In the first 7 minutes, 11 liters flowed in.
    4. It takes 11 minutes to add 7 liters.
  3. V(t)V(t) is the volume of water in a tank, in liters, tt minutes after a tap is opened. V′(3)=19V'(3) = 19. What does this mean?
    1. At t=3t = 3 min, the volume is increasing at about 19 liters per minute.
    2. After 3 minutes, the tank holds 19 liters.
    3. In the first 3 minutes, 19 liters flowed in.
    4. It takes 19 minutes to add 3 liters.

Summary card

Reading a derivative

  • Units: output units per input unit.
  • f′(a)=rf'(a) = r: at x=ax = a, ff changes by about rr per extra unit of xx.

Watch out: f′(a)f'(a) is a rate at one moment, not a value and not a total change.

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

Challenge ★★★

  1. C(q)C(q) is the cost in dollars of making qq bikes, and C′(100)=22C'(100) = 22. About how much does the cost rise when 108 bikes are made instead of 100?

6. The second derivative, concavity and acceleration

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

The violet curve is y=x3y = x^3. The blue line is its tangent at x=ax = a. Slide aa from −2-2 to 22.

The cubic y = x³ and its tangent at x = a. For a < 0 the curve bends down and lies below the tangent; for a > 0 it bends up and lies above it. The bending changes at x = 0.

For a>0a > 0, the curve lies above its tangent lines and the slopes 3a23a^2 grow. How does the graph bend there?

  1. It bends up (concave up)
  2. It bends down (concave down)

Key idea

The derivative of the derivative tells how the slope changes.

f′′(x)f''(x) is the derivative of f′(x)f'(x). If f′′>0f'' > 0, f′f' increases and ff is concave up; if f′′<0f'' < 0, f′f' decreases and ff is concave down. A point where the concavity changes is an inflection point. For motion: acceleration a(t)=v′(t)=s′′(t)a(t) = v'(t) = s''(t).

Worked example

v(t)=t2+4tv(t) = t^2 + 4t m/s. Find the acceleration at t=3t = 3.

a(t)=v′(t)=2t+4a(t) = v'(t) = 2t + 4
From the derivative-function lesson: the derivative of t² + 4t.
a(3)=10a(3) = 10 m/s²
Substitute t = 3.

Your turn, guided

Your turn: same v(t)v(t), at t=1t = 1.

a(1)=6a(1) = 6 m/s²
2 · 1 + 4.

Practice ★

  1. On (2,8)(2, 8), the graph of ff is increasing and concave down. Tick all the true statements about that interval.
    1. f′(x)>0f'(x) > 0
    2. f′′(x)<0f''(x) < 0
    3. f′f' is decreasing: the graph rises more and more slowly
    4. f′′(x)>0f''(x) > 0, because ff is increasing
    5. f′(x)<0f'(x) < 0, because the graph bends down
  1. A particle's velocity is v(t)=t2+2tv(t) = t^2 + 2t m/s. Its acceleration is a(t)=v′(t)a(t) = v'(t). Find a(3)a(3), in m/s².
  2. A particle's velocity is v(t)=t2+28tv(t) = t^2 + 28t m/s. Its acceleration is a(t)=v′(t)a(t) = v'(t). Find a(27)a(27), in m/s².

Watch out!

Practice ★★

  1. Here is the graph of the derivative y=f′(x)y = f'(x). Tap the point of this graph at the xx-value where ff has an inflection point.
  2. Here is the graph of the derivative y=f′(x)y = f'(x). Tap the point of this graph at the xx-value where ff has an inflection point.

Exit ticket

Three questions to check you have got it.

  1. A particle's velocity is v(t)=t2+2tv(t) = t^2 + 2t m/s. Its acceleration is a(t)=v′(t)a(t) = v'(t). Find a(3)a(3), in m/s².
  2. A particle's velocity is v(t)=t2+28tv(t) = t^2 + 28t m/s. Its acceleration is a(t)=v′(t)a(t) = v'(t). Find a(27)a(27), in m/s².
  3. A particle's velocity is v(t)=t2+1tv(t) = t^2 + 1t m/s. Its acceleration is a(t)=v′(t)a(t) = v'(t). Find a(2)a(2), in m/s².

Summary card

The second derivative

  • f′′>0f'' > 0: slopes grow, concave up. f′′<0f'' < 0: slopes shrink, concave down.
  • Inflection point: the concavity changes; there f′f' has a maximum or minimum.
  • Acceleration is the derivative of velocity.

Watch out: f′f' says rising or falling; f′′f'' says how it bends.

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

Challenge ★★★

  1. f(x)=x4−42x2f(x) = x^4 - 42x^2. At which positive xx does f′′f'' change sign?

7. Differentiability and continuity

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

f(x)=∣x∣f(x) = |x|. Just left of 0 the slope is −1-1; just right of 0 it is 11. Does the graph have one tangent line at the origin?

  1. No
  2. Yes, since the graph has no break

Key idea

Differentiable means the limit defining f′(a)f'(a) exists.

If ff is differentiable at aa, then ff is continuous at aa. The converse is false: a continuous function fails to be differentiable at a corner, a cusp or a vertical tangent. A function is also not differentiable where it is not continuous.

Worked example

Is f(x)=∣x−2∣+1f(x) = |x - 2| + 1 differentiable at x=2x = 2?

ff is continuous at 22
No jump or hole at 2.
Slope −1-1 on the left, 11 on the right
The two pieces are 1 − (x − 2) and 1 + (x − 2).
Not differentiable at x=2x = 2: a corner
The one-sided slopes differ.

Your turn, guided

Your turn: f(x)=x2f(x) = x^2 for x≤1x \le 1 and f(x)=2x−1f(x) = 2x - 1 for x>1x > 1.

The pieces meet at (1,1)(1, 1)
Both pieces give 1 at x = 1.
Slope from the left: 22, from the right: 22, so ff is differentiable at 11
The slope of x² at 1 is 2 · 1.

Practice ★

  1. Is f(x)=∣x−−1∣f(x) = |x - -1| differentiable at x=−1x = -1?
    1. No: the graph has a corner there (slopes −1 and 1).
    2. Yes, because ff is continuous at x=−1x = -1.
    3. No, because ff is not continuous at x=−1x = -1.
  2. Is f(x)=∣x−1∣f(x) = |x - 1| differentiable at x=1x = 1?
    1. No: the graph has a corner there (slopes −1 and 1).
    2. Yes, because ff is continuous at x=1x = 1.
    3. No, because ff is not continuous at x=1x = 1.

Watch out!

Practice ★★

  1. Which functions are differentiable at x=0x = 0? Tick all that are.
    1. x2+8xx^2 + 8x
    2. sin⁡(8x)\sin(8x)
    3. 8∣x∣8|x|
    4. x3\sqrt[3]{x}
    5. f(x)=0f(x) = 0 for x<0x < 0 and f(x)=8f(x) = 8 for x≥0x \ge 0
  1. f(x)=x2f(x) = x^2 for x≤4x \le 4 and f(x)=mx−16f(x) = mx - 16 for x>4x > 4. Which value of mm makes ff differentiable at x=4x = 4?
  2. f(x)=x2f(x) = x^2 for x≤29x \le 29 and f(x)=mx−841f(x) = mx - 841 for x>29x > 29. Which value of mm makes ff differentiable at x=29x = 29?

Exit ticket

Three questions to check you have got it.

  1. f(x)=x2f(x) = x^2 for x≤4x \le 4 and f(x)=mx−16f(x) = mx - 16 for x>4x > 4. Which value of mm makes ff differentiable at x=4x = 4?
  2. f(x)=x2f(x) = x^2 for x≤29x \le 29 and f(x)=mx−841f(x) = mx - 841 for x>29x > 29. Which value of mm makes ff differentiable at x=29x = 29?
  3. f(x)=x2f(x) = x^2 for x≤3x \le 3 and f(x)=mx−9f(x) = mx - 9 for x>3x > 3. Which value of mm makes ff differentiable at x=3x = 3?

Summary card

Differentiability

  • Differentiable ⇒ continuous; not the other way round.
  • No derivative at a corner, a cusp, a vertical tangent, or a break.
  • To join two pieces smoothly, match the heights and the slopes.

Watch out: an unbroken graph can still have no tangent line.

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

Challenge ★★★

  1. At how many points is f(x)=∣x2−25∣f(x) = |x^2 - 25| not differentiable?

8. Local linearization

Warm-up

Three quick questions from earlier lessons.

  1. For f(x)=x2f(x) = x^2, f′(x)=2xf'(x) = 2x. Draw the tangent line to the graph at x=1x = 1: place two points on it.
  2. f(1)=2f(1) = 2 and f′(1)=3f'(1) = 3. Write the tangent line to the graph of ff at x=1x = 1: enter the right-hand side of y=…y = \ldots
  3. For f(x)=x3f(x) = x^3, the difference quotient at x=−3x = -3 simplifies to 27+−9h+h227 + -9h + h^2. What is the slope of the tangent line at x=−3x = -3?

Discover

The violet curve is y=xy = \sqrt{x}; the blue line is its tangent at x=ax = a. Move aa: near the point of contact, curve and line almost agree.

The curve y = √x and its tangent line at x = a. Near x = a the two are almost the same; farther away the line rises above the curve.

At a=4a = 4 the tangent is L(x)=2+14(x−4)L(x) = 2 + \tfrac{1}{4}(x - 4). Use it to estimate 4.4\sqrt{4.4}.

  1. 2.1
  2. 2.4

Key idea

Near x=ax = a, a differentiable function is almost its tangent line.

The local linearization of ff at x=ax = a is L(x)=f(a)+f′(a)(x−a)L(x) = f(a) + f'(a)(x - a), and f(x)≈L(x)f(x) \approx L(x) for xx near aa. If ff is concave up near aa, LL underestimates; if concave down, it overestimates.

Worked example

f(x)=xf(x) = \sqrt{x}, f′(x)=12xf'(x) = \dfrac{1}{2\sqrt{x}}. Estimate 9.6\sqrt{9.6}.

f(9)=3f(9) = 3, f′(9)=16f'(9) = \tfrac{1}{6}
A nearby point with an exact root: a = 9.
L(9.6)=3+16(0.6)=3.1L(9.6) = 3 + \tfrac{1}{6}(0.6) = 3.1
L(x) = f(9) + f'(9)(x − 9).
9.6≈3.1\sqrt{9.6} \approx 3.1 (true value 3.098…3.098…)
√x is concave down: the estimate is a little too big.

Your turn, guided

Your turn: f(2)=7f(2) = 7 and f′(2)=3f'(2) = 3. Estimate f(2.1)f(2.1).

f(2.1)≈7+3(0.1)=7.3f(2.1) \approx 7 + 3(0.1) = 7.3
L(x) = 7 + 3(x − 2).

Practice ★

  1. f(2)=3f(2) = 3 and f′(2)=2f'(2) = 2. Write the local linearization L(x)L(x) of ff at x=2x = 2.
  2. f(4)=−5f(4) = -5 and f′(4)=−4f'(4) = -4. Write the local linearization L(x)L(x) of ff at x=4x = 4.
  3. f(4)=4f(4) = 4 and f′(4)=−1f'(4) = -1. Write the local linearization L(x)L(x) of ff at x=4x = 4.

Watch out!

Practice ★★

  1. f(x)=xf(x) = \sqrt{x} has f′(x)=12xf'(x) = \dfrac{1}{2\sqrt{x}}. Use the local linearization at x=4x = 4 to estimate 6\sqrt{ 6 }. Give an exact fraction.
  2. f(x)=xf(x) = \sqrt{x} has f′(x)=12xf'(x) = \dfrac{1}{2\sqrt{x}}. Use the local linearization at x=4x = 4 to estimate 8\sqrt{ 8 }. Give an exact fraction.
  1. Near x=4x = 4, the graph of ff is concave up. Does the local linearization at x=4x = 4 over- or underestimate f(x)f(x) for xx near 44?
    1. Underestimate: the tangent line lies below the curve.
    2. Overestimate: the tangent line lies above the curve.
    3. Neither: near x=4x = 4 the linearization is exact.

Exit ticket

Three questions to check you have got it.

  1. f(2)=3f(2) = 3 and f′(2)=2f'(2) = 2. Write the local linearization L(x)L(x) of ff at x=2x = 2.
  2. f(4)=−5f(4) = -5 and f′(4)=−4f'(4) = -4. Write the local linearization L(x)L(x) of ff at x=4x = 4.
  3. f(4)=4f(4) = 4 and f′(4)=−1f'(4) = -1. Write the local linearization L(x)L(x) of ff at x=4x = 4.

Summary card

Local linearization

  • L(x)=f(a)+f′(a)(x−a)L(x) = f(a) + f'(a)(x - a), the tangent line used as an estimate.
  • Good near aa; concave up underestimates, concave down overestimates.

Watch out: multiply the step x−ax - a by the slope f′(a)f'(a).

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

Challenge ★★★

  1. Use the local linearization of f(x)=x3f(x) = \sqrt[3]{x} at x=27x = 27 to estimate 323\sqrt[3]{ 32 }.

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").