Derivative Visualizer

Pick a function, drag the point along the curve, and watch the tangent line follow. Toggle the derivative curve to see f'(x) drawn alongside f(x).

Controls

1.00

Values

f(x)
Slope
f'(x)

The Math Behind It

What Is a Derivative?

  • The derivative f'(x) is the slope of the tangent line at point x
  • It measures the instantaneous rate of change
  • Formally: f'(x) = limh→0 [f(x+h) - f(x)] / h
  • Positive slope = function increasing; negative = decreasing; zero = flat (potential extremum)

Common Derivatives

  • d/dx [x²] = 2x
  • d/dx [sin(x)] = cos(x)
  • d/dx [eˣ] = eˣ
  • d/dx [ln(x)] = 1/x

Try This

  • Select sin(x) and toggle Show f'(x) — you'll see cos(x) appear
  • Move x to where sin(x) peaks — the slope is exactly 0
  • Try — the tangent slope increases linearly (f'(x) = 2x)
  • Try — uniquely, the function equals its own derivative
  • Try 1/x — watch the tangent slope flip sign across the discontinuity at x=0

Key Insight

The derivative transforms a position question (“where am I?”) into a velocity question (“how fast am I changing?”). Every time you look at a speedometer, you're reading a derivative.