The labels give f(x0) and f′(x0); the explanation says whether f is rising, falling or level there. Learn more about the numbers
The switches hide the curve of f′ or the tangent; the Concepts tab explains derivatives in general. Learn more about the Concepts tab
The derivative
f(x)
f′(x)
x0=1f(x0)=1f′(x0)=2
Slope and derivative · Quadratic
f′(x0)=h→0limhf(x0+h)−f(x0)
General
The amber tangent touches f at x0; its slope is f′(x0). The navy dot at the same x0 sits on the curve of f′ at exactly that height. Slide x0 and the two stay in step.
For this function
Function · f(x)=x2
Derivative · f′(x)=2x
Points to try · x0=0, the lowest point of f, where f′ crosses zero.
At x0=1 · f(x0)=1 and f′(x0)=2: the tangent to f has slope 2, and the derivative's curve is at height 2 right below or above it.
Tangent line — the straight line that just touches the curve of f at a single point, sharing the same slope as f there. Its slope is f′(x0).
f prime as a function — the derivativef′ is a function of x in its own right. Its value at any x is the slope of f at that same x.
Critical point — a value of x where f′(x)=0 or f′(x) is undefined. Local maxima and minima of f live at critical points.
Inflection point — a value of x where f changes concavity. These are extrema of f′ (where f′′ would be zero).
Closed-form derivative — an exact symbolic formula for f′, like dxd[x2]=2x or dxd[sinx]=cosx.
Getting Started
The tool has three parts. Across the top runs a bar with the Function menu and the buttons for zooming, the starting view, saving a picture and full screen. On the left is the graph. On the right is the explanation, with the controls under it.
The graph shows f in solid blue and its derivative f′ in dashed navy. At the point x0, the amber tangent touches f, and a navy dot sits on the curve of f′ at the same x0 — at exactly the height of the tangent's slope. A dashed vertical line joins the two.
The tool opens with f(x)=x2 at x0=1: the tangent has slope 2, and the curve of f′(x)=2x is at height 2 there.
The Function Families
DemoPicking a function
Step 0 of 2
The Function menu lists seven functions, each with its exact derivative:
Polynomial: the identity x (slope 1 everywhere), x2 (derivative 2x) and x3 (derivative 3x2).
Transcendental:sinx and cosx, whose derivatives are cosx and −sinx; ex, which is its own derivative; and lnx, with derivative 1/x on x>0 only.
The explanation gives both formulas and the points to try for each function — where f′ is zero, where f is steepest, and so on.
Identity: a Constant Derivative
f(x)=x is the straight line through the origin at 45 degrees, and its derivative is the constant f′(x)=1. On the graph that shows up as a horizontal dashed line sitting at height 1 — the same value no matter where x0 goes.
At x0=1 the readings are f(x0)=1 and f′(x0)=1. The tangent to f is the line itself, because a straight line is its own best linear approximation everywhere.
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 x0 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. f is a line with slope 1; 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)=x2 has f′(x)=2x — a parabola paired with a straight line through the origin.
At x0=1: f(x0)=1 and f′(x0)=2. The tangent on the parabola climbs at slope 2, and the dot on f′ sits at height 2. Those are the same number seen two ways, which is the whole point of showing both curves at once.
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)=2x is negative for x<0, zero at the origin, positive for x>0 — so the parabola falls, levels off, then rises. The single zero of f′ marks the single turning point of f.
Notice also that 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)=x3 has f′(x)=3x2, an upward parabola that touches zero at the origin and is positive everywhere else.
At x0=1: f(x0)=1 and f′(x0)=3. Slide x0 to the origin and the tangent goes flat — but the curve does not turn around.
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=0 the tangent is horizontal, yet f′≥0 everywhere, so the function never stops increasing. It merely pauses.
What distinguishes this from the quadratic is that 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′, not the zero itself.
Sine: the Derivative Is a Quarter Turn
f(x)=sin(x) has f′(x)=cos(x) — the same wave, shifted left by π/2.
At x0=1: f(x0)=0.84 and f′(x0)=0.54. The sine is still climbing at that point, though it is slowing down as it nears its peak at π/2≈1.571.
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 lines up with a zero of cos going downward, every trough with a zero going upward, and the steepest parts of the sine sit exactly where the cosine reaches ±1.
Differentiating four times returns you to where you started: sin→cos→−sin→−cos→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) has f′(x)=−sin(x). Same shape as the sine family, but the minus sign matters.
At x0=1: f(x0)=0.54 and f′(x0)=−0.84. The cosine is descending there — it peaked at the origin and is on its way down to its zero at π/2.
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 is −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)=ex has f′(x)=ex. The two curves coincide exactly, so the solid and dashed lines lie on top of each other across the whole graph.
At x0=1: f(x0)=2.72 and f′(x0)=2.72. Both dots land at the same height, and they will do so wherever x0 goes.
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 ex, not a curiosity of it. Any function satisfying f′=f has to be Cex for some constant C, and requiring f(0)=1 pins down C=1. That is one legitimate way to define the number e 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) has f′(x)=1/x, and both are defined only for x>0 — the left half of the graph is empty for this family.
At x0=1: f(x0)=0 and f′(x0)=1. The logarithm crosses the x-axis at 1, and it does so at slope exactly 1.
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 x0 moves toward zero. The logarithm plunges without bound, and 1/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=5 the slope is already down to 0.2.
That contrast is worth holding next to the exponential, which is the inverse function. Where ex grows faster than any polynomial, lnx grows slower than any positive power of x — and the reciprocal derivative is precisely why.
The x₀ Slider
DemoMoving x₀
Step 0 of 3
The slider x0 sweeps the point from −5 to 5 in steps of 0.05. As you drag it, the tangent turns to follow the curve, the navy dot rides along the curve of f′, and the dashed line between them shows that the height of f′is the slope of f. Press ▶ to let it run by itself.
The explanation says in words what the slope means: f′(x0)>0, f is rising; f′(x0)<0, f is falling; f′(x0)=0, the tangent is level and f′ crosses or touches the axis — a candidate for a maximum or minimum.
Points to Try
DemoPoints to try on sine
Step 0 of 2
Each function comes with a short list of points to try in the explanation — the places where f and f′ tell the clearest story:
• For x2: x0=0, the bottom of the parabola, where f′ crosses zero. • For x3: x0=0, a level tangent that is not a maximum or minimum. • For sinx: x0=1.57, a top of f with f′=0, and x0=0, the steepest point of f and the top of f′. • For ex: any point — f′ lies right on f.
Drag x0 to each and read the slope label.
Reading the Numbers
Two amber labels along the bottom of the graph give the numbers at the point:
• f(x0) — the height of the curve, where the tangent touches it. • f′(x0) — the slope of the tangent, which is also the height of the navy dot on the curve of f′.
The explanation repeats them in a sentence. Where f or f′ is not defined — lnx at a negative x0 — the labels show a dash and the explanation says to move x0 into the domain.
The Switches and Zoom
DemoThe switches and the Concepts tab
Step 0 of 2
Two switches under the slider change what is drawn: Curve of f′ hides or shows the dashed derivative, and Tangent and points hides or shows the tangent, the dots and the dashed link.
The buttons at the top right zoom in and out, return to the starting view, save the graph as a picture and open the tool full screen.
The Concepts Tab
Above the explanation, the Concepts tab holds a page that does not change with the controls:
• what a derivative is, and its two pictures — a slope at a point, and a function of its own; • what to look for: zeros of f′ at maxima and minima, steep stretches, inflection points at the extremes of f′; • exact formulas versus the central difference a calculator uses.
What Is a Derivative
The derivative of f at the point x0 measures how fast f changes when the input changes a tiny bit. Formally:
f′(x0)=h→0limhf(x0+h)−f(x0)
The fraction inside the limit is the slope of the secant line through the two nearby points (x0,f(x0)) and (x0+h,f(x0+h)). As h shrinks to zero, the secant slope approaches the slope of the tangent line to f at x0 — the derivative.
When the derivative exists at every x in some interval, the collection of values f′(x) forms a new function f′, called the derivative function of f.
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 f at x0 is the straight line that just barely touches the curve at one point, sharing the same direction as f there. Its slope is f′(x0), and it passes through (x0,f(x0)). The point-slope form gives:
y=f(x0)+f′(x0)(x−x0)
This is also the best linear approximation to f near x0 — for inputs close to x0, the tangent line predicts f accurately.
Three things to look for as you slide x0 across the graph:
• Steep parts of f — the tangent tilts hard; f′ is far from zero.
• Flat parts of f — the tangent goes horizontal; f′ is at zero.
• Maxima and minima of f — exactly where 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 x varies, the slope of the tangent to f at x varies too, tracing out a curve. That curve is the derivative functionf′(x).
The qualitative correspondence between f and f′:
• f increasing ⇔f′>0 (curve of f′ above the x-axis).
• f decreasing ⇔f′<0 (curve of f′ below the x-axis).
• f has a local max or min ⇔f′ crosses zero.
• f concave up ⇔f′ increasing.
• f concave down ⇔f′ decreasing.
• f has an inflection point ⇔f′ has a local max or min.
Sliding x0 through the tool with both curves visible makes this dictionary visible at every step.
Related Concepts
Limits — the foundation derivatives are built on. The derivative is defined as a limit of secant slopes.
Continuity — every differentiable function is continuous, though not the other way around. The absolute value function is continuous at 0 but not differentiable there.
Differentiation rules — power rule, product rule, quotient rule, chain rule. The mechanical toolkit for computing derivatives without going back to the limit definition.