Next Article in Journal
Two Approaches to the Traffic Quality Intuitionistic Fuzzy Estimation of Service Compositions
Previous Article in Journal
Proximity Effects in Matrix-Inclusion Composites: Elastic Effective Behavior, Phase Moments, and Full-Field Computational Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Review

A Review of Collocation Approximations to Solutions of Differential Equations

by
Pravin Singh
1,*,†,
Nabendra Parumasur
1,† and
Shivani Singh
2,†
1
School of Mathematics Statistics and Computer Sciences, University of KwaZulu-Natal, Private Bag X54001, Durban 4000, South Africa
2
Department of Decision Sciences, University of South Africa (Unisa), P.O. Box 392, Pretoria 0003, South Africa
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2022, 10(23), 4438; https://doi.org/10.3390/math10234438
Submission received: 28 August 2022 / Revised: 20 November 2022 / Accepted: 21 November 2022 / Published: 24 November 2022
(This article belongs to the Section Computational and Applied Mathematics)

Abstract

:
This review considers piecewise polynomial functions, that have long been known to be a useful and versatile tool in numerical analysis, for solving problems which have solutions with irregular features, such as steep gradients and oscillatory behaviour. Examples of piecewise polynomial functions used include splines, in particular B-splines, and Hermite functions. Spline functions are useful for obtaining global approximations whilst Hermite functions are useful for approximation over finite elements. Our aim in this review is to study quintic Hermite functions and develop a numerical collocation scheme for solving ODEs and PDEs. This choice of basis functions is further motivated by the fact that we are interested in solving problems having solutions with steep gradients and oscillatory properties, for which this approximation basis seems to be a suitable choice. We derive the quintic Hermite basis and use it to formulate the orthogonal collocation on finite element (OCFE) method. We present the error analysis for third order ODEs and derive both global and nodal error bounds to illustrate the super-convergence property at the nodes. Numerical simulations using the Julia programming language are performed for both ODEs and PDEs and enhance the theoretical results.
MSC:
65L10; 65M70; 65N35

1. Introduction

We begin this review by considering briefly various approximation strategies for continuous functions. The approximation of such continuous functions in Numerical Analysis is usually by a least squares approach or interpolation methods. In such cases a basis is chosen from an underlying approximation space. Depending on the problem this may be a polynomial, rational function or of the sinusoidal type. Specifically interpolation plays a key role in approximation of the unknown solution of differential equations. In such a case a polynomial basis is chosen, which serves as a trial function for the solution. For efficiency and stability a low order polynomial basis is used on a discretized domain. This approach is called the collocation method, and the trial functions are referred to as the collocation polynomial, or the interpolating polynomial. We review the background of collocation by looking at the criterion of the method. We then review different methods that are used to discretize both ODEs and PDEs. To do this, we go into detail about various collocation methods, as well as how they have been used over the years.
In particular we review the method of orthogonal collocation on finite elements (OCFE), where the domain is split into elements, and the latter mapped to the standard interval [ 0 , 1 ] , thereafter Gauss points in [ 0 , 1 ] are used as collocation points. This approach is proved to yield optimal error bounds. In particular using spline approximation results in sub-optimal error bounds. For example using quintic spline approximation for solving third order ODEs gives only third order convergence, whereas OCFE produces order six convergence. We solved the resulting DAEs using two approaches. Firstly we used DASSL to solve the DAEs resulting from OCFE in their original form. Secondly, we converted the DAEs to ODEs and used a stiff integrator to solve the resulting system of IVPs. These approaches are clearly superior to previous approaches, in which quasilinearization together with the second order Crank Nicolson method for the time integration is used. In Section 2 we show how the idea of collocation arises naturally from an approximation to the Galerkin method. Section 3 includes a literature review and the history of collocation. In Section 4 we derive the quintic Hermite basis functions and discuss their properties. Section 5 describes OCFE with respect to a quintic Hermite basis, and derives a simplified form of the trial functions, using the continuity conditions. In Section 6 we present a detailed error analysis for the linear ODE case using a quintic Hermite basis. In particular we show that the error is optimal when the collocation points are chosen as the Gauss points, and present nodal, and global error bounds. Finally in Section 7 we present numerical results for several linear, and non-linear differential equations, and validate the theorem in Section 6 by examining the global and nodal convergence orders.

2. Mathematical Setting

Here we review how collocation arises. We consider L : C ( X ) C ( X ) , where C ( X ) is the vector space of continuous functions on the domain X. Let L be a bounded linear operator. Let { ϕ 1 , ϕ 2 , , ϕ N } be a basis for a subspace Φ of C ( X ) of dimension N. Consider solving the linear equation
L y = f ( x ) .
If Y Φ is an approximation to y, then it follows that
Y = i = 1 N a i ϕ i ( x ) ,
where a i are real coefficients. We also assume that L ( Φ ) Φ . The quantity r ( x ) = f ( x ) L Y is defined as the residual, and it can be shown that
Y y 2 K L 2 r 2 ,
where K = L 1 2 L 2 is the condition number of L and · 2 denotes compatible operator and function norms on C ( X ) , with
f 2 = X | f ( x ) | 2 d x 1 2 .
For well conditioned problems r 2 0 implies that Y y . Galerkin’s method attempts to minimize the norm of the residual by requiring that r Φ , which is equivalent to
r , ϕ k = X r ( x ) ϕ k ( x ) d x = 0 , k = 1 , 2 , , N .
This geometry in the Hilbert space C ( X ) is illustrated in Figure 1.
But these integrals may be expensive to evaluate. The collocation method attempts to avoid this expensive calculation and is a simplification of the Galerkin method.
Integrals such as those mentioned in (1) can be evaluated using numerical quadrature, for instance,
X r ( x ) ϕ k ( x ) d x i = 1 N w i k r ( x i ) ϕ k ( x i ) , k = 1 , 2 , , N ,
where we have used the quadrature points x i , i = 1 , 2 , , N and w i k are the corresponding weights. If { ϕ 1 , ϕ 2 , , ϕ N } is a set of orthogonal polynomials then we may choose the x i s as the zeros of ϕ N ( x ) . This ensures that
X r ( x ) ϕ N ( x ) d x 0 .
We note that the zeros of an orthogonal set of polynomials are real, unique and confined to the interval of orthogonality. Now
r ( x ) ϕ k ( x ) d x , k = 1 , 2 , , N 1 ,
would not approximate zero since ϕ k ( x i ) 0 for k = 1 , 2 , , N 1 . Hence, in order that this integral is approximately zero, we set r ( x i ) = 0 for i = 1 , 2 , , N . This is the criterion for the collocation method.

Remark

Whilst, theoretically the basis polynomials need not be orthogonal, it is advantageous to use an orthogonal basis and to exploit the properties of orthogonal polynomials mentioned previously. Furthermore, orthogonal polynomials satisfy a three term recurrence relation, which makes their evaluation simple. It must be stressed that the quadrature points x i , henceforth called collocation points, may be chosen arbitrarily as long as they are confined to the domain of the problem. In what follows we shall always choose them as the zeros of a polynomial from an orthogonal family. This will then be referred to as the orthogonal collocation method.

3. Literature Review

There are three broad classes of methods for discretizing ODEs and PDEs in space.
(a)
Finite difference methods (FDM) are local methods which yield the numerical solution at mesh points in the spatial domain. They are easy to implement yielding matrices, which are sparse and computationally less expensive to compute. The main drawback of finite difference methods are that they are not very accurate. The Crank-Nicholson method is the most popular FDM for solving PDEs. We refer to the books [1,2], and references therein, for a further exposition of these methods.
(b)
Finite element methods are derived using a variational/integral formulation and are global methods, which yield the numerical solution on intervals/sub-intervals in the spatial domain. Variants include the method of weighted residuals, Galerkin, Petrov-Galerkin method, Rayleigh Ritz method, Tau method, etc. These methods are mathematically robust but from a numerical point of view are not very practical, due to the need to evaluate integrals exactly. We refer to the classical text [3] for a more detailed description of these methods. Besides this, many other texts can be found in the literature.
(c)
Collocation methods have been developed to circumvent this shortfall. The collocation method is used to solve ordinary and partial differential equations, as well as integral equations. This is done by determining the approximate solution, by requiring the equation to be satisfied at specific points. These specific points are referred to as collocation points. These are chosen points that lie within the domain of the equation, and are used along with candidate solutions to check if the required conditions are met, such that the residual will be zero at these specific points.
Frazer et al. [4] was the first to use this method, in 1937. It was then used in 1941 by Bickley [5] in order to solve unstable heat condition problem. A low-order collocation method was used for a number of boundary-layer problems by Schetz [6], in 1963.
There are many variants of collocation methods and are mainly based on the application. Spectral/pseudo-spectral methods [7] are highly accurate methods and are mainly used in problems, which have very smooth solutions. Fourier Spectral methods are limited to problems posed on a periodic domain, such as when the basis functions are sinusoidal. If the basis functions are polynomials, then it is referred to as a polynomial collocation method. Chebyshev spectral methods have been developed to solve problems posed on a bounded domain. They yield very fast convergence algorithms known as spectral/exponential convergence. In most cases the matrices generated by these methods are dense and one has to resort to the Fast Fourier transform (FFT) to solve them.
Sinc collocation methods [8] are another example of collocation methods. By definition, the basis functions used in these methods are the Sinc functions, which are naturally posed on an unbounded domain, which is one of the drawbacks of this method. B-splines are by far the most popular choice of basis used in collocation methods to solve problems on a bounded domain. They have been successfully applied to solve many important problems including Burgers, KdV and Schrödinger equations [9,10]. The Hermite collocation method closely resembles the B-spline collocation method, but are computationally more efficient, and when used in conjunction with orthogonal collocation on finite elements, yield super convergence properties in algorithms similar to spectral convergence.
Orthogonal collocation arises from the polynomial collocation method, as the collocation points are chosen to be the roots of orthogonal polynomials. It can also be described as being an expansion to the method of weighted residuals.
Villadsen and Stewart were the first to use the orthogonal method, in 1967, after discovering that they yielded very good results, due to the roots of orthogonal polynomials having interesting properties [11]. Finlayson then used it for various applications in chemical engineering, in 1972 [12], and again for application to non-linear problems [13], in 1980. It was used by Fan, Chen and Erikson to solve problems from chemical reactions [14]. Orthogonal collocation is a method that has been widely used by many people for problems in chemical engineering [15,16,17,18,19,20] over the years. More recently, the method of orthogonal collocation using cubic Hermite basis has been developed, and applied successfully to solve parabolic partial differential equations, and models appearing in chemical engineering [21,22]. Traditionally a monomial basis { 1 , x , x 2 , , x n } was used to represent the trial functions or more efficiently the Lagrange basis { l 0 ( x ) , l 1 ( x ) , , l n ( x ) } , where
l i ( x ) = k i k = 0 n ( x x k ) ( x i x k )
The main focus in this review is to illustrate the use of orthogonal collocation using a quintic Hermite basis.

4. Quintic Hermite Basis Functions

We seek a basis for P 5 , the vector space of polynomials of degree 5 on the interval [ x i , x i + 1 ] . There are six such functions and we denote them by H k , k = 1 , 2 , , 6 . We further stipulate their function and derivative values at the end points x i and x i + 1 as follows:
H k ( p ) ( x i ) = δ k , p + 1 h p , H k ( p ) ( x i + 1 ) = 0 , H k + 3 ( p ) ( x i ) = 0 , H k + 3 ( p ) ( x i + 1 ) = δ k , p + 1 h p ,
where k , p + 1 { 1 , 2 , 3 } and δ i , j is the well-known Kronecker delta symbol.
It is convenient to transform to the variable z [ 0 , 1 ] defined by
z = x x i x i + 1 x i = x x i h ,
where h is the uniform interval length. As x varies from x i to x i + 1 , z varies from 0 to 1. The interpolatory conditions in (3) transform naturally in the variable z to
H k ( p ) ( 0 ) = δ k , p + 1 , H k ( p ) ( 1 ) = 0 , H k + 3 ( p ) ( 0 ) = 0 , H k + 3 ( p ) ( 1 ) = δ k , p + 1 .
These conditions enable the unique derivation of the H k ( z ) , k = 1 , 2 , , 6 , however it is only necessary to derive H 1 ( z ) , H 2 ( z ) and H 3 ( z ) as by symmetry/anti-symmetry one may obtain the others. These polynomials are displayed in (5)–(10).
H 1 ( z ) = ( 1 z ) 3 ( 6 z 2 + 3 z + 1 ) ,
H 2 ( z ) = ( 1 z ) 3 ( 3 z 2 + z ) ,
H 3 ( z ) = ( 1 z ) 3 1 2 z 2 ,
H 4 ( z ) = H 1 ( 1 z ) ,
H 5 ( z ) = H 2 ( 1 z ) ,
H 6 ( z ) = H 3 ( 1 z ) .
If we write H 4 ( z ) = H 1 ( ( z 1 ) ) , then we note that H 4 ( z ) is a reflection of H 1 ( z ) about the vertical axis together with a shift of one unit to the right. H 6 ( z ) is related to H 3 ( z ) in a similar manner. Also, H 5 ( z ) may be interpreted as H 2 ( z ) rotated by 180 anticlockwise and then shifted one unit to the right.

5. Orthogonal Collocation on Finite Elements

Consider solving an ordinary differential equations in one spatial variable, x, and on the domain [ a , b ] . Firstly the domain [ a , b ] is divided into N sub-intervals or elements of spacing h = b a N , by placing the dividing points or nodes, x i , i = 1 , 2 , , N + 1 , as illustrated in Figure 2. We shall refer to this discretization as the mesh Δ .
Here x 1 = a and x N + 1 = b coincide with the left and right hand boundaries, respectively. This differs from global orthogonal collocation where the domain is not subdivided and instead higher order polynomials are used to achieve greater accuracy.
The ith element [ x i , x i + 1 ] is mapped to [ 0 , 1 ] by using a transformation of the form (4). We assume that the approximate solution in the ith element is given by
Y i ( x ) = Y i ( z ) = k = 1 6 a k i H k i ( z ) ,
and is represented in the ( i + 1 ) s t element by
Y i + 1 ( x ) = Y i + 1 ( z ) = k = 1 6 a k i + 1 H k i + 1 ( z ) .
The basis functions are plotted across both the ith and ( i + 1 ) s t elements and illustrated in Figure 3.
We observe continuity at x i + 1 for the basis functions. This is also true of their first and second derivatives. However the third derivative is discontinuous. This continuity has some interesting consequences on the coefficients of the solutions in the successive elements.
In order to obtain a smooth solution that is C 2 continuous, we enforce the condition
Y i ( x i + 1 ) = Y i + 1 ( x i + 1 ) ,
which is equivalent, in the variable z, to
Y i ( 1 ) = Y i + 1 ( 0 ) .
This implies that a 1 i + 1 = a 4 i . The continuity of the derivative at x i + 1 is equivalent to
d Y ( i ) d z | z = 1 = d Y ( i + 1 ) d z | z = 0
and yields a 2 i + 1 = a 5 i . Similarly the continuity of the second derivative at x i + 1 is equivalent to
d 2 Y ( i ) d z 2 | z = 1 = d 2 Y ( i + 1 ) d z 2 | z = 0 .
This results in a 3 i + 1 = a 6 i . Hence the first three coefficients in the ( i + 1 ) s t interval coincide with the last three coefficients in the ith interval. This repetitive pattern continues as we proceed to successive elements. Thus, we may represent the solution in the ith element by
Y ( z ) = k = 1 6 a k + 3 ( i 1 ) H k ( z ) ,
where we write H k ( z ) for H k i ( z ) bearing in mind that H k ( z ) is a function of i, and that we have dropped the superscript i from Y i ( z ) . With this labelling of the coefficients we are automatically ensuring that the solution, and its first and second derivatives are continuous at the nodes. Their are 3 N + 3 unknowns resulting from (12). Had we used a quintic Lagrange basis then we would have 6 N unknowns, as it is not possible to build in the continuity conditions to get a simple form like in (12).

Remark

Substituting z = 0 and z = 1 into (12), its derivative and its second derivative, it can be shown that that Y ( x i ) = a 3 i 2 , h Y ( x i ) = a 3 i 1 and h 2 Y ( x i ) = a 3 i , i = 1 , 2 , , N + 1 . Thus every third coefficient beginning from a 1 is an approximation to the solution at the nodes. Similarly every third coefficient beginning from a 2 scaled by h, is an approximation to the derivative at the nodes. Likewise, every third coefficient beginning from a 3 scaled by h 2 represents an approximation to the second derivative at the nodes.

6. Error Analysis

The following is an adaptation of the work done by de Boor and Swartz [23] to quintic Hermite collocation. A third order differential equation, defined on [ a , b ] , can be written in the form
L y ( x ) = f ( x ) ,
where the operator L = k = 0 3 a k ( x ) D k and D denotes the derivative operator. Then, the error is given by
y ( x ) Y ( x ) = L 1 f ( x ) Y ( x ) = L 1 [ f ( x ) L Y ( x ) ] = L 1 r ( x ) ,
where r ( x ) is the residual. Hence,
y ( x ) Y ( x ) = a b G ( x , ξ ) r ( ξ ) d ξ
where G ( x , ξ ) is the Green’s function, or integral kernel, associated with the linear problem.
Now,
D p ( y ( x ) Y ( x ) ) = a b G p ( x , ξ ) r ( ξ ) d ξ = j = 1 N x j x j + 1 G p ( x , ξ ) r ( ξ ) d ξ
= j = 1 N E j ( x ) ,
where G p ( x , ξ ) = D p G ( x , ξ ) and
E j ( x ) = x j x j + 1 G p ( x , ξ ) r ( ξ ) d ξ , p = 0 , 1 , 2 .
Consider one of the intervals [ x j , x j + 1 ] of Δ . Denote the collocation points by
x j , i = x j + x j + 1 2 + r i h 2 = x j + h 2 + r i h 2 , i = 1 , 2 , 3 .
Approximate the residual r ( ξ ) on [ x j , x j + 1 ] by a quadratic interpolant p 2 ( ξ ) such that
r ( ξ ) = p 2 ( ξ ) + r 3 ( θ ξ ) 6 ( ξ x j , 1 ) ( ξ x j , 2 ) ( ξ x j , 3 ) ,
where θ ξ ( x j , x j + 1 ) .
Since r ( ξ ) vanishes at the collocation points, we have p 2 ( ξ ) = 0 and hence (16) can be written as
r ( ξ ) = p 3 ( ξ ) r [ x j , 1 , x j , 2 , x j , 3 , ξ ] ,
where p 3 ( ξ ) = Π i = 1 3 ( ξ x j , i ) and r [ x j , 1 , x j , 2 , x j , 3 , ξ ] denotes the third divided difference of r . Hence the integrand in (13) can be written in the form
G p ( x , ξ ) r ( ξ ) = p 3 ( ξ ) G p ( x , ξ ) r [ x j , 1 , x j , 2 , x j , 3 , ξ ] = p 3 ( ξ ) g ( x , ξ ) ,
where g ( x , ξ ) = G p ( x , ξ ) r [ x j , 1 , x j , 2 , x j , 3 , ξ ] .
Interpolate g ( x , ξ ) by a polynomial q n 1 ( x , ξ ) of degree n 1 , in the variable ξ at any points σ i , i = 1 , 2 , , n in [ x j , x j + 1 ] , to obtain
g ( x , ξ ) = q n 1 ( x , ξ ) + g n ( x , ξ σ ) n ! i = 1 n ( ξ σ i ) ,
where ξ σ ( x j , x j + 1 ) . Equation (17) then becomes
G p ( x , ξ ) r ( ξ ) = p 3 ( ξ ) q n 1 ( x , ξ ) + g n ( x , ξ σ ) n ! i = 1 n ( ξ σ i ) .
Substituting (19) into (15) results in
E j ( x ) = x j x j + 1 p 3 ( ξ ) q n 1 ( x , ξ ) d ξ + x j x j + 1 p 3 ( ξ ) g n ( x , ξ σ ) n ! i = 1 n ( ξ σ i ) d ξ .
If the collocation points are chosen so that p 3 ( ξ ) is orthogonal to q n 1 ( x , ξ ) , that is
x j x j + 1 p 3 ( ξ ) q n 1 ( x , ξ ) d ξ = 0
for all polynomials q n 1 ( x , ξ ) of degree n 1 , then
E j ( x ) = x j x j + 1 i = 1 3 ( ξ x j , i ) g n ( x , ξ σ ) n ! i = 1 n ( ξ σ i ) d ξ = O ( h n + 4 ) .
Equation (20) follows since | ξ x j , i | , | ξ σ i | h and we have assumed that D n g ( x , ξ ) can be bounded independently of Δ . If we now sum E j ( x ) in (14), we obtain
D p ( y ( x ) Y ( x ) ) = O ( h n + 3 ) .
If n = 0 , we forgo the interpolation of g ( x , ξ ) and assume that g ( x , ξ ) can be bounded on Δ such that
D p ( y ( x ) Y ( x ) ) = O ( h 3 ) .
We follow this idea to obtain higher order convergence in the case that D n g ( x , ξ ) cannot be bounded independent of Δ . In order to achieve this we prove the following theorem.
Theorem 1.
Let k j , j = 0 , 1 , , 8 be constants independent of Δ and assume that there exists a constant k 1 such that x [ a , b ]
D j G p ( x , ξ ) k 1 , p = 0 , 1 , 2 , j = 0 , 1 , 2 , 3 ,
where we consider G p ( x , ξ ) to be an element of C 3 [ a , x ] × C 3 [ x , b ] . If the coefficients of L are smooth enough, specifically a i ( x ) C 6 [ a , b ] , i = 0 , 1 , 2 , 3 and y ( x ) C 9 [ a , b ] , then there exists a constant k 2 such that for each j
D 3 + p r ( j ) k 2 p = 0 , 1 , 2 , 3 ,
where
f ( j ) = sup ξ ( x j , x j + 1 ) | f ( ξ ) | .
Proof. 
Since r = f L Y = L ( y Y ) , it follows that D 3 + p r on [ x j , x j + 1 ] is a combination of the derivatives of the coefficients of L, up to the order 3 + p , with the derivatives of y Y up to the order 6 + p (recall L is third order). It is therefore sufficient to prove the existence of a constant k 3 such that
D p ( y Y ) ( j ) k 3 , p = 0 , 1 , , 9 .
The following result, namely.
D p ( y Y ) ( j ) k 0 h 3 , p = 0 , 1 , 2 , 3 ,
is proved by de Boor and Swartz [23].
We now consider the case p = 4 , 5 . Expand y at some point σ [ x j , x j + 1 ] in a Taylor series y j of order < 6 to obtain
y y j = y 6 ( ξ j ) 6 ! ( ξ σ ) 6 ,
where ξ j ( x j , x j + 1 ) , from which it is simple to show that
D p ( y y j ) = y 6 ( ξ j ) ( 6 p ) ! ( ξ σ ) 6 p .
From (25), we deduce that
D p ( y y j ) ( j ) k 4 h 6 p .
If X is a non-negative discrete random variable and t is a positive real number then, by Markov’s inequality
P [ X > t ] E ( X ) t
where E ( X ) denotes the expectation of X and P, the probability. With X = X 1 = D 3 ( y j Y ) ( j ) h and t = t 1 = D 4 ( y j Y ) ( j ) , we obtain
P [ X 1 > t 1 ] D 3 ( y j Y ) ( j ) h D 4 ( y j Y ) ( j ) ,
and with X = X 2 = D 3 ( y j Y ) ( j ) h 2 and t = t 2 = D 5 ( y j Y ) ( j ) we obtain
P [ X 2 > t 2 ] D 3 ( y j Y ) ( j ) h 2 D 5 ( y j Y ) ( j ) ,
which allows us to write
D p ( y j Y ) ( j ) k 7 h 3 p D 3 ( y j Y ) ( j ) ,
for p = 4 , 5 , where
k 7 = max 1 P [ X 1 > t 1 ] , 1 P [ X 2 > t 2 ] .
We also have that
D 3 ( y j Y ) ( j ) D 3 ( y j y ) ( j ) + D 3 ( y Y ) ( j ) k 4 h 3 + k 0 h 3 ,
where we have used both (24) and (26). Substituting (28) into (27) yields
D p ( y j Y ) ( j ) k 7 ( k 4 + k 0 ) h 6 p
= k 5 h 6 p .
Hence, for p = 4 , 5 we have that
D p ( y Y ) ( j ) D p ( y y j ) ( j ) + D p ( y j Y ) ( j ) k 4 h 6 p + k 5 h 6 p k 6 h 6 p ,
where we have used (26) and (29).
For p = 6 , 7 , 8 , 9
D p ( y Y ) = D p y ( recall Y has degree < 6 )
so that
D p ( y Y ) ( j ) = D p y ( j ) max { D p y ( j ) | 6 p 9 } = k 8 .
Hence (24), (30) and (31) proves (23). □
The following theorem establishes the order of convergence.
Theorem 2.
Let k j , j = 9 , 10 , , 13 be constants independent of Δ. Assume that the coefficients a i ( x ) of L satisfy a i ( x ) C 6 for all i, that Equation (21) holds and that y ( x ) C 9 [ a , b ] . If the collocation points are chosen such that q 2 ( x , ξ ) is orthogonal to p 3 ( ξ ) for every q 2 ( x , ξ ) P 2 then there exists a constant c 1 such that
| D p ( y Y ) ( x j ) | c 1 h 6 , p = 0 , 1 , 2 ,
and a constant c 2 such that
D p ( y Y ) c 2 h 6 p , p = 0 , 1 , 2 , 3 .
Proof. 
We write
G p ( x , ξ ) r ( ξ ) = p 3 ( ξ ) q 2 ( x , ξ ) + ( ξ x j ) 3 ( D 3 g ( x , ξ ) ) ( θ ξ ) 3 !
with q 2 ( x , ξ ) the Taylor series for g ( x , ξ ) , with terms of order 2 (see (17) and (18)). Choosing the collocation points so that
x j x j + 1 q 2 ( x , ξ ) p 3 ( ξ ) d ξ = 0
for every polynomial q 2 P 2 . We have
E j ( x ) = x j x j + 1 G p ( x , ξ ) r ( ξ ) d ξ j = 1 , , N
| E j ( x ) | = x j x j + 1 p 3 ( ξ ) ( ξ x j ) 3 ( D 3 g ( x , ξ ) ) ( θ ξ ) 3 ! d ξ
k 9 h 7 D 3 g ( x , ξ ) ( j ) .
Now
D 3 ( g 1 g 2 ) = s = 0 3 3 s D 3 s g 1 D s g 2 .
We let g 1 = G p ( x , ξ ) and g 2 = r [ x j , 1 , x j , 2 , x j , 3 , ξ ] . From
D g 2 = r [ x j , 1 , x j , 2 , x j , 3 , ξ , ξ ] = ( D 3 + 1 r ) ( θ x , 1 ) 4 ! , D 2 g 2 = r [ x j , 1 , x j , 2 , x j , 3 , ξ , ξ , ξ ] = ( D 3 + 2 r ) ( θ x , 2 ) 5 ! ,
we infer that
D s g 2 = ( D 3 + s r ) ( θ x , s ) ( s + 3 ) ! .
Hence
D 3 g ( x , ξ ) = s = 0 3 3 s D 3 s G p ( x , ξ ) ( D 3 + s r ) ( θ x , s ) ( s + 3 ) ! .
We now consider three cases:
(i)
If x ( x j , x j + 1 ) then from (21)
D 3 s G p ( x , ξ ) ( j ) k 1 s = 0 , 1 , 2 , 3
while
D 3 + s r ( j ) k 2
from (22). Hence from (38), we have
D 3 g ( x , ξ ) ( j ) k 10 ,
and (37) gives
| E j ( x ) | k 11 h 7 .
(ii)
If x ( x j , x j + 1 ) then G p ( x , ξ ) C 2 p [ x j , x j + 1 ] . Now consider say p = 0 . Equation (34) is then rewritten as
G 0 ( x , ξ ) r ( ξ ) = p 3 ( ξ ) q 1 ( x , ξ ) + ( ξ x j ) 2 D 2 g ( x , ξ ) ( θ ξ ) 2 ! ,
where q 1 ( x , ξ ) is the Taylor series for g ( x , ξ ) of order one. Once again, we choose the collocation points so that
x j x j + 1 q 1 ( x , ξ ) p 3 ( ξ ) d ξ = 0 .
Hence the equivalent equation to (36) is
| E j ( x ) | = x j x j + 1 p 3 ( ξ ) ( ξ x j ) 2 D 2 ( g ( x , ξ ) ) ( θ ξ ) 2 ! d ξ k 9 h 6 D 2 g ( x , ξ ) ( j ) .
The equivalent equation to (38) is then
D 2 g ( x , ξ ) = s = 0 2 2 s D 2 s G 0 ( x , ξ ) D 3 + s r ( θ x , s ) ( s + 3 ) !
and D 2 g ( x , ξ ) ( j ) k 10 . Hence (40) reduces to
| E j ( x ) | k 12 h 6 .
Similarly, by considering p = 1 , 2 we may show that
D s g ( x , ξ ) ( j ) k 10 , s 2 p
and
| E j ( x ) | k 12 h 6 p .
(iii)
If x Δ so that x ( x j , x j + 1 ) for all j then, from summing (39) (recall (14)) we obtain
| D p ( y Y ) ( x ) | c 1 h 6 , p = 0 , 1 , 2
for x coinciding with the nodes x j . Otherwise x ( x j , x j + 1 ) for exactly one of the sub-intervals of Δ . So, by (39) and (41) and summing over j we obtain
| D p ( y Y ) ( x ) | k 11 h 6 + k 12 h 6 p k 13 h 6 p
This implies (33).
The following theorem establishes the optimal choice for the collocation points.
Theorem 3.
The optimal choice for the collocation points are the Gauss points.
Proof. 
The orthogonality of q 2 ( x , ξ ) and p 3 ( ξ ) from (35) is equivalent to
x j x j + 1 ( ξ x j , 1 ) ( ξ x j , 2 ) ( ξ x j , 3 ) ξ p d ξ = 0 , p = 0 , 1 , 2 .
Change the integral in (42) to the interval [ 1 , 1 ] by using the linear transformation
ξ = h 2 ξ + x j + h 2 ,
to yield
1 1 ( ξ r 1 ) ( ξ r 2 ) ( ξ r 3 ) h 2 ξ + x j + h 2 p d ξ = 0 , p = 0 , 1 , 2 .
Equation (43) is equivalent to the following three equations
1 1 ( ξ r 1 ) ( ξ r 2 ) ( ξ r 3 ) d ξ = 0 ,
1 1 ( ξ r 1 ) ( ξ r 2 ) ( ξ r 3 ) ξ d ξ = 0 ,
1 1 ( ξ r 1 ) ( ξ r 2 ) ( ξ r 3 ) ξ 2 d ξ = 0 .
Integrating (44)–(46), we get
r 1 + r 2 + r 3 + 3 r 1 r 2 r 3 = 0
r 1 r 2 + r 2 r 3 + r 1 r 3 = 3 5
r 1 + r 2 + r 3 + 5 3 r 1 r 2 r 3 = 0 .
Equations (47) and (49) implies that r 1 r 2 r 3 = 0 , hence we choose r 2 = 0 . without loss of generality. This implies that r 3 = r 1 and r 1 2 = 3 5 , so that r 1 = 3 5 , r 3 = 3 5 . These are the Gauss points, or zeros, of the third degree Legendre Polynomial. □

7. Numerical Examples

Example 1.
We now consider the ODE
y ( x ) + 2 y ( x ) = 980 cos ( 10 x ) y ( 0 ) = 0 , y ( 0 ) = 10 , y ( 1 ) = sin ( 10 ) .
Substituting (12) in the given ODE results in the following system of equations:
k = 1 6 1 h 3 H k ( z ) + 2 h H k ( z ) a k + 3 ( i 1 ) = 980 cos ( 10 ( x i + z h ) ) , i = 1 , 2 , , N .
The boundary condition
y ( 0 ) = Y ( 0 ) = k = 1 6 a k H k ( 0 ) = 0
yields a 1 = 0 whilst the derivative condition
y ( 0 ) = Y ( 0 ) = 1 h k = 1 6 a k H k ( 0 ) = 10
yields a 2 = 10 h and
y ( 1 ) = Y ( 1 ) = k = 1 6 a k + 3 ( N 1 ) H k ( 1 ) = sin ( 10 )
yields a 3 N + 1 = sin ( 10 ) .
There are 3 N + 3 unknowns. Given that we have three boundary conditions, we thus require 3 N conditions in order to solve the problem uniquely. We therefore choose three collocation points r 1 , r 2 , r 3 in each element. The r j are chosen as the zeros of the third degree Legendre polynomial, shifted to the interval [ 0 , 1 ] . These were shown to be the optimal choice for collocation points. The collocation points are then substituted into Equation (50) to give the 3 N linear equations. The matrix vector system, of size ( 3 N + 3 ) × ( 3 N + 3 ) , has the form A a = f where A has the form (illustrated for N = 3 )
A = a 11 a 12 a 13 a 14 a 15 a 16 a 21 a 22 a 23 a 24 a 25 a 26 a 31 a 32 a 33 a 34 a 35 a 36 a 11 a 12 a 13 a 14 a 15 a 16 a 21 a 22 a 23 a 24 a 25 a 26 a 31 a 32 a 33 a 34 a 35 a 36 a 11 a 12 a 13 a 14 a 15 a 16 a 21 a 22 a 23 a 24 a 25 a 26 a 31 a 32 a 33 a 34 a 35 a 36 1 1 1 ,
and f has the form
f j + 3 ( i 1 ) = 980 cos ( 10 ( x i + r j h ) ) i = 1 , 2 , , N , j = 1 , 2 , 3 0 i = N + 1 , j = 1 10 h i = N + 1 , j = 2 sin ( 10 ) i = N + 1 , j = 3
The non-zero blocks of matrix A are shifted three places to the right and accounts for the repetition of the coefficients. The position of the ones account for the boundary conditions.
After solving (51), the solution is constructed on each sub-interval using the appropriate coefficients and can then be plotted. Since there is very good agreement between the approximate solution and the exact solution, we choose to show the error plot ( | sin ( 10 x ) Y ( x ) | ) in Figure 4 for N = 40 .
If the discrete error at the nodes x j is O ( h n ) then
| y ( x j ) Y ( x j ) | h = O ( h n )
and
| y ( x j ) Y ( x j ) | h 2 = O h 2 n .
By taking the ratio of (52) to (53) we obtain
α = | y ( x j ) Y ( x j ) | h | y ( x j ) Y ( x j ) | h 2 2 n ,
from which the order of convergence n ( h ) ln ( α ) ln ( 2 ) .
The conditions of Theorem 2 are satisfied. We have solved the problem with N = 20 and N = 40 and summarise in Table 1 the convergence orders at the common nodes for p = 0 , 1 , 2 according to Equation (32). The orders agree remarkably with Equation (32), the difference being attributed to numerical error. The global order is shown in Table 2 and illustrates the validity of Equation (33).
Example 2.
Consider the problem
y + y x = 2 8 x 2 2 , 0 < x < 1 , y ( 0 ) = y ( 1 ) = 0 ,
which has the exact solution
y ( x ) = 2 ln 7 8 x 2 .
As there are two boundary conditions, we choose an additional collocation point in the first element. Hence the collocation points in the first element are the zeros of the fourth degree Legendre polynomial shifted to [ 0 , 1 ] , whilst in the rest it is the zeros of the third degree Legendre polynomial. The solution is smooth on [ 0 , 1 ] , but the coefficient 1 x is unbounded at x = 0 . This, however, is not a problem since the collocation points are chosen in ( 0 , 1 ) , which avoids the endpoints. The errors at the common nodes as well as the convergence order is displayed in Table 3. Clearly convergence is O ( h ) . Theorem 2 does not apply here as there is a coefficient with a singularity at x = 0 .
In the next example we consider the application of the method to partial differential equations.
Example 3.
We illustrate the full spatial discretization process involved in the collocation procedure on this example.
u t u x x x = 27 π 3 cos ( t ) cos ( 3 π x ) sin ( t ) sin ( 3 π x ) , 0 < x < 1 , t 0
with boundary conditions
u ( 0 , t ) = 0 , u ( 1 , t ) = 0 , u x ( 0 , t ) = 3 π cos ( t )
and initial condition
u ( x , 0 ) = sin ( 3 π x ) .
The exact solution is given by
u ( x , t ) = cos ( t ) sin ( 3 π x ) .
In the variable z Equation (54) becomes
u t 1 h 3 u z z z = 27 π 3 cos ( t ) cos ( 3 π ( z h + x i ) ) sin ( t ) sin ( 3 π z h + x i ) .
Analogous to Equation (12), the trial solution, in the ith element, is written as
U i ( z ) = k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z ) .
Here the time dependence is reflected in the coefficients a. Substituting (56) into (55), we obtain
k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z j ) 1 h 3 k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z j ) 27 π 3 cos ( t ) cos ( 3 π ( z j h + x i ) ) + sin ( t ) sin ( 3 π ( z j h + x i ) ) = 0 .
We then substitute three collocation points from each sub-interval into Equation (57) to obtain 3 N conditions. Using these, along with the boundary conditions, we get a linear differential algebraic system of size 3 N + 3 . In particular, the boundary conditions imply that a 1 ( t ) = a 3 N + 1 ( t ) = 0 and a 2 ( t ) = 3 π h cos ( t ) . Differential algebraic systems are solved using the classical DASSL solver [24]. DASSL is designed for the numerical solution of implicit systems of differential/algebraic equations written in the form F ( t , y , y ) = 0 , where F , y and y are vectors, and initial values for y and y are given. It is a classic DAE solver released as open source in 1982 and has been ported to Julia recently. (https://github.com/JuliaLang/julia, accessed on 1 November 2022) was released in 2012 by MIT.
It is an open-source, multi-paradigm, high-level, high-performance, and incredibly dynamic scripting language. For scientific computing it resembles Matlab in syntax. It comes close to C in speed. It allows interaction with other scientific languages like Fortran, Python and R. There are over 2000 modules that can be added to it. One can interface with many plotting modules, but we have elected to use pyplot from matplotlib.
The graphs of both the solution and error are depicted in Figure 5 and Figure 6, respectively. The numerical results indicate that the present method is successful in capturing the oscillatory nature of the solution in both space and time with a reasonable accuracy. The drop in accuracy as compared to the ode case can be attributed to the error in the time integration process.
We now solve the Korteweg–de Vries (KdV) equation [10]. The semi-discretization in space results in a system of DAEs which can be converted into a system of IVPs and be solved along similar lines as the ODE case discussed in Section 5. For the time integration we use a suitable high order stiff integrator. In contrast, most methods developed in previous studies used quasi-linearization with second order Crank Nicolson method for the time integration.
Example 4.
We consider the following form of the KdV equation and illustrate the spatial discretization process involved in the collocation process below:
u t + ϵ u u x + μ u x x x = 0 , 0 < x < 2 .
It has boundary conditions
u x ( 0 , t ) = u x ( 2 , t ) = 0 , u ( 2 , t ) = 0
and an initial condition
u ( x , 0 ) = 3 C sech 2 ( A x + D ) ,
where ϵ = 1 , μ = 4.84 × 10 4 , C = 0.3 , D = 6 , A = 0.5 ϵ C μ . The exact solution is given by, (see [10])
u ( x , t ) = 3 C sech 2 ( A x B t + D ) ,
We use the exact same method as before, switching to the variable z so that (58) becomes
u t + ϵ h u u z + μ h 4 u z z z = 0 .
We then substitute (56) into (59), to get
k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z ) + ϵ h k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z ) k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z ) + μ h 4 k = 1 6 a k + 3 ( i 1 ) ( t ) H k ( z ) = 0 .
We substitute three collocation points per element into Equation (60) to obtain 3 N conditions. Together with the boundary conditions, we obtain a non-linear differential algebraic system of size 3 N + 3 . In particular, the boundary conditions imply that a 2 ( t ) = a 3 N + 1 ( t ) = a 3 N + 2 ( t ) = 0 .
In order to obtain the initial conditions for the coefficients, that is a k + 3 ( i 1 ) ( 0 ) , we let
u ( z , 0 ) = U ( z , 0 ) = k = 1 6 a k + 3 ( i 1 ) ( 0 ) H k ( z ) = 3 C sech 2 ( A ( x i + z h ) + D ) , i = 1 , 2 , , N .
We substitute the 3 N collocation points into (61) to obtain a 3 N × 3 N matrix vector system whose solution yields the value of the coefficients at t = 0 . Equations (60) and (61) is easily converted to a system of of IVPs which can be efficiently solved using the Julia QNDF solver (which is equivalent to the ODE15s in Matlab). Thereafter the PDE solution over the domain is obtained from Equation (56). Figure 7 depicts the solution profiles for various t values. This example describes a wave propagating in the positive × direction. In this figure the solid line represents the exact solution and the circles the approximate solution. It is clear the approximate solution closely matches the exact solution. The 3D solution and error are shown in Figure 8 and Figure 9, respectively. We see that applying the quintic OCFE method in space combined with a powerful stiff ODE solver in time is capable of producing a very smooth and accurate solution.

8. Conclusions

We have reviewed the numerical approximation of the solution of differential equations, using collocation methods, with a bias towards a quintic Hermite basis. In Lagrange collocation, the continuity conditions have to be satisfied, as well as the residual set to zero at the collocation points. This results in a much larger system of equations to solve. By using a Hermite basis the continuity conditions are automatically satisfied, as reflected in the coefficients of the trial solution. Thus only the collocation equations have to be solved. This is a huge computational advantage. In addition we have provided a useful error analysis, which is also applicable to the non-linear case. Collocation on finite elements is essentially equivalent to minimizing the residual over the domain of the problem. It is a powerful and versatile tool that rivals finite difference approximations, especially when the solution is oscillatory in nature.

Author Contributions

All authors have equal contributions. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Iserles, A. A First Course in the Numerical Analysis of Differential Equations, 2nd ed.; Cambridge University Press: Cambridge, UK, 2008. [Google Scholar]
  2. Süli, E.; Mayers, D. An Introduction to Numerical Analysis; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  3. Strang, G.; Fix, G.J. An Analysis of the Finite Element Method; Wellesley-Cambridge Press: Cambridge, UK, 1988. [Google Scholar]
  4. Frazer, R.A.; Jones, W.P.; Skan, S.W. ARC R and M 1799; Springer: New York, NY, USA, 1937. [Google Scholar]
  5. Bickley, W.G. Experiments in approximating to solutions of a partial-differential equation. Lond. Edinb. Dublin Philos. Mag. J. Sci. 1941, 32, 50–66. [Google Scholar] [CrossRef]
  6. Schetz, J.A. On the Approximate Solution of Viscous-Flow Problems. ASME J. Appl. Mech. 1963, 30, 263–268. [Google Scholar] [CrossRef]
  7. Canuto, C.; Hussaini, M.Y.; Quarteroni, A.; Zhang, T.A. Spectral Methods: Fundamental in Single Domains; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
  8. Brunner, H. Collocation Methods for Volterra Integral and Related Functional Differential Equations; Cambridge University Press: Cambridge, UK, 2004. [Google Scholar]
  9. Ali, A.H.A.; Gardner, G.A.; Gardner, L.R.T. A collocation solution for Burgers’ equation using cubic B-spline finite elements. Comput. Methods Appl. Mech. Eng. 1992, 100, 325–337. [Google Scholar] [CrossRef]
  10. Zaki, S.I. A quintic B-spline finite elements scheme for the KdVB equation. Comput. Methods Appl. Mech. Engrg. 2000, 188, 121–134. [Google Scholar] [CrossRef]
  11. Villadsen, J.; Stewart, W.E. Solution of Boundary Value Problems by Orthogonal Collocation. Sci. Direct Chem. Eng. Sci. 1967, 22, 1483–1501. [Google Scholar] [CrossRef]
  12. Finlayson, B.A. The Method of Weighted Residuals and Variational Principles; Academic Press: New York, NY, USA, 1972. [Google Scholar]
  13. Finlayson, B.A. Non-Linear Analysis in Chemical Engineering; McGraw-Hill Inc.: New York, NY, USA, 1980. [Google Scholar]
  14. Fan, L.T.; Chen, G.K.C.; Erickson, L.E. Efficiency and Utility of the Collocation Methods in Solving the Performance Equations Flow Chemical Reactors with Axial Dispersion. Sci. Direct Chem. Eng. Sci. 1971, 26, 379–387. [Google Scholar] [CrossRef]
  15. Adomaitis, R.A.; Lin, Y. A Technique for Accurate Collocation Residual Calculations. Chem. Eng. J. 1998, 71, 127–134. [Google Scholar] [CrossRef]
  16. Alhumaizi, K.A. Moving Collocation Method for the Solution of the Transient Convection-Diffusion-Reaction Problems. Comput. Appl. Math. 2006, 193, 484–496. [Google Scholar] [CrossRef]
  17. Arora, S.; Dhaliwal, S.S.; Kukreja, V.K. Solution of Two Point Boundary Value Problems Using Orthogonal Collocation on Finite Elements. Appl. Math. Comput. 2005, 171, 358–370. [Google Scholar] [CrossRef]
  18. Arora, S.; Dhaliwal, S.S.; Kukreja, V.K. Simulation of Washing of Packed Bed of Porous Particles by Orthogonal Collocation on Finite Elements. Comput. Chem. Eng. 2006, 30, 1054–1060. [Google Scholar] [CrossRef]
  19. Lefervre, L.; Dochain, D.; Feyo de Azevedo, S.; Magnus, A. Optimal Selection of Orthogonal Polynomials Applied to the Integration of Chemical Reactors. Sci. Direct Comput. Chem. Eng. 2000, 24, 2571–2588. [Google Scholar] [CrossRef]
  20. Ruthven, D.M. Principles of Adsorption and Adsorption Process; Wiley-Inter Science Publication: New York, NY, USA, 1984. [Google Scholar]
  21. Ganaie, I.A.; Gupta, B.; Parumasur, N.; Singh, P.; Kukreja, V.K. Asymptotic convergence of cubic Hermite collocation method for parabolic partial differential equation. Appl. Math. Comput. 2013, 220, 560–567. [Google Scholar] [CrossRef]
  22. Mittal, A.K.; Ganaie, I.A.; Kukreja, V.K.; Parumasur, N.; Singh, P. Solution of diffusion–dispersion models using a computationally efficient technique of orthogonal collocation on finite elements with cubic Hermite as basis. Comput. Chem. Eng. 2013, 58, 203–210. [Google Scholar] [CrossRef]
  23. de Boor, C.; Swartz, B. Collocation at Gaussian Points. SIAM J. Numer. Anal. 1973, 10, 582–606. [Google Scholar] [CrossRef]
  24. Petzold, L.R. Description of DASSL: A Differential/Algebraic System Solver; SAND82-8637; Sandia National Labs.: Livermore, CA, USA, 1982. [Google Scholar]
Figure 1. Geometry of Galerkin method.
Figure 1. Geometry of Galerkin method.
Mathematics 10 04438 g001
Figure 2. Mesh Δ .
Figure 2. Mesh Δ .
Mathematics 10 04438 g002
Figure 3. Basis functions on successive intervals.
Figure 3. Basis functions on successive intervals.
Mathematics 10 04438 g003
Figure 4. Error plot with N = 40 for Example 1.
Figure 4. Error plot with N = 40 for Example 1.
Mathematics 10 04438 g004
Figure 5. Approximate solution with N = 100 for Example 3.
Figure 5. Approximate solution with N = 100 for Example 3.
Mathematics 10 04438 g005
Figure 6. Error with N = 100 for Example 3.
Figure 6. Error with N = 100 for Example 3.
Mathematics 10 04438 g006
Figure 7. Approximate solution N = 100 for Example 4.
Figure 7. Approximate solution N = 100 for Example 4.
Mathematics 10 04438 g007
Figure 8. 3D surface plot for the approximate solution for Example 4.
Figure 8. 3D surface plot for the approximate solution for Example 4.
Mathematics 10 04438 g008
Figure 9. Error N = 100 for Example 4.
Figure 9. Error N = 100 for Example 4.
Mathematics 10 04438 g009
Table 1. Nodal convergence rates at the common nodes for Example 1.
Table 1. Nodal convergence rates at the common nodes for Example 1.
| D p ( y Y ) ( x j ) | | D p ( y Y ) ( x j ) |
x j p = 0 p = 1 p = 2 x j p = 0 p = 1 p = 2
0.05 6.0178 6.0180 6.0107 0.55 6.0102 6.0133 6.0231
0.10 6.0177 6.0151 6.0109 0.60 6.1360 6.0133 6.0130
0.15 6.0175 6.0146 6.0112 0.65 6.0155 6.0133 6.0116
0.20 6.0171 6.0144 6.0118 0.70 6.0166 6.0130 6.0113
0.25 6.0164 6.0143 6.0126 0.75 6.0172 6.0125 6.0114
0.30 6.0150 6.0142 6.0142 0.80 6.0175 6.0105 6.0117
0.35 6.0125 6.0142 6.0185 0.85 6.0177 6.0442 6.0123
0.40 6.0082 6.0142 6.0543 0.90 6.0177 6.0179 6.0134
0.45 6.0038 6.0146 6.9835 0.95 6.0177 6.0174 6.0163
0.50 6.0053 6.0119 6.9829
Table 2. Global convergence rates for Example 1.
Table 2. Global convergence rates for Example 1.
p D p ( y Y ) ( x )
0 6.0214
1 5.0000
2 4.0125
3 2.9963
Table 3. Nodal errors and convergence rates at the common nodes for Example 2.
Table 3. Nodal errors and convergence rates at the common nodes for Example 2.
( y Y ) ( x j )
x j N = 10 N = 20 N = 40 n ( h ) n ( h 2 )
0.13.851338 × 10 3 1.881677 × 10 3 9.307417 × 10 4 1.03331.0156
0.23.409223 × 10 3 1.677216 × 10 3 8.302827 × 10 4 1.02341.0144
0.33.005355 × 10 3 1.474348 × 10 3 7.303313 × 10 4 1.02751.0135
0.42.582037 × 10 3 1.271405 × 10 3 6.301073 × 10 4 1.02211.0128
0.52.172848 × 10 3 1.067288 × 10 3 5.291418 × 10 4 1.02561.0122
0.61.747602 × 10 3 8.611265 × 10 4 4.270521 × 10 4 1.02111.0118
0.71.327715 × 10 3 6.521262 × 10 4 3.234758 × 10 4 1.02571.0115
0.88.915583 × 10 4 4.394996 × 10 4 2.180437 × 10 4 1.02051.0112
0.94.548230 × 10 4 2.224223 × 10 4 1.103623 × 10 4 1.03201.0111
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Singh, P.; Parumasur, N.; Singh, S. A Review of Collocation Approximations to Solutions of Differential Equations. Mathematics 2022, 10, 4438. https://doi.org/10.3390/math10234438

AMA Style

Singh P, Parumasur N, Singh S. A Review of Collocation Approximations to Solutions of Differential Equations. Mathematics. 2022; 10(23):4438. https://doi.org/10.3390/math10234438

Chicago/Turabian Style

Singh, Pravin, Nabendra Parumasur, and Shivani Singh. 2022. "A Review of Collocation Approximations to Solutions of Differential Equations" Mathematics 10, no. 23: 4438. https://doi.org/10.3390/math10234438

APA Style

Singh, P., Parumasur, N., & Singh, S. (2022). A Review of Collocation Approximations to Solutions of Differential Equations. Mathematics, 10(23), 4438. https://doi.org/10.3390/math10234438

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop