Calculus & Numerical Methods

Second Derivative

Approximate f''(x) numerically.

Formula

Formula
f''(x) ≈ f(x+h) − 2f(x) + f(x−h)h2

Variables

SymbolDefinitionType & rangeUnitsRole
f function of x expression / text x input
x evaluation point real number (ℝ) input

Try it yourself

Interactive calculator
math expression (e.g. x*x, sin(x))
Result

Worked examples

Example 1
Givenf(x) = x*x*x, x = 2
Result12.00000019
Example 2
Givenf(x) = exp(x), x = 0
Result1.000000005