Differential of a Function: Formula, Examples, Errors

#Calculus
TL;DR
The differential of a function is dy=f′(x),dxdy = f'(x),dx, the change measured along the tangent line. This guide compares it with the true change Δy\Delta y and uses it to estimate measurement errors.
BT
Bhanzu TeamLast updated on October 9, 202616 min read

What Is The Differential Of A Function?

The differential of a function y=f(x)y = f(x) is the quantity dy=f′(x),dxdy = f'(x),dx: the derivative at xx multiplied by a chosen change dxdx in the input. It tells you how far yy would move if the function kept changing at its current rate. For small dxdx, that estimate sits very close to the true change in yy.

Formally, let ff be differentiable at xx. The differential of the independent variable is dxdx, which can be any real number (in practice a small one). The differential of the dependent variable is

dy=f′(x),dxdy = f'(x),dx

Here is what each symbol means:

Symbol

Meaning

xx

The input value you start from

dxdx

The chosen change in the input, any real number; for the input, dx=Δxdx = \Delta x

f′(x)f'(x)

The derivative of a function ff at xx, the slope of the tangent line there

dydy

The change in output along the tangent line, which depends on both xx and dxdx

Δy\Delta y

The actual change in output, f(x+dx)−f(x)f(x + dx) - f(x)

The differential is a function of two inputs, xx and dxdx, while the derivative is a function of xx alone. That small fact settles most of the confusion that follows.

How Do You Find The Differential Of A Function?

You find the differential of a function in two moves: differentiate, then multiply by dxdx. For y=x3y = x^3, the derivative is 3x23x^2, so dy=3x2,dxdy = 3x^2,dx. For y=sin⁡xy = \sin x, dy=cos⁡x,dxdy = \cos x,dx. Actually, that last line needs one condition stated out loud: it holds only with xx measured in radians, because the derivative of sine is cos⁡x\cos x only in radians.

Every differentiation rule has a differential version, because each one is the derivative rule with dxdx attached. Writing uu and vv for differentiable functions of xx and cc for a constant:

Rule

Differential form

Constant

d(c)=0d(c) = 0

Constant multiple

d(cu)=c,dud(cu) = c,du

Sum and difference

d(u±v)=du±dvd(u \pm v) = du \pm dv

Product

d(uv)=u,dv+v,dud(uv) = u,dv + v,du

Quotient

d(uv)=v,du−u,dvv2d\left(\frac{u}{v}\right) = \frac{v,du - u,dv}{v^2}, with v≠0v \neq 0

Power

d(un)=n,un−1,dud(u^n) = n,u^{n-1},du

The product line is the product rule multiplied through by dxdx; the quotient line comes from the quotient rule the same way. The power line hides the chain rule: dudu already carries the inner derivative, since du=u′(x),dxdu = u'(x),dx.

What Does The Differential Mean Geometrically?

Geometrically, the differential of a function is the rise of the tangent line over a run of dxdx. Stand at the point (x,f(x))(x, f(x)) on the curve and draw the tangent line there. Move dxdx to the right. The tangent line climbs f′(x),dxf'(x),dx, which is dydy, while the curve itself climbs Δy\Delta y.

The two rises agree when the curve is a straight line. On a curve that bends, the tangent line peels away from the curve, and the gap between dydy and Δy\Delta y is exactly that peeling. The tangent line equations page builds the line itself; here, the line's only job is to give a cheap stand-in for the curve near one point.

Why Is The Differential Not Equal To The Actual Change?

The differential is not equal to the actual change because it follows the tangent line, and the tangent line ignores the bending of the curve. A Physics Forums thread asks this directly: why is Δy\Delta y not equal to dydy, even for a tiny dxdx? They are never equal on a curved graph, but their gap shrinks much faster than dxdx does.

Take y=x3y = x^3 at x=2x = 2, where f′(2)=12f'(2) = 12, so dy=12,dxdy = 12,dx:

dxdx

Δy=(2+dx)3−8\Delta y = (2 + dx)^3 - 8

dy=12,dxdy = 12,dx

Gap Δy−dy\Delta y - dy

11

1919

1212

77

0.10.1

1.2611.261

1.21.2

0.0610.061

0.010.01

0.1206010.120601

0.120.12

0.0006010.000601

Each time dxdx gets 10 times smaller, the gap gets about 100 times smaller. Expanding shows why:

Δy−dy=(2+dx)3−8−12,dx\Delta y - dy = (2 + dx)^3 - 8 - 12,dx

Δy−dy=6,(dx)2+(dx)3\Delta y - dy = 6,(dx)^2 + (dx)^3

The leading piece, 6,(dx)26,(dx)^2, equals 12f′′(2),(dx)2\frac{1}{2}f''(2),(dx)^2, since the second derivative of x3x^3 at 22 is 1212. That half-second-derivative term is the curvature correction; adding it gives the quadratic step of Taylor polynomials. The differential is the first-order piece, and it is accurate precisely because the leftovers are second order.

The same thread family asks how dydx\frac{dy}{dx}, ΔyΔx\frac{\Delta y}{\Delta x} and ∂y∂x\frac{\partial y}{\partial x} differ. The ratio ΔyΔx\frac{\Delta y}{\Delta x} is the slope of a secant line through two points on the curve. The ratio of differentials, dydx\frac{dy}{dx}, equals f′(x)f'(x) exactly for any nonzero dxdx, because dydy was defined as f′(x),dxf'(x),dx; it is the slope of the tangent. The curly ∂\partial marks a partial derivative, used when yy depends on several inputs and only one of them changes.

How Do Differentials Estimate Absolute, Relative And Percentage Error?

Differentials estimate errors by treating a measurement mistake as dxdx and reading the resulting output mistake as dydy. Suppose a quantity y=f(x)y = f(x) is computed from a measured xx, and the measurement could be off by dxdx. Then the error in yy is approximately dy=f′(x),dxdy = f'(x),dx. This is called propagated error: the input's error travels through the formula.

Three measures describe that error, and Brainly threads ask for each one with an example:

  • Absolute error: the size of the error itself, approximately ∣dy∣|dy|. It carries the units of yy.

  • Relative error: the absolute error compared with the size of the quantity, dyy\frac{dy}{y}. It has no units.

  • Percentage error: the relative error written per hundred, dyy×100\frac{dy}{y} \times 100%.

So the difference between relative and percentage error is only the factor of 100. A relative error of 0.0060.006 and a percentage error of 0.60.6% say the same thing.

One shortcut covers every power formula. If y=k,xny = k,x^n, then dy=n,k,xn−1,dxdy = n,k,x^{n-1},dx, and dividing by yy gives

dyy=n,dxx\frac{dy}{y} = n,\frac{dx}{x}

The relative error gets multiplied by the power. Volume of a sphere goes with r3r^3, so a 1% error in the radius becomes about a 3% error in volume. A pendulum's period goes with L1/2L^{1/2}, so a 2% error in length becomes about 1% in the period: the clock in the opening paragraph.

Is A Differential The Same As A Derivative?

No: a derivative is a rate, and a differential is a change built from that rate. A Quora thread asks for the difference between the differential and the derivative of a function, and the clearest answer is to compare what each one takes in and gives back.

Feature

Derivative f′(x)f'(x)

Differential dy=f′(x),dxdy = f'(x),dx

What it measures

Rate of change of yy per unit of xx

Approximate change in yy for a change dxdx

Inputs

xx only

xx and dxdx

Units

Units of yy per unit of xx

Units of yy

Picture

Slope of the tangent line

Rise of the tangent line over a run of dxdx

Typical use

Slopes, speeds, optimisation

Approximation, error estimates, substitution in integrals

The terminology deserves an honest note. The word "differential" carries at least three meanings across textbooks (a small number dxdx, Leibniz's infinitely small quantity, and the linear map of advanced courses), and it takes a while to notice which one a given book means. This article uses the first meaning throughout, because it is the one that produces numbers.

Where Do Differentials Go Beyond One Small Change?

Differentials extend in three directions that reappear later in calculus: several input variables, higher orders, and integration.

How Does The Total Differential Work With Several Variables?

When z=f(x,y)z = f(x, y) depends on two inputs, each input contributes its own share of the change. The total differential adds them:

dz=∂f∂x,dx+∂f∂y,dydz = \frac{\partial f}{\partial x},dx + \frac{\partial f}{\partial y},dy

Each partial derivative ∂f∂x\frac{\partial f}{\partial x} is the ordinary derivative with the other input held fixed. For a cylinder, V=πr2hV = \pi r^2 h, the total differential divided by VV gives dVV=2,drr+dhh\frac{dV}{V} = 2,\frac{dr}{r} + \frac{dh}{h}: radius errors count double, height errors count once.

What Are Higher-Order Differentials?

Applying the differential again, with dxdx held fixed, gives d2y=f′′(x),(dx)2d^2y = f''(x),(dx)^2. That is the curvature term from the gap table above, with the factor 12\frac{1}{2} supplied when it enters an approximation.

Why Does dxdx Appear Inside Integrals?

The dxdx in an integral is the same differential, and the integration by substitution method uses it directly. In ∫2xcos⁡(x2),dx\int 2x\cos\left(x^2\right),dx, set u=x2u = x^2, so du=2x,dxdu = 2x,dx:

∫2xcos⁡(x2),dx=∫cos⁡u,du\int 2x\cos\left(x^2\right),dx = \int \cos u,du

∫cos⁡u,du=sin⁡(x2)+C\int \cos u,du = \sin\left(x^2\right) + C

Differentiating sin⁡(x2)\sin\left(x^2\right) returns 2xcos⁡(x2)2x\cos\left(x^2\right), which confirms the result.

Examples Of The Differential Of A Function

The six examples below move from a straight computation to error propagation in a physical formula.

Example 1

Find the differential of y=x2ln⁡xy = x^2\ln x, then evaluate it at x=1x = 1 with dx=0.2dx = 0.2.

Differentiate with the product rule:

f′(x)=2xln⁡x+xf'(x) = 2x\ln x + x

Attach dxdx:

dy=(2xln⁡x+x)dxdy = \left(2x\ln x + x\right)dx

At x=1x = 1, ln⁡1=0\ln 1 = 0:

dy=(0+1)(0.2)dy = \left(0 + 1\right)(0.2)

dy=0.2dy = 0.2

Final answer: dy=(2xln⁡x+x)dxdy = \left(2x\ln x + x\right)dx, and dy=0.2dy = 0.2 at x=1x = 1, dx=0.2dx = 0.2.

Example 2

Use differentials to estimate sin⁡31∘\sin 31^\circ.

The tempting set-up starts from sin⁡30∘=12\sin 30^\circ = \frac{1}{2} with dx=1dx = 1, because the angle grew by one degree:

dy=cos⁡30∘×1dy = \cos 30^\circ \times 1

sin⁡31∘≈0.5+0.8660=1.3660\sin 31^\circ \approx 0.5 + 0.8660 = 1.3660

That answer is impossible, since sine never exceeds 11. The break is the unit. The rule ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x holds only when xx is in radians, so dxdx must be in radians too: 1∘=π180≈0.0174531^\circ = \frac{\pi}{180} \approx 0.017453.

Redo it with x=π6x = \frac{\pi}{6} and dx=π180dx = \frac{\pi}{180}:

dy=cos⁡π6⋅π180dy = \cos\frac{\pi}{6}\cdot\frac{\pi}{180}

dy≈0.86603×0.017453dy \approx 0.86603 \times 0.017453

dy≈0.015115dy \approx 0.015115

sin⁡31∘≈0.5+0.015115=0.5151\sin 31^\circ \approx 0.5 + 0.015115 = 0.5151

A calculator gives 0.51500.5150, so the estimate is off by less than 0.00010.0001.

Final answer: sin⁡31∘≈0.5151\sin 31^\circ \approx 0.5151.

Example 3

For y=x3y = x^3 at x=2x = 2 with dx=0.1dx = 0.1, compare dydy with Δy\Delta y.

The differential:

dy=3x2,dx=3(4)(0.1)dy = 3x^2,dx = 3(4)(0.1)

dy=1.2dy = 1.2

The actual change:

Δy=(2.1)3−23\Delta y = (2.1)^3 - 2^3

Δy=9.261−8=1.261\Delta y = 9.261 - 8 = 1.261

The gap is 0.0610.061, which matches 6,(dx)2+(dx)3=0.06+0.0016,(dx)^2 + (dx)^3 = 0.06 + 0.001.

Final answer: dy=1.2dy = 1.2, Δy=1.261\Delta y = 1.261, and the differential underestimates by 0.0610.061.

Example 4

Approximate 263\sqrt[3]{26} using differentials.

Choose f(x)=x1/3f(x) = x^{1/3} at x=27x = 27, because 273=3\sqrt[3]{27} = 3 is exact. Here dx=−1dx = -1, and the negative sign matters.

f′(x)=13x−2/3f'(x) = \frac{1}{3}x^{-2/3}

f′(27)=13⋅19=127f'(27) = \frac{1}{3}\cdot\frac{1}{9} = \frac{1}{27}

dy=127×(−1)≈−0.0370dy = \frac{1}{27}\times(-1) \approx -0.0370

263≈3−0.0370=2.9630\sqrt[3]{26} \approx 3 - 0.0370 = 2.9630

The true value is 2.96252.9625. The first instinct here is to start from x=26x = 26 and step forward; the step only helps when it starts from a value you already know exactly.

Final answer: 263≈2.9630\sqrt[3]{26} \approx 2.9630.

Example 5

A sphere's radius is measured as 1010 cm with a possible error of 0.020.02 cm. Estimate the error in its volume and the percentage error.

Volume and its differential:

V=43πr3V = \frac{4}{3}\pi r^3

dV=4πr2,drdV = 4\pi r^2,dr

dV=4π(100)(0.02)=8π≈25.13,cm3dV = 4\pi(100)(0.02) = 8\pi \approx 25.13,\text{cm}^3

Relative and percentage error, using the power shortcut:

dVV=3,drr=3×0.0210=0.006\frac{dV}{V} = 3,\frac{dr}{r} = 3 \times \frac{0.02}{10} = 0.006

Final answer: the volume may be off by about 25.13,cm325.13,\text{cm}^3, a percentage error of 0.60.6%.

Example 6

A pendulum's period is T=2πLgT = 2\pi\sqrt{\frac{L}{g}}. If L=1L = 1 m is measured with a 2% error, estimate the error in TT (take g=9.81,m/s2g = 9.81,\text{m/s}^2).

TT is a constant times L1/2L^{1/2}, so the relative errors follow the power rule:

dTT=12,dLL=12(0.02)=0.01\frac{dT}{T} = \frac{1}{2},\frac{dL}{L} = \frac{1}{2}(0.02) = 0.01

The period itself:

T=2π19.81≈2.0061,sT = 2\pi\sqrt{\frac{1}{9.81}} \approx 2.0061,\text{s}

dT≈0.01×2.0061≈0.0201,sdT \approx 0.01 \times 2.0061 \approx 0.0201,\text{s}

The exact change is 0.0200,s0.0200,\text{s}, so the differential is reliable to three decimal places. Over the 8640086400 seconds of a day, a 1% longer period puts the clock about 14 minutes behind.

Final answer: about a 1% error in the period, roughly 0.02010.0201 s per swing.

Why Did Mathematicians Need The Differential?

The differential exists to answer one practical question: "how much does the output move when the input moves a little?" Before there was any formal theory of limits, that question already drove three kinds of work:

  • Tangents and extremes. Gottfried Leibniz's 1684 paper introduced the dd notation in a method for finding tangents, maxima and minima. Treating dydy and dxdx as small changes let him read a slope as their ratio.

  • Measurement you can trust. Every laboratory number has an uncertainty. The propagation of error method in the NIST/SEMATECH e-Handbook of Statistical Methods multiplies each input's uncertainty by a derivative, called a sensitivity coefficient: the multi-input version of dy=f′(x),dxdy = f'(x),dx.

  • Numbers without a calculator. Estimates like 263\sqrt[3]{26} or sin⁡31∘\sin 31^\circ from a nearby known value were how tables and engineering hand-calculations got done.

The differential also became the bookkeeping device of calculus. The history of calculus is partly the story of how dxdx went from a mysterious infinitely small quantity to an ordinary number with a precise job.

The Mathematicians Behind The Differential Of A Function

Gottfried Wilhelm Leibniz (1646 to 1716, Germany) first wrote the integral sign and dxdx in a manuscript dated 21 November 1675. His 1684 paper Nova Methodus pro Maximis et Minimis in Acta Eruditorum published the dd notation together with the rules for differentiating powers, products and quotients.

Augustin-Louis Cauchy (1789 to 1857, France) wrote the Cours d'analyse of 1821 to develop the basic theorems of calculus as rigorously as possible. The limit-based approach that grew from that work is what allows dxdx to be an ordinary number and dy=f′(x),dxdy = f'(x),dx to be an exact definition instead of an infinitely small leap of faith.

Where Are Differentials Used In Real Life?

Differentials are used wherever a small, known change in one quantity has to be turned into a change in another:

  • Manufacturing tolerances. A machinist who can hold a radius to within 0.020.02 mm uses dV=4πr2,drdV = 4\pi r^2,dr or its cousins to decide whether the resulting volume or mass stays in specification.

  • Laboratory error bars. Physics and chemistry students report results such as gg from a pendulum with an uncertainty computed exactly as in Example 6.

  • Timekeeping. Clockmakers adjust pendulum length knowing that a fractional change in length makes half that fractional change in the period.

  • Linked rates. Dividing a differential relationship by dtdt turns it into a rate equation, which is how related rates problems are set up.

  • Sensitivity checks. Engineers ask which input a design is most sensitive to by comparing the coefficients in a total differential.

Where Solutions Go Off The Rails

Most marks lost on differentials come from four habits, and each one is easy to catch once you know to look for it.

Mistake 1: Measuring dxdx In Degrees

Where it slips in:

Any differential of a trig function, such as estimating sin⁡31∘\sin 31^\circ or cos⁡59∘\cos 59^\circ.

Don't do this:

Writing dx=1dx = 1 for "one degree" and getting sin⁡31∘≈1.366\sin 31^\circ \approx 1.366.

The correct way:

Convert first: dx=π180dx = \frac{\pi}{180}. The rusher who skips this check never notices that the answer exceeds 11; a two-second "can sine be bigger than 1?" catches it.

Mistake 2: Treating dydy As The Exact Change

Where it slips in:

Questions that ask for the actual change, or for the error in an approximation.

Don't do this:

Reporting dy=1.2dy = 1.2 as the change in x3x^3 from 22 to 2.12.1.

The correct way:

Use dydy when the question says "approximate" or "estimate", and compute Δy=f(x+dx)−f(x)\Delta y = f(x + dx) - f(x) when it asks for the actual change. The memorizer who learned "dydy equals the change" gets every comparison question wrong, because the whole point of those questions is the gap.

Mistake 3: Stopping At The Absolute Error

Where it slips in:

Percentage-error questions on volumes, areas and periods.

Don't do this:

Answering "the percentage error is 25.1325.13" for the sphere in Example 5.

The correct way:

Divide by the quantity itself before multiplying by 100: dVV×100\frac{dV}{V} \times 100% = 0.6%. With power formulas, skip the division entirely and multiply the input's relative error by the exponent. Students who learn the n,dxxn,\frac{dx}{x} shortcut stop mixing up absolute and relative error, because the shortcut only ever produces a relative error.

Mistake 4: Dropping The dxdx

Where it slips in:

"Find the differential" questions, especially right after a block of "find the derivative" questions.

Don't do this:

Writing dy=2xln⁡x+xdy = 2x\ln x + x.

The correct way:

Keep the dxdx: dy=(2xln⁡x+x)dxdy = \left(2x\ln x + x\right)dx. Without it, the line states that a change equals a slope, which mixes units. The student who drops dxdx here is usually the same student who later drops it from an integral and then cannot see what to substitute.

Practice Problems On The Differential Of A Function

Work each one, then compare with the answer. Every answer has been recomputed.

  1. Find dydy for y=e3xsin⁡xy = e^{3x}\sin x.

  2. Use differentials to approximate 49.5\sqrt{49.5} to four decimal places.

  3. The side of a cube is measured as 1010 cm with a possible error of 0.050.05 cm. Estimate the error in its volume and the percentage error.

  4. For y=x2−4xy = x^2 - 4x at x=5x = 5 with dx=0.05dx = 0.05, find dydy and Δy\Delta y.

  5. The radius of a circle increases from 44 to 4.14.1. Use differentials to estimate the change in its area.

  6. The radius of a sphere is measured with a 1% error. Estimate the percentage error in its surface area.

Answer to Question 1: dy=e3x(3sin⁡x+cos⁡x)dxdy = e^{3x}\left(3\sin x + \cos x\right)dx.

Answer to Question 2: 49.5≈7+0.514≈7.0357\sqrt{49.5} \approx 7 + \frac{0.5}{14} \approx 7.0357 (the true value is 7.03567.0356).

Answer to Question 3: dV=3s2,ds=15,cm3dV = 3s^2,ds = 15,\text{cm}^3, a percentage error of 1.51.5%.

Answer to Question 4: dy=0.3dy = 0.3 and Δy=0.3025\Delta y = 0.3025.

Answer to Question 5: dA=2πr,dr=0.8π≈2.5133dA = 2\pi r,dr = 0.8\pi \approx 2.5133 square units.

Answer to Question 6: surface area goes with r2r^2, so the error is about 22%.

What To Remember About The Differential Of A Function

  • The differential of a function is dy=f′(x),dxdy = f'(x),dx, the rise of the tangent line over a run of dxdx.

  • The actual change Δy\Delta y follows the curve, and the gap Δy−dy\Delta y - dy shrinks like (dx)2(dx)^2.

  • Absolute error is about ∣dy∣|dy|, relative error is dyy\frac{dy}{y}, and percentage error is that ratio times 100.

  • For power formulas, the relative error of the output is the exponent times the relative error of the input.

  • Trig differentials need dxdx in radians, never degrees.

Your Next Move

Work through Practice Problems 1 to 6; if Problem 3 or Problem 6 trips you up, return to the section on absolute, relative and percentage error, and if Problem 4 does, reread the table comparing dydy with Δy\Delta y.

Book a free demo class with Bhanzu:

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

When do you write Δ and when do you write d in the differential of a function?
Write Δ\Delta for an actual, finite change, such as Δy=f(x+Δx)−f(x)\Delta y = f(x + \Delta x) - f(x). Write dd for the differential, which is the tangent-line change dy=f′(x),dxdy = f'(x),dx. For the independent variable the two coincide (dx=Δxdx = \Delta x), so the distinction only bites on the output side.
Is dy/dx a quotient of two differentials?
Yes, in one specific sense. Once you fix a nonzero dxdx and define dy=f′(x),dxdy = f'(x),dx, dividing gives dydx=f′(x)\frac{dy}{dx} = f'(x) as an ordinary quotient. The derivative itself is still defined first as a limit; the differentials are built from it, not the other way round.
What exactly is dx in the differential of a function?
In a first calculus course, dxdx is simply an independent real number, the change you choose to make in the input. Leibniz thought of it as infinitely small, and advanced courses treat it as a linear map, but neither view is needed to compute with it.
What is mean absolute error, and is it the same as the error a differential estimates?
No. Mean absolute error averages the sizes of several measured errors, so it describes a set of repeated measurements. The differential estimates how one input error travels through a formula into the output, as covered in the error section above.
How are accuracy, precision and error estimation related?
Accuracy describes how close a measurement is to the true value, and precision describes how close repeated measurements are to each other. Error estimation puts a number on the uncertainty, and differentials carry that number from the measured input to any quantity calculated from it.
What is a differential coefficient?
It is an older name for the derivative: the coefficient f′(x)f'(x) that multiplies dxdx in dy=f′(x),dxdy = f'(x),dx.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →