Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Derivative Visualizer & Tangent Line Tool

How to use
  1. The Function picker on the left lists seven families in two groups, Polynomial and Transcendental; tapping one loads ff with its derivative and puts x0x_0 back at 11. Learn more about the function families
  2. The Display checkboxes f(x), f'(x) and tangent each hide or show one layer, and the legend under the plot lists only the layers that are on; Accent color under Appearance recolours the highlights. Learn more about the display toggles
  3. The point x₀ slider under Parameters moves the probe from −5-5 to 55 in steps of 0.050.05; the tangent, both markers and the numbers follow it, and Reset returns x0x_0 to 11. Learn more about the x0 slider
  4. The plot draws ff as a solid curve, f′f' as a dashed curve and the tangent at x0x_0 as a light-blue line, with a vertical link line through both curves at x0x_0. Learn more about getting started
  5. The Jump to bar under the plot groups special points as Roots of f, Extrema of f and Inflections; tapping a value puts x0x_0 exactly there, and a family with none shows none in view. Learn more about the jump-to points of interest
  6. The At the point x₀ card shows f(x₀), f'(x₀) and Tangent slope side by side; the last two are always the same number. Learn more about the at-the-point card
  7. The S, M, L and XL buttons set the plot size, the Applied strip repeats x0x_0, and the info panel tabs Explanation and Concepts give the live reading and the theory. Learn more about the plot size, applied strip and info panel


Quadraticf(x) = x²f′(x) = 2x
×
880 × 460
f(x) = x²f′(x) = 2xtangent at x₀
Jump toRoots of fExtrema of f
At the point x₀x₀ = 1
f(x₀)
1
height on f
f'(x₀)
2
height on f'
tangent slope
2
rise over run on f
The slope of the tangent on f at x₀ equals the height of f' at x₀.
Appliedx₀=1x₀ links f and f'





Key Terms



Key Terms

Derivative — the instantaneous rate of change of ff at a point, written f′(x)f'(x) or dfdx\frac{df}{dx}. Equal to the slope of the tangent line to ff at that point.

Tangent line — the straight line that just touches the curve of ff at a single point, sharing the same slope as ff there. Its slope is f′(x0)f'(x_0).

f prime as a function — the derivative f′f' is a function of xx in its own right. Its value at any xx is the slope of ff at that same xx.

Critical point — a value of xx where f′(x)=0f'(x) = 0 or f′(x)f'(x) is undefined. Local maxima and minima of ff live at critical points.

Inflection point — a value of xx where ff changes concavity. These are extrema of f′f' (where f′′f'' would be zero).

Closed-form derivative — an exact symbolic formula for f′f', like ddx[x2]=2x\frac{d}{dx}[x^2] = 2x or ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos x.

Getting Started

The page opens with the Quadratic family f(x)=x2f(x) = x^2 already loaded and the probing point x0x_0 parked at 11. You see three things at once on the graph:

• The solid blue curve of ff.

• The dashed deeper-blue curve of f′f'.

• A light-blue tangent line touching ff at x0x_0.

A faint vertical dashed line drops through both curves at x0x_0, so you can read off f(x0)f(x_0) and f′(x0)f'(x_0) on the same vertical slice. The boxed card below the graph shows both numbers plus the tangent slope — all three are pictures of the same derivative value.

To explore quickly, drag the point x₀ slider in the left panel, or click any of the Jump to buttons to snap onto roots, extrema, or inflection points.

The Function Families

DemoPicking a family
Step 0 of 5
Seven families are organized into two groups in the left panel.

Polynomial:

• Identity — f(x)=xf(x) = x, f′(x)=1f'(x) = 1. The constant derivative is the baseline case.

• Quadratic — f(x)=x2f(x) = x^2, f′(x)=2xf'(x) = 2x. The derivative is the line through the origin with slope 22.

• Cubic — f(x)=x3f(x) = x^3, f′(x)=3x2f'(x) = 3x^2. The derivative is a parabola; the origin is an inflection point of ff.

Transcendental:

• Sine — f(x)=sin⁡xf(x) = \sin x, f′(x)=cos⁡xf'(x) = \cos x. Two waves locked a quarter-period out of phase.

• Cosine — f(x)=cos⁡xf(x) = \cos x, f′(x)=−sin⁡xf'(x) = -\sin x. Same shape, shifted the other way.

• Exponential — f(x)=exf(x) = e^x, f′(x)=exf'(x) = e^x. The function and its derivative are the same curve.

• Logarithm — f(x)=ln⁡xf(x) = \ln x, f′(x)=1/xf'(x) = 1/x. Only defined for x>0x > 0.

Identity: a Constant Derivative

f(x)=xf(x) = x is the straight line through the origin at 45 degrees, and its derivative is the constant f′(x)=1f'(x) = 1. On the graph that shows up as a horizontal dashed line sitting at height 1 — the same value no matter where x0x_0 goes.

At x0=1x_0 = 1 the readings are f(x0)=1f(x_0) = 1 and f′(x0)=1f'(x_0) = 1. The tangent to ff is the line itself, because a straight line is its own best linear approximation everywhere.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = x f′(x) = 1
Identity, frozen at x0 = 1

f is the 45-degree line, f′ the flat dashed line at height 1. The tangent lies exactly on f, because a straight line is its own tangent everywhere.

Drag x0x_0 anywhere and the tangent never tilts. That is what a constant derivative means: the rate of change does not depend on position.

The two curves are worth comparing as objects rather than as pictures. ff is a line with slope 1; f′f' is a line with slope 0. Differentiating dropped the degree by one, which is the pattern the quadratic and cubic families continue.

Quadratic: a Derivative That Grows Linearly

f(x)=x2f(x) = x^2 has f′(x)=2xf'(x) = 2x — a parabola paired with a straight line through the origin.

At x0=1x_0 = 1: f(x0)=1f(x_0) = 1 and f′(x0)=2f'(x_0) = 2. The tangent on the parabola climbs at slope 2, and the dot on f′f' sits at height 2. Those are the same number seen two ways, which is the whole point of showing both curves at once.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = x² f′(x) = 2x
Quadratic, frozen at x0 = 1

The parabola with its derivative drawn as the line f′(x) = 2x. At x0 = 1 the tangent slope is 2 and the dashed line passes through height 2 - the same number in two places.

The sign structure is easy to read here. f′(x)=2xf'(x) = 2x is negative for x<0x < 0, zero at the origin, positive for x>0x > 0 — so the parabola falls, levels off, then rises. The single zero of f′f' marks the single turning point of ff.

Notice also that f′f' crosses zero rather than merely touching it. That crossing is what makes the origin a genuine minimum instead of a flat spot, a distinction the cubic makes vivid by failing it.

Cubic: a Flat Spot That Is Not an Extremum

f(x)=x3f(x) = x^3 has f′(x)=3x2f'(x) = 3x^2, an upward parabola that touches zero at the origin and is positive everywhere else.

At x0=1x_0 = 1: f(x0)=1f(x_0) = 1 and f′(x0)=3f'(x_0) = 3. Slide x0x_0 to the origin and the tangent goes flat — but the curve does not turn around.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = x³ f′(x) = 3x²
Cubic, frozen at x0 = 1

f′(x) = 3x² sits entirely above the axis apart from a single touch at the origin. That touch without a crossing is why x³ has a flat spot but no turning point.

This is the standard counterexample to "zero derivative means extremum". At x=0x = 0 the tangent is horizontal, yet f′≥0f' \ge 0 everywhere, so the function never stops increasing. It merely pauses.

What distinguishes this from the quadratic is that f′f' touches the axis without crossing it. No sign change, no turning point. The rule that actually classifies a critical point is the sign change of f′f', not the zero itself.

Sine: the Derivative Is a Quarter Turn

f(x)=sin⁡(x)f(x) = \sin(x) has f′(x)=cos⁡(x)f'(x) = \cos(x) — the same wave, shifted left by π/2\pi/2.

At x0=1x_0 = 1: f(x0)=0.84f(x_0) = 0.84 and f′(x0)=0.54f'(x_0) = 0.54. The sine is still climbing at that point, though it is slowing down as it nears its peak at π/2≈1.571\pi/2 \approx 1.571.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = sin(x) f′(x) = cos(x)
Sine, frozen at x0 = 1

Two waves a quarter period apart. The marker on f′ reads 0.54 while f reads 0.84 - the sine is still rising, but slowing as it approaches its peak.

The shift is the most useful thing to see here. Every peak of sin⁡\sin lines up with a zero of cos⁡\cos going downward, every trough with a zero going upward, and the steepest parts of the sine sit exactly where the cosine reaches ±1\pm 1.

Differentiating four times returns you to where you started: sin⁡→cos⁡→−sin⁡→−cos⁡→sin⁡\sin \to \cos \to -\sin \to -\cos \to \sin. Each step is another quarter turn, which is why trigonometric derivatives cycle rather than simplify.

Cosine: the Same Wave With a Sign

f(x)=cos⁡(x)f(x) = \cos(x) has f′(x)=−sin⁡(x)f'(x) = -\sin(x). Same shape as the sine family, but the minus sign matters.

At x0=1x_0 = 1: f(x0)=0.54f(x_0) = 0.54 and f′(x0)=−0.84f'(x_0) = -0.84. The cosine is descending there — it peaked at the origin and is on its way down to its zero at π/2\pi/2.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = cos(x) f′(x) = −sin(x)
Cosine, frozen at x0 = 1

The same pair with the roles swapped and a sign attached: f reads 0.54 and f′ reads -0.84. The dashed curve is below the axis wherever the cosine is falling.

Compare this with the sine family directly: the readings swap roles and one of them picks up a minus. That is not a coincidence but the quarter-turn rule applied one step further along the cycle.

The negative sign is also the reason the second derivative of cos⁡\cos is −cos⁡-\cos — the function equals the negative of its own second derivative, which is exactly the differential equation that makes sine and cosine describe oscillation.

Exponential: Its Own Derivative

f(x)=exf(x) = e^x has f′(x)=exf'(x) = e^x. The two curves coincide exactly, so the solid and dashed lines lie on top of each other across the whole graph.

At x0=1x_0 = 1: f(x0)=2.72f(x_0) = 2.72 and f′(x0)=2.72f'(x_0) = 2.72. Both dots land at the same height, and they will do so wherever x0x_0 goes.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = eˣ f′(x) = eˣ
Exponential, frozen at x0 = 1

Solid and dashed curves coincide across the whole frame, and both markers land at 2.72. This is the graph of a function equal to its own derivative.

This is the defining property of exe^x, not a curiosity of it. Any function satisfying f′=ff' = f has to be CexCe^x for some constant CC, and requiring f(0)=1f(0) = 1 pins down C=1C = 1. That is one legitimate way to define the number ee in the first place.

Geometrically it says the height of the curve is its own slope: at height 2.72 the tangent rises at 2.72 per unit. Growth proportional to current size is exactly what compound interest, population models and radioactive decay all express.

Logarithm: a Derivative That Blows Up

f(x)=ln⁡(x)f(x) = \ln(x) has f′(x)=1/xf'(x) = 1/x, and both are defined only for x>0x > 0 — the left half of the graph is empty for this family.

At x0=1x_0 = 1: f(x0)=0f(x_0) = 0 and f′(x0)=1f'(x_0) = 1. The logarithm crosses the x-axis at 1, and it does so at slope exactly 1.
-5 -4 -3 -2 -1 1 2 3 4 5 -5 -4 -3 -2 -1 1 2 3 4 5 x y f(x) = ln(x) f′(x) = 1/x
Logarithm, frozen at x0 = 1

Nothing is drawn left of the y-axis: both ln x and 1/x are undefined there. At x0 = 1 the log crosses zero while its derivative reads exactly 1.

Watch what happens as x0x_0 moves toward zero. The logarithm plunges without bound, and 1/x1/x climbs without bound alongside it — the curve gets steeper and steeper with no limiting slope. Move the other way and both flatten out: at x=5x = 5 the slope is already down to 0.20.2.

That contrast is worth holding next to the exponential, which is the inverse function. Where exe^x grows faster than any polynomial, ln⁡x\ln x grows slower than any positive power of xx — and the reciprocal derivative is precisely why.

The x₀ Slider

DemoMoving x₀
Step 0 of 5
The point x₀ slider sweeps the probing point from −5-5 to +5+5 in steps of 0.050.05. As you drag:

• The tangent line moves along ff, always touching at the new x0x_0.

• The dashed vertical link line follows.

• The marker dot on ff at (x0,f(x0))(x_0, f(x_0)) slides along with it.

• The marker dot on f′f' at (x0,f′(x0))(x_0, f'(x_0)) slides with it too — at the same height as the tangent slope.

• The three numeric cards below update live.

The whole point of the slider is to make the connection between the tangent slope and the height of f′f' feel concrete. Pick a steep part of ff — the tangent tilts hard, and f′f' flies far from zero. Pick a flat part — the tangent goes horizontal, and f′f' touches zero.

The Reset button next to the Parameters label returns x0x_0 to the family's default starting position.

Jump-to Points of Interest

DemoJump to roots, extrema, inflections
Step 0 of 5
Below the graph is a row of buttons grouped into three categories — the three kinds of special points worth visiting:

• Roots of f — where f(x)=0f(x) = 0. The curve of ff crosses the x-axis here. For x2x^2 that's only x=0x = 0; for sin⁡x\sin x it's every multiple of π\pi.

• Extrema of f — where f′(x)=0f'(x) = 0. The tangent goes horizontal; ff has a local max or min. For x2x^2 that's x=0x = 0 (the minimum at the origin).

• Inflections — where f′′(x)=0f''(x) = 0, equivalently extrema of f′f'. The concavity of ff flips, and f′f' is at its own local max or min. For x3x^3 that's x=0x = 0.

Clicking any button snaps x0x_0 to that exact location, so you can hop between landmarks without fighting the slider for a clean number.

Reading the At-The-Point Card

The boxed card below the graph displays the three quantities at x0x_0 side by side:

• f(x₀) — the height of the function at x0x_0. Where the function value lives.

• f'(x₀) — the height of the derivative curve at the same x0x_0. The slope of ff there.

• Tangent slope — the slope of the tangent line you see on the plot. Identical to f′(x0)f'(x_0).

The middle and right entries are always the same number. That repetition is the whole pedagogical point: the derivative, the height of f′f', and the slope of the tangent are three pictures of one quantity.

Skim across the row as you slide x0x_0. The left number tells you what ff is doing; the middle and right tell you, in stereo, how fast it's changing.

Display Toggles

DemoDisplay, plot size and tabs
Step 0 of 5
The Display section in the left panel lets you hide any of the three layers when one of them is in the way:

• f(x) — toggles the solid curve of the original function. Off, you see just f′f' and the tangent, which is sometimes useful when the function curve is busy.

• f'(x) — toggles the dashed derivative curve. Off, the picture reduces to the classical tangent line at a point without the derivative-as-function overlay.

• tangent — toggles the tangent line at x0x_0. Off, you see just the two function curves and their link line.

The toggles are independent — any combination is valid. The legend below the graph updates to show only the visible curves. The Accent color picker at the bottom recolors the active highlight throughout the tool.

Plot Size, Applied Strip and Info Panel

The S, M, L and XL buttons above the plot set its size, and the readout next to Maximize prints it: S is 500×400500 \times 400, M 700×550700 \times 550, L 900×850900 \times 850 and XL 1100×8501100 \times 850. The page opens at 880×460880 \times 460, which is none of the four. The plot never grows wider than its column, so on most screens the buttons mainly change its height. Both curves, the tangent and the markers are redrawn at the new size; the numbers below the plot do not change.

The Applied strip at the bottom of the middle column repeats the current value of x0x_0. Its last tag, x₀ links f and f', is a fixed reminder that one slider position is read on both curves; the numbers themselves are in the at-the-point card above it.

The info panel on the right has two tabs. Explanation is the live one: the family's function and derivative, what x0x_0 controls, the current f(x0)f(x_0) and f′(x0)f'(x_0) with the tangent slope they give, and a closing note that links to the section on that family. Concepts is fixed text: what a derivative is, the two ways the tool shows it, and what to look for at extrema and inflection points. For the definition, see what is a derivative.

What Is a Derivative

The derivative of ff at the point x0x_0 measures how fast ff changes when the input changes a tiny bit. Formally:

f′(x0)=lim⁡h→0f(x0+h)−f(x0)hf'(x_0) = \lim_{h \to 0} \frac{f(x_0 + h) - f(x_0)}{h}


The fraction inside the limit is the slope of the secant line through the two nearby points (x0,f(x0))(x_0, f(x_0)) and (x0+h,f(x0+h))(x_0 + h, f(x_0 + h)). As hh shrinks to zero, the secant slope approaches the slope of the tangent line to ff at x0x_0 — the derivative.

When the derivative exists at every xx in some interval, the collection of values f′(x)f'(x) forms a new function f′f', called the derivative function of ff.

For the full theory of derivatives and limit-based definitions, see the derivatives page.

Geometric Meaning - The Tangent Line

The geometric picture: the tangent line to ff at x0x_0 is the straight line that just barely touches the curve at one point, sharing the same direction as ff there. Its slope is f′(x0)f'(x_0), and it passes through (x0,f(x0))(x_0, f(x_0)). The point-slope form gives:

y=f(x0)+f′(x0)(x−x0)y = f(x_0) + f'(x_0)(x - x_0)


This is also the best linear approximation to ff near x0x_0 — for inputs close to x0x_0, the tangent line predicts ff accurately.

Three things to look for as you slide x0x_0 across the graph:

• Steep parts of ff — the tangent tilts hard; f′f' is far from zero.

• Flat parts of ff — the tangent goes horizontal; f′f' is at zero.

• Maxima and minima of ff — exactly where f′f' crosses zero.

For deeper coverage of the tangent line and its applications, see the tangent line page.

From f to f Prime

The derivative isn't just one number at one point — it's a whole new function. As xx varies, the slope of the tangent to ff at xx varies too, tracing out a curve. That curve is the derivative function f′(x)f'(x).

The qualitative correspondence between ff and f′f':

• ff increasing ⇔\Leftrightarrow f′>0f' > 0 (curve of f′f' above the x-axis).

• ff decreasing ⇔\Leftrightarrow f′<0f' < 0 (curve of f′f' below the x-axis).

• ff has a local max or min ⇔\Leftrightarrow f′f' crosses zero.

• ff concave up ⇔\Leftrightarrow f′f' increasing.

• ff concave down ⇔\Leftrightarrow f′f' decreasing.

• ff has an inflection point ⇔\Leftrightarrow f′f' has a local max or min.

Sliding x0x_0 through the tool with both curves visible makes this dictionary visible at every step.