Graphing the Derivative

Category: Calculus   Level: 301

f(x) = x3 - 3x ⇒ f'(x) = 3x2 - 3

Measure the slope of f at many points and plot each slope as a height. The dots trace a new graph, the derivative f'.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Graph the function

The curve f(x) = x³ − 3x climbs, turns at a peak, falls, turns at a valley, and climbs again. The empty grid below waits for its slopes.

f(x) = x3 - 3x

Step 1: Graph the function

Step 2: Measure the slope at many points

Lay a short tangent on the curve every half unit and read its slope. Steep climbs give big positive numbers, the peak and valley give 0.

slopes at x = -2, -1, 0, 1, 2: 9, 0, -3, 0, 9

Step 2: Measure the slope at many points

Step 3: Plot each slope as a height

Carry each slope straight down and plot it as a point (x, slope). The slope at x = 0 is −3, so that dot sits at height −3.

(x, f'(x)): (-2, 9), (-1, 0), (0, -3), (1, 0), (2, 9)

Step 3: Plot each slope as a height

Step 4: Connect the dots

The dots lie on a parabola. That parabola is the graph of the derivative, a new function whose height is the old function's slope.

f'(x) = 3x2 - 3

Step 4: Connect the dots

Step 5: Read the signs

Where f' is above the axis, f climbs (green). Where f' dips below, f falls (red). The zeros of f' line up with the peak and the valley.

f' > 0: f rises, f' < 0: f falls, f' = 0: f is flat

Step 5: Read the signs

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render derivative-graph --out /tmp/derivative-graph

Source: svgmath/diagrams/derivatives.py