Grade by Grade
A. Rate of Change · Derivatives and Differentiation Rules

The Derivative Function: Tables and Graphs of Tangent Slopes

A2.2 A2.1About 70 minutes
Learning goals
  • I can build a table of instantaneous rates of change for a polynomial and graph the pairs (x, slope).
  • I can recognize the graph of those pairs as the derivative function f′.
  • I can describe how the graphs of f and f′ are connected.
  • I can see that the derivative of a polynomial of degree n has degree n − 1.

Words to know

derivative
The function f′ whose value at x is the instantaneous rate of change (tangent slope) of f at x.
f′(x)
Notation for the derivative of f, read "f prime of x".
slope graph
A graph of the points (x, tangent slope at x). It is the graph of the derivative.
centred difference
The estimate [f(a + h) − f(a − h)] ÷ (2h) for the tangent slope at x = a, using a small h.

From one slope to a whole function

In the last lesson you found tangent slopes at a handful of points and used their signs. Now we keep the actual numbers. If you find the tangent slope at every x-value and plot the pairs (x, slope), you get the graph of a brand-new function. That function is the derivative.

Remember from MHF4U: in the lesson Reading Rates of Change from Graphs (unit Rates of Change) you sketched rough slope graphs. Today you make them precise and find their equations.

The derivative function

The derivative of f is the function f′ (read "f prime") whose value at each x is the slope of the tangent to y = f(x) at that x:

f′(x) = instantaneous rate of change of f at x = slope of the tangent at (x, f(x))

If f(x) = x², the tangents at x = −3, −2, −1, 0, 1, 2, 3 have slopes −6, −4, −2, 0, 2, 4, 6 (you can check each one with the difference quotient). Every slope is double its x-value. So f′(x) = 2x.

xy-3-2-112349y = x²xslope-3-2-1123-6-4-2246slope graph: y = 2x
Top: tangents to y = x² at x = −3, −2, …, 3. Bottom: each tangent's slope plotted against its x-value. The points (−3, −6), …, (3, 6) lie on the line y = 2x, so the derivative of x² is 2x.

Making the table with technology (or a calculator)

To build a table of tangent slopes for any function, use the centred estimate from MHF4U with a tiny h:

f′(a) ≈ [f(a + 0.001) − f(a − 0.001)] ÷ 0.002

In a graphing tool such as Desmos or GeoGebra, you can type the function f(x), then type g(x) = (f(x + 0.001) − f(x − 0.001))/0.002. The graph of g is (very nearly) the graph of f′. With a scientific calculator, you can do the same thing at five or six x-values and look for a pattern.

The table below gives the slopes for three polynomials. The values are rounded to the nearest whole number, so the tiny errors from using h = 0.001 disappear.

x−2−10123
slope of f(x) = 2x + 1222222
slope of f(x) = x²−4−20246
slope of f(x) = x³123031227
slope of f(x) = x³ − 3x90−30924
Tables of tangent slopes. Look for the pattern in each row.

Reading the patterns

  • Linear: f(x) = 2x + 1 has slope 2 everywhere. Its derivative is the constant function f′(x) = 2.
  • Quadratic: the slopes of x² go up by 2 each step, a linear pattern: f′(x) = 2x.
  • Cubic: the slopes of x³ are 12, 3, 0, 3, 12, 27, which is 3 × (4, 1, 0, 1, 4, 9), three times the squares of the x-values: f′(x) = 3x². Check: 3(2²) = 12 and 3(3²) = 27. ✓
  • x³ − 3x: each slope is 3 less than the slope of x³, so f′(x) = 3x² − 3.

In general, the derivative of a polynomial of degree n is a polynomial of degree n − 1.

f(x) = 2x + 1f′(x) = 2degree 1 → 0f(x) = x²f′(x) = 2xdegree 2 → 1f(x) = x³f′(x) = 3x²degree 3 → 2
Each function (top) and its derivative (bottom, dashed), on the same scales. Differentiating a polynomial lowers its degree by one: a line has a constant derivative, a parabola has a linear derivative and a cubic has a quadratic derivative.

Reading the two graphs together

Read f′ like this: where f′ is above the x-axis, f is increasing; where f′ is below, f is decreasing; where f′ crosses the x-axis, f has a turning point. The height of the graph of f′ is the steepness of the graph of f.

Worked example

Example 1: A derivative from a table

The table gives tangent slopes of f(x) = x² − 4x. Find an equation for f′(x).

x: 0, 1, 2, 3, 4

slope: −4, −2, 0, 2, 4

  1. The slopes go up by 2 each time x goes up by 1, so the points (x, slope) lie on a line with slope 2.
  2. When x = 0 the slope is −4, so the line's y-intercept is −4.
  3. f′(x) = 2x − 4. Check at x = 3: 2(3) − 4 = 2 ✓.

f′(x) = 2x − 4. The zero of f′ at x = 2 matches the vertex of the parabola y = x² − 4x, (2, −4).

Worked example

Example 2: A cubic pattern

Slopes of the tangent to f(x) = 2x³ are 24, 6, 0, 6, 24 at x = −2, −1, 0, 1, 2. Find f′(x).

  1. The slopes are symmetric and 0 at x = 0, like a parabola with vertex at the origin.
  2. Try f′(x) = kx². At x = 1: k(1) = 6, so k = 6.
  3. Check at x = 2: 6(4) = 24 ✓.

f′(x) = 6x², which is 2 × 3x²: doubling the function doubled every slope.

Worked example

Example 3: Comparing graphs

For f(x) = x³ − 3x with f′(x) = 3x² − 3, explain how each feature of f′ shows up on the graph of f.

  1. f′(x) = 0 when 3x² = 3, that is, x = ±1. These are where f has horizontal tangents: the local max (−1, 2) and local min (1, −2).
  2. f′ is positive for x < −1 and x > 1, the intervals where f increases.
  3. f′ is negative for −1 < x < 1, where f decreases.
  4. f′ has its lowest value −3 at x = 0. That is where f is falling most steeply: its tangent at the origin has slope −3.

Zeros of f′ ↔ turning points of f; sign of f′ ↔ increasing/decreasing; the minimum of f′ ↔ the steepest downhill point of f.

Just for fun

Calculus has a family resemblance: the derivative of a cubic is a quadratic, the derivative of a quadratic is a line, and the derivative of a line is a constant. Every generation is one degree less dramatic.

Hands-on activity

Make a slope graph by hand

You need: graph paper (or plain paper with a ruler-drawn grid), a pencil, a ruler and a scientific calculator.

  1. Draw y = x² − 2x carefully from x = −1 to x = 3 (plot x = −1, 0, 1, 2, 3 and join smoothly).
  2. At x = −1, 0, 1, 2 and 3, place your ruler as a tangent and estimate its slope by counting rise over run on the grid.
  3. Check each estimate with the calculator: [f(a + 0.001) − f(a − 0.001)] ÷ 0.002.
  4. On a second grid directly below, plot the points (x, slope). Join them.
  5. Find the equation of the slope graph.

What to look for: the slopes should be −4, −2, 0, 2, 4. They lie on the line y = 2x − 2, so f′(x) = 2x − 2. The slope graph crosses the x-axis at x = 1, right below the vertex (1, −1) of the parabola.

Your turn

1

What does f′(5) = −2 tell you about the graph of f?

2

The tangent slopes of f(x) = x² + 6x are 0, 2, 4, 6 at x = −3, −2, −1, 0. Find f′(x).

3

The derivative of a function is f′(x) = 4. What kind of function is f?

4

Slopes of g(x) = −x² at x = −2, −1, 0, 1, 2 are 4, 2, 0, −2, −4. Find g′(x).

5

Use the centred estimate with h = 0.001 to estimate the slope of f(x) = x³ at x = 1.5. Compare with 3x².

6

A polynomial has degree 5. What is the degree of its derivative?

7

Where does the graph of f′ cross the x-axis if f(x) = x² − 10x + 1?

More practice: warm-up

1

How do you read f′(x)?

2

What is the derivative of f(x) = 7x − 3?

3

What is the derivative of f(x) = x²?

4

If f′(x) > 0 on an interval, f is …

5

If f(x) = 9, a horizontal line, what is f′(x)?

More practice: on your own

1

Tangent slopes of f(x) = 3x² are −12, −6, 0, 6, 12 at x = −2, −1, 0, 1, 2. Find f′(x) and explain how it relates to the derivative of x².

2

The derivative of f(x) = x³ + 2 is 3x². Explain why adding 2 did not change the derivative.

3

Slopes of h(x) = x³ − 12x at x = −3, −2, −1, 0, 1, 2, 3 are 15, 0, −9, −12, −9, 0, 15. Find h′(x) by comparing with the slopes of x³.

4

Sketch in words the graph of f′ if f is a parabola opening down with vertex (4, 10).

5

The derivative of a quadratic f is f′(x) = 2x − 8. At what x-value is the vertex of f? Does the parabola open up or down?

Challenge

1

A table of slopes for an unknown cubic f gives f′(−1) = 0, f′(0) = −3 and f′(1) = 0, and f′ is a quadratic. Find f′(x), then find one possible f.

2

Using the patterns in this lesson, guess the derivative of f(x) = x⁴. Check your guess at x = 1 with the centred estimate (h = 0.001).

3

Two functions f and g have the same derivative everywhere. What can you say about their graphs?

Check your understanding

Quiz

1.

What does the derivative f′(x) give at each value of x?

2.

Tangent slopes of a function at x = 0, 1, 2, 3 are 5, 7, 9, 11. Which could be f′(x)?

3.

The derivative of a degree-4 polynomial has degree:

4.

The graph of f′ is below the x-axis for 1 < x < 6. What is true of f on that interval?

5.

Which pair matches a function with its derivative?

6.

If f′(x) = 2x − 6, where does y = f(x) have a horizontal tangent?

For parents and teachers

Big idea (A2.2): the derivative f′ is itself a function. Its value at each x is the slope of the tangent to f at that x. For polynomials, the derivative is a polynomial of one lower degree: linear → constant, quadratic → linear, cubic → quadratic.

How to help: Ask your teen to point at a place on the graph of f where f′ is zero, positive and negative, and to explain using the words "slope" and "tangent". If you have a computer, the free Desmos graphing calculator lets them type f(x) and g(x) = (f(x + 0.001) − f(x − 0.001))/0.002 to see the derivative appear.

Common difficulties:

  • Plotting the y-values of f instead of its slopes when building the slope graph.
  • Thinking a high point on f means a high point on f′ (a maximum of f is a zero of f′).
  • Forgetting that adding a constant does not change any slopes.