Welcome to AE Resources
ROOT FINDING

ROOT FINDING

These concepts can be used to set up any order of derivative and truncation errors. These are known as finite differences:
xi + 1  −  xi forward difference xi + 1  −  xi − 1  central difference *1cm xi  −  xi − 1  backwards difference
figure images/line.jpg
Figure 5 The approximation of a line using finite differences (discrete points).

Thus the first derivative is
f’(xi) = (f(xi + 1) − f(xi))/(Δx) + θx)
If Δx = h and is a constant, then (Δfi)/(h) + θ(h) where θ is order of truncation error.
Using the backwards difference, yields [(xi − 1) = (f(xi) − f(xi − 1))/(h) + θ(h). With the central difference, the equations become
f(xi + 1) = f(xi) + f’(xi)h f(xi − 1) = f(xi) − f’(xi)h f(xi + 1) = f(xi − 1) + f’(xi)h2 f’(xi) = (f(xi + 1 − f(xi − 1))/(2h) + θ(h)
The second derivative of the function can be written as
f(xi + 1)  =  f(xi) + f’(xi)h + f"(xi)(h2)/(2) + θ(h2) f"(xi)  =  (2(f(xi + 1) − f(xi) − f’(xi)h))/(h2)  =  (2f(xi + 1) − 2f(xi) − (h2)/(2)(f(xi + 1) − f(xi − 1))/(2h))/(h2)
Next Page →
Next Page →
← Previous Page
← Previous Page