Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 39 · Derivatives

The Derivative as a Function and Slope Graphs

See the derivative as a new function that gives slope at every point, learn how f and f' graphs relate, and sketch derivatives from graphs.

Instead of finding the slope at one point, we can find a rule that gives the slope at every point. That rule is the derivative function f'(x). Its input is a position on the graph of f; its output is the slope of f there.

For f(x) = x² we found f'(x) = 2x. So at x = -2 the slope is -4 (falling), at x = 0 it is 0 (flat bottom), and at x = 2 it is 4 (rising).

How the two graphs relate

Reading a graph of f for clues about f':

Graph of f Graph of f'
rising above the x-axis (positive)
falling below the x-axis (negative)
flat tangent (peak, valley) crosses the x-axis (zero)
steeper larger in absolute value
flowchart LR
  A["f rising"] --> B["f' positive"]
  C["f falling"] --> D["f' negative"]
  E["f turning point"] --> F["f' equals 0"]

The sign of the slope tells you whether f goes up or down.

Python A function and its slope function

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Look at x = -1 and x = 1. There f has a peak and a valley, and f' crosses zero. Between them f falls, and f' is negative.

Numerical derivative graph

You can get f' without knowing a formula by calculating slopes at many points. This helps when you only have data.

Python Estimate the derivative graph numerically

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The slope of sin x follows cos x: the curves overlap. You will learn why in chapter 4.

Sketching f' from f

  1. Mark where f has horizontal tangents: f' = 0 there.
  2. Where f rises, put f' above the axis; where it falls, below.
  3. Where f is steepest, f' is largest in size.

Practice by sketching the derivative of any graph you see. Check yourself by plotting a numerical slope as in the example above.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Where f is decreasing, f' is

    A falling graph has negative slope.
  2. 2. At a peak of a smooth graph, f' equals

    The tangent at a peak is horizontal.
  3. 3. If f(x) = x², what is f'(-3)?

    f'(x) = 2x, so f'(-3) = -6.
  4. 4. f'(x) is

    The derivative is itself a function.

Summary

  • f'(x) gives the slope of f at every x.
  • f rising means f' > 0; falling means f' < 0; flat tangent means f' = 0.
  • Numerical slopes at many points reveal the shape of f'.

Next: Differentiability and Corners