Finite Differences
📐 Definition
Section titled “📐 Definition”For grid spacing and scalar field ,
Domain and Codomain
Section titled “Domain and Codomain”Finite differences apply to functions sampled on uniform grids in (and componentwise on ). Outputs lie in the same value space as (scalar or vector valued).
⚙️ Key Properties
Section titled “⚙️ Key Properties”Accuracy (Smooth )
Section titled “Accuracy (Smooth fff)”Forward and backward differences are first-order accurate approximations of ; the central difference is second-order accurate.
Linearity and Stencils
Section titled “Linearity and Stencils”Finite differences are linear discrete operators and can be represented as convolution stencils on a uniform grid.
🎯 Special Cases and Limits
Section titled “🎯 Special Cases and Limits”As , all three differences converge to for differentiable . Higher-order stencils extend the same idea using wider supports to raise the order of accuracy.
🔗 Related Functions
Section titled “🔗 Related Functions”Gradient operators assemble directional differences; fractional derivatives generalize differentiation to non-integer order; convolution operators implement difference stencils via discrete kernels.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield implements finite-difference spatial derivatives as an operator:
spatial_derivativeoperator applies finite-difference stencils to real or complex fields (complex is component-wise), with configuration for spacing/method and optional accumulation.- Boundary behavior is controlled via policy options (periodic vs clamped-style handling) depending on operator configuration and context overrides.
Historical Foundations
Section titled “Historical Foundations”📜 Discretizing Derivatives
Section titled “📜 Discretizing Derivatives”Finite differences are among the earliest systematic numerical tools for approximating derivatives, forming a core bridge between continuous PDEs and discrete computation.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”They remain standard for grid-based PDE discretizations due to simplicity, locality, and compatibility with conservative flux formulations.
📚 References
Section titled “📚 References”- LeVeque, Finite Difference Methods for Ordinary and Partial Differential Equations
- Strikwerda, Finite Difference Schemes and Partial Differential Equations