Beyond Finite Differences 1 |

Beyond Finite Differences 1 |

The finite difference method is widely used for solving differential equations by approximating derivatives at discrete grid points. However, several alternative methods, such as the collocation method, the Galerkin method and the Rayleigh-Ritz method, offer practitioners of the finite difference method new perspectives on computing solutions for differential equations.

At the the core of these alternative approaches lies the idea of approximating the solution of a differential equation using a finite linear combination of known functions, called basis functions. These basis functions are typically simple, such as polynomials, trigonometric functions, or, spline functions.

We illustrate these methods by solving the following linear two-point boundary-value problem

\begin{cases} v''(x) + q(x)v(x)=f(x)\\ v(0)=0, v(1)=0. \end{cases}\quad\quad\quad(1-1)

Here, the interval is taken to be [0, 1] for simplicity, and the boundary conditions are zero (see A boundary-Value Problem Transformed).

Suppose we approximate v(x) by a finite sum

\sum\limits_{j=1}^{n}c_j \phi_j(x),\quad\quad\quad(1-2)

where the basis functions \phi_j(x) satisfy the boundary conditions:

\phi_j(0) = \phi_j(x)=0, j=1,..., n.

Given a set of basis functions, each method uses a different criterion for determining the coefficients c_j in the finite sum.

The collocation method requires that the approximation satisfy the differential equation at n discrete points x_1, ..., x_n (which are not necessarily equally spaced) within the interval [0, 1]:

\displaystyle \frac{d^2}{dx^2}\left(\sum\limits_{j=1}^{n}c_j \phi_j(x)\right)\bigg|_{x=x_i} + q(x_i)\sum\limits_{j=1}^{n}c_j \phi_j(x_i)=f(x_i), \quad i = 1, ..., n.

It follows that

\displaystyle \sum\limits_{j=1}^{n}c_j \phi_j''(x_i) + q(x_i)\sum\limits_{j=1}^{n}c_j \phi_j(x_i)=f(x_i), \quad i = 1, ..., n.

\displaystyle \implies \sum\limits_{j=1}^{n}c_j (\phi_j''(x_i) + q(x_i)\phi_j(x_i))=f(x_i).

This is a system of linear equations of the form

\displaystyle \bold{A}\bold{c} = \bold{f}

where \bold{A} is the n \times n matrix with entries \displaystyle a_{ij} = \phi_j''(x_i) + q(x_i)\phi_j(x_i), \bold{c}=(c_1, ..., c_n)^T, and \bold{f} = (f(x_1), ..., f(x_n))^T. Solving this system provides the coefficients \bold{c}.

Fig. 1 y'' + y = x^3, y(0)=y(1)=0 solved by the collocation method


Exercise-1 Solve y''+x y = x^3, y(0)=y(1)=0 by the collocation method. (Hint: Fig. 1)

LEAVE A REPLY

Please enter your comment!
Please enter your name here

More like this

Reintroducing the IMplementation Reflection Tool

By Claire Neely, Senior Implementation Specialist Illustrative Mathematics’ redesigned IMplementation Reflection Tool (IRT) is a powerful, non-evaluative resource...

Unizor – Creative Mind through Art of Mathematics: Geometry+...

https://www.youtube.com/watch?v=hAXtrAWNVuI Notes to a video lecture on http://www.unizor.com Geometry+ 10Problem AGiven two parallel lines and a segment AB...

A Little AIME Problem | mathgarage

A Little AIME Problem Posted: May 16, 2022 in Mathematics Tags: AIME, math, Math Contest Solution In general, let By Pythagoras Identity, Solve this...