Differential Calculus Explorer

An interactive tour of single-variable differential calculus — from epsilon–delta limits to tangent lines and concavity.

The epsilon–delta definition

A limit $\lim_{x\to c} f(x) = L$ means: for every $\varepsilon > 0$ you name, I can supply a $\delta > 0$ so that whenever $0 < |x-c| < \delta$, we have $|f(x) - L| < \varepsilon$. Pick a function, set a tolerance $\varepsilon$ with the slider, and the visualisation finds the largest strip width $\delta$ that works.
$$\forall \varepsilon > 0 \;\; \exists \delta > 0 : \; 0 < |x - c| < \delta \;\Longrightarrow\; |f(x) - L| < \varepsilon$$
0.300

From secant to tangent

The derivative of $f$ at $a$ is the limit of secant slopes as the second point slides in. Choose a function and a base point $a$; shrink $h$ towards zero and watch the secant line rotate onto the tangent line, while the numerical slope converges to $f'(a)$.
$$f'(a) \;=\; \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}$$
1.00
1.000

Sum, product, quotient, chain

The four workhorse rules let us differentiate almost anything built from elementary pieces. Pick an example and overlay the plot of $f$ with $f'$ in a contrasting colour to see how the rule plays out visually.
$$(u+v)' = u' + v' \qquad (uv)' = u'v + uv'$$ $$\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^{2}} \qquad (u\circ v)' = u'(v)\,v'$$

Resolving indeterminate forms

When a quotient $f/g$ hits an indeterminate form $0/0$ or $\infty/\infty$ at $x=c$, the limit often equals the limit of $f'/g'$ instead. Pick an example and compare the two ratios as $x$ approaches the singular point.
$$\lim_{x\to c}\frac{f(x)}{g(x)} \;=\; \lim_{x\to c}\frac{f'(x)}{g'(x)} \qquad \text{(when the right-hand limit exists)}$$

Where $f'$ and $f''$ change sign

Critical points sit at $f'(x) = 0$, inflection points at $f''(x) = 0$. The sign of $f'$ tells you whether $f$ is rising or falling; the sign of $f''$ tells you whether it is concave up or down. Regions where $f'>0$ are shaded green; regions where $f'<0$ are shaded pink.
$$f'(x_{0}) = 0,\;\; f''(x_{0}) > 0 \;\Rightarrow\; \text{local min}$$ $$f'(x_{0}) = 0,\;\; f''(x_{0}) < 0 \;\Rightarrow\; \text{local max}$$

The tangent line is a first-order approximation

Near a point $a$, the best linear approximation of $f$ is $L(x) = f(a) + f'(a)(x-a)$. The error $f(x) - L(x)$ vanishes faster than $x-a$ as $x \to a$. Drag the base point and watch how the linearisation tracks the function locally — and how quickly the approximation error grows away from $a$.
$$L(x) = f(a) + f'(a)(x - a), \qquad f(x) - L(x) = O\!\left((x-a)^{2}\right)$$
1.00
Drag to pan · Scroll to zoom · Double-click to reset