Central difference derivative calculator
Estimate a derivative from function values an equal step to either side of a point using a central difference.
inputs.
How to use this calculator
Estimate a derivative from function values an equal step to either side of a point using a central difference.
- Enter f(x+h), f(x−h), Step size h. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How the Central difference derivative calculator works
Estimate a derivative from function values an equal step to either side of a point using a central difference.
Inputs and units
- f(x+h): Function value evaluated at x+h.
- f(x−h): Function value evaluated at x−h, in the same output unit.
- Step size h: Nonzero signed step in x units; if its sign changes, the two function locations must change accordingly.
Formula and method
f′(x) ≈ [f(x+h) − f(x−h)]/(2h)
Worked example
With f(x+h)=12, f(x−h)=8, and h=0.5, derivative ≈ (12−8)/1 = 4 output-units per x-unit.
Interpreting the result
The estimate is the secant slope across a symmetric interval of width 2h, not h.
Assumptions and limits
h must be nonzero. Values must correspond to the stated locations. For a smooth function central truncation error is typically proportional to h², but rounding and noisy data can dominate very small steps.
Sources and method
- Defines the power and constant derivative rules. OpenStax: differentiation rules
Frequently asked questions
Why is the denominator 2h?
The two evaluation points are x+h and x−h, separated by 2h.
Is the smallest possible h always best?
No. Subtraction of nearly equal function values can magnify floating-point and measurement error.
How do I use the Central difference derivative calculator?
Enter f(x+h), f(x−h), Step size h. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Central difference derivative?
With f(x+h)=12, f(x−h)=8, and h=0.5, derivative ≈ (12−8)/1 = 4 output-units per x-unit.
What does the Central difference derivative calculator calculate?
Estimate a derivative from function values an equal step to either side of a point using a central difference.
See the calculation methodology.