Next Article in Journal
Another View on Soft Expert Set and Its Application in Multi-Criteria Decision-Making
Next Article in Special Issue
A Collocation Approach for the Nonlinear Fifth-Order KdV Equations Using Certain Shifted Horadam Polynomials
Previous Article in Journal
A Novel Prescribed-Time Convergence Acceleration Algorithm with Time Rescaling
Previous Article in Special Issue
Exploration of Soliton Solutions to the Special Korteweg–De Vries Equation with a Stability Analysis and Modulation Instability
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Approximation Method for Solving Ordinary Differential Equations Using the Representation of Ball Curves

1
Department of Mathematics and Applied Sciences, Middle East College, Muscat 124, Oman
2
School of Quantitative Sciences, University Utara Malaysia, Sintok 06010, Kedah, Malaysia
3
Mathematics Education Program, Faculty of Education and Arts, Sohar University, Sohar 311, Oman
4
Applied Science Research Center, Applied Science Private University, Amman 11937, Jordan
5
Department of Mathematics, The University of Jordan, Amman 11942, Jordan
6
Department of Mathematics, Hampton University, Hampton, VA 23669, USA
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(2), 250; https://doi.org/10.3390/math13020250
Submission received: 10 November 2024 / Revised: 2 January 2025 / Accepted: 7 January 2025 / Published: 13 January 2025
(This article belongs to the Special Issue Exact Solutions and Numerical Solutions of Differential Equations)

Abstract

:
Numerical methods are frequently developed to investigate concepts for approximately solving ordinary differential equations (ODEs). To achieve minimal error and higher accuracy in approximate solutions, researchers have focused on developing algorithms using various numerical techniques. This study proposes the application of Ball curves, specifically the Said–Ball curve, for estimating solutions to higher-order ODEs. To obtain the best control points of the Said–Ball curve, the least squares method is used. These control points are calculated by minimizing the residual error through the sum of the squares of the residual functions. To demonstrate the proposed method, several boundary value problems are presented, and their performance is compared with existing methods in terms of error accuracy. The numerical results indicate that the proposed method improves error accuracy compared to existing studies, including those employing Bézier curves and the steepest descent method.

1. Introduction

Real-world problems in science and engineering often involve mathematical models described by higher-order ordinary differential equations (ODEs). These equations are typically solved analytically, numerically, or approximately. When analytical or exact solutions are unavailable, approximate methods are employed. Numerical methods and algorithms have been extensively developed to approximate solutions for higher-order ODEs.
Polynomial or piecewise polynomial functions are frequently used for this purpose [1]. By interpolating the function and connecting its values, approximate solutions can be constructed. Bézier curves are widely utilized for approximating functions, polynomial functions, and data [2,3,4,5,6,7]. Control points-based methods, which rely on Bézier curves, have proven effective and computationally advantageous for solving dynamic systems involving differential equations [3,4,5,6,7,8,9].
Bézier curves are particularly useful for solving boundary value problems (BVPs) of ODEs and singular nonlinear equations [5,10]. If the desired level of accuracy is not achieved, the degree of Bézier curves can be increased. Conversely, unnecessary degrees can be reduced to minimize computational overhead if the approximate solution is already acceptable [11].
In the 1970s, the Ball curve’s basis functions were introduced as more efficient and effective alternatives to Bézier curves [12,13,14,15,16]. Generalized Ball curves share similar properties with Bézier curves in terms of shape preservation but offer computational advantages, particularly when using recursive algorithms such as de Casteljau’s [15,17]. Degree raising and lowering is also more efficient with Ball curves than with Bézier curves [18].
The Ball curve’s control points framework has become a valuable tool for achieving precise curvature, making the computation of control points an attractive technique. Ball initially introduced the cubic polynomial function while designing aircraft shapes in the conic lofting surface program CONSURF [12,13,14]. Extensions of the Ball curve, such as the DP Ball, Said–Ball, and Wang–Ball curves, generalize it to higher-degree n polynomials [15,16,19]. Subsequent studies have focused on theoretical approaches to degree modification for optimizing curve accuracy [10,15,18,19,20,21,22,23].
The following equation represents the basis function of the cubic Ball curve, both mathematically and graphically:
B 3 x = j = 0 3   u j   U j x ,     0 x 1 ,
where U 0 x = ( 1 x ) 2 ,   U 1 x = 2 x ( 1 x ) 2 ,   U 2 x = 2 x 2 1 x ,   and   U 3 x = x 2 represent the basis functions, and u j denote the control points of a cubic Ball curve (see Figure 1).
The first advantage of the cubic basis function of Ball curves is that it can be reduced to the quadratic basis function of Bézier curves when combined with its internal control points. Secondly, the basis function of Ball curves demonstrates better computational performance than Bézier curves when represented in a generalized form [15]. As a result, the Said–Ball curve is slightly more computationally efficient than Bézier curves while maintaining similar shape-preserving properties [15,24,25].
Our study aims to achieve the best approximate solutions for ODEs by enhancing error accuracy through numerical methods. Various algorithms have been developed to solve higher-order ODEs approximately, with a focus on attaining high accuracy [26,27,28,29,30,31,32]. However, challenges such as extensive programming effort, increased human effort, and computational burden can affect the accuracy of these methods.
In the 1960s, Rutishauser introduced a direct method for solving higher-order ODEs without reducing them to systems of first-order ODEs [28], offering an efficient alternative to reduction methods. Earlier, in 1795, Gauss introduced the least squares method (LSM), one of the first direct approaches, which utilizes polynomial or piecewise polynomial functions to approximate solutions to higher-order ODEs and discretize integrals [29]. For solving ODEs, the LSM combined with Bézier curves has been employed as an alternative to integral discretization and has minimized an objective function to determine the Bézier curve’s control points [30]. Additionally, the LSM has been successfully applied to various differential equations in combination with other techniques [4,33,34,35,36,37,38,39,40]. Its simplicity and ability to improve the accuracy of approximate solutions make the LSM advantageous for solving higher-order ODEs [3,25,39,41].
To the best of our knowledge, the use of Said–Ball curves combined with the LSM to improve error accuracy in ODE solutions has not been explored. This research aims to determine the optimal control points of Said–Ball curves using the LSM for improved approximate solutions of ODEs.
Specifically, the objectives are as follows:
i.
To identify the best control points of Said–Ball curves by minimizing the residual error through the sum of the squares of the residual function.
ii.
To achieve better approximate solutions by substituting these optimized control points into Said–Ball curves.
iii.
To significantly improve error accuracy compared to existing methods.
iv.
To establish Said–Ball curve representations with the LSM as a suitable alternative method, contributing to analytical approximations for solving BVPs of ODEs.
The content of this paper is organized as follows: Section 2 provides an overview of Bezier curve representations. Section 3 introduces the representations and properties of Said–Ball curves. Section 4 describes the proposed method, using Said–Ball curves with the LSM to approximate ODE solutions. Section 5 provides a convergence analysis of the method. Numerical examples validating the proposed method are presented in Section 6, followed by the results in Section 7. Finally, Section 8 concludes the study.

2. Bézier Curves

From [30], Bézier curves of degree m can be defined using m + 1 control points b j j = 0 m as follows:
B x = j = 0 m b j B j m x a b a ,   a x b ,
where b j are the Bézier control points (or Bézier coefficients), and the polynomials of Bézier curves B j m x in the interval [a, b] are as follows:
B j m x a b a = m j x a b a j b x b a m j
In particular,
B x = j = 0 m b j B j m x ,   0 x 1 ,
where
B j m x = m j x j 1 x m j .
The function B x is a parametric Bézier curve if it is a polynomial in the form of a vector-valued function. Moreover, its control polygon contains of the line segments b j b j + 1 , where j = 0 ,   1 ,   2 ,   ,   m 1 . If B x is a scalar-valued function, then the function y = B x is known as an explicit Bézier curve, represented by ( x ,   B x ) .

3. Said–Ball Curves

From [15,22,42,43], Said–Ball curves of degree m are defined as follows:
S x = j = 0 m S j m x v j   ,
where v j j = 0 m are the m + 1 control points,
S j m x = m 1 2 + j j x j 1 x m + 1 2 , f o r         0 j m 1 2 m 1 2 + m j m j x m + 1 2 1 x m j , f o r         m + 1 2 j m  
when m is odd, and
S j m x = m 2 + j j x j ( 1 x ) m 2 + 1 ,                                   f o r       0 j m 2 1   m m 2 x m 2 1 x m 2 ,                                                             f o r       j = m 2 m 2 + m j m j x m 2 + 1 1 x m j ,                 f o r       m 2 + 1 j m
when m is even.
Properties:
i .   S j m x 0 ,   for   all   j = 0 , 1 , 2 , , m .
ii .   j = 0 m S j m x = 1 .
The properties in Equations (7) and (8) demonstrate the convex combination of the control points. Hence, the Said–Ball curve’s control polygon lies within the convex hull [22].
The basis functions of Said–Ball curves of degrees two, three, four, and five are presented in Equations (8a), (8b), (8c), and (8d), respectively:
S 1 x = S 0 2 x = ( 1 x ) 2 , S 2 x = S 1 2 x = 2 x 1 x ,     S 3 x = S 2 2 x = x 2 ;
S 1 x = S 0 3 x = ( 1 x ) 2 , S 2 x = S 1 3 x = 2 x ( 1 x ) 2 ,          S 3 x = S 2 3 x = 2 x 2 1 x , S 4 x = S 3 3 x = x 2 ;
S 1 x = S 0 4 x = ( 1 x ) 3 , S 2 x = S 1 4 x = 3 x ( 1 x ) 3 ,          S 3 x = S 2 4 x = 6 x 2 ( 1 x ) 2 ,          S 4 x = S 3 4 x = 3 x 3 1 x , S 5 x = S 4 4 x = x 3 ;
S 1 x = S 0 5 x = ( 1 x ) 3 , S 2 x = S 1 5 x = 3 x ( 1 x ) 3 ,          S 3 x = S 2 5 x = 6 x 2 ( 1 x ) 3 ,          S 4 x = S 3 5 x = 3 x 3 ( 1 x ) 2 ,          S 5 x = S 4 5 x = 3 x 3 1 x , S 6 x = S 5 5 x = x 3 .
Figure 2, Figure 3, Figure 4 and Figure 5 below each show the graphs of the basis functions of Said–Ball curves of degrees two, three, four, and five, respectively.

4. Least Squares Method for Solving ODEs

4.1. Exploration of Said–Ball Curve’s Control Points Technique

The Said–Ball curves are proposed as a technique based on their control points, as the basis function of Said–Ball curves offers better computational capability than the basis function of Bézier curves.
The strategies involved in the study are as follows:
  • Exploring the optimal control points using the LSM.
  • Computing the control points by minimizing the residual function through the LSM.
Consider the following ( 2 n ) t h -order ODE:
L g x = i = 0 2 n φ i x d i d x i g x = f x ,   0 x 1 ,
with initial conditions:
d i d x i g 0 = η i ,     i = 0,1 ,   2 ,   ,   n 1 ,
and boundary conditions:
d i d x i g 0 = η i , d i d x i g 1 = ξ i , i = 0 , 1 , 2 , , n 1 ,
where
L = i = 0 2 n φ i x d i d x i
is the ( 2 n ) t h -order differential operator with the polynomial coefficients φ i x and f x is a polynomial function.
The residual error is measured by minimizing the residual function as follows:
R x = L g x f x ,
The minimization of the residual function is achieved by summing the squares of the residual values at the control points. This summation becomes zero when the residual error at all control points is zero, indicating that the approximate solution matches the exact solution.
To address this, a new algorithm is proposed to obtain the approximate solution of Equation (9) while satisfying the initial conditions in Equation (10) and the boundary conditions in Equation (11). The algorithm is described as follows:
Step 1: Represent the approximate solution using Said–Ball curves of degree m , where m the order of the differential equation, i.e.,
S x = j = 0 m S j m x v j ,     0 x 1 ,
where the m + 1 control points { v j } j = 0 m = v 0 , v 1 , v 2 , , v m need to be calculated.
Step 2: Compute the residual function R S x = L g x f x by substituting S x into Equation (9) while incorporating the initial and boundary conditions given in Equations (10) and (11). The residual function can be expressed as a polynomial:
R S x = j = 0 k   c S j   S j m x ,
which is represented using Said–Ball curves of degree k , where
k = max j m j + deg φ j , deg f x .
Here, c S j are the control points of R S x , expressed as linear functions of the unknowns v j , with j = 0 ,   1 ,   2 ,   3 , ,   k .
Step 3: Develop the objective function for Said–Ball curves:
F S = j = 0 k c S j 2 v j .
Step 4: Solve for the control points v j by addressing the constrained optimization problem:
min F S   = j = 0 k c S j 2 v j ,
subject to the following conditions
d i d x i g 0 = η j   a n d   d i d x i g 1 = ξ j , j = 0 , 1 , 2 , , m 1 .
To solve this constrained optimization problem, any suitable method can be applied, such as the Lagrange Multiplier Method.
Step 5: Substitute the calculated control points v j back into Equation (13) to obtain the approximate solution of Equation (9).

4.2. Degree-Raising Scheme

In Section 4.1, the control points-based method using the LSM provides an approximate solution to the ODEs. By substituting the values of Said–Ball curve control points v j back into the objective function F s , the Euclidean norm of the Said–Ball curve’s control points can be computed. This enables determining an upper bound for the residual function R s x based on the values of c j , expressed as
R s x m a x j c j , 0 x 1 .
If the obtained error values are not sufficiently small, the approximate solution does not meet the expected accuracy level. To address this, the degree of the Said–Ball curve, which serves as the approximate solution, can be increased. By repeating the process outlined in Section 4.1 with the updated curve degree, an improved solution can be achieved, meeting the desired level of accuracy and reducing the error.

4.3. Performance Comparison

The proposed method was implemented in MATLAB-R2020a and applied to solve BVPs for second-order and fourth-order ODEs. The error metrics, including error accuracy, maximum absolute error, maximum relative error, and maximum percent relative error of the exact and approximate solutions based on Said–Ball curves, were compared with existing methods such as the Bézier curve method [30], the direct inverse method, the steepest descent method, and FMARI [36].
The formulas for the three types of errors are as follows:
A b s o l u t e   E r r o r   =   E x a c t   V a l u e A p p r o x i m a t e   V a l u e ,
R e l a t i v e   E r r o r = E x a c t   V a l u e A p p r o x i m a t e   V a l u e E x a c t   V a l u e ,
P e r c e n t   R e l a t i v e   E r r o r = E x a c t   V a l u e A p p r o x i m a t e   V a l u e E x a c t   V a l u e × 100 % .
The method with the smallest error across all metrics is considered the best-performing approach.

5. Convergence Analysis

A convergence analysis of the proposed technique is conducted based on the Said–Ball curve’s control points. The analysis focuses on a two-point BVP with a unique C 2 smooth solution, ensuring the method’s robustness in producing solutions that converge to the exact values under appropriate conditions.
Consider the following BVP:
L g x = φ 2 x g x + φ 1 x g x + φ 0 x g x = f x , 0 x 1 ,
with g 0 = c , g 1 = d , where φ 0 ,   φ 1 ,   φ 2 , and f are polynomials in terms of x .
By averaging the control points of Said–Ball curves, the square of the L 2 norm polynomial can be approximated over the interval 0 x 1 based on the control points of the Said–Ball curve.
Lemma 1.
If the Said–Ball curves represented in the form of a polynomial are
S x = j = 0 m v j , m S j m x ,
then
1 m + 1 j = 0 m v j , m 2 1 m + 2 j = 0 m + 1 v j , m + 1 2 1 m + 3 j = 0 m + 2 v j , m + 2 2 1 m + n + 1 j = 0 m + n v j , m + n 2 0 1 S 2 x d x ,       n + ,
where v j ,   m + k are the control points of Said–Ball curves after increasing the degree to m + k .
Proof. 
By using the degree-raising rule
v j , m + 1 = j m + 1 v j 1 , m + m + 1 j m + 1 v j , m ,
hence,
1 m + 2 j = 0 m + 1 v j , m + 1 2    = 1 m + 2 j = 0 m + 1 j m + 1 2 v j 1 , m 2 + m + 1 j m + 1 2 v j , m 2 + 2 j ( m + 1 j ) ( m + 1 ) 2 v j 1 , m   v j , m 1 m + 2 j = 1 m + 1 j m + 1 2 v j 1 , m 2 + j = 0 m m + 1 j m + 1 2 v j , m 2 + j = 1 m j m + 1 j m + 1 2 v j 1 , m + v j , m    = 1 m + 1 j = 0 m v j , m 2 .
This demonstrates that the sequence
1 m + n + 1 j = 0 m + n v j , m + n 2 .
is monotonically decreasing and converges as n + , with the lower bound being zero. It remains to prove that 0 1 S 2 ( x ) d x is equal to the limit of the above sequence.
Using the definition of the definite integration, we have
0 1 S 2 x d x = lim n + 1 m + n + 1 j = 0 m + n S 2 j m + n .
From the convergence property of the Said–Ball curves’ degree raising, there exists an arbitrarily small positive number ε j   ( j = 0 , 1 , 2 , 3 , . . . , m + n ) such that
S j m + n = v j , m + n + ε j ,     j = 0 , 1 , 2 , 3 , . . . , m + n ,
with
lim n + max j ε j = 0 .
Hence,
1 m + n + 1 j = 0 m + n S 2 j m + n = 1 m + n + 1 j = 0 m + n v j , n + m 2 + 2 v j , m + n ε j + ε j 2 .
Let
ε m , n = m a x j ε j j = 0 m + n .
Now, we estimate the last two terms in the right-hand side of the equation as follows:
1 m + n + 1 j = 0 m + n ε j 2 ε m , n 2
and
1 m + n + 1 j = 0 m + n v j , m + n ε j 1 m + n + 1 ε m , n j = 0 m + n v j , m + n               1 m + n + 1   [ ε m , n j = 0 m + n ( j m + n v j 1 , m + n 1                      + m + n j m + n v j , m + n 1 ) ]           1 m + n ε m , n j = 0 m + n 1 v j , m + n 1     1 m + 1 ε m , n j = 0 m v j , m .
Hence,
lim n + 1 m + n + 1 j = 0 m + n 2 v j , m + n ε j + ε j 2 = 0 .
Thus,
l i m n + 1 m + n + 1 j = 0 m + n S 2 j m + n = l i m n + 1 m + n + 1 j = 0 m + n v j , n + m 2 .
Theorem 1.
Let g x be the C 2 -continuous and unique solution of the two-point BVP (15). The approximate solution g n x constructed using the control points of Said–Ball curves, converges to the exact solution g(x) as the degree of the approximate solution tends to infinity.
Proof. The proof is divided into several steps:
  • Step 1.
Given an arbitrarily small number ε > 0 , the Weierstrass theorem [25,37,38] guarantees the existence of a polynomial H K of degree K such that
d j H K ( x ) d x j d j g ( x ) d x j < ε 2 ,   j = 0 , 1 , 2 ,
where . denotes the L -norm over 0 x 1 .
However, H K ( x ) may not generally satisfy the given boundary conditions. By applying a small perturbation in the form of a linear polynomial a x + b , we construct another polynomial G K x = H K x + a x + b such that G K x satisfies the boundary conditions G K 0 = c and G K 1 = d , and
d j G K ( x ) d x j d j g ( x ) d x j < ε , j = 0 , 1 , 2 .
Hence, the residual function can be estimated as follows:
L G K ( x ) f ( x ) = L G K ( x ) g ( x )         φ 2 x G K g + φ 1 x G K g + φ 0 x G K g         φ 2 x + φ 1 x + φ 0 x ε
where φ 2 x + φ 1 x + φ 0 x is a constant.
  • Step 2.
In this step, we represent the residual in the form of the Said–Ball curve as follows:
R ( G K ) : = L G K f x = j = 0 m v j , m S j m x
From Lemma 1, there exists an integer N ( M ) such that if n > N , then
j = 0 m v j , m 2 m + 1 0 1 ( R G K ) 2 d x < ε
j = 0 m v j , m 2 m + 1 < ε + 0 1 ( R ( G K ) 2 d x ε + φ 2 x + φ 1 x + φ 0 x ε 2 .
  • Step 3.
Now, suppose that g n x is the approximate solution of (15) with degree n N constructed using the control points of Said–Ball curves. Let
R ( g n x ) = L g n x f x = j = 0 l c j , l S j l x
with degree l n N .
Further, we estimate the Sobolev norm of the difference in the exact solution g x and the approximate solution g n x as follows:
g n x g x H 2 0 , 1 0 1 i = 0 2 d i g n x d x i d i g x d x i 2 d x
T g n 0 g 0 + g n 1 g 1 + R g n x g x 2 = T 0 1 j = 0 l c j , l S j l x 2 d x T l + 1 j = 0 l c j , l 2 .
Here, T is a constant. Since the average of the squared residuals at the control points of the Said–Ball curves is minimized using the control points-based method, the average value of the approximate solution g n x is smaller than G K x .
Thus,
g n x g x H 2 [ 0 , 1 ] T l + 1 j = 0 l c j , l 2 T l + 1 j = 0 l v j , l 2 T m + 1 j = 0 m v j , l 2         T ε + φ 2 x + φ 1 x + φ 0 x ε 2 .
Hence, the approximate solution converges to the exact solution as the degree of the approximate solution approaches infinity. □

6. Numerical Examples

Four numerical examples from related works were considered to demonstrate the proposed method. The basis function of the Said–Ball curve was used to approximate the solution of BVPs involving second-order and fourth-order ODEs, as well as second-order non-homogeneous ODEs, utilizing the LSM. The results and accuracy, in terms of error, were compared with those from existing studies.
The maximum absolute error, relative error, and percent relative error between the exact and approximate solutions based on Said–Ball curves were compared with those obtained using the Bézier curve method [30], the direct inverse method, the steepest descent method, and FMARI [36].

6.1. Example 1: [30]

To illustrate the method, a very simple example is considered as the first case.
Consider
y x 6 x = 0 , y 0 = 0 , y 1 = 1 .
The exact solution of the above BVP is y e ( x ) = x 3 .
Suppose that a degree-2 Said–Ball curve is used to represent the approximate solution.
     y a x = S a x = j = 0 2 S j m x v j = v 0 S 0 2 x + v 1 S 1 2 x + v 2 S 2 2 x = v 0 1 x 2 + v 1 2 x 1 x + v 2 x 2 .
The residual function is obtained by substituting y a x = S a x into the given ODE:
R S x = 2 v 0 4 v 1 + 2 v 2 6         = 2 v 0 4 v 1 + 2 v 2 S 0 2 x + 2 v 0 4 v 1 + 2 v 2 6 x S 1 2 x .
The objective function is developed as follows:
F S ( v 0 , v 1 , v 2 ) = 2 v 0 4 v 1 + 2 v 2 2 + 2 v 0 4 v 1 + 2 v 2 6 2 .
The values of v 0 ,   v 1 , a n d   v 2 were determined by applying the proposed technique with the boundary conditions y 0 = 0   a n d   y 1 = 1 , resulting in v 0 = 0 ,   v 1 = 0 , and v 2 = 1 .
These control points values were substituted into Equation (16); yielding the approximate solution as follows:
y a x = S a x = x 2 .
The exact solution and the approximate solution using a degree-2 Said–Ball curve are presented graphically in Figure 6.
Next, Example 1 is reconsidered by increasing the degree of the Said–Ball curve to 3 to enhance error accuracy.
y a x = S a x = j = 0 3 S j m x v j = v 0 S 0 3 x + v 1 S 1 3 x + v 2 S 2 3 x + v 3 S 3 3 x . = v 0 1 x 2 + 2 v 1 x 1 x 2 + 2 v 2 x 2 1 x + v 3 x 2 .
The control points values of the Said–Ball curve in Table 1 were calculated by applying the proposed method with the boundary conditions y 0 = 0   a n d   y 1 = 1 .
Thus, the approximate solution was obtained by substituting the above control points values into Equation (18).
y a x = S a x = 2 ( 0.5 ) x 2 1 x + ( 1 ) x 2 y a x = S a x = x 3 .
The exact solution and the approximate solution using a degree-3 Said–Ball curve are presented graphically in Figure 7.
In Example 1, the maximum absolute error of 0.147578 occurs at x = 0.65   within   the   interval   0 x 1 , between the exact solution and the approximate solution of degree 2. However, when the degree of the Said–Ball curve is increased to 3, the approximate solution becomes equivalent to the exact solution.

6.2. Example 2: [30]

x 2 + 1 y x = x + 1 , 0 < x < 1 , with   y 0 = y 1 = 0 ,     y 0 = y 1 = 0 .
The exact solution of the above problem is
y e ( x ) = [ 336 x arctan x 36 π x 2 + 9 π 2 x 2 + 36 ln 2 2 x 2 4 π x 3 + π 2 x 3 + 4 ln 2 2 x 3 44 π x + 168 ln 2 x         168 ln 2 arctan x + 44 π arctan x 168 ln 1 + x 2 + 44 ln 2 ln 1 + x 2 + 42 π ln 1 + x 2         84 π x arctan x 88 ln 2 x arctan x + 22 π x ln 1 + x 2 84 ln 2 x ln 1 + x 2 ]          / 36 4 ln 2 2 + π 2 4 π .
Firstly, Bézier curves of degrees 5 and 8 are demonstrated as existing methods. For the approximate solution, a Bézier curve of degree 5 is assumed.
y a x = B x = j = 0 5 b j    B j m x
= b 0 B 0 5 x + b 1 B 1 5 x + b 2 B 2 5 x + b 3 B 3 5 x + b 4 B 4 5 x + b 5 B 5 5 x = b 0 1 x 5 + 5 b 1   x 1 x 4 + 10 b 2 x 2 1 x 3 + 10 b 3 x 3 1 x 2 + 5 b 4 x 4 1 x + b 5 x 5 .
The control points values of the Bézier curve method in Table 2 were calculated with the boundary conditions y 0 = y 1 = 0   a n d   y 0 = y 1 = 0 .
Equation (21) is an approximate solution of degree 5, obtained by substituting the control points into Equation (20):
y a x = B x = 0.043 x 2 1 x 3 + 0.033 x 3 1 x 2 .
Let the approximate solution be the Bézier curve of degree 8:
y a x = B x = j = 0 8 b j   B j m x = b 0 B 0 8 x + b 1 B 1 8 x + b 2 B 2 8 x + b 3 B 3 8 x + b 4 B 4 8 x + b 5 B 5 8 x         + b 6 B 6 8 x + b 7 B 7 8 x + b 8 B 8 8 x , = b 0 1 x 8 + 8 b 1 x 1 x 7 + 28 b 2 x 2 1 x 6 + 56 b 3 x 3 1 x 5         + 70 b 4 x 4 1 x 4 + 56 b 5 x 5 1 x 3 + 28 b 6 x 6 1 x 2         + 8 b 7 x 7 1 x + b 8 x 8 .
The control points values of the Bézier curve method in Table 3 were calculated with the boundary conditions y 0 = y 1 = 0   a n d   y 0 = y 1 = 0 .
Therefore, the approximate solution of degree 8 is found as follows:
y a x = B x = 0.05063 x 2 1 x 6 + 0.20164 x 3 1 x 5 + 0.280549997 x 4 1 x 4 + 0.16975 x 5 1 x 3 + 0.038409999 x 6 1 x 2 .
The exact solution and the approximate solution using degree-5 and -8 Bézier curves are illustrated graphically in Figure 8.
Next, we apply the proposed method to obtain an approximate solution for a BVP involving a fourth-order ODE.
Initially, we assume that the approximate solution is a Said–Ball curve of degree 5.
y a x = S a x = j = 0 5 S j m x v j = v 0 S 0 5 x + v 1 S 1 5 x + v 2 S 2 5 x + v 3 S 3 5 x + v 4 S 4 5 x + v 5 S 5 5 x .
= v 0 1 x 3 + 3 v 1 x 1 x 3 + 6 v 2 x 2 1 x 3 + 6 v 3 x 3 1 x 2 + 3 v 4 x 3 1 x + v 5 x 3 .
The control points values of the Said–Ball curve in Table 4 were calculated by applying the proposed method with the boundary conditions y 0 = y 1 = 0   a n d   y 0 = y 1 = 0 .
Therefore, the approximate solution is obtained by substituting the values of the control points into Equation (22). Thus, the approximate solution of degree 5 is given by Equation (23):
y a x = S a x = 0.04599 x 2 1 x 3 + 0.034992 x 3 1 x 2 .
The exact solution and the approximate solution using a degree-5 Said–Ball curve are presented graphically in Figure 9.
Since the approximate solution of degree 5 did not achieve the expected level of accuracy, the degree of the Said–Ball curve is increased. Assume that the approximate solution is the Said–Ball curve of degree 8.
y a x = S a x = j = 0 8 S j m x v j        = v 0 S 0 8 x + v 1 S 1 8 x + v 2 S 2 8 x + v 3 S 3 8 x + v 4 S 4 8 x + v 5 S 5 8 x + v 6 S 6 8 x + v 7 S 7 8 x          + v 8 S 8 8 x , = v 0 1 x 5 + 5 v 1 x 1 x 5 + 15 v 2 x 2 1 x 5 + 35 v 3 x 3 1 x 5 + 70 v 4 x 4 1 x 4 + 35 v 5 x 5 1 x 3          + 15 v 6 x 5 1 x 2 + 5 v 7 x 5 1 x + v 8 x 5 .
Then, the control points v 0 ,   v 1 ,   v 2 ,   v 3 , v 4 ,   v 5 ,   v 6 ,   v 7 , and v 8 are obtained by adopting the proposed method via minimization of the objective function. Their conditions are y 0 = y 1 = 0   a n d   y 0 = y 1 = 0 . (see Table 5).
Therefore, the approximate solution is obtained by substituting the values of the control points into the above equation. Thus, the approximate solution of degree 8 is given by
y a x = 0.0508853209 x 2 1 x 5 + 0.1520830270 x 3 1 x 5 + 0.2825622496 x 4 1 x 4 + 0.1319866298 x 5 ( 1 x ) 3 + 0.0385888955 x 5 ( 1 x ) 2 .
Figure 10 provides a schematic illustration of the exact and approximate solutions of degree 8.

6.3. Example 3: A Non-Homogeneous 2nd Order Linear ODE with BVP [36]

y + 4 y = x 2 + 3 e x , with   y 0 = 0 ,     y 1 = 2 .
The exact solution of the above BVP is
y e x = sin 2 10 x 2 + 24 e x 19 cos 2 x 5 + s i n ( 2 x ) ( 24 e + 19 cos 2 + 75 ) ( 40 s i n ( 2 ) ) .
Firstly, assume the Said–Ball curve of degree 3 is the approximate solution to the problem in Example 3.
y a x = S a x = j = 0 3 S j m x v j = v 0 S 0 3 x + v 1 S 1 3 x + v 2 S 2 3 x + v 3 S 3 3 x ,
y a x = S a x = v 0 1 x 2 + 2 v 1 x 1 x 2 + 2 v 2 x 2 1 x + v 3 x 2 .
Secondly, the minimization of the objective function with the boundary conditions y 0 = 0   a n d   y 1 = 1 is performed using the LSM. After that, the constrained optimization problem must be solved in order to obtain the values of the control points for the Said–Ball curve (see Table 6).
By substituting the calculated values of the control points of the Said–Ball curve into (24), the approximate solution of the BVP for the 2nd-order non-homogeneous ODE is obtained. Hence, the approximate solution of degree 3 is given in Equation (25).
y a x = S a x = 0.0000000002 1 x 2 + 0.7235046154 x 1 x 2 + 1.0667744154 x 2 1 x + 1.9999999952 x 2 .
Figure 11 presents the approximate and exact solutions graphically.
Hence, the error accuracy is not at an acceptable level with the degree 3 Said–Ball curve. Now, by increasing the degree of the Said–Ball curve to degree 4, assume the approximate solution of the BVP for the 2nd-order non-homogeneous ODE in the same Example 3.
y a x = S a x = j = 0 4 S j m x v j = v 0 S 0 4 x + v 1 S 1 4 x + v 2 S 2 4 x + v 3 S 3 4 x + v 4 S 4 4 x , = v 0 1 x 3 + 3 v 1 x 1 x 3 + 6 v 2 x 2 1 x 2 + 3 v 3 x 3 1 x + v 4 x 3 .
The values of the Said–Ball curve’s control points were determined using the proposed method, along with the given conditions y (0) = 0 and y (1) = 2, after resolving the constrained optimization problem (see Table 7).
By substituting the calculated values of the control points of the Said–Ball curve into (26), the approximate solution of the BVP for the 2nd-order non-homogeneous ODE is obtained. Therefore, the approximate solution of degree 4 is given in Equation (27).
y a x = S a x = 0.0000000002 1 x 3 + 0.7031951991 x 1 x 3 + 3.659190969 x 2 1 x 2 + 3.0464649783 x 3 1 x + 2.0000000042 x 3 .
Figure 12 shows the approximate solution of degree 5 and the exact solution graphically.

6.4. Example 4: A Non-Homogeneous 2nd Order Linear ODE with BVP [36]

y 2 y + y = x e x + 4 , with   y 0 = 1 ,     y 1 = 2 .
The exact solution of the above problem is
y e x = 1 6 x 3 e x + 17 x e x 18 e x 2 x e x 1 + 4 .
Firstly, suppose the approximate solution is the Said–Ball curve of degree 3.
y a x = S a x = j = 0 3 S j m x v j = v 0 S 0 3 x + v 1 S 1 3 x + v 2 S 2 3 x + v 3 S 3 3 x ,
= v 0 1 x 2 + 2 v 1 x 1 x 2 + 2 v 2 x 2 1 x + v 3 x 2 .
The values of the Said–Ball curve’s control points were determined using the proposed method, along with the given conditions y (0) = 0 and y (1) = 2, after resolving the constrained optimization problem (see Table 8).
By substituting the calculated values of the control points of the Said–Ball curve into (28), the approximate solution of the BVP for the 2nd-order non-homogeneous ODE is obtained. Therefore, the approximate solution of degree 3 is given in Equation (29).
y a x = S a x = 0.9999999941 1 x 2 + 1.1255272246 x 1 x 2 1.0040111252 x 2 1 x + 2.0000000006 x 2 .
Figure 13 shows the approximate and exact solutions graphically.
Thus, the error accuracy between the exact and approximate solutions does not meet the expected level. Therefore, by increasing the degree of the Said–Ball curve to 4.
y a x = S a x = j = 0 4 S j m x v j = v 0 S 0 4 x + v 1 S 1 4 x + v 2 S 2 4 x + v 3 S 3 4 x + v 4 S 4 4 x , y a x = S a x = v 0 1 x 3 + 3 v 1 x 1 x 3 + 6 v 2 x 2 1 x 2 + 3 v 3 x 3 1 x + v 4 x 3 .
The control points values of the Said–Ball curve in Table 9 were calculated by applying the proposed method with the boundary conditions y 0 = 1   a n d   y 1 = 2 .
Thus, the approximate solution is computed by substituting the values of the control points into (30). Consequently, the approximate solution of degree 4, using the LSM with the Said–Ball curve, is as follows:
y a x = S a x = 0.9999999995 1 x 3 + 2.0974173375 x 1 x 3 + 4.0456936602 x 2 1 x 2 + 0.9411229476 x 3 1 x + 1.9999999680 x 3 .
The approximate solution of degree 4 and the exact solution are presented graphically in Figure 14.

7. Results and Discussion

The Said–Ball curve is used as a basis function for program development in the mathematical software MATLAB. The approximate solutions for BVPs, including second-order and fourth-order ODEs as well as second-order non-homogeneous ODEs, are computed using the Said–Ball curve with the LSM.
The following tables present the highest absolute error, highest relative error, and highest percentage relative error between the exact and approximate solutions based on the Said–Ball curves. These results are compared with existing methods, including the Bézier curve [30], the direct inverse method, the steepest descent method, and FMARI [36] (see Table 10, Table 11, Table 12, Table 13, Table 14, Table 15 and Table 16).
The above tables show that the proposed method significantly improves error accuracy.

8. Conclusions

In this study, Said–Ball curves are represented using the LSM to approximate solutions for higher-order ODEs. The approximate solution is expressed as Said–Ball curves and substituted into the given ODEs. We determined the optimal control points of Said–Ball curves by minimizing the residual error, defined as the sum of the squares of the residual function. A better approximate solution was obtained by applying these optimized control points to the Said–Ball curves, significantly improving error accuracy compared to existing methods.
The computation process is straightforward and does not require external directional controls. Numerical examples of linear and non-homogeneous linear ODEs are provided to demonstrate the effectiveness of Said–Ball curve representations. Additionally, we developed an algorithm and performed a convergence analysis for two-point boundary value problems based on the control points of Said–Ball curves using the LSM. The proposed method is versatile and can be applied to solve other types of differential equations.

Author Contributions

Conceptualization, A.F.J.; Methodology, A.H.B. and A.A.; Software, A.H.B., A.F.J. and N.A.; Validation, S.K. and F.Y.; Formal analysis, A.H.B. and A.A.; Investigation, A.H.B.; Resources, A.A., F.Y. and N.A.; Writing—original draft, A.F.J.; Writing—review & editing, F.Y.; Supervision, S.K. and F.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No data were used to support this study.

Acknowledgments

The work of the first, second, and fourth authors was supported by the Ministry of Higher Education (MOHE) of Malaysia through the Fundamental Research Grant Scheme (FRGS/1/2022/STG06/UUM/02/8). The authors express their gratitude to the editor and the anonymous reviewers for their valuable comments and suggestions, which significantly enhanced the quality of this work.

Conflicts of Interest

The authors declare that they have no conflicts of interest in this paper.

References

  1. Lai, M.J.; Wenston, P. Bivariate spline method for numerical solution of steady state Navier–Stokes equations over polygons in stream function formulation. Numer. Methods Partial. Differ. Equ. Int. J. 2000, 16, 147–183. [Google Scholar] [CrossRef]
  2. Nürnberger, G.; Zeilfelder, F. Developments in bivariate spline interpolation. J. Comput. Appl. Math. 2000, 121, 125–152. [Google Scholar] [CrossRef]
  3. Mortari, D. Least-squares solution of linear differential equations. Mathematics 2017, 5, 48. [Google Scholar] [CrossRef]
  4. Adiyaman, M.; Oger, V. A residual method using Bezier curves for singular nonlinear equations of Lane-Emden type. Kuwait J. Sci. 2017, 44, 9–18. [Google Scholar]
  5. Al-Janabi, A.N.; Al Zahed, F.J.; Hussain, A.H. An approximate solution of integral equation using Bezier control points. Int. J. Nonlinear Anal. Appl. 2021, 12, 793–798. [Google Scholar]
  6. Jameel, A.F.; Amen, S.G.; Saaban, A.; Man, N.H. On solving fuzzy delay differential equation using Bezier curves. Int. J. Electr. Comput. Eng. 2020, 10, 6521–6530. [Google Scholar] [CrossRef]
  7. Ayoo, P.V.; Amobeda, R.E.; Akinwale, O. Solution of systems of disjoint Fredholm-Volterra integro-differential equations using Bezier control points. Sci. World J. 2020, 15, 35–40. [Google Scholar]
  8. Ghomanjani, F.; Farahi, M.H.; Pariz, N. A new approach for numerical solution of a linear system with distributed delays, Volterra delay-integro-differential equations, and nonlinear Volterra-Fredholm integral equation by Bezier curves. Comput. Appl. Math. 2017, 36, 1349–1365. [Google Scholar] [CrossRef]
  9. Gachpazan, M. Solving of time varying quadratic optimal control problems by using Bézier control points. Comput. Appl. Math. 2011, 30, 367–379. [Google Scholar] [CrossRef]
  10. Beltran, J.V.; Monterde, J. Bézier solutions of the wave equation. In Proceedings of the International Conference on Computational Science and Its Applications, Assisi, Italy, 14–17 May 2004; pp. 631–640. [Google Scholar]
  11. Farin, G. Curves and Surfaces for Computer Aided Geometric Design-A Practical Guide, 4th ed.; Rheinbolt, W., Ed.; Academic Press: San Diego, CA, USA, 1997. [Google Scholar]
  12. Ball, A.A. CONSURF. Part one: Introduction of conic lofting tile. Comput. Aided Des. 1974, 6, 243–249. [Google Scholar] [CrossRef]
  13. Ball, A.A. CONSURF. Part two: Description of the algorithms. Comput. Aided Des. 1975, 7, 237–242. [Google Scholar] [CrossRef]
  14. Ball, A.A. CONSURF. Part three: How the program is used. Comput. Aided Des. 1977, 9, 9–12. [Google Scholar] [CrossRef]
  15. Said, H.B. A generalized Ball curve and its recursive algorithm. ACM Trans. Graph. 1989, 8, 360–371. [Google Scholar] [CrossRef]
  16. Wang, G. Ball curve of high degree and its geometric properties. Appl. Math. A J. Chin. Univ. 1987, 2, 126–140. [Google Scholar]
  17. Hongyi, W. Unifying representation of Bézier curve and generalized Ball curves. Appl. Math. J. Chin. Univ. 2000, 15, 109–121. [Google Scholar] [CrossRef]
  18. Goodman, T.N.; Said, H.B. Properties of generalized Ball curves and surfaces. Comput. Aided Des. 1991, 23, 554–560. [Google Scholar] [CrossRef]
  19. Delgado, J.; Pena, J.M. A linear complexity algorithm for the Bernstein basis. In Proceedings of the 2003 International Conference on Geometric Modeling and Graphics, London, UK, 16–18 July 2003; IEEE: New York, NY, USA, 2003. [Google Scholar]
  20. Delgado, J.; Peña, J.M. A shape preserving representation with an evaluation algorithm of linear complexity. Comput. Aided Geom. Des. 2003, 20, 1–10. [Google Scholar] [CrossRef]
  21. Aphirukmatakun, C.; Dejdumrong, N. Multiple degree elevation and constrained multiple degree reduction for DP curves and surfaces. Comput. Math. Appl. 2011, 61, 2296–2299. [Google Scholar] [CrossRef]
  22. Hu, S.M.; Wang, G.Z.; Jin, T.G. Properties of two types of generalized Ball curves. Comput. Aided Des. 1996, 28, 125–133. [Google Scholar] [CrossRef]
  23. Pihien, H.N.; Dejdumrong, N. Efficient algorithms for Bézier curves. Comput. Aided Geom. Des. 2000, 17, 247–250. [Google Scholar]
  24. Jaafar, W.; Nurhadani, W. Visualization of Curve and Surface Data Using Rational Cubic Ball Functions. Ph.D. Thesis, Universiti Sains Malaysia, Pulau Pinang, Malaysia, 2018. [Google Scholar]
  25. Weierstrass, K. Über die analytische Darstellbarkeit sogenannter willkürlicher Functionen einer reellen Veränderlichen. Sitzungsberichte Der Königlich Preußischen Akad. Der Wiss. Zu Berl. 1885, 2, 633–639. [Google Scholar]
  26. Lambert, J.D.; Watson, I.A. Symmetric multistip methods for periodic initial value problems. IMA J. Appl. Math. 1976, 18, 189–202. [Google Scholar] [CrossRef]
  27. Sarafyan, D. New algorithms for the continuous approximate solutions of ordinary differential equations and the upgrading of the order of the processes. Comput. Math. Appl. 1990, 20, 77–100. [Google Scholar] [CrossRef]
  28. Anake, T.A. Continuous Implicit Hybrid One-Step Methods for the Solution of Initial Value Problems of General Second-Order Ordinary Differential Equations. Ph.D. Thesis, Covenant University, Ogun State, Nigeria, 2011. [Google Scholar]
  29. Ascher, U. Discrete least squares approximations for ordinary differential equations. SIAM J. 1978, 15, 478–496. [Google Scholar] [CrossRef]
  30. Zheng, J.; Sederberg, W.T.; Johnson, W.R. Least squares methods for solving differential equations using Bezier control points. Appl. Numer. Math. 2004, 48, 237–252. [Google Scholar] [CrossRef]
  31. Yousef, F.; Alkam, O.; Saker, I. The dynamics of new motion styles in the time-dependent four-body problem: Weaving periodic solutions. Eur. Phys. J. Plus 2020, 135, 742. [Google Scholar] [CrossRef]
  32. Yousef, F.; Semmar, B.; Al Nasr, K. Incommensurate conformable-type three-dimensional Lotka–Volterra model: Discretization, stability, and bifurcation. Arab. J. Basic Appl. Sci. 2022, 29, 113–120. [Google Scholar] [CrossRef]
  33. Amaal, A.M. Approximate solution of differential equations of fractional orders using Bernstein-Bézier polynomial. Al-Mustansiriya J. Sci. 2012, 23, 65–74. [Google Scholar]
  34. Alavizadeh, S.R.; Maalek, G.F. Numerical solution of higher-order linear and nonlinear ordinary differential equations with orthogonal rational legendre functions. J. Math. Ext. 2014, 8, 109–130. [Google Scholar]
  35. Monterde, J. Bézier surfaces of minimal area: The Dirichlet approach. Comput. Aided Geom. Des. 2004, 21, 117–136. [Google Scholar] [CrossRef]
  36. Jameel, A.F.; Anakira, N.R.; Shather, A.H.; Saaban, A.; Alomari, A.K. Numerical algorithm for solving second order nonlinear fuzzy initial value problems. Int. J. Electr. Comput. Eng. 2020, 10, 6497–6506. [Google Scholar] [CrossRef]
  37. Hunter, J. Continuous Functions. Available online: https://www.math.ucdavis.edu/~hunter/book/ch2.pdf (accessed on 21 July 2005).
  38. Casselman, B. From Bézier to Bernstein; Feature Column from American Mathematical Society: Providence, RI, USA, 2008. [Google Scholar]
  39. Bhatti, A.; Karim, S.B. Approximation method using DP Ball curves for solving ordinary differential equations. Math. Stat. 2023, 11, 464–489. [Google Scholar] [CrossRef]
  40. Ghomanjani, F. A new approach for solving linear fractional integro-differential equations and multi variable order fractional differential equations. Proyecciones 2020, 39, 199–218. [Google Scholar] [CrossRef]
  41. Ibrahim, S. Numerical approximation method for solving differential equations. Eur. J. Sci. Eng. 2020, 6, 157–168. [Google Scholar]
  42. Aphirukmatakun, C.; Dejdumrong, N. An approach to polynomial curve comparison in geometric object database. Int. J. Comput. Sci. 2007, 2, 240–246. [Google Scholar]
  43. Dan, Y.; Xinmeng, C. Another type of generalized ball curves and surfaces. Acta Math. Sci. 2007, 27, 897–907. [Google Scholar] [CrossRef]
Figure 1. Cubic Ball curve basis functions.
Figure 1. Cubic Ball curve basis functions.
Mathematics 13 00250 g001
Figure 2. Said–Ball curve with degree 2 basis functions.
Figure 2. Said–Ball curve with degree 2 basis functions.
Mathematics 13 00250 g002
Figure 3. Said–Ball curve with degree 3 basis functions.
Figure 3. Said–Ball curve with degree 3 basis functions.
Mathematics 13 00250 g003
Figure 4. Said–Ball curve with degree 4 basis functions.
Figure 4. Said–Ball curve with degree 4 basis functions.
Mathematics 13 00250 g004
Figure 5. Said–Ball curve with degree 5 basis functions.
Figure 5. Said–Ball curve with degree 5 basis functions.
Mathematics 13 00250 g005
Figure 6. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 2.
Figure 6. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 2.
Mathematics 13 00250 g006
Figure 7. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 3.
Figure 7. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 3.
Mathematics 13 00250 g007
Figure 8. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) with Bézier curve of degree 5.
Figure 8. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) with Bézier curve of degree 5.
Mathematics 13 00250 g008
Figure 9. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 5.
Figure 9. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 5.
Mathematics 13 00250 g009
Figure 10. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 8.
Figure 10. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 8.
Mathematics 13 00250 g010
Figure 11. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 3.
Figure 11. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 3.
Mathematics 13 00250 g011
Figure 12. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 4.
Figure 12. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 4.
Mathematics 13 00250 g012
Figure 13. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 3.
Figure 13. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 3.
Mathematics 13 00250 g013
Figure 14. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 4.
Figure 14. The exact solution y e x (represented by circles with dashed lines) and the approximate solution y a x (represented by stars with dashed lines) for degree 4.
Mathematics 13 00250 g014
Table 1. Control points values of the Said–Ball curve for Example 1.
Table 1. Control points values of the Said–Ball curve for Example 1.
Control PointsValues
v 0 0
v 1 0
v 2 −0.5
v 3 1
Table 2. Control points values of the Bézier curve of degree 5.
Table 2. Control points values of the Bézier curve of degree 5.
Control PointsValues
b 0 0
b 1 0
b 2 0.0043
b 3 0.0033
b 4 0
b 5 0
Table 3. Control points values of the Bézier curve of degree 8.
Table 3. Control points values of the Bézier curve of degree 8.
Control PointsValues
b 0 0
b 1 0
b 2 0.0018082143
b 3 0.0036007143
b 4 0.0040078571
b 5 0.0030312500
b 6 0.0013717857
b 7 0
b 8 0
Table 4. Control points values of the Said–Ball curve of degree 5 for Example 2.
Table 4. Control points values of the Said–Ball curve of degree 5 for Example 2.
Control PointsValues
v 0 0
v 1 0
v 2 0.007665
v 3 0.005832
v 4 0
v 5 0
Table 5. Control points values of the Said–Ball curve of degree 8 for Example 2.
Table 5. Control points values of the Said–Ball curve of degree 8 for Example 2.
Control PointsValues
v 0 0
v 1 0
v 2 0.0033923547
v 3 0.0043452293
v 4 0.0040366036
v 5 0.0037710466
v 6 0.0025725930
v 7 0
v 8 0
Table 6. Control points values of the Said–Ball curve of degree 3 for Example 3.
Table 6. Control points values of the Said–Ball curve of degree 3 for Example 3.
Control PointsValues
v 0 0.0000000002
v 1 0.3617523077
v 2 0.5333872077
v 3 1.9999999952
Table 7. Control points values of the Said–Ball curve for Example 3.
Table 7. Control points values of the Said–Ball curve for Example 3.
Control PointsValues
v 0 0.0000000002
v 1 0.2343983997
v 2 0.6098651615
v 3 1.0154883261
v 4 2.0000000042
Table 8. Control points values of the Said–Ball curves of degree 3.
Table 8. Control points values of the Said–Ball curves of degree 3.
Control PointsValues
v 0 0.9999999941
v 1 0.5627636123
v 2 −0.5020055626
v 3 2.0000000006
Table 9. Control points values of the Said–Ball curve for Example 4.
Table 9. Control points values of the Said–Ball curve for Example 4.
Control PointsValues
v 0 0.9999999995
v 1 0.6991391125
v 2 0.6742822767
v 3 0.3137076492
v 4 1.9999999680
Table 10. Comparison of the maximum errors between the proposed method and the existing study (Bézier curve) for problem 2.
Table 10. Comparison of the maximum errors between the proposed method and the existing study (Bézier curve) for problem 2.
ErrorsBézier Curve [30]Proposed MethodError Accuracy Improved
Max Absolute Error0.00002050000.00000309550.0000174040
Max Relative Error0.06969308560.00122768010.0684654055
Max Percent Relative Error6.96930856140.12276800906.8465405524
Table 11. Comparison of the maximum errors between the proposed method and the existing study (direct inverse method) for problem 3.
Table 11. Comparison of the maximum errors between the proposed method and the existing study (direct inverse method) for problem 3.
ErrorsDirect Inverse Method [36] Proposed MethodError Accuracy Improved
Max Absolute Error0.01086102000.00113774310.0097232769
Max Relative Error0.03526551930.00521097840.0300545409
Max Percent Relative Error3.52655192670.52109783903.0054540877
Table 12. Comparison of the maximum errors between the proposed method and the existing study (steepest descent method) for problem 3.
Table 12. Comparison of the maximum errors between the proposed method and the existing study (steepest descent method) for problem 3.
ErrorsSteepest Descent Method [36] Proposed MethodError Accuracy Improved
Max Absolute Error0.01080730000.00113774310.0096695569
Max Relative Error0.03497713970.00521097840.0297661613
Max Percent Relative Error3.49771397300.52109783902.976616134
Table 13. Comparison of the maximum errors between the proposed method and the existing study (FMARI) for problem 3.
Table 13. Comparison of the maximum errors between the proposed method and the existing study (FMARI) for problem 3.
ErrorsFMARI [36] Proposed MethodError Accuracy Improved
Max Absolute Error0.01035793800.00113774310.0092201949
Max Relative Error0.03256422340.00521097840.027353245
Max Percent Relative Error3.25642234260.52109783902.7353245036
Table 14. Comparison of the maximum errors between the proposed method and the existing study (direct inverse method) for problem 4.
Table 14. Comparison of the maximum errors between the proposed method and the existing study (direct inverse method) for problem 4.
ErrorsDirect Inverse Method [36] Proposed MethodError Accuracy Improved
Max Absolute Error0.05215284000.00309981100.0490530290
Max Relative Error0.06380782790.00384626890.0599615590
Max Percent Relative Error6.3807827890.38462689265.9961558964
Table 15. Comparison of the maximum errors between the proposed method and the existing study (steepest descent method) for problem 4.
Table 15. Comparison of the maximum errors between the proposed method and the existing study (steepest descent method) for problem 4.
ErrorsSteepest Descent Method [36] Proposed MethodError Accuracy Improved
Max Absolute Error0.05215287200.00309981100.0490530610
Max Relative Error0.06380786700.00384626890.0599615981
Max Percent Relative Error6.38078670460.38462689265.9961598120
Table 16. Comparison of the maximum errors between the proposed method and the existing study (FMARI) for problem 4.
Table 16. Comparison of the maximum errors between the proposed method and the existing study (FMARI) for problem 4.
ErrorsFMARI [36] Proposed MethodError Accuracy Improved
Max Absolute Error0.05215282100.00309981100.04905301
Max Relative Error0.06380780460.00384626890.0599615357
Max Percent Relative Error6.38078046490.38462689265.9961535723
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bhatti, A.H.; Karim, S.; Amourah, A.; Jameel, A.F.; Yousef, F.; Anakira, N. A Novel Approximation Method for Solving Ordinary Differential Equations Using the Representation of Ball Curves. Mathematics 2025, 13, 250. https://doi.org/10.3390/math13020250

AMA Style

Bhatti AH, Karim S, Amourah A, Jameel AF, Yousef F, Anakira N. A Novel Approximation Method for Solving Ordinary Differential Equations Using the Representation of Ball Curves. Mathematics. 2025; 13(2):250. https://doi.org/10.3390/math13020250

Chicago/Turabian Style

Bhatti, Abdul Hadi, Sharmila Karim, Ala Amourah, Ali Fareed Jameel, Feras Yousef, and Nidal Anakira. 2025. "A Novel Approximation Method for Solving Ordinary Differential Equations Using the Representation of Ball Curves" Mathematics 13, no. 2: 250. https://doi.org/10.3390/math13020250

APA Style

Bhatti, A. H., Karim, S., Amourah, A., Jameel, A. F., Yousef, F., & Anakira, N. (2025). A Novel Approximation Method for Solving Ordinary Differential Equations Using the Representation of Ball Curves. Mathematics, 13(2), 250. https://doi.org/10.3390/math13020250

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