f'(x)\approx\frac{f(x+h)-f(x-h)}{2h}Variables
- h: small step
- f: sampled function
- x: evaluation point
How to use this formula
Approximates a first derivative using symmetric samples around x.
Important notes
- The truncation error is second order for smooth functions.
- Roundoff error can dominate when h is excessively small.
Quick example
Use samples at x−h and x+h rather than a one-sided difference.
Applicability, worked calculation, and verification
Assumptions and domain checks
- The truncation error is second order for smooth functions.
- For the Central Difference First Derivative, every denominator must be nonzero, and the numerator and denominator must remain correctly grouped.
- The iteration, step size, tolerance, and stopping rule must be suitable for the problem and the method must converge in the chosen region.
Worked example
Use samples at x−h and x+h rather than a one-sided difference.
Common mistakes
- When copying Central Difference First Derivative, keep the complete numerator and denominator grouped; a missing brace or parenthesis changes the result.
- Do not report a numerical approximation without a tolerance, convergence check, and an estimate of rounding or truncation error.
Continue the workflow
Use Central Difference First Derivative in your own work
- Check the domainMatch the variables and assumptions to the problem before substituting values.
- Copy the exact notationPreserve grouping, signs, and exponents in
f'(x)\approx\frac{f(x+h)-f(x-h)}{2h}. - Edit or convertOpen the expression in the LaTeX editor, then export it for your document or web page.
Review and verification
Last reviewed: 2026-07-23
Automated quality check: Kept noindex until the missing evidence is supplied.
Formula references
- Digital Library of Mathematical FunctionsNational Institute of Standards and Technology — Definitions, notation, identities, and reference material for mathematical functions.
Frequently asked questions
What is the Central Difference First Derivative used for?
Approximates a first derivative using symmetric samples around x.
Can I copy this formula as LaTeX?
Yes. Copy f'(x)\approx\frac{f(x+h)-f(x-h)}{2h} or open it in the LaTeX editor.
What should I check before using it?
Confirm that each variable, unit, domain restriction, and assumption matches the problem.