Introduction

In numerous cases, we can find the solution of the linear or non-linear functional equations by Polynomial Expansion Scheme (PES) or matrix methods (in the sense of collocation scheme) based on famous polynomials such as Taylor, Chebyshev, Berstein, Legendre, Laguerre, Hermite, Bessel, Lucas, and Boubaker [13, 1013].

In many problems, utilizing polynomial functions can assist us in finding reasonable solutions. For example, in physics, engineering, and economics, we can find many computational methods applying polynomial functions. A list of polynomial functions and their applications can be found in [2]. In recent years, a great number of new families of polynomials are introduced, including q-analogue of Hermite polynomials [6], d-orthogonal polynomials by Cheikha and Romdhane [5], unified family of generalized Apostol-Bernoulli, and Euler and Genocchi polynomials by El-Desouky and Gomaa [7].

In numerical solution of an Ordinary Differential Equation (ODE), we usually put a linear combination of polynomial functions with unknown coefficients in the main equation and then find the unknowns. This can be done using collocation or, Galerkin or Tau methods. As we know, in this scheme, we can select a set of orthogonal or orthonormal polynomial functions for the solution.

In the current research, we aim to introduce a new class of polynomial functions equipped with a parameter that can be used for computational solution of linear or non-linear functional equations, including ordinary differential equations, partial differential equations, or integral equations. The extra parameter contributes to obtaining more accurate results. Numerical examples demonstrate the ability of this class of polynomial functions to obtain better solutions.

Polynomial functions

In this section, a new class of polynomial functions is introduced. This definition is based on the Chebyshev polynomial of the second kind, \(U_n(x)\). These functions have already been employed. For example, Boubaker polynomials are defined as \(B_n(x)=U_n(\frac{x}{2})+3U_{n-2}(\frac{x}{2})\), for \(n\ge 2\). Furthermore, the modified Boubaker polynomials [13] are defined as \(\tilde{B}_n(x)=6 x U_{n-1}(x)-2U_n(x)\), for \(n\ge 1\).

Definition 2.1

Suppose that a is an arbitrary constant and \(U_n(x)\) is the Chebyshev polynomial of the second kind. Let \(A_0(x)=1\) for any \(n \ge 1\). The new class of polynomial functions is defined by the following:

$$\begin{aligned} A_n(x) = a x U_{n-1}(x)+U_n(x). \end{aligned}$$

We can find very easily that

$$\begin{aligned} A_1(x)= & {} (2+a)x, \\ A_2(x)= & {} -1+2(2+a)x^2, \\ A_3(x)= & {} -(4+a)x+4(2+a)x^3,\\ A_4(x)= & {} 1- 4(3+a)x^2+8(2+a)x^4,\\ A_5(x)= & {} (6+a)x-4(8+3a)x^3+16(2+a)x^5,\\ A_6(x)= & {} -1+6(4+a)x^2-16(5+2a)x^4+32(2+a)x^6,\\ \vdots \\ A_{n+1}(x)= & {} 2 x A_n(x) - A_{n-1}(x). \end{aligned}$$

We can see that for \(n\ge 2\), \(A_n(x)=(1+\frac{a}{2})U_n(x)+\frac{a}{2}U_{n-2}(x).\)

Proposition 2.1

Let \(T_n(x)\) be the Chebyshev polynomial of the first kind. Then, \(A_n(x)=(a+1)\frac{x}{n} T'_n(x)+T_n(x)\) for \(n\ge 1\).

Proposition 2.2

Let \(\lfloor . \rfloor\) designate the floor function. Then, for \(n\ge 1\),

$$\begin{aligned} A_n(x) = \sum _{k=0}^{\lfloor \frac{n}{2} \rfloor } (-1)^k \left( \begin{array}{c} n-k \\ k \\ \end{array} \right) \frac{(a+2)n-2(a+1)k}{2(n-k)} \big ( 2x \big )^{n-2k}. \end{aligned}$$

Proposition 2.3

The polynomial \(A_n(x)\) for \(n\ge 0\) satisfies the following equation:

$$\begin{aligned} (x^2-1) \big ( 1+a+n+a(2+a)nx^2 \big ) y''(x) \\ + x \big ( 3(1+n)+a(3+(2+a)n(2+x^2)) \big ) y'(x) \\ -n \big ( (1+a+n)(2+2a+n)+a(2+a)n^2 x^2 \big ) y(x) =0. \end{aligned}$$

Proposition 2.4

For \(n\ge 0\), the following equations are obtained:

$$\begin{aligned} \sum _{k=0}^n A_k(x)A_k(y)=-\frac{a}{2}+\frac{A_{n+1}(x) A_n(y)- A_n(x) A_{n+1}(y)}{2(x-y)}, \end{aligned}$$
$$\begin{aligned} \sum _{k=0}^n A_k^2(x)=-\frac{a}{2}+\frac{1}{2}\Big ( A'_{n+1}(x)A_n(x)-A'_n(x)A_{n+1}(x)\Big ). \end{aligned}$$

Proposition 2.5

By considering the inner product

$$\begin{aligned} (f,g)=\int _{-1}^{1}\sqrt{1-x^2}f(x)g(x)\text {d}x, \end{aligned}$$

we have

$$\begin{aligned} (A_n(x),A_m(x))= \left\{ \begin{array}{cc} \frac{\pi }{2} &{} n=m=0, \\ \frac{1}{8}(2+a)^2 \pi &{} n=m=1, \\ \frac{1}{4}(2+2a+a^2) \pi &{} n=m\ge 2, \\ \frac{a \pi }{4} &{} |n-m|=2, nm=0, \\ \frac{1}{8}a(2+a) \pi &{} |n-m|=2, nm\ne 0, \\ 0 &{} \text {otherwise}. \end{array} \right. \end{aligned}$$

Corollary 2.1

The system \(\{A_{4n}(x)\}_{n=0}^\infty\) is an orthogonal system of polynomial functions, with respect to the inner product defined in Proposition 2.5.

The mth-order non-linear differential equation

In this section, the new class of polynomial functions is considered to find the numerical solutions of some non-linear differential equations. The solutions obtained show the efficiency of this class of functions. In this class, we have an unknown parameter, and by selecting it, we can reduce the error of PES. In all of the following examples, the least square method is applied so as to find the unknown parameter. All iterative algorithms, which we needed for our initial guess, were initialized at zero.

The mth-order non-linear differential equation

$$\begin{aligned} \sum _{k=0}^m \sum _{r=0}^n P_{k,r}(x) y^r(x) y^{(k)}(x)=g(x),\ \ 0\le a \le x \le b, \end{aligned}$$
(1)

with the mixed boundary conditions

$$\begin{aligned} \sum _{k=0}^{m-1} \big ( a_{j,k} y^{(k)}(a)+b_{j,k} y^{(k)}\big )=\gamma _j,\ \ j=0,1,\ldots ,m-1, \end{aligned}$$
(2)

where y is an unknown function, g and \(P_{k,r}\) are continuous functions, and \(a_{j,k}\), \(b_{j,k}\), and \(\gamma _j\) are real or complex constants, is considered in [13]. By PFS collocation method, we can solve this problem. In this method, we approximate the solution of (1) in the truncated series form:

$$\begin{aligned} y(x) \approx y_N(x)=\sum _{k=0}^N c_k A_k(x), \end{aligned}$$
(3)

where \(c_k\), \(k=0,1,\ldots ,N\) are the unknown coefficients. In this method, \(N\ge m\) is selected in any positive integer number. The matrix form of the collocation method is discussed in [13]. In this method, a non-linear system with \(N+1\) equations is constructed to find \(N+1\) unknowns. However, here, we have \(N+2\) unknowns, i.e., \(c_k\), \(k=0,1,\ldots ,N\) and the unknown parameter of a, of the new class of polynomial functions of \(A_k\). By adding one collocation point to the set of points, we can construct a non-linear system with \(N+2\) equations. Via the least square method, we can minimize the \(L_2\) norm of the residual in the augmented non-linear system to obtain a. Afterwards, we can continue the matrix collocation method to find other unknowns like [13].

Example 3.1

We consider the Riccati differential equation:

$$\begin{aligned} y'(x)=y(x)-2y^2(x),\ \ 0\le x \le 1, \end{aligned}$$

with the initial condition \(y(0)=1\), [4, 9, 13], which is a special case of (1). The exact solution is \(y(x)=1/(2-e^{-x})\). Table 1 indicates the absolute error \(e_N(x)=|y(x)-y_N(x)|\) for different methods, including the Taylor method [4], the decomposition method [9], the PES by Bessel polynomials [13], and the present method. Table 2 demonstrates a comparison between the new class of polynomial functions in present method and Boubaker polynomials, pointing to the efficiency of the new class of polynomial functions.

Table 1 Numerical results of the absolute error functions of Example (3.1), with \(a=2.59490427\)
Table 2 Numerical results of the absolute error functions of Example (3.1), with \(a=13.50332999\)

Example 3.2

We consider the non-linear Abel differential equation of the second kind:

$$\begin{aligned} y(x)y'(x)+xy(x)+y^2(x)+x^2y^3(x)=xe^{-x}+x^2e^{-3x},\ \ 0\le x \le 1, \end{aligned}$$

with the initial condition \(y(0)=1\), [8, 13], which is special case of (1). The exact solution is \(y(x)=e^{-x}\). Table 3 shows the absolute error \(e_N(x)\) for different methods. The Taylor method [8] in first column, the PES by Bessel polynomials in second column, the PES by Boubaker polynomials in third column, and the present method in last column are shown. Table 4 shows a comparison with Boubaker polynomials, and so shows the efficiency of the new class of polynomial functions.

Table 3 Numerical results of the absolute error functions of Example (3.2), with \(a=4.01764012\)
Table 4 Numerical results of the absolute error functions of Example (3.1), with \(a=37.74361705\)

Conclusion

In this study, a new class of polynomial functions equipped with a parameter was introduced. We found that the extra parameter permits us to obtain more accurate results. By solving Riccati and Abel non-linear differential equations, the ability and efficiency of this class of polynomial functions were supported. The application of this class of polynomials in solving complicated ordinary differential equations and partial differential equations and integral equations is expected.