Basic numerical differentiation from Taylor expansions: forward, backward and central finite differences, O(h) vs O(h²) truncation error, second-derivative stencils and step-size round-off trade-offs.
1. Deriving forward, backward and central difference stencils from Taylor series
Expanding about :
From these two expansions follow all three standard first-derivative formulas:
Forward difference ( accurate): , error .
Backward difference ( accurate): , error .
Central difference ( accurate): subtracting the two Taylor series cancels all even powers (), leaving
The symmetric central chord (dashed) eliminates the quadratic error term, matching the tangent slope to O(h²) vs O(h) for forward differences.
2. Second derivative and one-sided 3-point O(h²) formulas
Adding cancels odd terms (), yielding the standard central second-derivative stencil (used in CFD/heat finite-difference grids):
Notice it is exact for any polynomial up to degree ().
At boundaries where is outside the mesh, a 3-point forward formula combines :
3. Truncation vs round-off error and Richardson extrapolation
Halving step : forward/backward error drops by (), while central-difference error drops by ().
Total error trade-off: dividing by amplifies machine round-off error like , so decreasing too far makes round-off dominate truncation.
Richardson extrapolation: if formula has error , combining and cancels the term completely:
Formulas to remember
Forward & backward differenceBoth O(h); exact for linear polynomials
Central first derivativeO(h²); exact for quadratics (deg ≤ 2)
Central second derivativeO(h²); exact for cubics (deg ≤ 3)
Central error bounds
One-sided 3-point O(h²)
Richardson extrapolation (O(h²)→O(h⁴))
Common mistakes
Dividing central first difference by instead of .
Dividing central second difference by or instead of .
Forgetting that central first difference is exact for quadratics (, proportional to ), while central second difference is exact up to cubics (, proportional to ).
Assuming smaller always improves numerical accuracy in floating-point arithmetic: round-off blows up as or .
Using on an forward difference (Richardson for uses ).
Worked examples
Try each step yourself, then reveal the working.
Example 1: Forward, backward and central approximations compared
numerical
For at with , compute forward, backward and central approximations to and compare with exact .
Step 1: Evaluate f at x = 1.5, 2.0, 2.5.
Try it on paper first.
Example 2: Computing second derivative from equally spaced wind-tunnel data
numerical
Given , , , estimate using the central second-difference formula.
Step 1: Identify step size h = 0.2.
Try it on paper first.
Example 3: Improving an O(h²) derivative estimate with Richardson extrapolation
numerical
For at , central difference gives and . Apply Richardson extrapolation.
Step 1: Choose Richardson weights for an O(h²) central difference.
Try it on paper first.
Example 4: Determining stencil coefficients using Taylor matching
conceptual
Show why achieves accuracy.
Step 1: Expand f(x₀+h) and f(x₀+2h).
Try it on paper first.
Previous year questions
No official PYQ in our currently live papers is tagged with this exact topic yet. The topic test below uses original GATE-style questions.
Topic test
8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE Engineering Mathematics (AE, CE, NM) syllabus; being checked by a reviewer. Updated 2026-12-04. Spotted a mistake? Use Report an issue on any question, or contact us.