Finite Difference Approximations
Finite Difference Approximations
• For the treatment of problems, it is convenient to retain only the first two
terms of the previous expression:
• where the term O(h2) indicates that the error of the approximation which
is proportional to h2. Here exists a constant C > 0, such that for h > 0 and
sufficiently small we have:
Where C = O(h2).
• The error committed by replacing the derivative u’(x) by the differential
quotient is of order h.
Forward, Backward and Central Difference
Forward Difference Approximation:
(Eq. 1)
Backward Difference Approximation:
(Eq. 2)
Order of the error: h
Central Difference Approximation:
• By addition, we get,
• And
• Derivations of FD Equations
– First Order Derivatives
– Second Order Derivatives
Graphical Representation for Forward,
Backward and Central Difference
Initial and Boundary Conditions
• Proper initial and boundary conditions are required for a well posed problems.
Well-posedness
• solution exists
• the solution is unique
• continuous dependence on the initial data
• Initial Conditions
u(x,0) = f(x)
• Boundary Conditions:
(i) Dirichlet Boundary Conditions.
– u(0,t+1) = ui,j+1 = constant
or
– u(0,t+1) = ui,j+1 = f(t)
And
– u(0,t+1) = un,j+1 = constant
– or
– u(0,t+1) = un,j+1 = f(t)
Boundary Conditions
• Neuman
Boundary Conditions
It is a derivative boundary condition. It is rate of change
of dependable variable.
f(t)
For no flux BC
• , central difference
One Dimensional Sediment Transport Equation