Finite Differences

Approximates derivatives and field equations using discrete values on a grid.

Conceptual context

Many physical fields, including temperature, electric potential, and string displacement, are described as continuous functions. A computer, however, cannot manipulate infinitely many points. It works with discrete grid nodes. Finite differences bridge these descriptions by replacing derivatives with combinations of ui−1u_{i-1}, uiu_i, and ui+1u_{i+1}, separated by a hh. The key question is not merely whether the calculation returns a number, but how closely that number represents the continuous operator. The discrepancy is the ETE_T, and its behavior under grid refinement reveals the actual quality of the method.

🟢 Essential level

A finite difference estimates how a field changes by comparing nearby grid samples. If the value to the right exceeds the central value, the estimated u′u' is usually positive; if it is smaller, the estimate is usually negative.

Curvature is identified by comparing the central value with both neighbors, which gives an estimate of u′′u''. The hh controls detail: a fine grid resolves small variations, whereas a coarse grid smooths or misses them. Reducing the step usually decreases ETE_T, but the rate depends on the method order. A higher-order scheme uses refinement more efficiently, although it may require more nodes, careful boundary treatment, and extra computation. The goal is to find a region where the numerical result converges predictably.

Choosing a one-sided, centered, or higher-order scheme is not only a precision question: it also determines how many neighbors are required and how nodes close to a boundary are treated. A centered scheme is usually preferred when both neighbors are available, while near an edge a one-sided formula may be unavoidable even though its ETE_T is larger.

🔵 Formal level

Basic formulas

The one-sided estimate of u′u' uses uiu_i, ui+1u_{i+1}, and hh:

First-order forward difference

u′(xi)≈ui+1−uihu'(x_i)\approx\frac{u_{i+1}-u_i}{h}

The centered estimate uses ui−1u_{i-1} and ui+1u_{i+1} on opposite sides of the node. Symmetry cancels lower-order Taylor terms and improves accuracy:

Second-order centered difference

u′(xi)≈ui+1−ui−12hu'(x_i)\approx\frac{u_{i+1}-u_{i-1}}{2h}

The three-point stencil for u′′u'' compares the central value with its neighbors:

Centered second derivative

u′′(xi)≈ui+1−2ui+ui−1h2u''(x_i)\approx\frac{u_{i+1}-2u_i+u_{i-1}}{h^2}

The asymptotic behavior of ETE_T is summarized by a scaling law involving CC, hh, and pp:

Truncation-error scaling

ET≈ChpE_T\approx C h^p

Real student questions

Is a finer grid always better? No. It reduces ETE_T for a consistent scheme, but increases cost and may expose roundoff or instability.

Why is a centered formula usually more accurate? It uses symmetric information and cancels selected terms in the local expansion.

Is ETE_T the simulation error? It is only one contribution. Modeling, boundary, iterative, data, and roundoff errors also matter.

How do I know whether the expected order is reached? Build a log-log graph of error versus hh and look for a stable slope.

Why does CFLCFL appear in a spatial topic? In evolutionary equations, spatial refinement changes the relation between physical transport and time advancement.

Final synthesis

Finite differences turn continuous operators into nodal relations. Their reliability depends on smoothness, grid design, boundaries, and stability. The ETE_T decreases with hh according to pp only in the appropriate regime. Good refinement means verifying convergence, not merely multiplying nodes.

Formal development

This section is part of the complete theory. See the subscription options to access it.

🔴 Structural level

This section is part of the complete theory. See the subscription options to access it.

Deep physical interpretation

This section is part of the complete theory. See the subscription options to access it.

Order of magnitude

This section is part of the complete theory. See the subscription options to access it.

Personalized resolution method

This section is part of the complete theory. See the subscription options to access it.

Special cases and extended example

This section is part of the complete theory. See the subscription options to access it.

Cross-cutting connections and study paths

This section is part of the complete theory. See the subscription options to access it.