Meaning and direct answer
Numerical differentiation estimates a derivative using function values separated by a finite step h. Central differences use both sides and have smaller truncation error than forward differences for smooth functions.[1]
Numerical differentiation estimates a derivative using function values separated by a finite step h. Central differences use both sides and have smaller truncation error than forward differences for smooth functions.
Assumptions and limits
h is nonzero. A central O(h2) error estimate needs sufficient third derivatives nearby. Both sampled values must exist; boundaries require one-sided formulas. Very small h magnifies rounding and measurement noise.[1]
Why the relation holds
Taylor expansions of f(x±h) cancel even-order terms when subtracted. Dividing by 2h leaves f′(x)+O(h2). Rounding errors in sampled values are instead roughly divided by h. Thus an ever smaller step is not always more accurate.[1]
The model visualized
Exact truncation error h2
Free with a Quanta account. Your download stays ready after registration.
Two fully worked examples
Quadratic test case
- Given
- f(x)=x2, x=3, h=0.1.
- Find
- Answer the stated question using valid steps and verify the result.
Taylor expansions of f(x±h) cancel even-order terms when subtracted. Dividing by 2h leaves f′(x)+O(h2). Rounding errors in sampled values are instead roughly divided by h. Thus an ever smaller step is not always more accurate.
Substitute the stated data or evaluate the defining relation.
Result: The central difference is 6, matching f′(3) exactly.
Check: The third derivative vanishes, eliminating truncation error in exact arithmetic.
Cubic truncation error
- Given
- f(x)=x3, x=2, h=0.1.
- Find
- Answer the stated question using valid steps and verify the result.
Taylor expansions of f(x±h) cancel even-order terms when subtracted. Dividing by 2h leaves f′(x)+O(h2). Rounding errors in sampled values are instead roughly divided by h. Thus an ever smaller step is not always more accurate.
Substitute the stated data or evaluate the defining relation.
Result: The error is 0.01 relative to f′(2)=12.
Check: Halving h to 0.05 gives error 0.0025, one quarter as large.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five exercises with solutions
Calculate · Foundation
Find the forward difference of x2 at x=2, h=0.1.
Show hint
h is nonzero. A central O(h2) error estimate needs sufficient third derivatives nearby. Both sampled values must exist; boundaries require one-sided formulas. Very small h magnifies rounding and measurement noise.
Learning goal: Find the forward difference of x2 at x=2, h=0.1.
Show solution and calculation
(2.12−22)/0.1=4.1; true derivative 4.
Rearrange · Foundation
Solve D=(f(x+h)−f(x−h))/(2h) for the value difference.
Show hint
h is nonzero. A central O(h2) error estimate needs sufficient third derivatives nearby. Both sampled values must exist; boundaries require one-sided formulas. Very small h magnifies rounding and measurement noise.
Learning goal: Solve D=(f(x+h)−f(x−h))/(2h) for the value difference.
Show solution and calculation
f(x+h)−f(x−h)=2hD.
Interpret · Application
Which truncation order applies to central differences?
Show hint
h is nonzero. A central O(h2) error estimate needs sufficient third derivatives nearby. Both sampled values must exist; boundaries require one-sided formulas. Very small h magnifies rounding and measurement noise.
Learning goal: Which truncation order applies to central differences?
Show solution and calculation
O(h2) under adequate smoothness, versus O(h) for forward differences.
Error analysis · Application
Why can h=10−20 fail at x=1?
Show hint
h is nonzero. A central O(h2) error estimate needs sufficient third derivatives nearby. Both sampled values must exist; boundaries require one-sided formulas. Very small h magnifies rounding and measurement noise.
Learning goal: Why can h=10−20 fail at x=1?
Show solution and calculation
Ordinary floating-point arithmetic may round 1+h and 1−h to 1, leaving identical samples and no derivative information.
Transfer · Application
How does measurement noise affect very small steps?
Show hint
h is nonzero. A central O(h2) error estimate needs sufficient third derivatives nearby. Both sampled values must exist; boundaries require one-sided formulas. Very small h magnifies rounding and measurement noise.
Learning goal: How does measurement noise affect very small steps?
Show solution and calculation
The noisy difference is divided by 2h, so reducing h can sharply amplify error.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Related next learning steps
Related methods: Difference Quotient and h-Method, Propagation of Measurement Uncertainty.
Sources for this explanation
Quanta · Updated November 6, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Authored a German-English topic with assumptions, reasoning, original examples and five solved exercises.
Cite this reference page
Quanta. Numerical differentiation. Updated November 6, 2026. https://quanta-study.de/en/formula-sheet/numerische-differentiation
When citing a specific scientific statement, also cite the specialist source linked to that statement.