American Journal of Computational and Applied Mathematics
p-ISSN: 2165-8935 e-ISSN: 2165-8943
2024; 14(1): 15-23
doi:10.5923/j.ajcam.20241401.02
Received: Feb. 27, 2024; Accepted: Apr. 3, 2024; Published: Apr. 13, 2024

Umme Ruman1, Md. Shafiqul Islam2
1Department of Computer Science & Engineering, Green University of Bangladesh, Dhaka, Bangladesh
2Department of Applied Mathematics, University of Dhaka, Dhaka, Bangladesh
Correspondence to: Md. Shafiqul Islam, Department of Applied Mathematics, University of Dhaka, Dhaka, Bangladesh.
| Email: | ![]() |
Copyright © 2024 The Author(s). Published by Scientific & Academic Publishing.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/

To extract the approximate solutions in the case of nonlinear fractional order differential equations with the homogeneous and nonhomogeneous boundary conditions, the weighted residual method is embedded here. We exploit three methods such as Galerkin, Least Square, and Collocation for the efficient numerical solution of nonlinear two-point boundary value problems. Some nonlinear cases are examined for observing the maximum absolute errors by the considered methods, demonstrating the accuracy and reliability of the present technique using the modified Legendre and modified Bernoulli polynomials as weight functions. The mathematical formulations and computational algorithms are more straightforward and uncomplicated to understand. Absolute errors and the graphical representation reflect that our method is more accurate and reliable.
Keywords: Galerkin method, Modified Legendre and Bernoulli polynomial, Fractional Derivatives, Caputo Derivatives, and Fractional BVP
Cite this paper: Umme Ruman, Md. Shafiqul Islam, Approximation of Some Nonlinear Fractional Order BVPs by Weighted Residual Methods, American Journal of Computational and Applied Mathematics , Vol. 14 No. 1, 2024, pp. 15-23. doi: 10.5923/j.ajcam.20241401.02.
subject to the boundary conditions:
where
is the fractional derivative of order
of
in the Caputo sense and
.The goal of the proposed research work is to use the Galerkin, Least Square, and Collocation Weighted Residual Methods for solving nonlinear fractional order boundary value problems. In order to prepare this research work we organise as follows. Some basic definitions of fractional derivatives and notations of fractional calculus are defined in Section 2. The mathematical formulation of three proposed methods for nonlinear fractional order differential equations are given elaborately in Section 3. The numerical solutions to the specific problems and the comparison of the absolute errors of different methods are displayed in tabular form in section 4, and finally the conclusion and references are appended.
of the function
is given as:
The Caputo Fractional Derivative of order
of the function
is given as:
Weight Functions: Throughout this research work we use weight functions as the modified Legendre polynomial of degree n [11]:
Similarly, the modified Bernoulli polynomial of degree n as [11]:
and
Weighted Residual MethodThe weighted residuals method is an approximation technique for solving boundary value problems that enrol trial functions satisfying the given boundary conditions and an integral formulation to minimize error, in normal sense, over the problem domain.Given a fractional differential equation of the general form:![]() | (1) |
![]() | (2) |
![]() | (3) |
denote the approximate solution can be expressed as the product of
unknown, constant parameters to be determined and
are weight functions. The major requirement allocated on the trail functions treat as the permissible functions which are continuous over the domain and satisfy the specified boundary conditions. The residual function is also a function of unknown parameters
and it can be expressed by ![]() | (4) |
be evaluated such that![]() | (5) |
values of
by considering
denotes the exact solution to a boundary value problem. By supposing the nonlinear fractional order two-point boundary value problems with the boundary conditions,![]() | (6a) |
![]() | (6b) |
![]() | (7) |
and
for each
Now the residual function is given by![]() | (8) |

or, equivalently![]() | (9) |
Equation (9) becomes![]() | (10) |
which can be written as![]() | (11) |
and
which is clearly the matrix form of a system of n nonlinear equations.Solving the system (11) yields the values of parameters and, upon substituting into equation (7) the approximate solution of the desired FBVP (6) is obtained. (b) Formulation by Least-Square MethodBy considering a basis functions as modified Bernoulli and Legendre polynomials in the Least-Square Method, we obtain the approximate solutions to the boundary value problems.If
is the exact solution to a boundary value problem, and then by denoting the approximate trial solution by
, consider the nonlinear fractional order two-point BVP with the boundary conditions ![]() | (12a) |
![]() | (12b) |
![]() | (13) |
and
for each
Now the residual function is given by![]() | (14) |
Now this choice of
corresponds to minimize the mean square residual
= minimum.The necessary condition for
to be minimum are given by ![]() | (15) |
.Solving the system (15), the values of parameters are determined and substitute into equation (13), the approximate solutions of the desired FBVP (12) are achieved.(c) Formulation by Collocation MethodIn this case, the approximate trial solution as
where
is the unknown exact solution to a BVP, and consider nonlinear fractional order two-point BVPs with the boundary conditions:![]() | (16a) |
![]() | (16b) |
![]() | (17) |
and
for each
are the unknown parameters and
are the basis functions. We choose modified Legendre and Bernoulli polynomials as basis functions. In another case,
is defined to satisfy the nonhomogeneous boundary condition so that other basis functions satisfy the homogeneous boundary conditions.Now the residual function is given by![]() | (18) |

In Collocation method, we evaluate the residual function at some grid points
and setting the residual function as
by the arrangement of fractional differential equation with the boundary conditions.We assume that the boundary conditions on
such as
If we choose the
parameters and the boundary point starts from
then the grid points are described as:
Setting
we obtain the system in unknown parameters
. Putting the values of the parameters into equation (17), we get the approximate solution of nonlinear fractional order BVP (16).
and the maximum absolute error
which are given as follows:
where
and
are the exact and approximate solutions, respectively.Problem 1: Consider the non-linear fractional BVP [18]:![]() | (19) |
.The exact solution of this problem is
The approximate solution is derived with respect to the unknown coefficients
from the equation (2), (8) and (12). Three weighted residual methods Galerkin, Least Square and Collocation give the approximate solution
and
, respectively, of the given problem using the modified Legendre polynomial of degree
as basis functions, we have:
Similarly, when we use the modified Bernoulli polynomial as basis functions of degree
we get another approximate solution as given below:
![]() | Table 1.1. Absolute errors of the BVP in Equation (19) |
![]() | Figure 1.1. Absolute errors using modified Legendre polynomial |
![]() | Figure 1.2. Absolute error using modified Bernoulli polynomial |
. Then the obtained absolute error using two different polynomials by three residual methods are shown in Table 1.1, and the comparison of their results are displayed in Figs. 1.1 and 1.2. ![]() | Table 1.2. and error of the Problem1 in Eqn. (19) |
![]() | (20) |
. The approximate solution
and
of the given problem using the modified Legendre polynomial of degree
as basis functions:
Similarly, when we use the modified Bernoulli polynomial of degree
as a basis function we get another approximate solution as given below:
The obtained absolute errors using two different polynomials by three residual methods are shown in the Table 2.1, and the comparison are displayed in the Figs. 2.1 and 2.2. ![]() | Table 2.1. Absolute error for problem in Eqn. (20) |
![]() | Table 2.2. and errors of the problem in Eqn. (20) |
![]() | Figure 2.1. Absolute error using modified Legendre polynomial |
![]() | Figure 2.2. Absolute error using modified Bernoulli polynomial |
![]() | (21) |
and
.The exact solution of this problem is
. The approximate solution
and
of the given problem using the modified Legendre polynomial of degree
as basis functions are as follows:
while using the modified Bernoulli polynomial as basis functions we get the approximations as given below:
The graphical representation of the two solutions is delineated in the Figs. 3.1 and 3.2, which shows that the approximate solution is in sensible agreement with the exact solution. The differences in the exact and approximate solutions are scarcely perceivable.From Figures 3.1 and 3.2, and Table 3.1 we may notice that the solutions converge fast to the exact solutions, and a very good agreement with the exact solutions on using polynomials of degree
as weight functions.![]() | Figure 3.1. Exact and approximate solutions of Eqn. (21) using modified Legendre polynomials |
![]() | Figure 3.2. Exact and approximate solutions of Eqn. (21) using modified Bernoulli polynomials |
![]() | Table 3.1. Absolute errors of problem 3 in Eqn. (21) |
![]() | Figure 3.3. Absolute error using modified Legendre polynomial |
![]() | Figure 3.4. Absolute error using modified Bernoulli polynomial |
![]() | (22) |
.The approximate solutions
and
of the given problem using the modified Legendre polynomial of degree
as basis functions are:
Similarly, when we use the modified Bernoulli polynomial of degree
as basis functions we get approximate solutions as given below:
![]() | Table 4.1. Absolute errors of the problem 4 in Eqn. (22) |
![]() | Figure 4.1. Absolute error using modified Legendre polynomial |
![]() | Figure 4.2. Absolute error using modified Bernoulli polynomial |