1.1.2.1. The Finite Difference Method¶
1.1.2.1.1. Origin and Concept¶
Invented by Euler in 1768 for one dimension, extended by Runge in 1908 to two dimensions
Concept is to approximate derivatives using Taylor Expansions
1.1.2.1.2. Define numerical grid¶

Two families of grid lines
Grid lines of the same family do not intersect
Grid lines of different families intersect only once
Node (i,j) is in 2D - an unknown field variable which depends on neighbouring nodes providing one algebraic equation
1.1.2.1.3. Define Derivative¶
1.1.2.1.3.1. Mathematical Interpretation¶
1.1.2.1.3.2. Geometric Interpretation¶
Slope of the tangent to the curve with three approximation to the exact solution: Backward, Forward and Central Difference.

Backward difference
Forward difference
Central difference
1.1.2.1.3.3. Error¶
Some approximations are better than others
Quality of approximation improves as \(\Delta x\) is made smaller
1.1.2.1.3.4. Taylor Series Expansion - Order of the approximations¶
Forward differencing: \(x = x_{i+1}\)
Backward differencing: \(x = x_{i-1}\)
Forward Differencing¶
We need to obtain the derivative \(\left . {\partial u \over \partial x} \right \vert_i\)
If \(x_{i+1} - x_i\) is small, then:
There is a possibility that the derivative \(\left . {\partial^2 u \over \partial x^2} \right \vert_i\) is large, but we assume that the function is well-behaved.
Forward differencing approximation neglected terms of \(O(\Delta x)\) \(\rightarrow\) TRUNCATION ERROR
As \(\Delta x \rightarrow 0\) \(\Rightarrow\) FD converges!
Central Differencing¶
For Central Differencing, the error is \(O(\Delta x^2)\)