Lably
Skip to content

Finite difference method

Class of numerical techniques

  • 8 min read
  • 6 chapters

Related on Lably

Through Numerical analysis, Differential equation and Derivative

Finite difference methods convert ordinary differential equations (ODE) or partial differential equations (PDE), which may be nonlinear, into a system of linear equations that can be solved by matrix algebra techniques. Modern computers can perform these linear algebra computations efficiently, and this, along with their relative ease of implementation, has led to the widespread use of FDM in modern numerical analysis. Today, FDMs are one of the most common approaches to the numerical solution of PDE, along with finite element methods.

Derive difference quotient from Taylor's polynomial

For a n-times differentiable function, by Taylor's theorem the Taylor series expansion is given as f(x0+h)=f(x0)+f′(x0)1!h+f(2)(x0)2!h2+⋯+f(n)(x0)n!hn+Rn(x),

Where n! denotes the factorial of n, and Rn(x) is a remainder term, denoting the difference between the Taylor polynomial of degree n and the original function.

Following is the process to derive an approximation for the first derivative of the function f by first truncating the Taylor polynomial plus remainder: f(x0+h)=f(x0)+f′(x0)h+R1(x). Dividing across by h gives: f(x0+h)h=f(x0)h+f′(x0)+R1(x)h Solving for f′(x0): f′(x0)=f(x0+h)−f(x0)h−R1(x)h.

Assuming that R1(x) is sufficiently small, the approximation of the first derivative of f is: f′(x0)≈f(x0+h)−f(x0)h.

This is similar to the definition of derivative, which is: f′(x0)=limh→0f(x0+h)−f(x0)h. except for the limit towards zero (the method is named after this).

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Topics in mathematics