AP® Calculus AB trainer

Tangent tracer

Drag a point and watch the secant line turn into the tangent.

About this tool

The derivative is the slope of a curve at one point. You cannot get a slope from one point, so take two: P on the curve and Q a distance hh away. The line through them, the secant, has slope f(a+h)−f(a)h\frac{f(a+h) - f(a)}{h}. In Explore, slide hh toward 00 from either side and watch the secant turn into the tangent line while its slope closes in on f′(a)f'(a). Move P and the graph of f′f' draws itself underneath. In Test yourself, estimate derivatives from graphs and tables, pick and sketch the graph of f′f', write tangent lines and find where ff is not differentiable.

The ideas behind the tracer

  • Secant slope. Through P=(a,f(a))P = (a, f(a)) and Q=(a+h,f(a+h))Q = (a + h, f(a + h)) the slope is f(a+h)−f(a)h\frac{f(a+h) - f(a)}{h}, the average rate of change of ff from aa to a+ha + h. With h<0h < 0, Q is to the left of P.
  • The derivative. f′(a)f'(a)=limh→0f(a+h)−f(a)h= \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}, when this limit exists. It is the slope of the tangent line, and the instantaneous rate of change of ff at aa.
  • Tangent line. y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a).
  • Not differentiable. The limit fails at a corner (the one-sided slopes disagree), a cusp (they go to −∞-\infty and +∞+\infty), a vertical tangent (both go to ∞\infty) and wherever ff is not continuous. Differentiable implies continuous; continuous does not imply differentiable.
  • The graph of f′f'. Its height at each xx is the slope of ff there: positive where ff rises, negative where it falls, 00 at a peak or valley.

The h slider is on a log scale: each step toward the middle makes hh about ten times smaller, down to ±0.001\pm 0.001. The tool computes the slopes for the functions on its shelf from their exact derivatives and checks each side of P separately; for a typed function it uses difference quotients with very small hh. Sketches are graded point by point: the sign, a zero where ff has a peak or valley, and the size within about a quarter.

Notes for this topic: The Derivative and Its Notation