Skip to main content

Finite difference method; explicit and implicit schemes

Short answer

The finite difference method replaces derivatives with differences. In explicit schemes, spatial terms use known time level, giving direct solution but requiring C ≤ 1 for stability. In implicit schemes, spatial terms use unknown time level, requiring matrix solution but remaining unconditionally stable.

What is the finite difference method? Explain explicit and implicit finite difference schemes with examples.

The finite difference method (FDM) is a numerical technique that replaces the continuous solution domain by a grid of discrete points and replaces the derivatives in a differential equation by differences between the values at neighbouring grid points. The differential equation becomes a set of algebraic equations in the unknown grid values.

Explicit and implicit schemes (example: ∂Q/∂t+c ∂Q/∂x=0\partial Q/\partial t+c\,\partial Q/\partial x=0, C=cΔt/ΔxC=c\Delta t/\Delta x)

Explicit: the spatial derivative is evaluated at the known time level nn.

Qin+1−QinΔt+c Qin−Qi−1nΔx=0 ⇒ Qin+1=Qin−C (Qin−Qi−1n)\frac{Q_i^{n+1}-Q_i^n}{\Delta t}+c\,\frac{Q_i^n-Q_{i-1}^n}{\Delta x}=0\ \Rightarrow\ Q_i^{n+1}=Q_i^n-C\,(Q_i^n-Q_{i-1}^n)

Each unknown is found directly from known values. It is conditionally stable (needs C≤1C\le1).

Implicit: the spatial derivative is evaluated at the new time level n+1n+1.

Qin+1−QinΔt+c Qin+1−Qi−1n+1Δx=0 ⇒ Qin+1=Qin+C Qi−1n+11+C\frac{Q_i^{n+1}-Q_i^n}{\Delta t}+c\,\frac{Q_i^{n+1}-Q_{i-1}^{n+1}}{\Delta x}=0\ \Rightarrow\ Q_i^{n+1}=\frac{Q_i^n+C\,Q_{i-1}^{n+1}}{1+C}

The unknown at point ii depends on other unknowns at n+1n+1. For problems such as groundwater flow the result is a set of simultaneous equations (tridiagonal matrix). It is unconditionally stable.

Comparison

PointExplicitImplicit
Spatial terms atknown level nnunknown level n+1n+1
Solutiondirect, point by pointsimultaneous equations (matrix)
Effort per stepsmalllarger
Stabilityconditional (C≤1C\le1)unconditional (large Δt\Delta t allowed)
Typical usedynamic-wave models with small Δt\Delta tgroundwater, kinematic wave, long simulations

Example (groundwater, λ=TΔt/SΔx2\lambda=T\Delta t/S\Delta x^2): explicit hin+1=hin+λ(hi+1n−2hin+hi−1n)h_i^{n+1}=h_i^n+\lambda(h_{i+1}^n-2h_i^n+h_{i-1}^n) needs λ≤12\lambda\le\tfrac12; implicit −λhi−1n+1+(1+2λ)hin+1−λhi+1n+1=hin-\lambda h_{i-1}^{n+1}+(1+2\lambda)h_i^{n+1}-\lambda h_{i+1}^{n+1}=h_i^n is stable for any λ\lambda.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computational Techniques in Civil Engineering chapter 5 questions →