1 Introduction

PDEs are mathematical models that represent many physical processes in nature and are used to solve real-world problems such as biological, chemical, and physical problems.A few of the domains that have recently adopted PDEs as their vocabulary include elasticity, general relativity, fluid mechanics [1] sound, heat, and traffic flow [2], thoracic shock remedy for cardiac defibrillation [3], electrophysiology [4], and theoretical and numerical analysis of an optimal control problem related to waste water treatment [5]. A physical phenomenon where particles, energy, or other physical quantities are moved inside a physical system as a result of two processes diffusion and convection is described by the convection-diffusion equations, which combine the diffusion and convection (advection) equations [6]. The PDEs have been solved by a variety of analytical and numerical techniques throughout the last several decades, including the cubic B-spline collocation method. When you add a chemical to water that is flowing when being transported by the river, it diffuses together with a convection term \(au_x\), a diffusion term \(bu_{xx}\) also emerges. According to Korkmaz and Dag [7] the equations essentially act as a model for variables including mass, energy, heat, and velocity. They used the cubic B-spline differential quadrature method to solve the said problem. It has been used to represent heat transfer in a draining film and design the movement of water in soils. One of the most significant differential equations in engineering are convection diffusion equations, which have the simplest representation as

$$\begin{aligned} \frac{\partial \mu }{\partial \tau }+a \frac{\partial \mu }{\partial \varkappa } = b\frac{\partial \mu ^2}{\partial \varkappa ^2},\quad 0 \le \varkappa \le 1,\ \tau \ge 0, \end{aligned}$$
(1)

with initial conditions(ICs)

$$\begin{aligned} \mu (\varkappa ,0)=f{(\varkappa )}, \ 0\le \varkappa \le 1, \end{aligned}$$

boundary conditions(BCs)

$$\begin{aligned} \mu (0,\tau ) =0, \ \mu (1,\tau )=0, \quad \tau \ge 0. \end{aligned}$$

Where a and b denote the phase speed and the viscosity coefficient, both of which are taken to be positive. The function f that is presented is sufficiently smooth.The behaviour of physical particles like electrons and photons is described by the Klein-Gordon (KG) equations, which are the most crucial mathematical models in plasma physics, nonlinear optics, and quantum field theory. In several areas of physical sciences where the behaviour of wave solitons is significant, the KG equations are crucial [8]. For instance, in the recurrence of starting states and the influence of solitons in collisionless plasma [9]. The quantum amplitude for detecting a point particle at various locations is also described by the KG equations.

$$\begin{aligned} \frac{\partial ^2\mu }{\partial \tau ^2}+ a \frac{\partial ^2\mu }{\partial \varkappa ^2}+\phi (\mu ) =\nu (\varkappa , \tau ),\quad 0 \le \varkappa \le 1,\ \tau \ge 0, \end{aligned}$$
(2)

with ICs

$$\begin{aligned} \mu (\varkappa ,0)=h{(\varkappa )}, \ \ \frac{\partial \mu (\varkappa ,0)}{\partial \tau }= h_{1}(\varkappa ), \quad 0\le \varkappa \le 1, \end{aligned}$$

and BCs

$$\begin{aligned} \mu (0,\tau ) =f_0(\tau ), \quad \mu (1,\tau )=f_1(\tau ), \quad 0 \le \tau \le 1. \end{aligned}$$

Where \(\nu (\varkappa , \tau )\), a, \(f_0(\tau ), f_1(\tau ), h{(\varkappa )}, \) and \( h_1(\varkappa )\) are functions of dependent or independent constant or variables. To mimic a physical phenomenon, it frequently requires a mathematical model to describe it, and these models are frequently constructed in the form of differential equations employing physics concepts. For a deeper understanding and application of these phenomena, finding solutions to these problems is also necessary. In both physics and mathematics, numerical solutions to PDEs are still essential, and new methods must be created. It is very challenging to find an analytical solution to the PDEs that are used to describe many physical and biological phenomena; numerical approaches play an essential role in the process of finding solutions to these types of problems. The Laplace transform method [10], the finite difference method [11], the generalized finite-difference scheme [12], the finite line method [13], the spectral numerical method [14], the new iteration transform method [15], Adomain decomposition method [16] were used to solve the aforementioned problem. The numerical techniques that are based on wavelets are one of the persuasive alternatives to the existing numerical methods. The wavelet technique outperforms all other approaches, and continuous wavelets outperform discrete wavelets in comparison. The computational study of physical problems has gained popularity in recent years, owing to advances in numerical approaches and computer tools. Wavelet methods have emerged as a popular methodology due to its ability to provide efficient and accurate solutions to a wide range of physics problems. The Fibonacci wavelet technique, in particular, has emerged as an approach to investigate complicated physical processes, including but not limited to problems represented by PDEs like the KG equation and convection-diffusion equations. For some novel work, we refer to [17,18,19]. Wavelet methods achieved a great success in numerical analysis and approximation theory due to computational simplicity, straightforward methodology, and speedy convergence [20,21,22]. The most frequently used wavelets for solving differential equations include Legendre wavelets [23], Bernoulli wavelets and Gegenbauer wavelets [24], and Hermite wavelet method [25], Haar wavelets [26]. Fibonacci wavelets are an emerging approach for discovering efficient numerical solutions in the applied and computer sciences [27].

This FWCM may also be used for higher-order equations with minor adjustments. Because of these benefits, Fibonacci wavelets have drawn the attention of numerous researchers. Kumbinarsaiah [28] used the Fibonacci wavelet to solve hyperbolic PDEs. Shah [29] used the Fibonacci wavelet method for non-linear Hunter-Saxton equations and time fractional telegraph equations with Dirichlet boundary conditions. and many more applications of FWCM [30, 31]. Recently, researchers started looking at a useful method known as the wavelet method to stop these different extreme points based on the results of the prior study and the unique characteristics of PDEs. In this scenario, wavelet approaches are quite simple and decrease processing costs [32]. Wavelet families now include Fibonacci wavelets from Fibonacci polynomials. It has an advantage over other wavelet algorithms. Fibonacci polynomials \( P_m(x) \) have fewer coefficients per term compared to Legendre polynomials \( L_m(x) \). This characteristic can help minimize computational errors. The coefficients of Fibonacci polynomials can be easily obtained in computer programs using the Mathematica command ‘Fibonacci[m, x]‘. Fibonacci wavelets are compactly supported and constructed from Fibonacci polynomials over the interval \([0,1]\). As a direct consequence of this, we investigated two distinct kinds of PDEs using the FWCM. Prior to our work, no one had considered approaching these PDEs using the Fibonacci wavelet. In this study, we will investigate the effectiveness of the Fibonacci wavelet approach in solving physical problems represented by the KG equation and the convection-diffusion equations. We will look at the mathematical framework of the Fibonacci wavelet approach, such as the creation of operational matrices and the use of the FWCM to convert PDEs into algebraic systems.The FWCM determines the approximations accuracy and complexity by use of certain inputs including collocation points, boundary conditions, and polynomials degree. Using local analysis and multiresolution tools, the approach produces effective numerical solutions and sparse representation. Investigation of numerical results to a dynamical system has been done in [33]. It is adaptable to many differential equations, including ODEs and fractional equations such as fractional dynamical model to describe insects [34], COVID-19 model [35, 36], Predator prey model [37] and PDEs [38]. Numerical examples and simulations are presented to illustrate the applicability and accuracy of FWCM in solving KG and convection-diffusion equations, comparing our findings to precise solutions and other considered computational techniques in the literature. Recently, researchers have used different numerical techniques to investigate the solitons solutions for various classes of PDEs, we refer to [39,40,41,42]. Because of this, we were motivated to develop the FWCM for solving the KG and convection diffusion equations. In this article several key contributions, it introduces a method using Fibonacci wavelets for solving PDEs, transforms the problem into a solvable system of algebraic equations via spectral collocation, and employs the Newton method for solution. Additionally, the paper provides thorough error estimation and convergence analysis, demonstrating the method’s accuracy and efficiency through comparisons with exact solutions and existing methods, establishing the FWCM as a powerful tool for numerical analysis of PDEs and similar physical problems.

Outline of the article: A brief description of the Fibonacci wavelet and function approximation is given in Sect. 2. In Sect. 3, operational matrices of integration are discussed. In Sect. 4, a description of the method for solving the KG and convection diffusion equations and its error analysis are given. In Sect. 5, we considered four test problems to illustrate the efficiency and accuracy of the proposed numerical method. The obtained results show that the proposed technique is an effective tool for solving various other partial differential equations numerically. Section 6 contains a brief conclusion.

2 Fibonacci wavelet

For any \(\varkappa \in \mathbb {R}^{+}\), the recurrence relation defines the Fibonacci polynomials as follows [30]

$$\begin{aligned} \tilde{P}_{\textrm{n}+2}(\varkappa )=\varkappa \tilde{P}_{\textrm{n}+1}(\varkappa )+\tilde{P}_{\textrm{n}}(\varkappa ), \quad (\textrm{n} \in \mathbb {N}), \end{aligned}$$

with ICs

$$\begin{aligned} \tilde{P}_{0}(\varkappa )=0, \quad \tilde{P}_{1}(\varkappa )=1. \end{aligned}$$

The general formula used to define Fibonacci polynomials is

$$\begin{aligned} \tilde{P}_{\mathrm {n+1}}(\varkappa )= {\left\{ \begin{array}{ll}1, & \textrm{n}=0, \\ \varkappa , & \textrm{n}=1, \\ \varkappa \tilde{P}_{\textrm{n}}(\varkappa )+\tilde{P}_{\textrm{n}-1}(\varkappa ), & \textrm{n}\ge 2.\end{array}\right. } \end{aligned}$$

The following is how we define Fibonacci wavelets

$$\begin{aligned} \Psi _{\textrm{n}, \textrm{m}}(\varkappa )= {\left\{ \begin{array}{ll}\frac{2^{\frac{k-1}{2}}}{\sqrt{w_m}} \tilde{P}_{\textrm{m}}\left( 2^{k-1} \varkappa -\textrm{n}+1\right) , & \frac{\textrm{n}-1}{2^{k-1}} \le \varkappa <\frac{\textrm{n}}{2^{k-1}}, \\ 0, & \text{ otherwise. } \end{array}\right. } \end{aligned}$$
(3)

Where k is resolution level and the translation parameter is n respectively, with \(k=1,2,3,...,\) \(n=1,2,3,...2^{k-1}\) and \(\tilde{P}_{m}\) is the m-degree polynomials. Additionally, the Fibonacci polynomials power-form representation appears as follow

$$\begin{aligned} \tilde{P}_{\textrm{m}}(\varkappa )=\sum _{i=0}^{\lfloor \textrm{m} / 2\rfloor }\left( \begin{array}{c} \textrm{m}-i \\ i \end{array}\right) \varkappa ^{\textrm{m}-2 i} \quad (\textrm{m} \ge 0). \end{aligned}$$
(4)

Where \(\lfloor \cdot \rfloor \) stands for the well recognized floor function.

$$\begin{aligned} \begin{aligned} w_m&=\int _{0}^{1}(\tilde{P}(\varkappa ))^2 d\varkappa , \quad m=0,1,\cdots ,M-1\\&=\sum _{i=0}^{\lfloor \textrm{m} / 2\rfloor } \sum _{j=0}^{\lfloor \textrm{m} / 2\rfloor } \left( \begin{array}{c} \textrm{m}-i \\ i \end{array}\right) \left( \begin{array}{c} \textrm{m}-j \\ j \end{array}\right) \left( 2(m-i-j)+1\right) ^{-1}. \end{aligned} \end{aligned}$$
(5)

The Fibonacci polynomial has the following properties

$$\begin{aligned} & \int _0^\varkappa \tilde{P}_\textrm{n}(s) ds=\frac{1}{\textrm{n}+1}\left[ \tilde{P}_{n+1}(\varkappa )+\tilde{P}_{\textrm{n}-1}(\varkappa )-\tilde{P}_{\textrm{n}+1}(0)+\tilde{P}_{\textrm{n}-1}(0)\right] ,\nonumber \\ & \int _0^1 \tilde{P}_\textrm{n}(\varkappa ) \tilde{P}_\textrm{m}(\varkappa ) d \varkappa =\sum _{i=0}^{\lfloor \textrm{n} / 2\rfloor } \sum _{j=0}^{\lfloor \textrm{m} / 2\rfloor }\left( \begin{array}{c}\textrm{n}-i \\ i\end{array}\right) \left( \begin{array}{c}\textrm{m}-j \\ j\end{array}\right) \frac{1}{\textrm{n}+\textrm{m}-2 i-2 j+1}.\qquad \quad \end{aligned}$$
(6)

In particular, if \( k = 2,\quad M = 4,\) the eight basis functions are given by

$$\begin{aligned} & \left. \begin{array}{l} \psi _{1,0}(\varkappa )=\sqrt{2}, \\ \psi _{1,1}(\varkappa )=2 \sqrt{6} \varkappa , \\ \psi _{1,2}(\varkappa )=\sqrt{\frac{15}{14}}\left( 1+4 \varkappa ^{2}\right) , \\ \psi _{1,3}(\varkappa )=\sqrt{\frac{960}{38}}\left( 2\varkappa ^{3}+\varkappa \right) , \end{array}\right\} \quad 0 \le \varkappa <\frac{1}{2}. \end{aligned}$$
(7)
$$\begin{aligned} & \left. \begin{array}{l} \psi _{2,0}(\varkappa )=\sqrt{2}, \\ \psi _{2,1}(\varkappa )=\sqrt{6}(2 \varkappa -1), \\ \psi _{2,2}(\varkappa )=\sqrt{\frac{30}{7}}\left( 2 \varkappa ^{2}-2 \varkappa +1\right) ,\\ \psi _{2,3}(\varkappa )=\sqrt{\frac{480}{304}}\left( 8\varkappa ^{3}-12\varkappa ^{2}+10\varkappa -3\right) , \end{array}\right\} \quad \frac{1}{2}\le \varkappa <1. \end{aligned}$$
(8)

Any function \(f \in L^{2}[0,1)\) may be expressed using the Fibonacci wavelets as [30]

$$\begin{aligned} f(\varkappa ) \approx \sum _{\textrm{n}=1}^{2^{k-1}} \sum _{\textrm{m}=0}^{M-1} C_{\textrm{n}, \textrm{m}} \Psi _{\textrm{n}, \textrm{m}}(\varkappa ). \end{aligned}$$
(9)

Where

$$\begin{aligned} C_{\textrm{n}, \textrm{m}}=\left\langle f, \Psi _{\textrm{n}, \textrm{m}}\right\rangle =\int _{0}^{1} f(\varkappa ) \Psi _{\textrm{n}, \textrm{m}}(\varkappa ) d \varkappa , \end{aligned}$$

are the coefficients of Fibonacci wavelet. The following is how (9) expressed as a matrix:

$$\begin{aligned} f(\varkappa )=G^{T} \Psi (\varkappa ), \end{aligned}$$
(10)

where G is the row vector defined below:

$$\begin{aligned} G= & \left[ C_{1,0}, C_{1,1}, \ldots , C_{1, M-1}, C_{2,0}, C_{2,1}, \cdots , C_{2, M-1}, \ldots , C_{2^{k-1}, 0}, C_{2^{k-1}, 1}, \ldots , C_{2^{k-1}, M-1}\right] ^{T}.\nonumber \\ \end{aligned}$$
(11)

The matrix \(\Psi (\varkappa )\) in (10) is of order \(1 \times 2^{k-1} M\) Fibonacci wavelet matrix and is given by

$$\begin{aligned} \Psi (\varkappa )= & \left[ \Psi _{1,0}, \Psi _{1,1}, \cdots , \Psi _{1, M-1}, \Psi _{2,0}, \Psi _{2,1}, \ldots , \Psi _{2, M-1}, \ldots , \Psi _{2^{k-1}, 0},\right. \nonumber \\ & \left. \Psi _{2^{k-1}, 1}, \ldots , \Psi _{2^{k-1}, M-1}\right] ^{T}. \end{aligned}$$
(12)

Finally, we take into account the collocation points:

$$\begin{aligned} \begin{aligned} \varkappa _{\ell }&=\frac{2 \ell -1}{2^{k} M}, \quad \ell =1,2, \ldots , 2^{k-1} M. \end{aligned} \end{aligned}$$
(13)

3 Operational matrices of integration

Our objective here is to start formalising the building of operational integration matrices that correlate to Fibonacci wavelets. We emphasise that the methodology is based on Chen’s method [18].

$$\begin{aligned} \int _{0}^{\varkappa } \Psi _{n,m}(x) d x = P \Psi _{n,m}(\varkappa ), \end{aligned}$$
(14)

where P represents the operational matrix of order \(2^{k-1}M \times 2^{k-1}M.\) Fibonacci wavelet \(\Psi _{n,m}\) can be written as

$$\begin{aligned} & \Psi _{\textrm{n}, \textrm{m}}(\varkappa )= \frac{2^{\frac{k-1}{2}}}{\sqrt{w_m}} \tilde{P}_{\textrm{m}}\left( 2^{k-1} \varkappa -\textrm{n}+1\right) \chi _{[ \frac{\textrm{n}-1}{2^{k-1}}, \frac{\textrm{n}}{2^{k-1}}]}, \nonumber \\ & \quad n= 1,2,3...,2^{k-1}, \ m=0,1,...,M-1, \end{aligned}$$
(15)

relation (15) adopts the following format using Fibonacci polynomial power series illustration (4)

$$\begin{aligned} \Psi _{\textrm{n}, \textrm{m}}(\varkappa )= \frac{2^{\frac{k-1}{2}}}{\sqrt{w_m}} \sum _{i=0}^{\lfloor \textrm{m} / 2\rfloor } \left( \begin{array}{c}\textrm{m}-i \\ i\end{array}\right) (2^{k-1}\varkappa -n+1)^{m-2i} \chi _{[ \frac{\textrm{n}-1}{2^{k-1}}, \frac{\textrm{n}}{2^{k-1}}]}(\varkappa ). \nonumber \\\end{aligned}$$
(16)
$$\begin{aligned} \Psi _{\textrm{n}, \textrm{m}}(\varkappa )= \frac{2^{\frac{k-1}{2}}}{\sqrt{w_m}} \sum _{i=0}^{\lfloor \textrm{m} / 2\rfloor } \sum _{j=0}^{\lfloor \textrm{n} / 2\rfloor }\left( \begin{array}{c}\textrm{m}-i \\ i\end{array}\right) \left( \begin{array}{c}\textrm{m}-j \\ j\end{array}\right) 2^{kj-j}\varkappa ^{j}(1-n)^{m-2i-j} \chi _{[ \frac{\textrm{n}-1}{2^{k-1}}, \frac{\textrm{n}}{2^{k-1}}]}(\varkappa ).\nonumber \\\end{aligned}$$
(17)

Integrate (17) we obtain

$$\begin{aligned} & \int _{0}^{\varkappa }\Psi _{\textrm{n}, \textrm{m}}(x)dx \nonumber \\ & \quad = \frac{2^{\frac{k-1}{2}}}{\sqrt{w_m}} \sum _{i=0}^{\lfloor \textrm{m} / 2\rfloor } \sum _{j=0}^{\lfloor \textrm{m} / 2\rfloor }\left( \begin{array}{c}\textrm{m}-i \\ i\end{array}\right) \left( \begin{array}{c}\textrm{m}-j \\ j\end{array}\right) 2^{kj-j}\varkappa ^{j}(1-n)^{m-2i-j} F_{j}(\varkappa ),\nonumber \\ \end{aligned}$$
(18)

where

$$\begin{aligned} & F_{j}(\varkappa )\\ & =\int _{n-1/2^{k-1}}^{\varkappa } r^{j}\chi _{[ \frac{\textrm{n}-1}{2^{k-1}}, \frac{\textrm{n}}{2^{k-1}}]}(\varkappa ) dr+\int _{n-1/2^{k-1}}^{n/2^{k-1}} r^{j}\chi _{[ \frac{\textrm{n}-1}{2^{k-1}}, \frac{\textrm{n}}{2^{k-1}}]}(\varkappa ) dr \quad 0 \le \varkappa \le m-2i. \end{aligned}$$

The function \(F_{j}(\varkappa )\) can also be written as

$$\begin{aligned} F_j(\varkappa )\backsimeq \sum _{p=1}^{2^{k-1}} \sum _{q=0}^{M-1}\alpha _{pq}\Psi _{p,q}(\varkappa ).\end{aligned}$$
(19)

Subsituting equation (19) in (18) we have

$$\begin{aligned} \int _{0}^{\varkappa } \Psi _{n,m}(x)dx\backsimeq \sum _{p=1}^{2^{k-1}} \sum _{q=0}^{M-1}\theta _{pq}^{n,m}\Psi _{p,q}(\varkappa ),\end{aligned}$$
(20)

where

$$\begin{aligned} \theta _{pq}^{n,m}= \frac{2^{\frac{k-1}{2}}}{\sqrt{w_n}} \sum _{i=0}^{\lfloor \textrm{m} / 2\rfloor } \sum _{j=0}^{m-2}\left( \begin{array}{c}\textrm{m}-i \\ i\end{array}\right) (2^{kj-j}\varkappa )^{j}(1-n)^{m-2i-j} \alpha _{pq}.\end{aligned}$$
(21)

As a result, the integration P operating matrix looks like this.

$$\begin{aligned} P=\left( \begin{array}{cccc} \theta _{1,0}^{1,0} & \theta _{1,0}^{1,1} & \ldots & \theta _{2^{k-1},M-1}^{1,0} \\ \theta _{1,0}^{1,1} & \theta _{1,1}^{1,1} & \ldots & \theta _{2^{k-1},M-1}^{1,1} \\ \vdots & \vdots & \ldots & \vdots \\ \theta _{1,0}^{2^{k-1},M-1} & \theta _{1,1}^{2^{k-1}M-1} & \ldots & \theta _{2^{k-1},M-1}^{2^{k-1},M-1} \end{array}\right) . \end{aligned}$$
(22)

We consider the case \( k = 2, M =3,\) and integrating equation (7)and (8) about the collocations points yields as follows:

$$\begin{aligned} & \int _{0}^{\varkappa }\Psi _{1,0}(r)dr=\left( 0,\frac{\sqrt{3}}{6},0,1/2,0,0\right) ^T \Psi _{6\times 6}(\varkappa ), \\ & \int _{0}^{\varkappa }\Psi _{1,1}(r)dr=\left( -\frac{\sqrt{3}}{4},0,\frac{\sqrt{35}}{10},\frac{\sqrt{3}}{4},0,0\right) ^T \Psi _{6\times 6}(\varkappa ), \\ & \int _{0}^{\varkappa }\Psi _{1,2}(r)dr=\left( -\frac{29\sqrt{105}}{1680},\frac{\sqrt{35}}{35},1/4,\frac{\sqrt{5}}{21},0,0\right) ^T \Psi _{6\times 6}(\varkappa ), \\ & \int _{0}^{\varkappa }\Psi _{2,0}(r)dr=\left( 0,0,0,0,\frac{\sqrt{3}}{6},0\right) ^T \Psi _{6\times 6}(\varkappa ), \\ & \int _{0}^{\varkappa }\Psi _{2,1}(r)dr=\left( 0,0,0,\frac{\sqrt{3}}{4},0,\frac{\sqrt{35}}{10},\right) ^T\Psi _{6\times 6}(\varkappa ), \\ & \int _{0}^{\varkappa }\Psi _{2,2}(r)dr=\left( 0,0,0,\frac{29\sqrt{105}}{1680},\frac{\sqrt{35}}{35},1/4,\right) ^T\Psi _{6\times 6}(\varkappa ). \end{aligned}$$

Therefore equation (14) takes the form

$$\begin{aligned} \int _{0}^{\varkappa }\Psi _{6\times 1}(x)dx=P_{6\times 6} \Psi _6(\varkappa ). \end{aligned}$$

4 Description of method

Consider the KG Eq. (2) as follows

$$\begin{aligned} \frac{\partial ^2\mu }{\partial \tau ^2}+ a \frac{\partial ^2\mu }{\partial \varkappa ^2}+\phi (\mu ) =\nu (\varkappa , \tau ), \end{aligned}$$
(23)

with ICs

$$\begin{aligned} \mu (\varkappa ,0)=h{(\varkappa )}, \ \ \frac{\partial \mu (\varkappa ,0)}{\partial \tau }= h_{1}(\varkappa ), \ 0\le \varkappa < 1, \end{aligned}$$

and BCs

$$\begin{aligned} \mu (0,\tau ) =f_0(\tau ), \ \mu (1,\tau )=f_1(\tau ), \quad 0 \le \tau < 1. \end{aligned}$$

Now expanding the highest order derivative we have

$$\begin{aligned} \ddot{\mu }''(\varkappa ,\tau _n) \backsimeq \sum _{l=0}^{2^{k-1}M }{c_{l}\psi (\varkappa )}=G^T\Psi (\varkappa ), \end{aligned}$$
(24)

where \(c_{l}, \ l= 1,2,3,...N\) are unknown Fibonacci coefficient to be calculated and “.." and \(``_{''}"\) represent differentiation w.r.t \(\tau \) and \(\varkappa \) respectively.

Integrate Eq. (24) twice w.r.t to \(\tau \) between limit \(\tau _n\) to \(\tau \) we obtain

$$\begin{aligned} & \dot{\mu }''(\varkappa ,\tau ) = (\tau -\tau _n) \sum _{l=0}^{2^{k-1}M }{c_{l}\psi (\varkappa )}+\dot{\mu }''(\varkappa ,\tau _n),\nonumber \\ & \mu ''(\varkappa ,\tau ) = \frac{1}{2}\Delta \tau ^2 \sum _{l=0}^{2^{k-1}M }{c_{l}\psi (\varkappa )}+ \Delta \tau \dot{\mu }''(\varkappa ,\tau _n)+\mu ''(\varkappa ,\tau _n), \end{aligned}$$
(25)

where \(\Delta \tau = \tau -\tau _n\), integrating (25) w.r.t. \(\varkappa \) twice with limits 0 to \( \varkappa \)

$$\begin{aligned} & \mu '(\varkappa ,\tau )=\frac{1}{2}\Delta ^2\tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,1}(\varkappa ) \nonumber \\ & + \Delta \tau [\dot{\mu }'(\varkappa ,\tau _n)-\dot{\mu }'(0,\tau _n)] +\mu '(\varkappa ,\tau _n)+\mu '(0,\tau )-\mu '(0,\tau _n). \end{aligned}$$
(26)
$$\begin{aligned} & \mu (\varkappa ,\tau )={\frac{1}{2}}\Delta ^2\tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(\varkappa )+ \Delta \tau [\dot{\mu }(\varkappa ,\tau _n)- \dot{\mu }(0,\tau _n)-\varkappa \dot{\mu }'(0,\tau _n)] +\nonumber \\ & \quad \mu (\varkappa ,\tau _n)-\mu (0,\tau _n)+\mu (0,\tau ) -\varkappa [\mu '(0,\tau _n)-\mu '(0,\tau )]. \end{aligned}$$
(27)

Using BCs, Eq. (27) and put \(\varkappa =1\) can be expressed as

$$\begin{aligned} \mu '(0,\tau )-\mu '(0,\tau _n)= & f_1(\tau )-\frac{1}{2}\Delta ^2\tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(1)- \Delta \tau [\dot{f_{1}}( \tau _n)-\dot{f}_0(\tau _n)\nonumber \\ & - {f'_0}(\tau _n)]+f_1(\tau _n)-f_0(\tau )+f_0({\tau _n}). \end{aligned}$$
(28)

Substituting Eq. (28) in Eq. (27) we obtain

$$\begin{aligned} & \mu (\varkappa , \tau )=\frac{1}{2} \Delta ^2\tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(\varkappa ) +\Delta \tau [\dot{\mu }(\varkappa , \tau _n)-\dot{f}_0(\tau _n)-\varkappa \dot{f}'_0(\tau _n) ] +\mu (\varkappa ,\tau _n)\nonumber \\ & \quad + {f}_0(\tau )-{f}_0(\tau _n) +\varkappa f_{1}(\tau ) \nonumber \\ & \quad -\frac{\varkappa }{2}\Delta ^2\tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(\varkappa ) -\varkappa _l \Delta \tau [\dot{f_1}(\tau _n)-\dot{f}_0(\tau _n)-\dot{f'_0}(\tau _n)] \nonumber \\ & \quad -\varkappa _l[f_1(\tau _{n})+f_0(\tau )-f_0(\tau _{n})]. \end{aligned}$$
(29)

Differentiating (29) twice with respect to \(\tau \) we obtain

$$\begin{aligned} \dot{\mu }(\varkappa ,\tau )= & \Delta \tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,1}(\varkappa ) + \dot{\mu }(\varkappa , \tau _n)-\dot{f}_0(\tau _{n})-\varkappa \dot{f'}_0(\tau _{n})+\dot{f}_0(\tau )+\varkappa \dot{f}_1(\tau ) \nonumber \\ & -\varkappa \Delta \tau \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(\varkappa )- \varkappa [\dot{f}_1(\tau _n)-\dot{f}_0(\tau _n)-\dot{f'}_0(\tau _n)+\dot{f}_0(\tau )]. \end{aligned}$$
(30)
$$\begin{aligned} \ddot{\mu }(\varkappa ,\tau )= & \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,1}(\varkappa )+\ddot{f}_0(\tau )+\varkappa \ddot{f}_1(\tau )-\varkappa \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(\varkappa )+\varkappa \ddot{f}_0(\tau ). \end{aligned}$$
(31)

After subsituting (31) (29) and (25) in (2) we have

$$\begin{aligned} & \sum _{l=1}^{2^{k-1}M}c_{l}P_{l,2}(\varkappa )+\ddot{f_0}(\tau )+\varkappa \ddot{f_1}(\tau )-\varkappa \sum _{l=0}^{2^{k-1}M }c_{l}P_{l,2}(\varkappa )+\varkappa \ddot{f_0}(\tau )+ \nonumber \\ & \quad a( \frac{1}{2} \Delta ^2\tau \sum _{l=0}^{2^{k-1}M}{c_{l}\psi (\varkappa )} +\Delta \tau \dot{\mu }''(\varkappa , \tau _n)+\mu ''(\varkappa ,\tau _n) )+\nonumber \\ & \quad \phi \{ \frac{1}{2} \Delta ^2\tau \sum _{l=0}^{2^{k-1}M } c_{l}P_{l,2}(\varkappa )+ \Delta \tau (\dot{\mu }(\varkappa , \tau _n)-\dot{f}_0(\tau _n)-\varkappa \dot{f}'_0(\tau _n))+\nonumber \\ & \quad \mu (\varkappa ,\tau _n)+ f_0(\tau ) -f_0(\tau _{n}) +\varkappa f(\tau ) \nonumber \\ & \quad -\varkappa \left( \frac{1}{2} \Delta ^2\tau \sum _{l=0}^{2^{k-1}M} c_{l}P_{l,2}(\varkappa )+\Delta \tau (\dot{f_1}(\tau _n)-\dot{f_0}(\tau _n)-\dot{f_1}'(\tau _n))+f_1(\tau _{n})+f_0(\tau )-{f_0}(\tau _n)\right) \}\nonumber \\ & \quad =\nu (\varkappa ,\tau ). \end{aligned}$$
(32)

This is a system of algebraic equations, solving this system of equations using Newton methods we find the Fibonacci wavelet coefficient \(c_{l}\) after substituting these coefficient in (29) we get the approximate solution.

Similarly for convection diffusion equation, we expand the term containing highest derivative in term of fibonacci wavelets as

$$\begin{aligned} \dot{\mu }''(\varkappa ,\tau _n) =\sum _{l=0}^{2^{k-1}M }{c_{l}\psi (\varkappa )}=G^T\Psi (\varkappa ), \end{aligned}$$
(33)

where \(c_{l}, \ l= 1,2,3,...N\) is the Fibonacci coefficient to be calculated and “." and \(``_{''}"\) represent differentiation w.r.t \(\tau \) and \(\varkappa \) respectively.

$$\begin{aligned} \dot{\mu }(\varkappa ,\tau )+a\left( \mu '(\varkappa ,\tau )\right) =b\left( \mu ''(\varkappa ,\tau )\right) . \end{aligned}$$
(34)

This is the algebraic equation of (1). By integrating the Eq. (33), we find the subsequent derivatives the same as above, and then substituting in (34), we find the Fibonacci coefficient and approximate solution.

4.1 Error estimation and numerical results

In this subsection, we discuss the estimation of error and convergence analysis of Fibonacci wavelets method.

Theorem 4.1

[27] Suppose \(\mu \in C^M[0,1)\) and \(Y_{M}= \text {span}\{\psi _{0}(\zeta ),\psi _{1}(\zeta ),...,\psi _{M-1}(\zeta )\} \). If \(\mu _{M}(\zeta )=A^{T}\hat{F}(\zeta )\) is the best approximation of \(\mu (\zeta )\) out of \(Y_{M}\) on the interval \([\frac{\textrm{n}-1}{2^{k-1}},\frac{\textrm{n}}{2^{k-1}}]\) the error bound of the approximate solution \(\mu ^{*}(\zeta )\) by using Fibonacci wavelet on interval [0, 1) would be obtained in the following form:

$$\begin{aligned} \Vert e(\zeta )\Vert _{2} = \left\| \mu -\mu ^*\right\| _2 \le \frac{R}{M ! \sqrt{2 M+1}}, \end{aligned}$$

here R= \(\textrm{max}_{\varkappa \in [0,1)}|\mu ^M (\varkappa )|\)

Theorem 4.2

[27] If a continuous function \(f(\zeta )\) be a square integrable function defined on [0,1) which is bounded by some constant \(\tilde{M}\) i.e, \(|f(\zeta )|\le \tilde{M}\), then the function \(f(\zeta )\) can be expanded as the sum of Fibonacci wavelet and the series converges to \(f(\zeta )\) uniformly, i.e,

$$\begin{aligned} f(\zeta )=\sum _{\textrm{m}=1}^{2^{k-1}} \sum _{\textrm{n}=0}^{M-1} g_{\textrm{m}, \textrm{n}} \psi _{\textrm{m}, \textrm{n}}(\zeta ), \end{aligned}$$

where

$$\begin{aligned} g_{\textrm{m}, \textrm{n}}=\left\langle f(\zeta ), \psi _{\textrm{m}, \textrm{n}}(\zeta )\right\rangle . \end{aligned}$$

The precision of the Fibonacci wavelets collocation method is measured by the absolute error \(L_2\) and maximum absolute errors \(L_{\infty }\) by using the formulas given as

$$\begin{aligned} & L_2 = \Vert \mu {(\varkappa ,\tau )}-\mu _{n,m}(\varkappa ,\tau )\Vert , \\ & L_{\infty }= max|\mu {(\varkappa ,\tau )}-\mu _{n,m}(\varkappa ,\tau )|, \end{aligned}$$

where \(\mu {(\varkappa ,\tau )}\) and \(\mu _{n,m}(\varkappa ,\tau )\) are the exact and approximate solutions respectively. The whole computational work is done on (Matlab–R2022a).

5 Illustrative examples

Here, we present some examples to verify our results.

Example 1

Assume that \(a=0.1\) and \(b=0.01\) in (1) as follows:

$$\begin{aligned} \frac{\partial \mu }{\partial \tau }+0.1 \frac{\partial \mu }{\partial \varkappa } = 0.01\frac{\partial \mu ^2}{\partial \varkappa ^2},\ 0< \varkappa < 1,\ \tau \ge 0, \end{aligned}$$
(35)

with ICs

$$\begin{aligned} \mu (\varkappa ,0)=e^{5\varkappa }sin(\pi \varkappa ), \ 0\le \varkappa \le 1, \end{aligned}$$

and BCs

$$\begin{aligned} \mu (0,\tau ) =0, \ \mu (1,\tau )=0, \quad \tau \ge 0. \end{aligned}$$

The analytic solution is

$$\begin{aligned} \mu (\varkappa ,\tau )=e^{5\varkappa -(0.25-0.01\pi ^2)\tau }sin(\pi \varkappa ). \end{aligned}$$

Fig. 1 shows the comparison of exact and approximate solutions in two and three dimensions. Also, the behaviour of solutions has been shown for \(\tau =0.1,0.3,0.5.\) In Table 1, we compare the maximum absolute error \(L_\infty \) for various values of time \(\tau \), enabling one to analyze the suggested approach effectiveness and accuracy. Clearly, the Fibonacci wavelet findings are more effective than the approach in [32].

Fig. 1
figure 1

a Comparison of Exact and approximate solution at \(\tau =0.01,0.02,0.03\) b Exact solution c Approximate solution

Table 1 Absolute error\((L_{\infty })\) are compared at different value of \(\tau \) of Example 1

Example 2

Consider the case when \(a=0.22, \ b =0.5,\)

$$\begin{aligned} \frac{\partial \mu }{\partial \tau }+0.22 \frac{\partial \mu }{\partial \varkappa } = 0.5\frac{\partial \mu ^2}{\partial \varkappa ^2},\ 0< \varkappa < 1,\ \tau \ge 0, \end{aligned}$$
(36)

with ICs

$$\begin{aligned} \mu (\varkappa ,0)=e^{0.22\varkappa }sin(\pi \varkappa ), \ 0\le \varkappa \le 1, \end{aligned}$$

and BCs

$$\begin{aligned} \mu (0,\tau ) =0, \ \mu (1,\tau )=0, \quad \tau \ge 0. \end{aligned}$$

The analytic solution is

$$\begin{aligned} \mu (\varkappa ,\tau )=e^{0.22\varkappa -(0.0242-0.05\pi ^2)\tau }sin(\pi \varkappa ). \end{aligned}$$
Fig. 2
figure 2

a Exact and Approximate solutions are compared at \(\tau =0.01,0.03,0.05\) b Exact solution in 3D C Approximate solution in 3D

Fig. 2 shows a comparison of exact and approximate solutions in two and three dimensions. Also, the behaviour of solutions has been shown for \(\tau =0.01,0.03,0.05.\) In Table 2, we compare the maximum absolute error \(L_\infty \) for various values of time \(\tau \), enabling one to evaluate the effectiveness and correctness of the proposed approach. Obviously, the results obtained with FWCM are more efficient than the method in [32].

Table 2 For different value of \(\tau \) the absolute error are compared for Example 2

Example 3

Consider the KG Eq. (2), we have

$$\begin{aligned} \frac{\partial ^2\mu }{\partial \tau ^2}- \frac{\partial ^2\mu }{\partial \varkappa ^2}+\mu =2 \sin (\varkappa ), \end{aligned}$$
(37)

with ICs

$$\begin{aligned} \mu (\varkappa ,0)=\sin {(\varkappa )}, \ \ \frac{\partial \mu (\varkappa ,0)}{\partial \tau }= 1, \ 0\le \varkappa \le 1, \end{aligned}$$

and BCs

$$\begin{aligned} \mu (0,\tau ) =\sin (\tau ), \ \mu (1,\tau )=\sin (1)+sin(\tau ), \end{aligned}$$

The analytic solution \( \mu (\varkappa ,\tau )=\sin (\varkappa )+sin(\tau ).\)

Fig. 3
figure 3

a Comparison of proposed method with exact solutions at \(\tau =0.01\) b Exact solution c Approximate solution

Fig. 3 compares exact and approximate solutions in two and three dimensions.Table 3 compares the absolute error for various time \(\tau \) values, allowing one to assess the feasibility and correctness of the suggested strategy.

Table 3 Maximum absolute error \((L_{\infty })\) are compared at different value of \(\tau \) for Example 3

Example 4

$$\begin{aligned} \frac{\partial ^2\mu (\varkappa ,\tau )}{\partial \tau ^2} -\frac{x^2}{2}\frac{\partial ^2\mu (\varkappa ,\tau )}{\partial \varkappa ^2}=0 \ \tau \ge 0, \end{aligned}$$
(38)

with ICs

$$\begin{aligned} \mu (\varkappa ,0)=\varkappa , \ \ \frac{\partial \mu (\varkappa ,0)}{\partial \tau }= \varkappa ^2, \ 0\le z \le 1, \end{aligned}$$

BCs

$$\begin{aligned} { \mu (0,\tau )}= 0, \ \mu (1,\tau )= 1+2 \sinh (\tau ), \quad 0 \le \tau \le 1. \end{aligned}$$

The exact solution is

$$\begin{aligned} \mu (\varkappa ,\tau )=\varkappa +\varkappa ^2 \sinh (\tau ). \end{aligned}$$

By the FWCM we obtain the system of equation given by

$$\begin{aligned} \sum _{l=0}^{2^{k-1}M} c_{l}P_{l,2}(\varkappa _l)-\varkappa _{l}P_{i,2}(1)]= \frac{\varkappa _l}{2}u''(\varkappa _l,\tau _n)+\varkappa _l sinh(\tau _{n+1}),\end{aligned}$$
(39)

solved it using Newton’s method to find the Fibonacci coefficient \(c_{l}\).

Fig. 4
figure 4

a Comparison of approximate solution and exact solution b Approximate solution at different time levels

Table 4 For different value of time \(\tau =0.01,0.02,0.03\) the absolute error is calculated for Example 4

In two and three dimensions, Fig. 4 compares the exact and approximative solutions.Table 4 provides the absolute error for various time \(\tau =0.01,0.02,0.03\) values, allowing one to assess the efficacy and precision of the suggested strategy. It is obvious that the results obtained with Fibonacci wavelets are very effective when compared to other techniques. The obtained results are presented in the form of graphs in two and three dimensions. The graphs clearly illustrate the convergence behavior, error distribution, and computational performance, offering visual confirmation of the method’s effectiveness. Graphical analysis and interpretation of these results will enhance understanding and demonstrate the practical advantages of the proposed technique.

6 Conclusion

This article introduced a Chen and Hesio-based technique for operational integration matrices of Fibonacci wavelets. By building the operational matrices of integration of the Fibonacci wavelet, the simplification was achieved, and as a result, the problems were reduced to sparse systems of linear equations, which are solved by Newton’s methods. Four test problems are used to illustrate how well the Fibonacci wavelet collocation approach works, and the outcomes are contrasted with those of other methods that have been published. Tables and figures presenting the numerical solutions allow us to see how well the Fibonacci solutions coincide with the actual solutions and FDM. When compared to other published methodologies, the results obtained are significantly better. The accuracy of the current solution grows as the values of k and M increase. This method offers physicists a strong and useful choice for effectively analyzing these kinds of PDEs and may be applied to similar physics problems.