Finite Divided Difference Formula
Finite Divided Difference Formula
1. Forward Finite Divided Difference (Uses present function value to determine the next differentiation value)
2. Backward Finite Divided Difference (Uses present function value to determine the previous differentiation value)
3. Central Finite Divided Difference (Uses previous and the next function value to determine the present differentiation
value)
➢There are different orders possible within each category (e.g. first order, second order and etc.) to determine the first
order differentiation, second order differentiation and etc., respectively.
′ ′′ 1 2 𝑓𝑛 (xi) 𝑛
f(xi+1) = f(xi) + 𝑓 (𝑥𝑖) (xi+1 – xi) + 𝑓 (𝑥𝑖) 2! (xi+1 – xi) +……..+ 𝑛!
(xi+1 – xi) + R……………….(1)
❑If we truncate the series after the first derivative term, we will get,
f(xi+1) = f(xi) + 𝑓 ′ (𝑥𝑖) (xi+1 – xi) + R1 ;{R1 due to error terms accumulating after first derivative}
or,
f(xi+1) − f(xi) R1 f(xi+1) − f(xi) ∆𝑓𝑖
𝑓 ′ (𝑥𝑖) = - = - O(xi+1 – xi) =
(xi+1 – xi) (xi+1 – xi) (xi+1 – xi) h + O(h)……………….(2)
where ∆𝑓𝑖 is referred to as the first forward difference and h is called the step size, that is, the length of the interval
over which the approximation is made. It is termed a “forward” difference because it utilizes data at i and i+1 to
∆𝑓
estimate the derivative. The entire term h 𝑖 is referred to as a first order finite forward divided difference.
1 𝑛
′ ′′ 2 𝑛 𝑓 (xi)
f(xi-1) = f(xi) - 𝑓 (𝑥𝑖) (xi – xi-1) + 𝑓 (𝑥𝑖) 2! (xi – xi−1) −……..+ (−1) 𝑛! (xi – xi−1)𝑛 + R…………..(3)
❑If we truncate the series after the first derivative term, we will get,
f(xi-1) = f(xi) - 𝑓 ′ (𝑥𝑖) (xi – xi-1) + R1 ;{R1 due to error terms accumulating after first derivative}
or,
f(xi) − f(xi−1) R1 f(xi) − f(xi−1) ∇𝑓 𝑖
𝑓 ′ (𝑥𝑖) = + = + O(xi – xi−1) =
(xi – xi−1) (xi – xi−1) (xi – xi−1) h + O(h)………………..(4)
Where ∇𝑓𝑖 is referred to as the first backward difference and h is called the step size, that is, the length of the
interval over which the approximation is made. It is termed a “backward” difference because it utilizes data at i and
∇𝑓
i+1 to estimate the derivative. The entire term h 𝑖 is referred to as a first order finite backward divided difference.
❑Central divided difference formula can be obtained by subtracting equation 3 from equation 1.
1 1
f(xi+1) - f(xi-1) = 𝑓 ′ (𝑥𝑖) (xi+1 – xi) + 𝑓 ′ (𝑥𝑖) (xi – xi-1) + 𝑓 ′′′ (𝑥𝑖) 3! (xi+1−xi)3 + 𝑓 ′′′ (𝑥𝑖) 3! (xi − xi−1)3
Since,
xi+1 – xi = xi – xi−1 = h
We get,
1
f(xi+1) - f(xi-1) = 2𝑓 ′ (𝑥𝑖) h + 2 𝑓 ′′′ (𝑥𝑖) 3! h3 + …..
This equation is termed as first order finite central divided difference. Notice that the truncation error is of the
order of h2 in contrast to the forward and backward approximations that were of the order of h. Consequently, the
Taylor series analysis yields the practical information that the centered difference is a more accurate
representation of the derivative than forward or backward difference.
The example shows that the central divided difference formula provides the best approximation to the
true value. Also, as we decrease the value of h, the result gets closer to the true value and ,hence, the
error percentage decreases.
Similar manipulation for backward and central difference, we can get the following equations,
f(xi) − 2f(xi−1) + f(xi−2)
𝑓 ′′ (𝑥𝑖) = - 𝑂(ℎ)…………………(9)
ℎ2
f(xi+1) − 2f(xi) + f(xi−1)
𝑓 ′′ (𝑥𝑖) = - 𝑂(ℎ2)…………………(10)
ℎ2
Equation 8, 9 and 10 represent the second order finite forward, backward and central divided difference formula,
respectively.
Nahian Ibn Hasan DEPARTMENT OF EEE, BRAC UNIVERSITY 9
Increasing Accuracy
❑We have considered up to the first derivative term in case of determining the divided
difference formula of the first order for all of forward, backward and central differences. The
formula changes if we include higher derivative terms in the equation. In that case the formula
changes and the remainder term incorporates higher order derivative terms (i.e. O(h2),O(h3) and
etc.)
❑The same goes for higher order divided difference formula.
❑We can try to determine these formulae. Try at home and let me know.
These formulae will be used thoroughly throughout the remainder of the course. So, you try to
understand the Taylor series and the divided difference formulae.