What Is a Derivative?

A derivative is the slope of a curve at a single point: how fast something is changing right now. Here is where that idea comes from, in one interactive picture.

The problem: slope needs two points

The slope of a straight line is rise over run, and you need two points to measure it. A curve’s steepness changes from point to point, so what could “the slope at P” even mean when there is only one point?

The trick is to cheat with a second point Q a small distance hh away, measure the slope of the line through both (a secant line), and then slide Q towards P. Watch what happens to that slope:

-3-2-11234-2-1123456PQ

Secant slope f(a+h)−f(a)h\tfrac{f(a+h)-f(a)}{h} = 2.88

Tangent slope f′(a)f'(a) = 0.08

Drag on the graph to move P. Shrink the gap and the amber secant line swings into the pink tangent: the slopes converge.
hhsecant slope
11.23
0.50.5925
0.10.1725
0.010.089025
0.0010.08090025

As hh shrinks, the secant slope settles on a single number. That number is the derivative, and the line it settles into is the tangent line, the one that touches the curve at P and points along it. In symbols:

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

On ahaboo, you can work through visual explainers on topics like how tax brackets set your rate and how photosynthesis unfolds inside a leaf.

Why it matters: rates of change

If s(t)s(t) is your position at time tt, the secant slope s(t+h)−s(t)h\frac{s(t+h)-s(t)}{h} is your average speed over the next hh seconds, and the derivative s′(t)s'(t) is the speed on the speedometer at that instant. The same idea gives marginal cost in economics, reaction rates in chemistry and growth rates in biology.

From definition to rules

Nobody computes limits every time. Apply the definition once to x2x^2:

(x+h)2−x2h=2xh+h2h=2x+h  → h→0   2x\frac{(x+h)^2 - x^2}{h} = \frac{2xh + h^2}{h} = 2x + h \;\xrightarrow{\,h \to 0\,}\; 2x

Do this for general powers, products and compositions and you get the shortcut rules: the power rule, product rule, quotient rule and chain rule, all collected on derivative rules. The derivative calculator applies them for any function and names each one.

When there is no derivative

The limit has to exist and be the same from both sides. At a sharp corner, like ∣x∣|x| at 0, the secant slope is −1 from the left and +1 from the right, so there is no single tangent and no derivative. The same happens at jumps and at points where the tangent is vertical.

Still stuck? Ask the tutor

An AI tutor reads the problem and steps above and explains them in plain words. It can make mistakes, so check it against the worked steps.

Questions students ask

What is a derivative in simple terms?

The derivative tells you how fast something is changing at one instant. On a graph, it is the slope of the curve at a point: the slope of the straight line that just touches the curve there.

What is the formal definition of the derivative?

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}, the limit of the slope of secant lines as the second point slides into the first.

What is the derivative used for?

Speed and acceleration in physics, marginal cost and revenue in economics, growth rates in biology, and finding maxima and minima in any optimisation problem.

What is the difference between a derivative and a differential?

The derivative f′(x)f'(x) is a rate (a slope). The differential dy=f′(x) dxdy = f'(x)\,dx is the small change in yy along the tangent line for a small change dxdx in xx.

Does every function have a derivative?

No. At corners (∣x∣|x| at 0), jumps and vertical tangents (x3\sqrt[3]{x} at 0) the limit does not exist, so the function is not differentiable there.