Académique Documents
Professionnel Documents
Culture Documents
f f ( x + x ) f ( x ) x 2 f (x ) 3 f +L = 2 3 x x 2! x 3! x
2
f A B C
f f ( x + x ) f ( x ) = + O (x ), x x
i-1
i+1
f f fi = i +1 + O (x ) x i x
(FD-4)
f 2 f (x ) 3 f (x ) f ( x x ) = f ( x ) x + 2 + ... 3 x x 2! x 3!
2 3
i-1
i+1
From which
f f ( x ) f ( x x ) = + O (x ) x x
(FD-5)
or
f f f i 1 = i + O (x ) x x
Backward differencing first order
(FD-6)
(FD-7)
Solving for
f , x f f ( x + x ) f ( x x ) 2 = + O (x ) x 2x
(FD-8) (FD-9)
f A B C
f f f i 1 2 = i +1 + O (x ) x i 2x
i-1
i+1
A forward difference approximation, which is first order. A backward difference approximation, which is first order. A central difference approximation, which is second order.
(FD-10) (FD-11)
f (2 x ) 2 f (2 x ) 3 f +K f ( x + 2 x ) = f ( x ) + (2 x ) + + 2 3 x 2! x 3! x
2 3
(FD-12)
2 f f ( x + 2x ) 2 f ( x + x ) + f ( x ) = + O (x ) 2 2 x (x )
or
(FD-13)
2 f f i + 2 2 f i +1 + f i = + O (x ) 2 2 x i (x )
(FD-14)
This equation represents the forward difference approximation for the second order derivative which is first-order. Similarly, considering the Taylor series expansions of f ( x x ) and f ( x 2x ) , one obtains
2 f f i 2 f i 1 + f i 2 = + O (x ) 2 2 x i (x )
backward difference
(FD-15)
f ( x x ) and f ( x 2x )
backward difference
(FD-15)
f i +1 2 f i + f i 1 2 + O ( x ) 2 (x)
central difference
(FD-16)