Calculus · Differential Calculus

The Differential: Small Changes, Simple Formulas

How much does the volume of a ball change if its radius grows by a millimetre? What is \(\sqrt{4.04}\) without a calculator? How accurate is a result computed from a measurement that has an error? All three questions have the same answer: use the differential. This post explains what it is, what it means on a graph, and how engineers and scientists use it every day.

1. The idea: the linear part of a change

Take a square with side \(x\). Its area is \(y = x^2\). If the side grows by a small amount \(\Delta x\), the area grows by

\[ \Delta y = (x + \Delta x)^2 - x^2 = \underbrace{2x\,\Delta x}_{\text{two thin strips}} + \underbrace{(\Delta x)^2}_{\text{tiny corner}}. \]

Picture it: the new square is the old one plus two strips of size \(x \times \Delta x\) along two sides, plus a little corner square \(\Delta x \times \Delta x\). For \(x = 10\) and \(\Delta x = 0.01\), the strips add \(0.2\) and the corner only \(0.0001\).

The strips are proportional to \(\Delta x\): this is the linear part of the change. The corner is much smaller, it shrinks faster than \(\Delta x\) itself. For small changes we can ignore the corner and keep the simple linear part. That linear part is the differential.

2. Definition of the differential

Definition Suppose the increment of the function \(y = f(x)\), caused by an increment of the independent variable, can be written as \[ \Delta y = A(x)\,dx + \gamma\,dx, \] where \(dx = \Delta x\) and \(\gamma \to 0\) as \(\Delta x \to 0\). Then the principal linear part of this increment is called the differential of \(f(x)\), written \[ dy = A(x)\,dx. \]

Two things to notice:

For the independent variable itself, the differential is just its increment: \(dx = \Delta x\).

Example 1 For \(y = x^2\): \( \Delta y = 2x\,dx + \Delta x\cdot dx \). Here \(A(x) = 2x\) and \(\gamma = \Delta x \to 0\), so \[ dy = 2x\,dx. \] At \(x = 3\) with \(dx = 0.1\): \( dy = 0.6 \), while the exact change is \( \Delta y = 3.1^2 - 9 = 0.61 \). The difference \(0.01 = (\Delta x)^2\) is the "corner".

3. When does the differential exist?

Divide the defining equation by \(\Delta x\):

\[ \frac{\Delta y}{\Delta x} = A(x) + \gamma \;\xrightarrow{\ \Delta x\to 0\ }\; A(x). \]

So \(A(x)\) has to be the derivative! Conversely, if the derivative exists, set \( \gamma = \frac{\Delta y}{\Delta x} - f'(x) \), which tends to zero, and the decomposition holds with \(A = f'\).

Theorem The differential of \(y = f(x)\) exists if and only if \(f\) has a finite derivative \(y' = f'(x)\), and then \[ dy = y'\,dx = f'(x)\,dx. \]

This explains Leibniz's notation: dividing by \(dx\) gives \( \frac{dy}{dx} = f'(x) \). The derivative really is a quotient of two differentials. In older books, a function that has a differential at a point is called differentiable there, and by this theorem the word means the same thing as "has a finite derivative".

Increment vs. differential Don't mix up \(\Delta y\) and \(dy\). The increment \(\Delta y\) is the exact change of the function. The differential \(dy\) is its linear approximation. They are equal only for linear functions \(y = kx + n\), whose graph is its own tangent.

4. Geometric meaning

Since \( dy = f'(x)\,dx = \operatorname{tg}\alpha\cdot dx \), and \( \operatorname{tg}\alpha \) is the slope of the tangent, \(dy\) is how much the tangent rises when we move \(dx\) to the right.

x y 0 M(x, y) P N N′ dy dx = Δx y = f(x) tangent
Figure 1. Moving \(dx\) to the right from \(M\): the tangent rises by \( dy = PN \) (green), the curve rises by \( \Delta y = PN' \). The difference \( NN' \) (red) is the small remainder \(\gamma\,dx\).
Geometric interpretation The differential is the increment of the ordinate of the tangent at the point \(M(x, y)\), corresponding to the increment \(\Delta x = dx\). The increment of the ordinate of the curve is \(\Delta y\).

So replacing \(\Delta y\) by \(dy\) means replacing the curve by its tangent near the point \(M\). Zoom in on any smooth curve far enough, and it looks like a straight line; the differential is the calculus of that straight line.

5. Rules and invariance of form

Since \(dy = y'\,dx\), every rule for derivatives becomes a rule for differentials, just multiply by \(dx\):

Derivative ruleDifferential rule
\( (c)' = 0 \)\( dc = 0 \)
\( (cu)' = cu' \)\( d(cu) = c\,du \)
\( (u \pm v)' = u' \pm v' \)\( d(u \pm v) = du \pm dv \)
\( (uv)' = u'v + v'u \)\( d(uv) = v\,du + u\,dv \)
\( \left(\frac uv\right)' = \frac{u'v - v'u}{v^2} \)\( d\left(\frac uv\right) = \frac{v\,du - u\,dv}{v^2} \)

Invariance of form

Important property The formula \( dy = y'\,dx \) remains valid even when \(x\) is not the independent variable, but itself a function of some other independent variable.

Why: let \( y = f(u) \) with \( u = \varphi(x) \). By the chain rule, \( dy = f'(u)\,\varphi'(x)\,dx \). But \( \varphi'(x)\,dx = du \), so

\[ dy = f'(u)\,du, \]

the same form as if \(u\) were independent. You can write differentials without first deciding which variable is "the" independent one. This is what makes substitutions in integrals (\(du = \varphi'(x)\,dx\)) work so smoothly.

Example 2 \( y = \sin u \), \( u = x^2 \). By invariance, \( dy = \cos u\,du \), and since \( du = 2x\,dx \), \[ dy = 2x\cos(x^2)\,dx. \]

6. Approximate calculations

Replacing the increment by the differential gives the most important practical formula of this topic:

Approximation formula For small increments, \[ f(x + \Delta x) - f(x) \approx f'(x)\,\Delta x, \qquad \text{i.e.} \qquad f(x + \Delta x) \approx f(x) + f'(x)\,\Delta x. \] The error can be made arbitrarily small (compared with \(\Delta y\)) by taking \(|\Delta x|\) small enough, provided \( f'(x) \ne 0 \).

The recipe: choose a "nice" point \(x\) close to where you need the value, where \(f(x)\) and \(f'(x)\) are easy to compute. Then correct by \(f'(x)\,\Delta x\).

Why \( f'(x) \ne 0 \)? The remainder \(\gamma\,\Delta x\) is small compared with \(\Delta x\). If \(f'(x) \ne 0\), then \(dy\) is of the same size as \(\Delta x\), so the remainder is also small compared with \(dy\), and \(dy\) is a good approximation in the relative sense. If \(f'(x) = 0\), then \(dy = 0\), and the whole change \(\Delta y\) sits in the "remainder"; the approximation tells us nothing useful.

Example 3 · \( \sqrt{4.04} \) \( f(x) = \sqrt x \), \(x = 4\), \(\Delta x = 0.04\), \( f'(x) = \frac{1}{2\sqrt x} \): \[ \sqrt{4.04} \approx \sqrt4 + \frac{1}{2\cdot 2}\cdot 0.04 = 2 + 0.01 = 2.01. \] The true value is \(2.00998\dots\), correct to four decimal places.
Example 4 · \( \sin 31^\circ \) Angles must be in radians: \( 1^\circ = \frac{\pi}{180} \approx 0.01745 \). With \(x = 30^\circ\): \[ \sin 31^\circ \approx \sin 30^\circ + \cos 30^\circ\cdot\frac{\pi}{180} \approx 0.5 + 0.8660\cdot 0.01745 \approx 0.5151. \] The true value is \(0.51504\dots\)
Example 5 · Useful approximations near zero Taking \(x = 0\) as the base point, for small \(h\): \[ (1 + h)^n \approx 1 + nh, \qquad \sqrt{1 + h} \approx 1 + \frac h2, \qquad \sin h \approx h, \qquad \operatorname{tg}h \approx h. \] For instance \( (1.02)^{10} \approx 1 + 10\cdot 0.02 = 1.2 \) (true value \(1.219\)). The error grows as \(h\) grows, which is a good reminder that the formula is meant for small increments.

7. Estimating errors

Every measurement has an error. If we compute \(y = f(x)\) from a measured \(x\), how wrong can \(y\) be? The differential answers this.

Error formulas If \(|\Delta x|\) is the absolute error of the independent variable, then the absolute error \(|\Delta y|\) and the relative error \(\delta y\) of the dependent variable are approximately \[ |\Delta y| = |f'(x)\,\Delta x|, \qquad \delta y = \left|\frac{f'(x)}{f(x)}\,\Delta x\right|. \]

The absolute error is measured in the same units as \(y\) ("give or take 3 cm³"). The relative error is a pure number, often given in percent ("accurate to 2%"). It's the absolute error divided by the value itself.

Example 6 · Volume of a ball The radius of a ball is measured as \( r = 10 \) cm with an error of \(0.1\) cm. With \( V = \frac43\pi r^3 \) and \( V' = 4\pi r^2 \): \[ |\Delta V| \approx 4\pi\cdot 10^2\cdot 0.1 = 40\pi \approx 125.7\ \text{cm}^3, \qquad \delta V = \left|\frac{4\pi r^2}{\frac43\pi r^3}\right|\cdot 0.1 = \frac{3}{r}\cdot 0.1 = 0.03 = 3\%. \] A 1% error in the radius produces a 3% error in the volume.
Example 7 · A general rule for powers For \(y = x^n\): \( \delta y = \left|\frac{nx^{n-1}}{x^n}\Delta x\right| = n\left|\frac{\Delta x}{x}\right| = n\,\delta x \).

The relative error gets multiplied by the exponent. Cubes triple it (Example 6), square roots halve it. For a pendulum with period \( T = 2\pi\sqrt{l/g} \), a 1% error in the length \(l\) gives only a 0.5% error in the period.

8. Summary

ConceptFormula
Increment decomposition\( \Delta y = A(x)\,dx + \gamma\,dx,\ \ \gamma \to 0 \)
Differential\( dy = f'(x)\,dx \) (exists \(\iff\) finite \(f'(x)\))
Invariance of form\( y = f(u),\ u = \varphi(x) \Rightarrow dy = f'(u)\,du \)
Geometric meaningrise of the tangent over the step \(dx\)
Approximation\( f(x + \Delta x) \approx f(x) + f'(x)\,\Delta x \)
Absolute error\( |\Delta y| \approx |f'(x)\,\Delta x| \)
Relative error\( \delta y \approx \left|\frac{f'(x)}{f(x)}\Delta x\right| \)

9. Practice problems

Try these before opening the solution. More solved problems are in Differential Calculus.

Problem 1: For \( y = x^3 - 2x \), compute \(dy\) and \(\Delta y\) at \(x = 1\) with \(dx = 0.01\).

\( dy = (3x^2 - 2)\,dx = 1\cdot 0.01 = 0.01 \). \( \Delta y = (1.01^3 - 2.02) - (1 - 2) = 1.030301 - 2.02 + 1 = 0.010301 \). The difference, \(0.000301\), is the small remainder.

Problem 2: Find the differential of \( y = x\sin x \).

\( dy = (\sin x + x\cos x)\,dx \).

Problem 3: Approximate \( \sqrt{26} \).

\( x = 25 \), \( \Delta x = 1 \): \( \sqrt{26} \approx 5 + \frac{1}{10} = 5.1 \) (true value \(5.0990\dots\)).

Problem 4: Approximate \( \cos 61^\circ \).

\( \cos 61^\circ \approx \cos 60^\circ - \sin 60^\circ\cdot\frac{\pi}{180} \approx 0.5 - 0.8660\cdot 0.01745 \approx 0.4849 \) (true value \(0.48481\dots\)).

Problem 5: The side of a square is measured as \(20\) cm with an error of \(0.05\) cm. Estimate the absolute and relative error of its area.

\( A = a^2 \), \( |\Delta A| \approx 2a\,|\Delta a| = 2\cdot 20\cdot 0.05 = 2 \) cm². Relative error: \( \delta A = 2\,\delta a = 2\cdot\frac{0.05}{20} = 0.005 = 0.5\% \).

Problem 6: Derive the formula \( d\left(\frac uv\right) = \frac{v\,du - u\,dv}{v^2} \).

\( d\left(\frac uv\right) = \left(\frac uv\right)'dx = \frac{u'v - v'u}{v^2}\,dx = \frac{v\,(u'dx) - u\,(v'dx)}{v^2} = \frac{v\,du - u\,dv}{v^2} \).

Problem 7: By how much, approximately, does the area of a circle of radius 5 m increase if the radius grows by 2 cm?

\( dA = 2\pi r\,dr = 2\pi\cdot 5\cdot 0.02 = 0.2\pi \approx 0.63 \) m². (This is the circumference times the thickness of the added ring.)

Final thoughts

The differential captures one simple, powerful idea: for small changes, every smooth function behaves like a linear one. That idea lets you estimate values without a calculator, predict how measurement errors spread through a formula, and later, in integral calculus and differential equations, it becomes the basic language for writing "a tiny piece of something".

Next in the series: higher-order derivatives and differentials.