Subsection C.1 Numerical Methods
Numerical methods hurt my head. π€―
Comparison of Finite Difference Scheme Properties.
The following tables summarize common finite difference schemes for first and second derivatives.
| Scheme and Formulation | Error | Grid Points |
|---|---|---|
|
Forward Difference
\begin{equation*}
\frac{df}{dx} \approx \frac{f(x+\Delta x) - f(x)}{\Delta x}
\end{equation*}
|
\(\mathcal{O}(\Delta x)\) | \(1\) |
|
Backward Difference
\begin{equation*}
\frac{df}{dx} \approx \frac{f(x) - f(x-\Delta x)}{\Delta x}
\end{equation*}
|
\(\mathcal{O}(\Delta x)\) | \(1\) |
|
Central Difference
Second-order accurate central difference scheme:
\begin{equation*}
\frac{df}{dx} \approx \frac{f(x+\Delta x) - f(x-\Delta x)}{2\Delta x}
\end{equation*}
|
\(\mathcal{O}(\Delta x^2)\) | \(2\) |