Introduction

There are many branches of science, such as control theory and financial mathematics, which leads to integro-differential equations (IDEs). In modern mathematics, IDEs mostly occur in many applied areas including engineering, physics and biology [1,2,3,4,5,6]. The resolution of many problems in physics and engineering leads to differential and integral equations in bounded or unbounded domains. For example, problems occur in coastal hydrodynamics and in meteorology. The integrals appear in many physical contexts, containing the product of orthogonal polynomials or special functions. For example, the wave functions of the hydrogen as well as 2-, 3- and, in general, n-dimensional harmonic oscillator encompassing Laguerre polynomials and the evaluation of integrals having the product of these polynomials are essential [7].

In the fields of applied mathematics and scientific computing, spectral methods [8,9,10] became popular among researchers as a robust numerical tool. The remarkable results are obtained, using the spectral methods, to solve the problems [11,12,13] in different fields of natural sciences. Moreover, system of IDEs found in the field of science and engineering, such as nano-hydrodynamics [14], glass-forming process [15], dropwise condensation [16], wind ripples in the desert [17], modeling the competition between tumor cell and the immune system [18] and examining the noise term phenomenon [19, 20]. Since analytical solutions of such type of problems are hard to determine, therefore the numerical methods are required. Many researchers presented numerical methods for system of IDEs, for instance the Tau method [21], Fibonacci matrix method [22], Bessel matrix method [23, 24], Adomian decomposition method (ADM) [25], modified decomposition method [26], Galerkin methods with hybrid functions [27,28,29,30, 38], differential transform method [31] and the block pulse functions method [32].

The main objective of this paper is to study the concept of the system of IDEs and manipulate the Laguerre matrix method for solving the system of linear Fredholm IDEs.

The following system of linear Fredholm IDEs has been considered

$$\begin{aligned} \sum _{k=0}^{n}\sum _{q=1}^{r}\rho _{p,q}^{k}(s)u_{q}^{(k)}(s)=f_{p}(s)+\int _{a}^{b}\sum _{q=1}^{r}K_{p,q}(s,t)u_{q}(t)\hbox {d}t, \quad p=1,2,\ldots ,r,\quad 0\le a\le s\le b, \end{aligned}$$
(1)

subject to

$$\begin{aligned} \sum _{q=0}^{n-1}(a_{p,q}^{k}u_{k}^{(q)}(a)+b_{p,q}^{k}u_{k}^{(q)}(b))=\mu _{k,p},\quad p=0,1,\ldots ,n-1,\quad k=1,2,\ldots ,r, \end{aligned}$$
(2)

where \(u_{q}(s)\) is the unknown and \(\rho _{p,q}^{k},\,K_{p,q}(s,t),\,f_{p}(s)\) are the known functions defined in the interval [ab], the kernel function \(K_{p,q}(s,t)\) can be expanded using Maclaurin series and also \(a_{p,q}^{k},\,b_{p,q}^{k},\,\mu _{k,p}\) are real constants.

Taking \(u_{p}(s)\) to be the approximate solution of Eq. (1) in terms of truncated Laguerre series yields

$$\begin{aligned} u_{p}(s)=\sum _{n=0}^{N}\alpha _{p,n}\,L_{n}(s),\quad p=1,2,\ldots ,r, \quad a\le s\le b, \end{aligned}$$
(3)

where \(\alpha _{p,n}\) are the unknown Laguerre coefficients, to be determined for \(n=0,1,2,\ldots ,N\), and \(L_{n}(s)\) be the Laguerre polynomial defined by

$$\begin{aligned} L_{n}(s)=\sum _{k=0}^{n}\frac{(-1)^{k}}{k!}\left( \begin{array}{c} n \\ n-k \\ \end{array} \right) s^{k},\quad 0\le s\le b<\infty . \end{aligned}$$

Matrix relation

The matrix form of Laguerre polynomials \(L_{n}(s)\) is as follows

$$\begin{aligned} \mathbf{L }^{{\mathrm{T}}}(s)=\mathbf{H }\,\mathbf{S }^{{\mathrm{T}}}(s)\Leftrightarrow \mathbf{L }(s)=\mathbf{S }(s)\,\mathbf{H }^{{\mathrm{T}}}, \end{aligned}$$
(4)

where

$$\begin{aligned} \mathbf{L }(s)=\left( \begin{array}{ccccc} L_{0}(s)&\quad L_{1}(s)&\quad L_{2}(s)&\quad \ldots&\quad L_{N}(s) \end{array}\right) ,\quad \mathbf{S }(s)=\left( \begin{array}{ccccc} 1&\quad s&\quad s^{2}&\quad \ldots&\quad s^{N} \end{array}\right) , \end{aligned}$$

and

$$\begin{aligned} \mathbf{H }=\left( \begin{array}{ccccc}\frac{(-1)^{0}}{0!}\left( \begin{array}{c} 0 \\ 0 \\ \end{array} \right) &\quad 0 &\quad 0 &\quad \ldots &\quad 0 \\ \frac{(-1)^{0}}{0!}\left( \begin{array}{c} 1 \\ 0 \\ \end{array} \right) &\quad \frac{(-1)^{1}}{1!}\left( \begin{array}{c} 1 \\ 1 \\ \end{array} \right) &\quad 0 &\quad \ldots &\quad 0 \\ \frac{(-1)^{0}}{0!}\left( \begin{array}{c} 2 \\ 0 \\ \end{array} \right) &\quad \frac{(-1)^{1}}{1!}\left( \begin{array}{c} 2 \\ 1 \\ \end{array} \right) &\quad \frac{(-1)^{2}}{2!}\left( \begin{array}{c} 2 \\ 2 \\ \end{array} \right) &\quad \ldots &\quad 0\\ \vdots &\quad \vdots &\quad \vdots &\quad \ddots &\quad \vdots \\ \frac{(-1)^{0}}{0!}\left( \begin{array}{c} N \\ 0 \\ \end{array} \right) &\quad \frac{(-1)^{1}}{1!}\left( \begin{array}{c} N \\ 1 \\ \end{array} \right) &\quad \frac{(-1)^{2}}{2!}\left( \begin{array}{c} N \\ 2 \\ \end{array} \right) &\quad \ldots &\quad \frac{(-1)^{N}}{N!}\left( \begin{array}{c} N \\ N \\ \end{array} \right) \\ \end{array}\right). \end{aligned}$$

The relation defined in Eq. (3) can be written in matrix form, as

$$\begin{aligned} (u_{q}(s))=\mathbf L(s) \,\mathbf{A }_{q},\quad q=1,2,\ldots ,r, \end{aligned}$$

where

$$\begin{aligned} \mathbf{A }_{q}=(\alpha _{q,0},\alpha _{q,1},\ldots ,\alpha _{q,N})^{{\mathrm{T}}}. \end{aligned}$$

or from Eq. (4)

$$\begin{aligned} (u_{q}(s))=\mathbf S(s) \mathbf{H }^{{\mathrm{T}}}\mathbf{A }_{q},\quad q=1,2,\ldots ,r. \end{aligned}$$
(5)

Also, the relation between the matrix \(\mathbf{S }(s)\) and its first derivative is

$$\begin{aligned} \mathbf{S }^{(1)}(s)=S(s)\mathbf{B },\quad \mathbf{S }^{(0)}(s)=\mathbf{S }(s), \end{aligned}$$
(6)

where

$$\begin{aligned} \mathbf{B }=\left( \begin{array}{ccccc} 0 &{}\quad 1 &{}\quad 0 &{}\quad \ldots &{}\quad 0 \\ 0 &{}\quad 0 &{}\quad 2 &{}\quad \ldots &{}\quad 0 \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad 0 &{}\quad \ldots &{}\quad N \\ 0 &{}\quad 0 &{}\quad 0 &{}\quad \ldots &{}\quad 0 \\ \end{array} \right) . \end{aligned}$$

It follows from Eqs. (4) and (6) that

$$\begin{aligned} \mathbf{S }^{(p)}(s)=\mathbf{S }^{(p-1)}(s)\mathbf{B }=\mathbf{S }(s)(\mathbf{B })^{p},\quad p=0,1,2,\ldots ,n, \end{aligned}$$
(7)

and thus

$$\begin{aligned} \mathbf{L }^{(p)}(s)=\mathbf{S }^{(p)}(s)\mathbf{H }^{{\mathrm{T}}}=\mathbf{S }(s)(\mathbf{B })^{p}\mathbf{H }^{{\mathrm{T}}},\quad p=0,1,2,\ldots ,n. \end{aligned}$$
(8)

The following recurrence relation is obtained using Eqs. (5), (7) and (8)

$$\begin{aligned} u_{q}^{(p)}(s)&= \mathbf{L }^{(p)}(s)\mathbf{A }_{q}\nonumber \\&= \mathbf{S }^{(p)}(s)\mathbf{H }^{{\mathrm{T}}}\mathbf{A }_{q}\nonumber \\&= \mathbf{S }(s)(\mathbf{B })^{p}\mathbf{H }^{{\mathrm{T}}}\mathbf{A }_{q},\quad p=0,1,2,\ldots ,n,\,q=1,2,\ldots ,r. \end{aligned}$$
(9)

Hence, the matrices \(\mathbf{u }^{(p)}(s)\) can be expressed as

$$\begin{aligned} \mathbf{u }^{(p)}(s)=\overline{\mathbf{S }}(s)(\overline{\mathbf{B }})^{p}\overline{\mathbf{H }}\mathbf{A },\quad p=0,1,2,\ldots ,n, \end{aligned}$$
(10)

where

$$\begin{aligned} \mathbf{u }^{(p)}(s)&= \left( \begin{array}{c} u_{1}^{(p)}(s) \\ u_{2}^{(p)}(s) \\ \vdots \\ u_{r}^{(p)}(s) \\ \end{array} \right) ,\quad \mathbf{A }=\left( \begin{array}{c} \mathbf{A }_{1} \\ \mathbf{A }_{2} \\ \vdots \\ \mathbf{A }_{r} \\ \end{array} \right) ,\quad \overline{\mathbf{S }}(s)=\left( \begin{array}{cccc} \mathbf{S }(s)&{}\quad 0 &{}\quad \ldots &{}\quad 0 \\ 0 &{}\quad \mathbf{S }(s) &{}\quad \ldots &{}\quad 0 \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{S }(s) \\ \end{array} \right) _{r\times r},\\ \overline{\mathbf{B }}&= \left( \begin{array}{cccc} \mathbf{B } &{}\quad 0 &{}\quad \ldots &{}\quad 0 \\ 0 &{}\quad \mathbf{B } &{}\quad \ldots &{}\quad 0 \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{B }\\ \end{array} \right) _{r\times r}\quad \mathrm{and}\quad \overline{\mathbf{H }}=\left( \begin{array}{cccc} \mathbf{H }^{{\mathrm{T}}}&{}\quad 0 &{}\quad \ldots &{}\quad 0 \\ 0 &{}\quad \mathbf{H }^{{\mathrm{T}}} &{}\quad \ldots &{}\quad 0 \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{H }^{{\mathrm{T}}} \\ \end{array} \right) . \end{aligned}$$

Method of solution

The matrix form of the system defined in Eq. (1) is as follows

$$\begin{aligned} \sum _{p=0}^{n}\mathbf{P }_{p}(s)\mathbf{u }^{(p)}(s)={{\varvec{f}}}(s)+\mathbf{I }(s), \end{aligned}$$
(11)

where

$$\begin{aligned} \mathbf{u }^{(p)}(s)&= \left( \begin{array}{c} u_{1}^{(p)}(s) \\ u_{2}^{(p)}(s) \\ \vdots \\ u_{r}^{(p)}(s) \\ \end{array} \right) ,\quad {{\varvec{f}}}=\left( \begin{array}{c} f_{1}(s) \\ f_{2}(s) \\ \vdots \\ f_{r}(s) \\ \end{array} \right) ,\quad \mathbf{P }_{p}(s)=\left( \begin{array}{cccc} \rho _{1,1}^{p}(s)&{}\quad \rho _{1,2}^{p}(s)&{}\quad \ldots &{}\quad \rho _{1,r}^{p}(s) \\ \rho _{2,1}^{p}(s)&{}\quad \rho _{2,2}^{p}(s)&{}\quad \ldots &{}\quad \rho _{2,r}^{p}(s) \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ \rho _{r,1}^{p}(s)&{}\quad \rho _{r,2}^{p}(s)&{}\quad \ldots &{}\quad \rho _{r,r}^{p}(s)\\ \end{array} \right) ,\\ \mathbf{I }(s)&= \int _{a}^{b}\mathbf{K }(s,t)u(t)\hbox {d}t,\quad \mathbf{K }(s,t)=\left( \begin{array}{cccc} K_{1,1}(s,t)&{}\quad K_{1,2}(s,t)&{}\quad \ldots &{}\quad K_{1,r}(s,t) \\ K_{2,1}(s,t)&{}\quad K_{2,2}(s,t)&{}\quad \ldots &{}\quad K_{2,r}(s,t) \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ K_{r,1}(s,t)&{}\quad K_{r,2}(s,t)&{}\quad \ldots &{}\quad K_{r,r}(s,t)\\ \end{array} \right) ,\quad \mathbf{I }=\left( \begin{array}{c} I_{1}(s) \\ I_{2}(s) \\ \vdots \\ I_{r}(s) \\ \end{array} \right) \end{aligned}$$

and

$$\begin{aligned} I_{p}(s)=\int _{a}^{b}\sum _{q=1}^{r} K_{p,q}(s,t)u_{q}(t). \end{aligned}$$
(12)

Using truncated Taylor and Laguerre series to approximate the kernel \(K_{p,q}(s,t)\) yields

$$\begin{aligned} K_{p,q}(s,t)=\sum _{m=0}^{N}\sum _{n=0}^{N}k_{pq}^{t}s^{m}t^{n}\quad \mathrm{and}\quad K_{p,q}(s,t)=\sum _{m=0}^{N}\sum _{n=0}^{N}k_{pq}^{l}L_{m}(s)L_{n}(t), \end{aligned}$$
(13)

where

$$\begin{aligned} k_{pq}^{t}=\frac{1}{m!n!}\frac{\partial ^{m+n}K(0,0)}{\partial s^{m}\partial t^{n}},\quad m,n=0,1,2,\ldots ,N,\quad p,q=0,1,2,\ldots ,r. \end{aligned}$$

Equation (13) can be put into the matrix form, as

$$\begin{aligned} K_{p,q}(s,t)=\mathbf{S }(s)\mathbf{K }_{pq}^{t}\mathbf{S }^{{\mathrm{T}}}(t),\quad \mathbf{K }_{pq}^{t}=\left( k_{pq}^{t}\right) , \end{aligned}$$
(14)

and

$$\begin{aligned} K_{p,q}(s,t)=\mathbf{L }(s)\mathbf{K }_{pq}^{l}\mathbf{L }^{{\mathrm{T}}}(t), \quad \mathbf{K }_{pq}^{l}=\left( k_{pq}^{l}\right) . \end{aligned}$$
(15)

Using Eqs. (5) and (15) in Eq. (12) to get the matrix form of the integral part yields

$$\begin{aligned} (I_{p}(s))&= \int _{a}^{b}\sum _{q=0}^{r}\mathbf{L }(s)\mathbf{K }_{pq}^{l}\mathbf{L }^{{\mathrm{T}}}(t)\mathbf{S }(t)\mathbf{H }^{{\mathrm{T}}}\mathbf{A }_{q} \hbox {d}t\nonumber \\&= \sum _{q=0}^{r}\int _{a}^{b}\mathbf{L }(s)\mathbf{K }_{pq}^{l}\mathbf{L }^(T)(t)\mathbf{S }(t)\mathbf{H }^{{\mathrm{T}}}\mathbf{A }_{q} \hbox {d}t\nonumber \\&= \sum _{q=0}^{r}\mathbf{L }(s)\mathbf{K }_{pq}^{l}\mathbf{Q }\mathbf{A }_{q}, \end{aligned}$$
(16)

such that

$$\begin{aligned} \mathbf{Q }&= \int _{a}^{b}\mathbf{L }^{{\mathrm{T}}}(t)\mathbf{S }(t)\mathbf{H }^{{\mathrm{T}}}\hbox {d}t\\&= \int _{a}^{b}\mathbf{H }\mathbf{S }^{{\mathrm{T}}}(t)\mathbf{S }(t)\mathbf{H }^{{\mathrm{T}}}\hbox {d}t=\mathbf{H }\mathbf{M }\mathbf{H }^{{\mathrm{T}}}, \end{aligned}$$

where

$$\begin{aligned} \mathbf{M }&=\int _{a}^{b}\mathbf{S }^{{\mathrm{T}}}(t)\mathbf{S }(t)\hbox {d}t=(m_{ij}), \quad m_{ij}=\frac{b^{i+j+1}-a^{i+j+1}}{i+j+1},\\ & \quad i,j=0,1,2,\ldots ,N. \end{aligned}$$

Using Eq. (4) in Eq. (16) leads to

$$\begin{aligned} (I_{p}(s))=\sum _{q=0}^{r}\mathbf{S }(s)\mathbf{H }^{{\mathrm{T}}} \mathbf{K }_{pq}^{l}\mathbf{Q }\mathbf{A }_{q}. \end{aligned}$$
(17)

In order to determine the system of equations in matrix form, replacing the collocation points defined by

$$\begin{aligned} s_{t}=a+\frac{b-a}{N}t,\quad t=0,1,2,\ldots ,N, \end{aligned}$$
(18)

in Eq. (11), leads to

$$\begin{aligned} \sum _{p=0}^{n}\mathbf{P }_{p}(s_{t})\mathbf{u }^{(p)}(s_{t})={{\varvec{f}}}(s_{t})+\mathbf{I }(s_{t}) \end{aligned}$$

or

$$\begin{aligned} \sum _{p=0}^{n}\mathbf{P }_{p}\mathbf{U }^{(p)}={{\varvec{F}}}+\mathbf{I }, \end{aligned}$$
(19)

where

$$\begin{aligned}&\mathbf{P }_{p}=\left( \begin{array}{cccc} \mathbf{P }_{p}(s_{0})&{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad \mathbf{P }_{p}(s_{1})&{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{P }_{p}(s_{N})\\ \end{array} \right) ,\quad \mathbf{U }^{(p)}=\left( \begin{array}{c} \mathbf{u }^{(p)}(s_{0})\\ \mathbf{u }^{(p)}(s_{1})\\ \vdots \\ \mathbf{u }^{(p)}(s_{N})\\ \end{array} \right) ,\quad {{\varvec{F}}}=\left( \begin{array}{c} {\varvec{f}}(s_{0})\\ {{\varvec{f}}}(s_{1})\\ \vdots \\ {{\varvec{f}}}(s_{N})\\ \end{array} \right) \\&{\mathrm{and}}\quad \mathbf{I }=\left( \begin{array}{c} \mathbf{I }(s_{0})\\ \mathbf{I }(s_{1})\\ \vdots \\ \mathbf{I }(s_{N})\\ \end{array} \right) . \end{aligned}$$

Using the collocation points in Eq. (10) yields

$$\begin{aligned} \mathbf{u }^{(p)}(s_{t})&=\overline{\mathbf{S }}(s_{t})(\overline{\mathbf{B }})^{p}\overline{\mathbf{H }}\mathbf{A },\quad t=0,1,2,\ldots ,N,\\ & \quad p=0,1,2,\ldots ,r, \end{aligned}$$
(20)

which can be written as

$$\begin{aligned} \mathbf{U }^{(p)}=\mathbf{S }(\overline{\mathbf{B }})^{p}\overline{\mathbf{H }}\mathbf{A }, \end{aligned}$$

where

$$\begin{aligned} \mathbf{S }=\left( \begin{array}{c} \overline{\mathbf{S }}(s_{0})\\ \overline{\mathbf{S }}(s_{1})\\ \vdots \\ \overline{\mathbf{S }}(s_{N})\\ \end{array} \right) \quad \mathrm{and}\quad \overline{\mathbf{S }}(s_{t})=\left( \begin{array}{cccc} \mathbf{S }(s_{t}) &{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad \mathbf{S }(s_{t}) &{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{S }(s_{t})\\ \end{array} \right) _{r\times r},\quad \begin{array}{c} t=0,1,2,\ldots ,N, \\ p=0,1,2,\ldots ,r. \end{array} \end{aligned}$$

Substituting the collocation points in Eq. (17) leads to

$$\begin{aligned} (I_{p}(s_{t}))&=\sum _{q=0}^{r}\mathbf{S }(s_{t}) \mathbf{H }^{{\mathrm{T}}}\mathbf{K }_{pq}^{l}\mathbf{Q }\mathbf{A }_{q}, \quad t=0,1,2,\ldots ,N,\\ & \quad p=0,1,2,\ldots ,r. \end{aligned}$$
(21)

Similarly, substituting the collocation points into the matrix \(\mathbf{I }(s)\) of Eq. (11) and using Eq. (21) yields

$$\begin{aligned} \mathbf{I }(s_{t})=\overline{\mathbf{S }}(s_{t})\overline{\mathbf{H }}\mathbf{K }_{l}\overline{\mathbf{Q }}\mathbf{A },\,\,t=0,1,2,\ldots ,N,\,\,p=0,1,2,\ldots ,r, \end{aligned}$$
(22)

where

$$\begin{aligned} \mathbf{I }(s_{t})&= \left( \begin{array}{c} I_{1}(s_{t})\\ I_{2}(s_{t})\\ \vdots \\ I_{r}(s_{t})\\ \end{array} \right) ,\quad \overline{\mathbf{S }}(s_{t})=\left( \begin{array}{cccc} \mathbf{S }(s_{t}) &{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad \mathbf{S }(s_{t}) &{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{S }(s_{t})\\ \end{array} \right) _{r\times r},\quad \overline{\mathbf{H }}=\left( \begin{array}{cccc} \mathbf{H }^{{\mathrm{T}}} &{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad \mathbf{H }^{{\mathrm{T}}} &{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{H }^{{\mathrm{T}}}\\ \end{array} \right) ,\\ \mathbf{K }_{l}&= \left( \begin{array}{cccc} \mathbf{K }^{l}_{11} &{}\quad \mathbf{K }^{l}_{12} &{}\quad \ldots &{}\quad \mathbf{K }^{l}_{1r}\\ \mathbf{K }^{l}_{21} &{}\quad \mathbf{K }^{l}_{22} &{}\quad \ldots &{}\quad \mathbf{K }^{l}_{2r}\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ \mathbf{K }^{l}_{r1} &{}\quad \mathbf{K }^{l}_{r2} &{}\quad \ldots &{}\quad \mathbf{K }^{l}_{rr}\\ \end{array} \right) ,\quad \overline{\mathbf{Q }}=\left( \begin{array}{cccc} \mathbf{Q } &{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad \mathbf{Q } &{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad \mathbf{Q }\\ \end{array} \right) \quad {\mathrm{and}}\quad \mathbf{A }=\left( \begin{array}{c} \mathbf{A }_{1}\\ \mathbf{A }_{2}\\ \vdots \\ \mathbf{A }_{r} \\ \end{array} \right) . \end{aligned}$$

Thus, using Eq. (22) in \(\mathbf{I }\) defined in Eq. (19) gives

$$\begin{aligned} \mathbf{I }=\left( \begin{array}{c} \mathbf{I }(s_{0})\\ \mathbf{I }(s_{1})\\ \vdots \\ \mathbf{I }(s_{N})\\ \end{array} \right) =\mathbf{S }\overline{\mathbf{H }}\mathbf{K }_{l}\overline{\mathbf{Q }}\mathbf{A }. \end{aligned}$$
(23)

Hence, from Eq. (19) the fundamental matrix equation of the system defined in Eq. (1), using Eqs. (20) and (23), is obtained as under

$$\begin{aligned} \left[ \sum _{p=0}^{n}\mathbf{P }_{p}\mathbf{S }(\overline{\mathbf{B }})^{p}\overline{\mathbf{H }}-\mathbf{S }\overline{\mathbf{H }}\mathbf{K }_{l}\overline{\mathbf{Q }}\right] \mathbf{A }={{\varvec{F}}}. \end{aligned}$$
(24)

\(r(N+1)\times r(N+1)\) and \(r(N+1)\times 1\) are the dimensions of the respective matrices \(\mathbf{P }_{p},\,\mathbf{S },\,(\overline{\mathbf{B }})^{p},\,\overline{\mathbf{H }},\,\mathbf{K }_{l}, \,\overline{\mathbf{Q }}\) and AF. Moreover, Eq. (24) is written in more instructive form, as

$$\begin{aligned} \mathbf{W }\mathbf{A }={{\varvec{F}}},\quad \mathrm{or}\quad (\mathbf{W };{{\varvec{F}}}), \end{aligned}$$
(25)

where

$$\begin{aligned} \mathbf{W }= (w_{m,n})= \sum _{p=0}^{n}\mathbf{P }_{p}\mathbf{S }(\overline{\mathbf{B }})^{p}\overline{\mathbf{H }}-\mathbf{S }\overline{\mathbf{H }}\mathbf{K }_{l}\overline{\mathbf{Q }},\,\,\,m,n=1,2,\ldots ,r(N+1). \end{aligned}$$

The conditions defined in Eq. (2) can be expressed in the following matrix form

$$\begin{aligned} \sum _{q=0}^{n-1}\left[ a_{p,q}^{1}u_{1}^{(q)}(a)+b_{p,q}^{1}u_{1}^{(q)}(b)\right]&= \mu _{1,p},\\ \sum _{q=0}^{n-1}\left[ a_{p,q}^{2}u_{2}^{(q)}(a)+b_{p,q}^{2}u_{2}^{(q)}(b)\right]&= \mu _{2,p},\\&\vdots \\ \sum _{q=0}^{n-1}\left[ a_{p,q}^{r}u_{r}^{(q)}(a)+b_{p,q}^{r}u_{r}^{(q)}(b)\right]&= \mu _{r,p} \end{aligned}$$

or

$$\begin{aligned} \sum _{q=0}^{n-1}\left[ a_{q}^{1}u_{1}^{(q)}(a)+b_{q}^{1}u_{1}^{(q)}(b)\right]&= \mu _{1},\\ \sum _{q=0}^{n-1}\left[ a_{q}^{2}u_{2}^{(q)}(a)+b_{q}^{2}u_{2}^{(q)}(b\right]&= \mu _{2},\\&\vdots \\ \sum _{q=0}^{n-1}\left[ a_{q}^{r}u_{r}^{(q)}(a)+b_{q}^{r}u_{r}^{(q)}(b)\right]&= \mu _{r}, \end{aligned}$$

where

$$\begin{aligned} \mu _{p}=\left( \begin{array}{c} \mu _{p,0}\\ \mu _{p,1}\\ \vdots \\ \mu _{p,n-1} \\ \end{array} \right) _{n\times 1},\quad a_{q}^{p}=\left( \begin{array}{c} a_{0,q}^{p}\\ a_{1,q}^{p}\\ \vdots \\ a_{n-1,q}^{p}\\ \end{array} \right) _{n\times 1},\quad b_{q}^{p}=\left( \begin{array}{c} b_{0,q}^{p}\\ b_{1,q}^{p}\\ \vdots \\ b_{n-1,q}^{p} \\ \end{array} \right) _{n\times 1},\quad p=1,2,\ldots ,r. \end{aligned}$$

or briefly

$$\begin{aligned} \sum _{q=0}^{n-1}\left[ a_{q}u^{(q)}(a)+b_{q}u^{(q)}(b)\right] =\mu , \end{aligned}$$
(26)

where

$$\begin{aligned} a_{q}=\left( \begin{array}{cccc} a_{q}^{1} &{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad a_{q}^{2}&{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad a_{q}^{r}\\ \end{array} \right) _{r\times r},\quad b_{q}=\left( \begin{array}{cccc} b_{q}^{1} &{}\quad 0 &{}\quad \ldots &{}\quad 0\\ 0 &{}\quad b_{q}^{2}&{}\quad \ldots &{}\quad 0\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots \\ 0 &{}\quad 0 &{}\quad \ldots &{}\quad b_{q}^{r}\\ \end{array} \right) _{r\times r}\quad {\mathrm{and}} \quad \mu =\left( \begin{array}{c} \mu _{1}\\ \mu _{2}\\ \vdots \\ \mu _{r} \\ \end{array} \right) _{r\times 1}. \end{aligned}$$

Putting the values of \(u^{(q)}(a)\) and \(u^{(q)}(b)\) from Eq. (10) into Eq. (26) yields

$$\begin{aligned} \sum _{q=0}^{n-1}\left[ a_{q}\overline{\mathbf{S }}(a)+b_{q}\overline{\mathbf{S }}(b)\right] (\overline{\mathbf{B }})^{q}\overline{\mathbf{H }}\mathbf{A }=\mu . \end{aligned}$$
(27)

or briefly

$$\begin{aligned} \mathbf{V }\mathbf{A }=\mu \,\,{\mathrm{or}}\,\,(\mathbf{V };\mu ), \end{aligned}$$
(28)

where

$$\begin{aligned} \mathbf{V }=\sum _{q=0}^{n-1}\left[ a_{q}\overline{\mathbf{S }}(a)+b_{q}\overline{\mathbf{S }}(b)\right] (\overline{\mathbf{B }})^{q}\overline{\mathbf{H }} \end{aligned}$$

Thus, Eq. (28) is the matrix form of the conditions defined in Eq. (2). Replacing the augmented matrix in Eq. (28) with the augmented matrix in Eq. (25) yields

$$\begin{aligned} \tilde{\mathbf{W }}\mathbf{A }=\tilde{{{\varvec{F}}}}. \end{aligned}$$
(29)

By replacing the nr-rows of the matrix \(\mathbf{W }\), the augmented matrix of the above system can be obtained as under [23, 33,34,35,36]

$$\begin{aligned} (\tilde{\mathbf{W }};\tilde{{{\varvec{F}}}})=\left( \begin{array}{cccccc} w_{1,1} &{}\quad w_{1,2} &{}\quad \ldots &{}\quad w_{1,r(N+1)}&{}\quad ; &{}\quad f _{1}(s_{0})\\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots &{}\quad ; &{}\quad \vdots \\ w_{r,1} &{}\quad w_{r,2} &{}\quad \ldots &{}\quad w_{r,r(N+1)}&{}\quad ; &{}\quad f _{r}(s_{0}) \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots &{}\quad ; &{}\quad \vdots \\ w_{r(N-n+1),1} &{}\quad w_{r(N-n+1),2}&{}\quad \ldots &{}\quad w_{r(N-n+1),r(N+1)}&{}\quad ; &{}\quad f _{r}(s_{N-n}) \\ v_{1,1} &{}\quad v_{1,2} &{}\quad \ldots &{}\quad v_{1,r(N+1)}&{}\quad ; &{}\quad \mu _{1,0} \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots &{}\quad ; &{}\quad \vdots \\ v_{r,1} &{}\quad v_{r,2} &{}\quad \vdots &{}\quad v_{r,r(N+1)}&{}\quad ; &{}\quad \mu _{1,n-1} \\ \vdots &{}\quad \vdots &{}\quad \ddots &{}\quad \vdots &{}\quad ; &{}\quad \vdots \\ v_{nr,1} &{}\quad v_{nr,2} &{}\quad \ldots &{}\quad v_{nr,r(N+1)}&{}\quad ; &{}\quad \mu _{r,n-1} \\ \end{array} \right) . \end{aligned}$$
(30)

It is not necessary to replace the last rows of \(\mathbf{W }\). For instance, if the matrix \(\mathbf{W }\) is singular, then the rows that are linearly dependent (or have same factors) or all zeros are replaced. If rank \(\tilde{\mathbf{W }}\)=rank \((\tilde{\mathbf{W }};\tilde{{{\varvec{F}}}})=r(N+1)\), then \(\mathbf{A }=(\tilde{\mathbf{W }})^{-1}\tilde{{{\varvec{F}}}}\). Thus, \(u_{p}(s)\) can be approximated by Eq. (3). However, if \(|\tilde{W}|=0\), then a particular solution may be found; otherwise, the solution will not be possible.

Error analysis

Since Eq. (3) approximates the system defined in Eq. (1), therefore substituting \(u_{q}(s)\) by \(u_{p,N}(s),\,p=1,2,\ldots ,r\) in Eq. (1), the resulting equation must be satisfied approximately, i.e., for \(s=s_{i}\in [a,\,b],\,i=0,1,2,\ldots\)

$$\begin{aligned} E_{p}(s_{i})&= \left| \sum _{k=0}^{n}\sum _{q=1}^{r}\rho _{p,q}^{k}(s_{i})u_{p,N}^{(k)}(s_{i})-f_{p}(s_{i})-\int _{a}^{b}\sum _{q=1}^{r}K_{p,q}(s_{i},t)u_{p,N}(t)\hbox {d}t\right| \cong 0,\nonumber \\ p&= 1,2,\ldots ,r \end{aligned}$$
(31)

and \(E_{p}(s_{i})\le 10^{-k_{i}}\), where \(k_{i}\) is a nonnegative integer. If max \(10^{-k_{i}}=10^{-k}\) (k positive integer) is prescribed, then the truncation limit N is increased till the difference \(E_{p}(s_{i})\) at each of the points becomes smaller than the prescribed \(10^{-k}\)[23, 36, 37]. For max \(10^{-k_{i}}\ne 10^{-k}\), the error can be estimated by the following function

$$\begin{aligned} E_{p,N}(s)=\sum _{k=0}^{n}\sum _{q=1}^{r}\rho _{p,q}^{k}(s)u_{q}^{(k)}(s)-f_{p}(s)-\int _{a}^{b}\sum _{q=1}^{r}K_{p,q}(s,t)u_{q}(t)\hbox {d}t\cong 0, \quad p=1,2,\ldots ,r. \end{aligned}$$

The error will be decreasing, if \(E_{p,N}(s)\rightarrow 0\), for sufficiently large N.

Numerical examples

Following examples have been considered to examine the reliability and efficiency of the proposed technique.

Example 1

Consider the system of Fredholm IDEs, as

$$\begin{aligned} u_{1}^{(2)}(s)+u_{2}^{(1)}(s)&= 3s^{2}+\frac{3s}{10}+8-\int _{0}^{1}2st\{u_{1}(t)-3u_{2}(t)\}\hbox {d}t\nonumber \\ u_{1}^{(1)}(s)+u_{2}^{(2)}(s)&= 21s+\frac{4}{5}-\int _{0}^{1}3(2s+t^{2})\{u_{1}(t)-2u_{2}(t)\}\hbox {d}t,\,&\quad 0\le s\le 1, \end{aligned}$$
(32)

subject to the following mixed conditions

$$\begin{aligned} u_{1}(0)+u_{1}^{(1)}(0)=1,\quad u_{1}(1)+u_{1}^{(1)}(1)=10,\quad u_{2}(0)+u_{2}^{(1)}(0)=1,\quad u_{2}(1)+u_{2}^{(1)}(1)=7. \end{aligned}$$
(33)

The analytical solutions are \(u_{1}(s)=3s^{2}+1\) and \(u_{2}(s)=s^{3}+2s-1\).

Solving the system of equations for \(N=3\) by following the procedure stated above yields the approximate solutions \(u_{1,3}(s)=3s^{2}+1\) and \(u_{2,3}(s)=s^{3}+2s-1\) which are exactly the same as the analytical one. Table 1 shows the numerical results obtained by the proposed technique and their comparison with Tau method [21], whereas Figs. 1 and 2 depict the absolute errors \(e_{1,3}\) and \(e_{2,3}\) at \(N=3\) for Example 1.

Table 1 Numerical results for Example 1
Fig. 1
figure 1

Absolute errors \(e_{1,3}(s)\) for \(N=3\)

Fig. 2
figure 2

Absolute errors \(e_{2,3}(s)\) for \(N=3\)

Example 2

Consider the system of Fredholm IDEs, as

$$\begin{aligned} u_{1}^{(2)}(s)&= \frac{8}{9}+\int _{0}^{1}\left\{ \frac{1}{3}u_{1}(t)+\frac{1}{4}u_{2}(t)\right\} \hbox {d}t\nonumber \\ u_{2}^{(2)}(s)&= 6s-\frac{s^{2}}{18}+\int _{0}^{1}\left\{ \frac{s^{2}}{6}u_{1}(t)-\frac{s^{2}}{3}u_{2}(t)\right\} \hbox {d}t,\quad 0\le s\le 1, \end{aligned}$$
(34)

subject to the following initial conditions

$$\begin{aligned} u_{1}(0)=0,\quad u_{1}^{(1)}(0)=\frac{1}{3},\quad u_{2}(0)=0,\quad u_{2}^{(1)}(0)=- \frac{1}{2}. \end{aligned}$$
(35)

The analytical solution is \(u_{1}(s)=\frac{s^{2}}{2}+\frac{s}{3}\) and \(u_{2}(s)=s^{3}-\frac{s}{2}\).

Solving the system of equations for \(N=3\) by following the procedure stated above yields the approximate solutions \(u_{1,3}(s)=\frac{s^{2}}{2}+\frac{s}{3}\) and \(u_{2,3}(s)=s^{3}-\frac{s}{2}\) which are exactly the same as the analytical one. Numerical results obtained by the proposed technique are shown in Table 2, while the comparison of the maximum absolute errors of the proposed technique with Adomian decomposition method [25] is \(\Vert e(u_{1,3})\Vert _{\infty }=0\), \(\Vert e(u_{2,3})\Vert _{\infty }=0\) and \(\Vert e(u_{1,6})\Vert _{\infty }=0.2\times 10^{-6}\), \(\Vert e(u_{2,6})\Vert _{\infty }=0\), respectively.

Table 2 Numerical results for Example 2

Example 3

Consider the system of Fredholm IDEs, as

$$\begin{aligned} u_{1}^{(1)}(s)&= \frac{5s}{3}+\int _{0}^{1}\left\{ \frac{s}{2}u_{1}(t)+\frac{s}{3}u_{2}(t)\right\} \hbox {d}t\nonumber \\ u_{2}^{(1)}(s)&= \frac{7}{6}+\int _{0}^{1}\left\{ u_{1}(t)-u_{2}(t)\right\} \hbox {d}t,\,\,0\le s\le 1, \end{aligned}$$
(36)

subject to the following initial conditions

$$\begin{aligned} u_{1}(0)=0,\quad u_{2}(0)=0. \end{aligned}$$
(37)

The analytical solution is \(u_{1}(s)=s^{2}\) and \(u_{2}(s)=s\).

Solving the system of equations for \(N=2\) by following the procedure stated above yields the approximate solutions \(u_{1,2}(s)=s^{2}\) and \(u_{2,2}(s)=s\) which are exactly the same as the analytical one. Numerical results obtained by the proposed technique are shown in Table 3, while the comparison of the maximum absolute errors of the proposed technique with Adomian decomposition method [25] is \(\Vert e(u_{1,2})\Vert _{\infty }=0\), \(\Vert e(u_{2,2})\Vert _{\infty }=0\) and \(\Vert e(u_{1,20})\Vert _{\infty }=0.18\times 10^{-6}\), \(\Vert e(u_{2,20})\Vert _{\infty }=0.123\times 10^{-5}\), respectively.

Table 3 Numerical results for Example 3

Example 4

Consider the system of Fredholm IDEs, as

$$\begin{aligned}&u_{1}^{(2)}(s)-s\,u_{2}^{(1)}(s)+2s\,u_{1}(s)=2s^{3}-\frac{37s^{2}}{12}+\frac{320s}{60}+2+\int _{0}^{1}\{s^{2}t u_{1}(t)-st^{2}u_{2}(t)\}\hbox {d}t\nonumber \\&-2s\,u_{1}^{(1)}(s)+u_{2}^{(2)}(s)+u_{2}(s)=-5s^{2}-\frac{109s}{30}-1-\int _{0}^{1}\{st u_{1}(t)+st^{3}u_{2}(t)\}\hbox {d}t,\nonumber \\&0\le s\le 1, \end{aligned}$$
(38)

subject to the following boundary conditions

$$\begin{aligned} u_{1}(0)=3,\quad u_{1}(1)=2,\quad u_{2}(0)=1,\quad u_{2}(1)=1. \end{aligned}$$
(39)

The analytical solution is \(u_{1}(s)=s^{2}-2s+3\) and \(u_{2}(s)=-\,s^{2}+s+1\).

Solving the system of equations for \(N=2\) by following the procedure stated above yields the approximate solutions \(u_{1,2}(s)=s^{2}-2s+3\) and \(u_{2,2}(s)=-\,s^{2}+s+1\) which are exactly the same as the analytical one. Numerical results obtained by the proposed technique are shown in Table 4.

Table 4 Numerical results for Example 4

Example 5

Consider the system of Fredholm IDEs, as

$$\begin{aligned}&u_{1}^{(2)}(s)-s\,u_{2}^{(1)}(s)-u_{1}(s)=(s-2)\sin (s)+\int _{0}^{1}\{s\cos (t) u_{1}(t)-s\sin (t) u_{2}(t)\}\hbox {d}t \nonumber \\&-2su_{1}^{(1)}(s)+u_{2}^{(2)}(s)+u_{2}(s)=-2s\cos (s)+\int _{0}^{1}\{\sin (s)\cos (t)u_{1}(t)-\sin (s)\sin (t)u_{2}(t)\}\hbox {d}t,\nonumber \\&0\le s\le 1, \end{aligned}$$
(40)

subject to the following initial conditions

$$\begin{aligned} u_{1}(0)=0,\quad u_{1}^{(1)}(0)=1,\quad u_{2}(0)=1,\quad u_{2}^{(1)}(0)=0. \end{aligned}$$
(41)

The analytical solution is \(u_{1}(s)=\sin (s)\) and \(u_{2}(s)=\cos (s)\).

Solving the system of equations for \(N=3, 4,5\) by following the procedure stated above, yields the approximate solutions:

  • \(u_{1,3}(s)=-\,1.9984\times 10^{-15}+1s-8.88178\times 10^{-16}s^{2}-0.163805s^{3},\)

  • \(u_{2,3}(s)=1{-}3.33067\times 10^{-16}s-0.5s^{2}+0.0267372s^{3}\),

    and

  • \(u_{1,4}(s)=-\,1.33227\times 10^{-15} + 1 s - 1.33227\times 10^{-14} s^{2} - 0.193214 s^{3} + 0.0392248 s^{4},\)

  • \(u_{2,4}(s)=1 + 8.52651\times 10^{-14} s - 0.5 s^{2} - 0.294265 s^{3} + 0.620765 s^{4}\),

    also

  • \(u_{1,5}(s)=2.3892\times 10^{-13} + 1 s + 4.01457\times 10^{-13} s^{2} - 0.166728 s^{3} + 0.000337574 s^{4} + 0.00791926 s^{5}\),

  • \(u_{2,5}(s)=1. - 8.08242\times 10^{-13} s - 0.5 s^{2} - 0.00030213 s^{3} + 0.0431559 s^{4} -0.00244974 s^{5}.\)

Numerical results are summarized in Tables 5, while 6 shows the maximum absolute errors for Example 5. Comparison of exact and proposed solutions is shown in Figs. 3 and 4 for \(N=3,4\) and 5, respectively.

Table 5 Numerical results for Example 5
Table 6 Maximum absolute errors for Example 5
Fig. 3
figure 3

Comparison of \(u_{1}(s)\) and \(u_{1,N}\) for \(N=3,4,5\)

Fig. 4
figure 4

Comparison of \(u_{2}(s)\) and \(u_{2,N}\) for \(N=3,4,5\)

Conclusion

In this paper, Laguerre operational matrix approach has been manipulated to solve the system of linear Fredholm IDEs. The scheme converted the system of IDEs, using Laguerre operational matrices, to a matrix equation that can be solved by any suitable method. Comparison of the results with other methods such as Tau method [21] and Adomian decomposition method (ADM) [25] reveals that the Laguerre approach has more accuracy. In addition, to get the best approximating solution of the system, the truncation limit N must be chosen large enough. It is also to be mentioned that the method is efficient to determine the solution in closed form, as well.