Numerical differentiation: Difference formulas for the second derivative
The 3-point central difference formula
We consider a 'neat' function near a point . The second derivative is of course the derivative of the first derivative . If you apply the 3-point central difference formula repeatedly, you can therefore find an approximation formula for the second derivative in at a step size .
But now you see that you need the function values in , and . However, if you use imaginary points on and , you end up with the following 3-point central difference formula for the second derivative:
Central 3-point difference formula for the second derivative
A more formal derivation of the 3-point central difference formula for the second derivative provides more insight into the truncation error.
We look at two Taylor approximations around :
When we add the two equations, we get:
Thus:
The truncation error of this 3-point central difference approximation is quadratic in .
Unlock full access