Math 2.0

Numerical analysis Definition

Finite difference method

Builds on Partial differential equationPartial derivative

Definition

Let a partial differential equation ℒu=f\mathcal{L} u = f be given on a domain Ω⊆ℝd\Omega \subseteq \R^d, possibly with time, together with boundary or initial conditions. The finite difference method consists of:

  1. A grid: finitely many points xjx_j of Ω‾\overline{\Omega}, usually xj=jhx_j = jh with mesh size h>0h > 0, and time levels tn=nkt_n = nk with time step k>0k > 0.
  2. Difference quotients: each partial derivative in ℒ\mathcal{L} is replaced by a linear combination of grid values, such as (uj+1−uj)/h(u_{j+1} - u_j)/h for ∂xu\partial_x u or (uj+1−2uj+uj−1)/h2(u_{j+1} - 2u_j + u_{j-1})/h^2 for ∂x2u\partial_x^2 u.
  3. The discrete problem: the resulting algebraic equations and the discretized side conditions are solved for the grid values uj≈u(xj)u_j \approx u(x_j).

Remarks

The local truncation error is the residual left when the exact solution is put into the scheme. The scheme is consistent of order pp if this error is O(hp)O(h^p); for example, Taylor expansion gives u(x+h)−2u(x)+u(x−h)h2=u′′(x)+h212u(4)(ξ)\frac{u(x+h) - 2u(x) + u(x-h)}{h^2} = u''(x) + \frac{h^2}{12} u^{(4)}(\xi) for some ξ\xi in (x−h,x+h)(x - h, x + h) when u∈C4u \in C^4. Example: for the heat equation ut=uxxu_t = u_{xx}, the explicit scheme is ujn+1=ujn+r(uj+1n−2ujn+uj−1n)u_j^{n+1} = u_j^n + r (u_{j+1}^n - 2u_j^n + u_{j-1}^n) with r=k/h2r = k/h^2. It is consistent of order 11 in kk and 22 in hh. It is stable in the maximum norm when r≤12r \le \tfrac12, since then ujn+1u_j^{n+1} is a convex combination of uj−1n,ujn,uj+1nu_{j-1}^n, u_j^n, u_{j+1}^n. Non-example: the finite element method also yields algebraic equations on a mesh, but it does not satisfy clause 2. It imposes the equation in weak form against basis functions instead of replacing derivatives by difference quotients.

Reading path

To understand this page from the ground up, read these 6 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Euclidean space object
  2. Function concept
  3. Partial differential equation concept
  4. Function of several variables concept
  5. Partial derivative concept
  6. Finite difference method definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Finite_difference_method
About this page
Tag1QCG88BQC2
URIm2://1QCG88BQC2
Kinddefinition
WritingW0 stub
MSC65M06, 65N06
DefinesFinite difference method
UsesPartial differential equation, Partial derivative
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.