Introduction

Nonlinear form of integral equations of the second kind often occur as following

$$\begin{aligned} u(t)=f(t)+\int _{a}^{b}k(t,s)G(s,u(s)){\text {d}}s, \end{aligned}$$
(1.1)

where f, k and G are known functions with G(su) nonlinear in u,  and u(t) is a solution to be determined. These types of equations can be obtained by reformulation of some boundary value problems for ordinary differential equations, also mixed type of these equations can be seen in chemical reactor as the dynamic model (see e.g., [2, 3, 7, 8, 10, 12,13,14]). In this article, we study the numerical solution for a special kind of (1.1)

$$\begin{aligned} u(t)=f(t)+\int _{a}^{b}k(t,s)(u(s))^{-1}{\text {d}}s. \end{aligned}$$
(1.2)

Above equation can be written as the following integral equation forms

$$\begin{aligned} u(\delta )=\int _{a}^{b}k(\delta ,\delta _{1})(u(\delta _{1}))^{-1}{\text {d}}\delta _{1}, \end{aligned}$$
(1.3)

where

$$\begin{aligned} u(\delta )=\exp \left(\dfrac{-\mu _{s}(\delta )}{RT}\right), \quad k(\delta ,\delta _{1})=P_{s}(\delta _{1})\exp \left(\dfrac{-E_{\mathrm{int}}(\delta ,\delta _{1})}{RT}\right). \end{aligned}$$
(1.4)

Substituting (1.4) in (1.3) and through simple computations, we get the following integral equation which appeared in chemical phenomenon

$$\begin{aligned} \mu _{s}(\delta )=-RT \ln \left[ \int P_{s}(\delta _{1})\exp \left(-\dfrac{E_{\mathrm{int}}(\delta ,\delta _{1}) -\mu _{s}(\delta _{1})}{RT}\right){\text {d}}\delta _{1}\right] , \end{aligned}$$
(1.5)

the last equation forms the basis for the Conductor like Screening Model for Realistic Solvents (COSMO-RS) where R and T are the gas constant and the temperature, respectively, the interaction energy expression for the segments with screening charge density \(\delta\) and \(\delta _{1}\) has been explained by \(E_{\mathrm{int}}(\delta ,\delta _{1})\), \(P_{s}(\delta )\) is the molecular interaction in solvent and \(\mu _{s}(\delta )\) denotes the chemical potential of the surface segments that should be determined.

In 1995, A. Klamt achieved an approach that made it possible to compute the details of molecules quantum mechanically and he applied obtained results in an approximate statistical mechanics procedure which is called COSMO-RS. COSMO-RS is a quantum chemistry-based equilibrium thermodynamics method and it can show the link between the world of chemical quantum mechanics and engineering thermodynamics well. For the prediction of activity coefficients in multicomponent liquid mixtures, COSMO-RS uses conductor screening charges on molecular surface panels. Detailed description of these models may be found in [17].

The numerical solvability of nonlinear integral equations has been studied by several authors. Ghoreishi et al. [6] have been concerned with the numerical solution of Volterra–Hammerstein integral equations via the operational Tau method. Maleknejad et. al. in [9, 11] applied the computational method for Hammerstein integral equations based on Bernstein operational matrices and operational matrices of hybrid functions. In [12], the Sinc-quadrature formula are applied to approximate solution of (1.4). In [5], numerical solution of nonlinear Hammerstein integral equations via collocation method based on double exponential transformation is considered. Authors of [15] applied operational matrices of Chebyshev polynomials for solving singular Volterra integral equations. Our approach is to investigate how numerically one can solve a COSMO-RS integral equation with the Chebyshev polynomials.

To clarify the concepts of the Chebyshev polynomials, in “Preliminaries and notations” section we describe some notations and basic definitions of Chebyshev polynomials. We will apply Chebyshev polynomials for approximating the solution of nonlinear integral Eq. (1.2), then convergence analysis and error bound is proved in “Main result” section . Finally in “Numerical” section , some numerical experiments are reported to illustrate the efficiency and accuracy of our algorithm.

Preliminaries and notations

In this section, we recall some necessary mathematical preliminaries and definitions of the Chebyshev polynomials, which are used further in this paper [1, 4].

Definition 1

The Chebyshev polynomials of the first kind of order i are defined as follows

$$\begin{aligned} T_{i}(t)=\cos [i\cos ^{-1}t],\qquad t\in [-1,1],\qquad i=0,1,2,\ldots , \end{aligned}$$
(2.1)

from this definition the following property is evident

$$\begin{aligned} T_{i}(\cos \theta )=\cos (i\theta ),\qquad \theta \in [0,\pi ],\qquad i=0,1,2,\ldots . \end{aligned}$$

Theorem 1

The Chebyshev polynomials \(T_{i}(t)\) satisfy the recurrence relation

$$\begin{aligned} T_{i+1}(t)=2tT_{i}(t)-T_{i-1}(t),\qquad i=1,2,\ldots . \end{aligned}$$
(2.2)

Proposition 1

Chebyshev polynomials are orthogonal functions with respect to a weighting function of \((1-t^{2})^{-1/2}\),

$$\begin{aligned} \int _{-1}^{1}T_{i}(t)T_j(t)(1-t^{2})^{-1/2}{\text {d}}t = \frac{\pi }{2}c_{i}\delta _{ij}, \end{aligned}$$
(2.3)

where

$$c_{i}=\left\{ \begin{array}{ll} 2 &\quad i=0, \\ 1&\quad i > 0, \end{array}\right. \quad {\text {and}} \quad \delta_{ij}=\left\{ \begin{array}{ll} 0 &\quad i\ne j, \\ 1& \quad i=j. \end{array}\right. $$
(2.4)

Main result

In this section for the sake of clarity, we prefer to split our presentation into two parts. The first part concerns with numerical scheme of nonlinear integral Eq. (1.2) based on the Chebyshev polynomials. The second part deals with convergence analysis of the presented method.

Nonlinear function approximation and Chebyshev collocation method

Using defined bases, orthogonal series expansion of the exact solution u(t) can be considered as

$$\begin{aligned} u(t)=\sum _{i=0}^{\infty }a_{i}\varphi _{i}(t), \end{aligned}$$
(3.1)

where \(a_{i}=<u(t),\varphi _{i}(t)>.\)

Let \(\varphi (t)\) be a given set of orthogonal bases with respect to the defined weight function \(\omega (t)\) on [ab]. Owing to variety of orthogonal polynomials, in the following we choose Chebyshev polynomials. Now, we define an approximation function of the exact solution u(t) as follows

$$\begin{aligned} u(t)\simeq \sum _{i=0}^{n}a_{1i}T_{i}(t) = {\mathbf{A}}_{1}^{\mathrm{T}}\mathbf{T}_{i}(t), \end{aligned}$$
(3.2)

where \(\mathbf{A }_{1} = [a_{1,0},a_{1,1}, \ldots , a_{1,n}]^{\mathrm{T}}\), and \({\mathbf{T}} _{i}(t)=[T_{0}(t), T_{1}(t), \ldots , T_{n}(t)]^{\mathrm{T}}\).

Without loss of generality and due to COSMO-RS Eq. (1.5), the nonlinear analytic function in (1.1) can be written as

$$\begin{aligned} F(t)=G(t,u(t))=(u(t))^{-1}, \end{aligned}$$
(3.3)

according to (3.2), we can write (3.3) as

$$\begin{aligned} F(t) = \mathbf{A }_{2}^{\mathrm{T}} {\mathbf{T}}_{i}(t), \end{aligned}$$
(3.4)

where \({\mathbf {A}} _{2}=[a_{2,0},a_{2,1}, \ldots ,a_{2,n}]^{\mathrm{T}}\).

By substituting Eqs. (3.2)–(3.4) in (1.1), or (1.2), we have

$$\begin{aligned} \mathbf{A }_{1}^{\mathrm{T}}{\mathbf{T}}_{i}(t)=f(t)+\int _{a}^{b}k(t,s) \mathbf{A }_{2}^{\mathrm{T}}{\mathbf{T}}_{i}(s) {\text {d}}s. \end{aligned}$$
(3.5)

Let us set \({\mathbf{H}} (t)=\int _{a}^{b}k(t,s){\mathbf {T}} _{i}(s) {\text {d}}s\). Using this notation, above equation can be transformed to the following form

$$\begin{aligned} \mathbf{A }_{1}^{\mathrm{T}} {\mathbf{T}}_{i}(t)=f(t) + \mathbf{A }_{2}^{\mathrm{T}}\mathbf{H }(t). \end{aligned}$$
(3.6)

On the other hand, due to (3.2)–(3.4) we can write

$${\mathbf{A}}_{2}^{\mathrm{T}} {\mathbf{T}}_{i}(t) = G(t,u(t)) = G\left( t, {\mathbf{A}}_{1}^{\mathrm{T}} {\mathbf{T}}_{i}(t)\right),$$
(3.7)

from (3.6), above relation can be rewritten as

$$\begin{aligned} \mathbf{A}_{2}^{\mathrm{T}} {\mathbf{T}}_{i}(t)=G\left( t,f(t) + \mathbf{A }_{2}^{\mathrm{T}}\mathbf{H }(t)\right) , \end{aligned}$$
(3.8)

for obtaining \((n+1)\) unknowns \(\mathbf{A }_{2}\), we take \(t=t_{j}\) for \(j=1,2, \ldots ,(n+1)\), where \(t_{j}\) be collocation points. So, we have the following nonlinear system

$$\begin{aligned} \mathbf{A }_{2}^{\mathrm{T}} {\mathbf{T}}_{i}(t_{j})=G\left( t_{j},f(t_{j})+ \mathbf{A }_{2}^{\mathrm{T}} \mathbf{H }(t_{j})\right) . \end{aligned}$$
(3.9)

By solving Eq. (3.9), \({\mathbf{A}} _{2}\) can be determined. Finally, the approximation solution u(t) will be obtained

$$\begin{aligned} u(t)=\dfrac{1}{F(t)}=\dfrac{1}{\mathbf{A}_{2}^{\mathrm{T}}{} {\mathbf{T}}_{i}(t)}. \end{aligned}$$
(3.10)

The following algorithm summarizes our proposed method:

figure a

Error analysis

This section is concerned with the error estimation of the Chebyshev expansion for the nonlinear integral Eq. (1.2). The following theorem states and proves the main result of error analysis.

Theorem 2

Let \(g(t)=\dfrac{1}{u(t)}\) be a second-order derivative square-integrable function defined on \([-1, 1]\) with \(|g^{''}(t)| \le L\) for some constant L,and let \(g^{*}(t)\) be an approximation function of the exact solution \(g(t)=\sum \nolimits _{i=0} ^{\infty }a_{i}T_{i}(t)\). Then, for sufficiently smooth functions g(t) and k(ts), with \(|k(t,s)|\le M\), in (1.2) we have

$$\begin{aligned} ||u(t)-u^{*}(t)||_{L_{\infty }[-1,1]}\le 2 ML(b-a) \sum _{i=n+1}^{\infty }\dfrac{1}{(i-1)^{2}},\quad [a,b]\subseteq [-1,1], \end{aligned}$$

where \(u^{*}(t)=\dfrac{1}{g^{*}(t)}\).

Proof

Due to Eq. (1.2) we can write

$$\begin{aligned} ||u(t)-u^{*}(t)||= & {} \max _{t\in [-1,1]}|\int _{a}^{b}k(t,s)[g(s)-g^{*}(s)]{\text {d}}s|\\= & {} \max _{t\in [-1,1]}|\int _{a}^{b}k(t,s)[\sum _{i=0} ^{\infty }a_{i}T_{i}(s)-\sum _{i=0} ^{n}a_{i}T_{i}(s)]{\text {d}}s|\\= & {} \max _{t\in [-1,1]}|\int _{a}^{b}k(t,s)[\sum _{i=n+1} ^{\infty }a_{i}T_{i}(s)]{\text {d}}s|\\\le & {} \max _{t\in [-1,1]}\int _{a}^{b}|k(t,s)||\sum _{i=n+1} ^{\infty }a_{i}T_{i}(s)|{\text {d}}s\\\le & {} \max _{t\in [-1,1]}\int _{a}^{b}|k(t,s)||\sum _{i=n+1} ^{\infty }a_{i}||T_{i}(s)|{\text {d}}s, \end{aligned}$$

from properties of Chebyshev polynomials and given assumption, we obtain

$$\begin{aligned} ||u(t)-u^{*}(t)||\le M (b-a)\sum _{i=n+1} ^{\infty }|a_{i}|. \end{aligned}$$
(3.11)

On the other hand, from \(g(t)=\sum _{i=0} ^{\infty }a_{i}T_{i}(t)\) we have

$$\begin{aligned} a_{i}=<g(t),T_{i}(t)>=\frac{2}{\pi c_{i}}\int ^{1}_{-1}g(t) T_{i}(t) \omega (t) {\text {d}}t. \end{aligned}$$

Substituting \(\omega (t) = (1-t^{2})^{-1/2}\) and \(t = \cos \theta\) yields

$$\begin{aligned} a_{i}= & {} \frac{2}{\pi c_{i}}\int _{0}^{\pi }g(\cos \theta ) T_{i}(\cos \theta )(1-\cos \theta ^{2})^{-1/2}\sin \theta d\theta \\= & {} \frac{2}{\pi c_{i}}\int _{0}^{\pi }g(\cos \theta ) \cos i\theta {\text {d}}\theta . \end{aligned}$$

Using integration by part, we conclude

$$\begin{aligned} a_{i}= & {} \frac{2}{\pi c_{i}i}\int _{0}^{\pi }g^{'}(\cos \theta )\sin i\theta \sin \theta {\text {d}}\theta \\= & {} \frac{1}{\pi c_{i}i}\int _{0}^{\pi }g^{'}(\cos \theta )[\cos (i-1)\theta -\cos (i+1)\theta ]{\text {d}}\theta \\= & {} \frac{1}{\pi c_{i}i}\left[ \int _{0}^{\pi }g^{'}(\cos \theta )\cos (i-1)\theta {\text {d}}\theta -\int _{0}^{\pi }g^{'}(\cos \theta )\cos (i+1)\theta {\text {d}}\theta \right] . \end{aligned}$$

By repeating the integration, \(a_{i}\) can be written as

$$\begin{aligned} a_{i}=\frac{1}{\pi c_{i}i}\left[ \dfrac{1}{i-1} \int _{0}^{\pi }g^{''}(\cos \theta )\sin (i-1)\theta \sin \theta {\text {d}}\theta -\dfrac{1}{i+1}\int _{0}^{\pi }g^{''}(\cos \theta )\sin (i+1)\theta \sin \theta {\text {d}}\theta \right] , \end{aligned}$$

thus for \(i > 1\), (for \(i = 0\), \(c_{i} = 1\)), we have

$$\begin{aligned} |a_{i}|\le \frac{1}{\pi i}\int _{0}^{\pi }|g^{''}(\cos \theta )| {\text {d}}\theta \left( \dfrac{1}{i-1} +\dfrac{1}{i+1}\right) , \end{aligned}$$

according to assumption and by simple computation, we can write:

$$\begin{aligned} |a_{i}|\le \dfrac{2L}{(i^{2}-1)}\le \dfrac{2L}{(i-1)^{2}}. \end{aligned}$$
(3.12)

Finally, by substituting (3.12) in (3.11) we can conclude:

$$\begin{aligned} ||u(t)-u^{*}(t)||\le 2 L M (b-a)\sum _{i=n+1} ^{\infty }\dfrac{1}{(i-1)^{2}}, \end{aligned}$$
(3.13)

the proof is completed. \(\square\)

Numerical

In this section, three test problems will be considered to assess the accuracy and efficiency of the proposed method for solving nonlinear integral Eq. (1.2). Achieved nonlinear systems will be solved by Newton method and all calculations will be done by the Mathematics.

Example 1

Consider the following COSMO-RS integral equation which expresses a particular case of the electrostatic misfit energy [12]

$$\begin{aligned} u(\delta )=\int _{-3}^{3}P_{s}(\delta _{1})\Theta (\delta ,\delta _{1})(u(\delta _{1}))^{-1} {\text {d}}\delta _{1}, \end{aligned}$$
(4.1)

where

$$\begin{aligned} P_{s}(\delta )=\left\{ \begin{array}{lll} \exp (-(5\delta +0.25)^{2})+\dfrac{1}{25\delta ^{2}+1} +\dfrac{\sin (5\delta +0.25)^{2}}{(5 \delta -0.25)^{4}+1} +q(5\delta ),& -2\le \delta < 2, \\ 0, & \text {Otherwise}, \end{array}\right. \end{aligned}$$

and

$$\begin{aligned} q(\delta ) = \left\{ \begin{array}{lll} -(\delta -7)(\delta -9),& 7\le \delta < 9, \\ 0, & {\text {Otherwise}}, \end{array}\right. \Theta (\delta ,\delta _{1}) = \exp ({-(\delta +\delta _{1})^{2}}). \end{aligned}$$

Here, we apply presented method based on Algorithm 1. This problem has been defined over the interval \([-3,3]\). In order to use Chebyshev polynomials \(T_{i}(t)\) on the interval \(t\in [a, b]\), we convert it by introducing the change of variable \(t=\dfrac{b-a}{2}x+\dfrac{b+a}{2}\). For computational details, we take \(n=8\) and obtain collocation points \(t_{i}\). In this problem \(f(t)=0\), so due to step 3 in mentioned algorithm, we compute \(H(t_{i})\)

\(t_{i}\)

− 1.61

−  1.11

−  0.61

−  0.11

−  0.39

−  0.89

−  1.39

−  1.89

\(H(t_{i})\)

0.052225

−  0.237845

−  0.201385

0.139676

−  0.078774

0.129343

−  0.044902

−  0.000194

From step 4 in Algorithm 1, we solve achieved nonlinear system by Newton method and we obtain \(A_{2}\) as

$$\begin{aligned} A_{2}=[ 1.36555, -0.17877, 0.45421, -0.02481, 0.03827, -0.00621, 0.00471, 0.00033]^{\mathrm{T}}. \end{aligned}$$

Finally, the approximation solution u(t) will be obtained. Obtained numerical results can be seen in Figs. 1 and 2 with \(n=8, 16\), respectively. Example 1 was solved in [9, 16] by a method based on Sinc, Bernestein polynomials and Block pulse functions. In [16] reported results show that they can achieve good numerical results for \(n\ge 40,\) whereas reported results using proposed method show that we can achieve good numerical results for \(n\ge 8\). Figure 1 of the proposed method shows that high accuracy obtained for \(n=8\) in comparison with figure of Sinc method in [9].

Fig. 1
figure 1

Approximate solution for Example 1 using Chebyshev base with \(n=8\)

Fig. 2
figure 2

Approximate solution for Example 1 using Chebyshev base with \(n=16\)

Example 2

Consider the following nonlinear integral equation:

$$\begin{aligned} u(t)=f(t)+\int _{0}^{1}k(t,s)(u(s))^{-1}{\text {d}}s, \end{aligned}$$

where

$$\begin{aligned} f(t)=\dfrac{21-11\exp (10)}{100}\exp (-10(1+t))+\dfrac{1}{1+t},\quad k(t,s)=\exp (-10(t+s)), \end{aligned}$$

with the exact solution \(u(t)=\dfrac{1}{1+t}\). The obtained results of Example 2 with respect to proposed method in [9, 16] show that the mentioned method is powerful and give good numerical results in comparison with numerical scheme in [9, 16]. As we expected, the presented method has produced highly numerical results. The best reported of error estimates for Bernstein method in [16] is \(O(-16)\) for \(n=10\), whereas we can achieve nearly equivalent error with \(n=4\). The error estimates of the presented method for \(n=4\), Bernestein method and Sinc method for \(n=10\) have been represented in Table 1. Obtained numerical results for Example 2 can be seen in Fig. 3.

Fig. 3
figure 3

The Chebyshev approximation for Example 2 using Chebyshev base with \(n=4\)

Fig. 4
figure 4

The approximation absolute errors of Example 3 using Chebyshev base with \(n = 4\)

Fig. 5
figure 5

The approximation absolute errors of Example 3 using Chebyshev base with \(n = 8\)

Table 1 Numerical results of Example 2 using proposed method

Example 3

Consider the following nonlinear integral equation:

$$\begin{aligned} u(t)=f(t)+\int _{0}^{1}k(t,s)(u(s))^{-1}{\text {d}}s, \end{aligned}$$

where

$$\begin{aligned} f(t)=\exp (-t) + 2 (-3 + \exp (1)) \cos (t),\quad k(t,s)=\cos (t) s^{3}, \end{aligned}$$

with the exact solution \(u(t)=\exp (-x)\). This problem has been solved by proposed scheme, as we expected good numerical results are obtained and the error behaviors of the presented method with \(n=4, 8\) have been shown in Figs. 4 and 5. As we can see, the reported absolute errors for \(n=4, 8\) are \(O(-4)\) and \(O(-10)\), respectively.

Conclusion

Being able to efficiently solve the problems in modeling chemical phenomenon that can be formulated as nonlinear integral equations is important. In this research, an efficient and accurate numerical scheme was presented for solving nonlinear integral equations and COSMO-RS integral equation which appeared in chemical phenomenon. By using the Chebyshev polynomials, the main problem was converted to a problem of solving a nonlinear system of algebraic equation. Comparing our numerical results and other numerical experiments, we may conclude the high accuracy of the presented method. With the availability of this methodology, it might be used to solve the other types of applied integral equations in other sciences.