1 Introduction

Many iterative methods have been developed for the solution of problems modelled as nonlinear equations with simple or multiple roots but it is very difficult to construct an optimal iterative method for finding multiple roots. It is noteworthy that most of the higher order optimal methods that were obtained during the past years require derivative evaluation of the involved function, as in [1], while higher order derivative-free methods exist rarely in literature because it is a difficult task to preserve the order of convergence when we replace derivatives by differences. Kansal et al. [7] and Kumar et al. [8] gave second order iterative schemes to find repeated roots of nonlinear equations. Sharma et al. [17], Kumar et al. [9, 10], Behl et al. [2] and Rani and Kansal [13] proposed a fourth-order root finding methods for multiple roots. Qudsi et al. [11, 12] presented three step sixth order iterative methods for finding the multiple roots. Sharma et al. [15] proposed seventh order convergent iterative scheme for multiple roots. Sharma et al. in [14, 16] presented eight order scheme for computing multiple root of nonlinear equations. nevertheless, other derivative-free methods for multiple roots have been generated by using different approaches, such as [4].

Motivated by the need to find the more efficient iterative method for computing the root of nonlinear equations, we propose an optimal eighth order derivative-free method for computing multiple root of nonlinear equations with multiplicity \(\eta \ge 1\) in the next section. This method is derivative-free with four functional evaluations with a univariate and a multivariate weight functions. In Sect. 3, we discuss some particular cases of weight functions and choose four of them for further investigation. We compare our methods with two of the recent derivative-free schemes of seventh [15] and eighth order [14, 16] using physical applications from chemical engineering and dynamical behaviour in Sect. 4. Our proposed method has wider convergence region as compared to recent root-finding iterative method.

2 Proposed optimal eighth order scheme

Let \(\tau =w\) be a multiple root with multiplicity \(\eta \ge 1\) of the function g. Let \(K:{\mathbb {C}}\rightarrow {\mathbb {C}}\) and \(L:{\mathbb {C}}^{3}\rightarrow {\mathbb {C}}\) be analytic functions in the neighborhood of 0 and \(\left( 0,0,0\right) \) respectively. We propose a family of derivative-free methods of eighth-order involving first-order divided differences for computing multiple roots with multiplicity \(\eta > 1\) given by:

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) , \;\text { where}\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \nonumber \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]},\nonumber \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}K(p_{k})\frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \nonumber \\ \tau _{k+1}= & {} \upsilon _{k}-\eta p_{k}L(p_{k},q_{k},r_{k})\frac{g(\tau _{k}) }{g[\tau _{k},\rho _{k}]}, \end{aligned}$$
(1)

where \(p_{k}=(\frac{g(\mu _{k})}{g(\tau _{k})})^{\frac{1}{\eta }}\), \(q_{k}=( \frac{g(\upsilon _{k})}{g(\tau _{k})})^{\frac{1}{\eta }}\) and \(r_{k}=(\frac{ g(\upsilon _{k})}{g(\mu _{k})})^{\frac{1}{\eta }}\). Following result can be used to investigate the convergence order of presented method (1) and the conditions to be imposed on weight functions K and L.

Theorem 1

Let \(g:{\mathbb {C}}\rightarrow {\mathbb {C}}\) be analytic in a region enclosing multiple root of g with known multiplicity \(\eta \). Suppose that the initial guess \(\tau _{0}\) be sufficiently close to the multiple zero w. Then, the class of iterative schemes defined by (1) has eighth-order of convergence, when the following conditions are satisfied:

$$\begin{aligned} K(0)= & {} 1,\, K'(0)=2,\, K''(0)=-2 \text { and }K'''(0)=36, \nonumber \\ L_{000}= & {} 0,\, L_{100}=0,\, L_{001}=1,\, L_{101}=2-L_{010}, \nonumber \\ L_{110}= & {} 0,\, L_{002}=2\text {, }L_{011}=4, \nonumber \\ \end{aligned}$$
(2)

where

$$\begin{aligned} L_{ijk} =\frac{\partial ^{i+j+k}}{\partial p^{i}\partial q^{j}\partial r^{k}}L\left( p,q,r\right) |_{\left( 0,0,0\right) } \, \ i,j,k\ge 0. \end{aligned}$$

The error equation for the proposed schemes is:

$$\begin{aligned} e_{k+1}= & {} -\frac{1}{24\eta ^{7}}(d_{1}((11+\eta )d_{1}^{2}-2\eta d_{2})(-12(1+\eta )^{2}d_{1}^{3}+(-665-84\eta +5\eta ^{2})d_{1}^{4} \\&-24\eta (-5+2\eta )d_{1}^{2}d_{2}-12\eta ^{2}d_{2}^{2}+60\eta ^{2}d_{1}d_{3}))e_{k}^{8}+O\left( e_{k}^{9}\right) , \end{aligned}$$

being \(d_{j}=\dfrac{\eta !}{\left( \eta +j\right) !}\dfrac{g^{(\eta +j)}\left( w\right) }{g^{(\eta )}\left( w\right) }\), \(j\ge 1\).

Proof

Let w be a multiple root of g such that \(g^{(j)}(w)=0,\) \( j=0,1,2,\ldots ,\eta -1\) with \(g^{(\eta \mathfrak {)}}(w)\ne 0\). Let \(e_{k}=\tau _{k}-w\) be error in the kth iteration. Considering Taylor expansion of \( g(\tau _{k})\) about w, we have:

$$\begin{aligned} g(\tau _{k})= & {} \frac{g^{(\eta )}\left( w\right) }{\eta !}e_{k}^{\eta }+ \frac{g^{(\eta +1)}(w)}{\left( \eta +1\right) !}e_{k}^{\eta +1}+\frac{ g^{(\eta +2)}\left( w\right) }{\left( \eta +2\right) !}e_{k}^{\eta +2}+\frac{ g^{(\eta +3)}\left( w\right) }{(\eta +3)!}e_{k}^{\eta +3} \\&\frac{g^{(\eta +4)}\left( w\right) }{\left( \eta +4\right) !}e_{k}^{\eta +4}+\frac{g^{(\eta +5)}\left( w\right) }{\left( \eta +5\right) !}e_{k}^{\eta +5}+\frac{g^{(\eta +6)}\left( w\right) }{\left( \eta +6\right) !}e_{k}^{\eta +6}+\frac{g^{(\eta +7)}\left( w\right) }{\left( \eta +7\right) !}e_{k}^{\eta +7} \\&\frac{g^{(\eta +8)}\left( w\right) }{\left( \eta +8\right) !}e_{k}^{\eta +8}+O(e_{k}^{\eta +9}), \end{aligned}$$

which can be expressed as:

$$\begin{aligned} g\left( \tau _{k}\right) =\frac{g^{(\eta )}\left( w\right) }{\eta !} e_{k}^{\eta }\left( 1+d_{1}e_{k}+d_{2}e_{k}^{2}+\cdots +d_{7}e_{k}^{7}+d_{8}e_{k}^{8}+O(e_{k}^{9}) \right) , \end{aligned}$$
(3)

where

$$\begin{aligned} d_{j}=\frac{\eta !}{\left( \eta +j\right) !}\frac{g^{(\eta +j)}\left( w\right) }{g^{(\eta \mathfrak {)}}\left( w\right) }, \end{aligned}$$
(4)

and \(j\in {\mathbb {N}}\). For \(\rho _{k}=\tau _{k}+\gamma g\left( \tau _{k}\right) \), we obtain:

$$\begin{aligned}&\rho _{k}-w=\tau _{k}-w+\gamma g\left( \tau _{k}\right) ,\nonumber \\&\rho _{k}-w=e_{k}+\gamma g(\tau _{k}), \end{aligned}$$
(5)

or

$$\begin{aligned} \rho _{k}-w=e_{k}+\frac{\gamma g^{(\eta )}\left( w\right) }{\eta !}e_{k}^{\eta }\left( 1+d_{1}e_{k}+d_{2}e_{k}^{2}+\ldots +d_{7}e_{k}^{7}+d_{8}e_{k}^{8}+O(e_{k}^{9})\right) . \nonumber \\ \end{aligned}$$
(6)

Using Taylor expansion of \(g\left( \rho _{k}\right) \) about w

$$\begin{aligned} g\left( \rho _{k}\right)= & {} \frac{g^{(\eta )}\left( w\right) }{\eta !}(\rho _{k}-w)^{\eta }\left( 1+d_{1}(\rho _{k}-w)+d_{2}(\rho _{k}-w)^{2}+d_{3}(\rho _{k}-w)^{3}\right. \\&+d_{4}(\rho _{k}-w)^{4}+d_{5}(\rho _{k}-w)^{5}+d_{6}(\rho _{k}-w)^{6}+d_{7}(\rho _{k}-w)^{7} \\&+\left. d_{8}(\rho _{k}-w)^{8}+O((\rho _{k}-w)^{9})\right) . \end{aligned}$$

By employing (3) and (6) in the first step of (1) and after some algebraic manipulations, we get:

$$\begin{aligned} \mu _{k}= & {} \frac{d_{1}}{\eta }e_{k}^{2}+\frac{2\eta d_{2}-\left( \eta +1\right) d_{1}^{2}}{\eta ^{2}}e_{k}^{3}+ \frac{1}{\eta ^{3}}\left( (\eta +1)^{2}d_{1}^{2}+\eta \left( 4+3\eta \right) d_{1}d_{2}- 3\eta ^{2}d_{3}\right) e_{k}^{4}\nonumber \\&+\sum _{i=1}^{4}\mathring{z}_{i}e_{k}^{i+4}+O(e_{k}^{9}), \end{aligned}$$
(7)

where \(\mathring{z}_{i}=\mathring{z}_{i}(\eta ,d_{1},\ldots ,d_{8})\) for \(i=1,2,3,4\). Now, the Taylor expansion of \(g\left( \mu _{k}\right) \) about w is given by;

$$\begin{aligned} g\left( \mu _{k}\right)= & {} \left( \frac{e_{k}^{2}d_{1}}{\eta }\right) ^{\eta }\left( \frac{1}{\eta !}+\frac{(2\eta d_{2}-(1+\eta )d_{1}^{2})e_{k}}{\eta !d_{1}}+ \frac{1}{2\eta \eta !d_{1}^{2}}(2(1+\eta )^{2}d_{1}^{3}\right. \nonumber \\&\left. +(\eta ^{3}+\eta ^{2}-\eta +1)d_{1}^{4} \right. \nonumber \\&\left. +2\eta (6+3\eta -2\eta ^{2})d_{1}^{2}d_{2}+4(\eta -1)\eta ^{2}d_{2}^{2}- 6\eta ^{2}d_{1}d_{3})e_{k}^{2}+\cdots +O(e_{k}^{9})\right) .\nonumber \\ \end{aligned}$$
(8)

Using (5) and (8) in \(p_{k}=\left( \frac{g(\mu _{k})}{g(\tau _{k})}\right) ^{\frac{1}{\eta }}\),

$$\begin{aligned} p_{k}= & {} \frac{d_{1}e_{k}}{\eta }+\frac{(2\eta d_{2}-(2+\eta )d_{1}^{2})e_{k}^{2}}{\eta ^{2}}+\frac{1}{2\eta ^{3}}\left( 2(1+\eta )^{2}d_{1}^{2}\right. \nonumber \\&+\left. (5+3\eta )d_{1}^{3}+2\eta (1+3\eta )d_{1}d_{2}-6\eta ^{2}d_{3}\right) e_{k}^{3}+\cdots +O(e_{k}^{9}). \end{aligned}$$
(9)

By expanding the weight function \(K\left( p_{k}\right) \) in the neighborhood of 0,

$$\begin{aligned} K\left( p_{k}\right) \approx K\left( 0\right) +p_{k}K'\left( 0\right) +\frac{1}{2}p_{k}^{2}K''\left( 0\right) +\frac{1}{6} p_{k}^{3}K'''\left( 0\right) \end{aligned}$$
(10)

Then, for

$$\begin{aligned} \upsilon _{k}=\mu _{k}-p_{k}\left( K\left( 0\right) +K^{\prime }\left( 0\right) p_{k}+\frac{K^{\prime \prime }\left( 0\right) }{2}p_{k}^{2}+\frac{ K^{\prime \prime \prime }\left( 0\right) }{6}p_{k}^{3}\right) (e_{k}-\mu _{k}), \end{aligned}$$
(11)

we get the expansion of \(\upsilon _{k}\) around w using (5), (8), (9) and (10):

$$\begin{aligned} \upsilon _{k}= & {} -\frac{(K\left( 0\right) -1)d_{1}e_{k}^{2}}{\eta }-\frac{ (1+K^{\prime }\left( 0\right) +\eta -K\left( 0\right) (3+\eta ))d_{1}^{2}+2(K\left( 0\right) -1)\eta d_{2})e_{k}^{3}}{\eta ^{2}} \nonumber \\&+\frac{1}{2\eta ^{3}}\left( -2(K\left( 0\right) -1)(1+\eta )^{2}d_{1}^{2}-(K^{\prime \prime }\left( 0\right) -2K^{\prime }\left( 0\right) (5+2\eta )\right. \nonumber \\&+K\left( 0\right) (11+7\eta )d_{1}^{3}+2\eta (4-4K^{\prime }\left( 0\right) -3K\left( 0\right) (\eta -1)+3\eta )d_{1}d_{2} \nonumber \\&+\left. 6(K\left( 0\right) -1)\eta ^{2}d_{3}\right) e_{k}^{4}+\cdots +O(e_{k}^{9}). \end{aligned}$$
(12)

If we choose the values of \(K\left( 0\right) \), \(K'\left( 0\right) \) and \(K'\left( 0\right) \) in (12), given as:

$$\begin{aligned} K\left( 0\right) =1,\ \ \ \ K'\left( 0\right) =2 \end{aligned}$$
(13)

we obtain

$$\begin{aligned} \upsilon _{k}= & {} \frac{(9-K''\left( 0\right) +\eta )d_{1}^{3}-2\eta d_{1}d_{2}}{2\eta ^{3}}e_{k}^{4}-\frac{1}{6\eta ^{4}} (6(1+\eta )^{2}d_{1}^{3}\\&+(119+K'''\left( 0\right) +72\eta +\eta ^{2} \\&-3K''\left( 0\right) (7+3\eta ))d_{1}^{4}+12\eta ^{2}d_{2}^{2}-24\eta ^{2}d_{1}d_{3}\\&+6\eta (-20+3K''\left( 0\right) +2\eta )d_{1}^{2}d_{2})e_{k}^{5}+\cdots +O(e_{k}^{9}). \end{aligned}$$

Next, from Taylor expansion of \(g(\upsilon _{k})\) about w:

$$\begin{aligned} g(\upsilon _{k})= & {} e_{k}^{4\eta }\left( \frac{2^{-\eta }}{\eta !}\left( \frac{\left( 11+\eta \right) d_{1}^{3}-2\eta d_{1}d_{2}}{\eta ^{3}}\right) ^{\eta }\right. \nonumber \\&\left. - \frac{1}{3(\eta ^{3}\eta !)}\left( 2^{-\eta }\left( \frac{\left( 11+\eta \right) d_{1}^{3}-2\eta d_{1}d_{2}}{\eta ^{3}}\right) ^{-1+\eta } \right. \right. \nonumber \\&\left. \left. \left( 6(1+\eta )^{2}d_{1}^{3}+(161+K'''+90\eta +\eta ^{2})d_{1}^{4}\right. \right. \right. \nonumber \\&\left. \left. \left. +12(\eta -13)\eta d_{1}^{2}d_{2}+ 12\eta ^{2}d_{2}^{2}-24\eta ^{2}d_{1}d_{3}\right) \right) e_{k}\right) \nonumber \\&+\cdots +O(e_{k}^{9}). \end{aligned}$$
(14)

By using (5) and (14), \(q_{k}=\left( \dfrac{g(\upsilon _{k})}{g(\tau _{k})}\right) ^{\frac{1}{\eta }}\) becomes:

$$\begin{aligned} q_{k}= & {} \frac{\left( \left( 11+\eta \right) d_{1}^{3}-2\eta d_{1}d_{2}\right) e_{k}^{3}}{2\eta ^{3}}-\frac{1}{6\eta ^{4}}(6(1+\eta )^{2}d_{1}^{3}+(194+K'''\left( 0\right) +93\eta +\eta ^{2})d_{1}^{4} \nonumber \\&+6\eta \left( -27+2\eta \right) d_{1}^{2}d_{2}+ 12\eta ^{2}d_{2}^{2}-24\eta ^{2}d_{1}d_{3})e_{k}^{4}+\cdots +O(e_{k}^{9}). \end{aligned}$$
(15)

Similarly, from (8) and (14) \(r_{k}=\left( \frac{g(\upsilon _{k})}{ g(\mu _{k})}\right) ^{\frac{1}{\eta }}\),

$$\begin{aligned} r_{k}= & {} \frac{\left( \left( 11+\eta \right) d_{1}^{2}-2\eta d_{2}\right) e_{k}^{2}}{2\eta ^{2}}+\frac{1}{6\eta ^{3}}(-6\left( 1+\eta \right) ^{2}d_{1}^{2}- (128+K'''\left( 0\right) +54\eta -2\eta ^{2})d_{1}^{3} \nonumber \\&+12\left( 7-2\eta \right) \eta d_{1}d_{2}+ 24\eta ^{2}d_{3})e_{k}^{3}+\cdots +O(e_{k}^{9}). \end{aligned}$$
(16)

The expansion of the weight function \(L\left( p_{k},q_{k},r_{k}\right) \) in the neighborhood of \(\left( 0,0,0\right) \) is given by,

$$\begin{aligned} L\left( p_{k},q_{k},r_{k}\right)= & {} L_{000}+p_{k}L_{100}+q_{k}L_{010}+r_{k}L_{001}+p_{k}q_{k}L_{110}+ p_{k}r_{k}L_{101}\\&+q_{k}r_{k}L_{011}+\frac{r_{k}^{2}}{2}L_{002}, \end{aligned}$$

and therefore,

$$\begin{aligned} e_{k+1}= & {} \upsilon _{k}-p_{k}\Bigg (L_{000}+p_{k}L_{100}+q_{k}L_{010}+r_{k}L_{001}+p_{k}q_{k}L_{110}+ p_{k}r_{k}L_{101}\\&+q_{k}r_{k}L_{011}+\frac{r_{k}^{2}}{2}L_{002}\Bigg )(e_{k}-\mu _{k}). \end{aligned}$$

After substituting the values of \(p_{k}\), \(q_{k}\) and \(r_{k}\) from (9), (15) and (16), the error equation becomes:

$$\begin{aligned} e_{k+1}=-\frac{1}{\eta }(L_{000}d_{1}e_{k}^{2})+\frac{1}{\eta ^{2}} ((-L_{100}+L_{000}(3+\eta ))d_{1}^{2}-2L_{000}\eta d_{2})e_{k}^{3}+\cdots +O(e_{k}^{9}). \nonumber \\ \end{aligned}$$
(17)

As \(L_{ijk}=\frac{\partial ^{i+j+k}}{\partial p^{i}\partial q^{j}\partial r^{k}}L\left( p,q,r\right) |_{\left( 0,0,0\right) },\) in order to achieve higher order of convergence, we use the values:

$$\begin{aligned} L_{000}= & {} 0, \, L_{100}=0,K''\left( 0\right) =-2, \end{aligned}$$
(18)
$$\begin{aligned} L_{001}= & {} 1, \, L_{101}=2-L_{010}, \end{aligned}$$
(19)
$$\begin{aligned} L_{110}= & {} 0,L_{002}=2. \end{aligned}$$
(20)

By using (18) in (17),

$$\begin{aligned} e_{k+1}= & {} -\frac{1}{2\eta ^{3}}\left( \left( -1+L_{001}\right) d_{1}\left( \left( 11+\eta \right) d_{1}^{2}-2\eta d_{2}\right) \right) e_{k}^{4}\\&+\frac{1}{6\eta ^{4}}(6\left( -1+L_{001}\right) \left( 1+\eta \right) ^{2}d_{1}^{3}\\&+(-161+K'''\left( 0\right) \left( -1+L_{001}\right) -33L_{010}-33L_{101}\\&-90\eta -3L_{010}\eta -3L_{101}\eta -\eta ^{2}\\&+L_{001}\left( 227+96\eta +\eta ^{2}\right) d_{1}^{4}+6(26+L_{010}+L_{101}\\&+2L_{001}\left( -14+\eta \right) -2\eta )\eta d_{1}^{2}d_{2} \\&+12(-1+L_{001})\eta ^{2}d_{2}^{2}- 24(-1+L_{001})\eta ^{2}d_{1}d_{3})e_{k}^{5}+\cdots +O(e_{k}^{9}). \end{aligned}$$

Furthermore, from (19),

$$\begin{aligned} e_{k+1}=\frac{1}{24\eta ^{4}}\left( d_{1}^{2}(-2+L_{010}+L_{101})\left( 2\eta d_{2}-\left( 11+\eta \right) d_{1}^{2}\right) \right) e_{k}^{6}+\cdots +O(e_{k}^{9}), \end{aligned}$$

and from conditions (20),

$$\begin{aligned} e_{k+1}= & {} \frac{1}{12\eta ^{6}}(d_{1}^{2}\left( \left( 11+\eta \right) d_{1}^{2}-2\eta d_{2}\right) (\left( K^{\prime \prime \prime }\left( 0\right) +12\left( 8+\eta \right) -3L_{011}\left( 11+\eta \right) \right) d_{1}^{2} \nonumber \\&+6\left( -4+L_{011}\right) \eta d_{2})e_{k}^{7}+\cdots +O(e_{k}^{9}). \end{aligned}$$
(21)

Now, by using \(L_{011}=4\) in (21), we get

$$\begin{aligned} e_{k+1}=\frac{1}{12\eta ^{6}}\left( -36+K'''\left( 0\right) \right) d_{1}^{4}\left( \left( 11+\eta \right) d_{1}^{2}-2\eta d_{2}\right) e_{k}^{7}+\cdots +O(e_{k}^{9}). \end{aligned}$$

Clearly, for \(K'''\left( 0\right) =36\) in (21), the error equation indicates eighth order of convergence as an optimal order of convergence:

$$\begin{aligned} e_{k+1}= & {} -\frac{1}{24\eta ^{7}}\left( d_{1}\left( (11+\eta \right) d_{1}^{2}-2\eta d_{2})(-12\left( 1+\eta \right) ^{2}d_{1}^{3}+\left( -665-84\eta +5\eta ^{2}\right) d_{1}^{4} \right. \\&-\left. 24\eta \left( -5+2\eta \right) d_{1}^{2}d_{2}-12\eta ^{2}d_{2}^{2}+60\eta ^{2}d_{1}d_{3})\right) e_{k}^{8}+O(e_{k}^{9}). \qquad \square \end{aligned}$$

\(\square \)

From Theorem 1, we can get several new root finding methods for multiple roots by using different cases for \(K(p_{k})\) and \(L(p_{k},q_{k},r_{k})\) in the proposed scheme (1). We discuss few particular cases of the proposed class. It is important to note that the choice of specific values of parameter \(\gamma \) can be made under the point of view of an improvement of the stability and a widening of the set of converging initial estimations. However, as in the iterative expression of the new class, \(g[\tau _{k},\rho _{k}]\) is an estimation of \(g'(\tau _k)\), it is clear that the approximation of the derivative is better when \(\gamma \) is close to zero.

2.1 Some special cases of weight functions

Many special cases of the proposed scheme (1) can be generated by using different forms of weight functions \(K\left( p\right) \) and L(pqr). These weight functions satisfy the conditions given in Theorem 1. We discuss some simple cases as follows:

Case 1

When K(p) is a third-degree polynomial, we can express it as

$$\begin{aligned} K(p)=a_{1}+a_{2}p+a_{3}p^{2}+a_{4}p^{3}. \end{aligned}$$

By using the condition set (2), the weight function K(p) becomes:

$$\begin{aligned} K(p)=1+2p-p^{2}+6p^{3}. \end{aligned}$$

By taking the other weight function L(pqr) as a second-degree polynomial,

$$\begin{aligned} L(p,q,r)=b_{1}q+b_{2}qr+b_{3}r+b_{4}r^{2}, \end{aligned}$$

and applying the conditions stated in Theorem 1, L(pqr) becomes

$$\begin{aligned} L(p,q,r)=2q+4qr+r+r^{2}. \end{aligned}$$

Therefore, the resulting scheme is denoted by FZ1 and has the iterative expression:

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}(1+2p_{k}-p_{k}^{2}+6p_{k}^{3})\frac{ g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta p_{k}(2q_{k}+4q_{k}r_{k}+r_{k}+r_{k}^{2}) \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}. \end{aligned}$$

Case 2

By considering the rational form of weight function K(p) as:

$$\begin{aligned} K\left( p\right) =\frac{1+a_{1}p+a_{2}p^{2}}{1+a_{3}p+a_{4}p^{2}}, \end{aligned}$$

and imposing conditions (2), we get K(p) in the form,

$$\begin{aligned} K\left( p\right) =\frac{1-9p^{2}}{1-2p-4p^{2}}. \end{aligned}$$

Let us take L(pqr) as the second-degree polynomial

$$\begin{aligned} L(p,q,r)=b_{1}pr+b_{2}qr+b_{3}r+b_{4}r^{2}, \end{aligned}$$

which becomes,

$$\begin{aligned} L(p,q,r)=2pr+4qr+r+r^{2}. \end{aligned}$$

Thus, the resulting member of class (1) is denoted by FZ2 and has the following expression:

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}\left( \frac{1-9p_{k}^{2}}{ 1-2p_{k}-4p_{k}^{2}}\right) \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta p_{k}(2p_{k}r_{k}+4q_{k}r_{k}+r_{k}+r_{k}^{2})\frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}. \end{aligned}$$

Case 3

Let us consider the weight function K(p) in the form of a proper rational function:

$$\begin{aligned} K\left( p\right) =\frac{1+a_{1}p}{a_{2}+a_{3}p+a_{4}p^{2}}. \end{aligned}$$

By using the conditions of Theorem 1, K(p) becomes;

$$\begin{aligned} K\left( p\right) =\frac{5+18p}{5+8p-11p^{2}}, \end{aligned}$$

Taking again the second weight function L(pqr) as the second-degree polynomial

$$\begin{aligned} L(p,q,r)=q+pr+4qr+r+r^{2}, \end{aligned}$$

the obtained element of family (1) is denoted by FZ3 and can be expressed as

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}\left( \frac{5+18p_{k}}{ 5+8p_{k}-11p_{k}^{2}}\right) \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta p_{k}(q_{k}+p_{k}r_{k}+4q_{k}r_{k}+r_{k}+r_{k}^{2})\frac{g(\tau _{k})}{ g[\tau _{k},\rho _{k}]}. \end{aligned}$$

Case 4

Let us consider the weight function K(p) in the form:

$$\begin{aligned} K(p)=\frac{1+a_{1}p+a_{2}p^{2}+a_{3}p^{3}}{1+a_{4}p}. \end{aligned}$$

After applying conditions (2), the weight function \(K\left( p\right) \) becomes:

$$\begin{aligned} K(p)=\frac{1+3p+p^{2}+5p^{3}}{1+p}, \end{aligned}$$

and L(pqr) is the same as in previous cases,

$$\begin{aligned} L(p,q,r)=2pr+4qr+r+r^{2}. \end{aligned}$$

So that, the resulting scheme is denoted by FZ4 and has the iterative expression

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}\left( \frac{ 1+3p_{k}+p_{k}^{2}+5p_{k}^{3}}{1+p_{k}}\right) \frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta p_{k}(2p_{k}r_{k}+4q_{k}r_{k}+r_{k}+r_{k}^{2})\frac{g(\tau _{k})}{g[\tau _{k},\rho _{k}]}. \end{aligned}$$

3 Numerical and dynamical analysis

In this section, we check the convergence behavior and performance of Case 1 to Case 4 of our proposed eighth order scheme denoted respectively by FZ1, FZ2, FZ3 and FZ4 by carrying out some nonlinear equations from real life applications of chemical engineering. We compare the methods with the recent derivative free methods of seventh order (see [15], Case I(a), Case II(c)) denoted by SH1, SH2 and eighth order (see [16], M-4 and [14]) denoted as SH3 and SH4. The recent seventh order methods are defined by, in case of SH1

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in \mathbb {R-}\left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}\left( 1+2p_{k}-p_{k}^{2}\right) \frac{ g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta q_{k}\left( 1+2p_{k}+r_{k}+r_{k}^{2}\right) \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \end{aligned}$$

and SH2 is

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in \mathbb {R-}\left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \upsilon _{k}= & {} \mu _{k}-\eta p_{k}\left( \frac{2+5p_{k}}{2+p_{k}}\right) \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta q_{k}\left( 1+2p_{k}+r_{k}+r_{k}^{2}\right) \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \end{aligned}$$

where

$$\begin{aligned} p_{k} =\left( \frac{g\left( \mu _{k}\right) }{g\left( \tau _{k}\right) } \right) ^{\frac{1}{\eta }}, \quad q_{k} =\left( \frac{g\left( \upsilon _{k}\right) }{g\left( \tau _{k}\right) }\right) ^{\frac{1}{\eta }}, \quad r_{k} =\left( \frac{g\left( \upsilon _{k}\right) }{g\left( \mu _{k}\right) }\right) ^{\frac{1}{\eta }}. \end{aligned}$$

The above mentioned eight order scheme (see [16]) denoted by SH3 is defined as

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \upsilon _{k}= & {} \mu _{k}-\eta h_{k}\left( 1+3h_{k}\right) \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \tau _{k+1}= & {} \upsilon _{k}-\eta p_{k}q_{k}\left( \frac{ 1+3h_{k}+2q_{k}+8h_{k}q_{k}-14h_{k}^{3}}{\left( 1+h_{k}\right) \left( 1+q_{k}\right) }\right) \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }. \end{aligned}$$

where,

$$\begin{aligned} p_{k} =\left( \frac{g\left( \mu _{k}\right) }{g\left( \tau _{k}\right) } \right) ^{\frac{1}{\eta }}, \quad q_{k} =\left( \frac{g\left( \upsilon _{k}\right) }{g\left( \mu _{k}\right) }\right) ^{\frac{1}{\eta }}, \quad h_{k} =\frac{p_{k}}{1+p_{k}}. \end{aligned}$$

The most recent eighth order method (see [14]), denoted by SH4, is defined as:

$$\begin{aligned} \rho _{k}= & {} \tau _{k}+\gamma g\left( \tau _{k}\right) ,\text { where }\gamma \in {\mathbb {R}}\backslash \left\{ 0\right\} , \\ \mu _{k}= & {} \tau _{k}-\eta \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \upsilon _{k}= & {} \mu _{k}-\left( 3+2\eta p_{k}+\left( \eta -3\right) q_{k}\right) p_{k}\frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \\ \tau _{k+1}= & {} \upsilon _{k}-s_{k}\left( \left( 1-q_{k}\right) \left( 3+\left( 5r_{k}-3p_{k}-6\right) q_{k}\right) +\eta \left( 4+\left( r_{k}-3\right) q_{k}\right) q_{k}\right. \\&+\left. 2\eta \left( 1+q_{k}+\left( 2r_{k}-1\right) q_{k}^{2}\right) p_{k}-\eta \left( 4p_{k}q_{k}-\frac{1}{2}\left( 1+q_{k}\right) \right) p_{k}^{2}q_{k}\right) \frac{g\left( \tau _{k}\right) }{g\left[ \tau _{k},\rho _{k}\right] }, \end{aligned}$$

with

$$\begin{aligned} p_{k} =\left( \frac{g\left( \mu _{k}\right) }{g\left( \tau _{k}\right) } \right) ^{\frac{1}{\eta }}, \quad q_{k} =\left( \frac{g\left( \rho _{k}\right) }{g\left( \tau _{k}\right) } \right) ^{\frac{1}{\eta }}, \quad r_{k} =\left( \frac{g\left( \upsilon _{k}\right) }{g\left( \mu _{k}\right) }\right) ^{\frac{1}{\eta }}, \quad s_{k} =\left( \frac{g\left( \upsilon _{k}\right) }{g\left( \tau _{k}\right) }\right) ^{\frac{1}{\eta }}. \end{aligned}$$

For testing those methods numerically, we have performed all computations in computer algebra software Maple 16 using 300 significant digits of precision. We take the value of \(\gamma =0.001.\) Tables show per step numerical errors of approximating real root \(\left| \tau _{k}-\tau _{k-1}\right| \) of first three iterations, the absolute residual error of the test function at the third iteration, \(\left| g(\tau _{3})\right| \), and the computational order of convergence (see [6]).

$$\begin{aligned} COC\approx \frac{\ln |g(\tau _{k+2})/g\left( \tau _{k+1}\right) |}{\ln |g\left( \tau _{k+1}\right) /g\left( \tau _{k}\right) |},\ \ \ \ k=1,2,.. \end{aligned}$$

For dynamical analysis, we use the graphical tool known as basins of attraction. For a polynomial function, basins of attraction is also called a polynomiograph. The dynamical analysis gives us information about the stability and convergence regions of iterative schemes. The choice of initial guess decide the convergence of nonlinear function towards the exact root. Many researchers have used basins of attraction to show the convergence behaviour of their schemes. Consider a function \(g_{k}\left( \tau \right) \) where \(\tau \in {\mathbb {C}}\) and \(w_{k}\) be the root of \(g_{k}\left( \tau \right) \). We have chosen the parameter \(\beta =0.001,\) \(10^{-5}\) as tolerance and we work out the schemes with maximum 15 number of iterations. A grid of \(1000\times 1000\) points in the complex plane \(\left[ a,b\right] \times \left[ c,d \right] \) is taken into consideration where the values of abc and d depends upon the zero of the nonlinear function. We select ‘ hot’ color map and assign black color to the divergence region with few exceptions. Different shades of colors are decided for different number of iterations used by the iterative method to converge to the root with required accuracy. We compare our presented schemes namely \( FZ1-FZ4\) with recent methods named as \(SH1-SH4\).

3.1 Applications to chemical engineering problems

Chemical Engineering deals with the applications of chemistry for industrial purposes. It effectively analyze the chemical methods to convert materials into more applicable and useful materials. Let us consider some examples from chemical engineering.

Example 1

Continuous Stirred Tank Reactors (CSTR) Let us consider an isothermal continuous stirred tank reactor. The components E and M are fed to the reactor at the rates of Q and q-Q respectively. The following reaction scheme develops in the reactor (see [3]):

$$\begin{aligned} E+M\rightarrow & {} F \\ F+M\rightarrow & {} G \\ G+M\rightarrow & {} H \\ H+M\rightarrow & {} I \end{aligned}$$

For designing simple feedback control system, this problem is analyzed by Douglas (see [5]). Consequently, following equation was obtained for the transfer function of the reactor,

$$\begin{aligned} K_{c}\frac{2.98(\tau +2.25)}{(\tau ^{4}+11.50\tau ^{3}+47.49\tau ^{2}+83.06325\tau +51.23266875)}=-1, \end{aligned}$$

where \(K_{c}\) is the gain of proportional controller. The control system is stable for the values of \(K_{c}\) that yields roots of the transfer function having negative real part. If we consider \(K_{c}=0\), we get the poles of the open loop transfer function as zero of the nonlinear function

$$\begin{aligned} g_{1}(\tau )=(\tau ^{4}+11.50\tau ^{3}+47.49\tau ^{2}+83.06325\tau +51.23266875), \end{aligned}$$

given by \(\tau =-1.45\), \(-2.85\), \(-2.85\), \(-4.35\). We take multiple root \( w=-2.85\) with multiplicity \(\eta =2\). By taking the initial guess \(\tau _{0}=-3.13\), the numerical results are given in Table 1.

Table 1 Computational comparison of iterative schemes for \(\hbox {g}_{1}(\tau )\)
Fig. 1
figure 1

Attraction basins of SH1–SH4 on \(g_{1}\left( \theta \right) \)

Fig. 2
figure 2

Attraction basins of FZ1–FZ4 on \(g_{1}\left( \theta \right) \)

The basins of attraction obtained for the methods \(SH1-SH4\) and \(FZ1-FZ4\) are shown in Figs. 1, 2. The attraction basins for \(g_{1}\left( \tau \right) \) are drawn in the rectangular region \([-5,0]\times [-2,2]\). When we observe these basins of attraction, we see that our newly proposed scheme have better convergence as compared to the methods \(SH1-SH4\). We notice that \(SH1-SH4\) take minimum 2 and maximum 12 iterations, \(FZ1-FZ4\) take minimum 2 and maximum 10 iterations to converge to the root.

3.1.1 Equations of state

An equation of state (EOS) relates the molar volume, temperature and the pressure of a substance. Its simplest form is the ideal gas equation of state:

$$\begin{aligned} PV=nRT, \end{aligned}$$

where P, V and T represents pressure, volume and temperature of a gas respectively. Here n is the number of moles of gas and R is the universal gas constant. There are many improved variants of EOS but we will not discuss all of them. We start with the virial equation of state which is the first improved form of EOS. We also discuss four improved cubic EOS: the Van Der Waals (VW), the Redlich–Kwong (RK), Soave Redlich–Kwong (SRK) and Peng–Robinson (PR) forms. All these equations can be written in the following form (see [18]):

$$\begin{aligned}&V^{3}+\left[ (c_{1}-1)b-\frac{RT}{P}\right] V^{2}+\left[ (c_{2}-c_{1})b^{2}-c_{1}\frac{RTb}{P}+ \frac{a\alpha (T_{r})}{P}\right] V\nonumber \\&\quad -\left( c_{2}b^{2}+c_{2}\frac{RTb}{P}+\frac{a(T_{r})}{P} \right) b=0, \end{aligned}$$
(22)

with different values of constants \(c_{1}\) and \(c_{2}\). Here a and b are the parameters defined as:

$$\begin{aligned} a =\lambda _{a}z\frac{(RT_{c})^{2}}{P_{c}}, \quad b =\lambda _{b}z\frac{RT_{c}}{P_{c}}, \end{aligned}$$

where \(T_{c}\) and \(P_{c}\) represents critical temperature and critical pressure respectively and \(T_{r}=\dfrac{T}{T_{c}}\). For Van Der Waals and Redlich–Kwong EOS, \(\alpha (T_{r})=1\). Moreover, at the critical isotherm, all equations of state have the value of the function \(\alpha (T_{r})\) equal to unity.

Example 2

Virial Equation of State Let us consider the virial equation of state:

$$\begin{aligned} V=\frac{RT}{P}\left( 1.0+\frac{b}{V}+\frac{c}{V^{2}}\right) . \end{aligned}$$

By using the values of parameters of a particular gas \( b=-159,c=9000,P=75,T=430.85,R=82.05\), we obtain the nonlinear function

$$\begin{aligned} g_{2}(\tau )=\tau -471.3499+\frac{7{,}49{,}444.6310}{\tau }-\frac{4.242149100}{ \tau ^{2}}, \end{aligned}$$

where \(\tau =V.\) Above equation has root \(w=213.0\) with \(\eta =1\). We choose initial guess \(\tau _{0}=100\) and numerical results are shown in Table 2.

Table 2 Computational comparison of iterative schemes for \(\hbox {g}_{2}(\tau )\)

It can be observed that the computational estimation of the order of convergence COC is the best at FZ1–FZ4, meanwhile the error at the third iteration is the lowest at SH1–SH2 and FZ2.

Fig. 3
figure 3

Attraction basins of SH1–SH4 of \(g_{2}\left( \theta \right) \)

Fig. 4
figure 4

Attraction Basins of FZ1–FZ4 of \(g_{2}\left( \theta \right) \)

In Example 2, the basins of attraction obtained for the methods SH1–SH4 and \(FZ1-FZ4\) are shown in Figs. 3, 4. Observing the region \([100,250]\times [-10,10]\), we conclude that SH1-SH4 take minimum two and maximum 10 numbers of iterations to converge to the root. On the other hand, FZ1–FZ4 take minimum two and maximum 8 iterations to converge to the root. In this example, black color shows the divergence region only for SH3 and in all other cases, it indicates the hue of two iterations.

Example 3

Van Der Waals Equation of State By using the values \( c_{1}=c_{2}=0, \) \(\lambda _{b}=\frac{1}{3},\) \(\lambda _{a}=\frac{9}{8},\) \(z= \frac{3}{8}\) and \(\alpha (T_{r})=1,\) we get the reduced Eq. (22) in the form:

$$\begin{aligned} V^{3}-\left( b+\frac{RT}{P}\right) V^{2}+\frac{a}{P}V-\frac{a}{P}b=0. \end{aligned}$$
(23)

For finding the volume V of a particular gas, we have to use the values of remaining parameters. For the given parameters a and b of a particular gas, we can get values of n (number of moles), P (pressure) and T (absolute temperature), such that the equation (23) has multiple root with multiplicity 3. By using these values, we get the nonlinear function

$$\begin{aligned} g_{3}(\tau )=\tau ^{3}-5.22\tau ^{2}+9.0825\tau -5.2675, \end{aligned}$$

where \(\tau =V\). This equation has the multiple root \(w=1.75\) with multiplicity \(\eta =2.\) By taking the initial guess \(\tau _{0}=2.00,\) the numerical results are presented in Table 3.

Table 3 Computational comparison of iterative schemes for \(\hbox {g}_{3}(\tau )\)

Again proposed methods reach better estimations of the theoretical order of convergence in the first three iterations. Moreover, the best error is obtained by SH4, FZ3 and FZ4.

Fig. 5
figure 5

Attraction basins of SH1–SH4 of \(g_{3}\left( \theta \right) \)

Fig. 6
figure 6

Attraction basins of FZ1–FZ4 of \(g_{3}\left( \theta \right) \)

For the Van Der Waals equation of state, the basins of attraction obtained for the methods SH1–SH4 and FZ1–FZ4 are shown in Figs. 5, 6. We use the region \([0,2]\times [-1,1]\) to draw the basins of attraction. The dynamical analysis shows that SH1–SH4 take minimum two and maximum eight numbers of iterations to converge to the root and FZ1–FZ4 take minimum two and maximum nine numbers of iterations to converge to the root.

Example 4

Redlich–Kwong Equation of State We consider the RK equation of state for solving V at critical isotherm. For this purpose, we use the values \(c_{1}=1,\) \(c_{2}=0,\) \(\lambda _{b}=0.2599,\) \(\lambda _{a}=1.2824,\) \( z=0.333\) and \(\alpha (T_{r})=1\) and obtain Eq. (22) in the form of Redlich–Kwong equation of state:

$$\begin{aligned} V^{3}-\frac{RT}{p}V^{2}-\left( b^{2}+\frac{RTb}{P}-\frac{a}{P}\right) V-\frac{ab}{p}=0. \end{aligned}$$

Let us solve the above equation for Carbon Dioxide \((CO_{2})\) at \( T=T_{c}=304.2\), \(P=P_{c}=72.85.\) By using these values, we get the nonlinear equation:

$$\begin{aligned} V^{3}-4.175703501V^{2}R+5.8123166576VR^{2}-2.696653814R^{3}=0, \end{aligned}$$

where \(R=0.082057366080960\), and solving for \(\tau =V\),

$$\begin{aligned} g_{4}(\tau )=\tau ^{3}-4.175703501\tau ^{2}R+5.8123166576\tau R^{2}-2.696653814R^{3}, \end{aligned}$$

gives us the multiple root \(w=0.1142157436\) with multiplicity \(\eta =3.\) By using the initial guess \(\tau _{0}=0.8,\) the numerical results are shown in Table 4, with excellent results in the first three iterations.

Table 4 Computational comparison of iterative schemes for \(\hbox {g}_{4}(\tau )\)
Fig. 7
figure 7

Attraction basins of SH1–SH4 of \(g_{4}\left( \theta \right) \)

Fig. 8
figure 8

Attraction basins of FZ1–FZ4 of \(g_{4}\left( \theta \right) \)

In Example 4, the basins of attraction obtained for the methods SH1–SH4 and FZ1–FZ4 are shown in Figs. 7, 8. We draw basins of attraction in the region \([-2,2]\times [-2,2]\) and conclude that SH1–SH4 and FZ1–FZ4 use minimum two and maximum three numbers of iterations to converge to the root. In this example, black color shows the hue of two iterations for all iterative schemes. FZ1–FZ4 has globally wider black region as compared to SH1–SH4.

Example 5

Soave Redlich–Kwong Equation of State Let us take the values \( c_{1}=1,c_{2}=0,\lambda _{b}=0.2599,\lambda _{a}=1.2824\) and \(\tau =0.333\) to get Eq. (22) in the form of Soave Redlich–Kwong equation of state:

$$\begin{aligned} V^{3}-\frac{RT}{P}V^{2}-\left( b^{2}+\frac{RT}{P}-\frac{a\alpha (T_{r})}{P}\right) V- \frac{ab\alpha (T_{r})}{P}=0, \end{aligned}$$

where \(\alpha (T_{r})=\) \( [1+(0.485081+1.55171w-0.15613w^{2})(1-T_{r}^{0.5})]^{2}.\) w represents the acentric factor of a specific gas. We solve this equation for Ammonia at \( T=302.15,\) \(P=229.9\times 10^{3}.\) We use \(T_{c}=405.55,\) \(P_{c}=1.128\times 10^{7},\) \(w=0.250\) and \(R=8.314\) and get the nonlinear equation:

$$\begin{aligned} g_{5}(\tau )=\tau ^{3}-0.01092681644\tau ^{2}+2.059291793\times 10^{-6}\tau -6.067720966\times 10^{-11}, \end{aligned}$$

where \(\tau =V\). It has a simple root \(w=0.0001547767475\). We choose the initial guess \(\tau _{0}=0.0003885\) and the numerical results are presented in Table 5.

Table 5 shows the best performance of FZ1–FZ4 schemes, even for simple roots.

For \(g_{5}(\tau ),\) the basins of attraction obtained for the methods \( SH1-SH4\) and \(FZ1-FZ4\) are shown in Figs. 9, 10. For this example, we consider the region \([-1,1]\times [-1,1]\) for dynamical analysis. The basins of attraction of \(SH1-SH4\) and \(FZ1-FZ4\) indicate that all iterative schemes take minimum two and maximum six iterations to converge to the root except SH3 which take minimum 2 and maximum 7 numbers of iterations for convergence towards the root. For all iterative schemes, hue of black color shows the divergence region except FZ3 and SH3 in which it indicates two iterations.

Table 5 Computational comparison of iterative schemes for \(\hbox {g}_{5}(\tau )\)
Fig. 9
figure 9

Attraction basins of SH1–SH4 of \(g_{5}\left( \theta \right) \)

Fig. 10
figure 10

Attraction basins of FZ1–FZ4 of \(g_{5}\left( \theta \right) \)

Example 6

Peng–Robinson Equation of State We also consider PR equation of state for finding multiple root of V at critical isotherm by using the values \(c_{1}=2,c_{2}=-1,\lambda _{b}=0.2531,\lambda _{a}=1.4874,z=0.3074\) and \(\alpha (T_{r})=1.\) Equation (22) takes the form:

$$\begin{aligned} V^{3}+\left( b-\frac{RT}{P}\right) V^{2}-\left( 3b^{2}+2\frac{RTb}{P}-\frac{a}{P}\right) V+\left( b^{2}+ \frac{RTb}{P}-\frac{a}{P}\right) b=0. \end{aligned}$$

Let us solve Peng–Robinson equation of state for Oxygen \(O_{2}\) at \( T=T_{c}=153\), \(P=P_{c}=50\) and using these values we get following nonlinear equation:

$$\begin{aligned} V^{3}-2.821923704V^{2}R+2.654417796VR^{2}-0.8322849442R^{3}=0, \end{aligned}$$

where \(R=0.0831446261815324\). Solving for \(\tau =V\),

$$\begin{aligned} g_{6}(\tau )=\tau ^{3}-2.821923704\tau ^{2}R+2.654417796\tau R^{2}-0.8322849442R^{3}, \end{aligned}$$

gives us the multiple root \(w=0.07820926381\) with multiplicity \(\eta =3.\) By using the initial guess \(\tau _{0}=0.9,\) the numerical results are presented in Table 6.

Table 6 Computational comparison of iterative schemes for \(\hbox {g}_{6}(\tau )\)
Fig. 11
figure 11

Attraction basins of SH1–SH4 of \(g_{6}\left( \theta \right) \)

Fig. 12
figure 12

Attraction basins of FZ1–FZ4 of \(g_{6}\left( \theta \right) \)

In this last example, we solve Peng–Robinson equation of state for oxygen \( O_{2}\) and the basins of attraction obtained for the methods SH1-SH4 and \( FZ1-FZ4\) are shown in Figs. 11, 12 We use the region \([-2,2]\times [-2,2]\) to draw the basins of attraction and examine that SH1-SH4 and FZ1-FZ4 use minimum two and maximum three numbers of iterations to converge to the root. In this example, the black color indicates the hue of two iterations for all iterative schemes. We observe that newly proposed scheme has globally wider black region as compared to recent methods.

4 Conclusion

There exist many numerical root-solvers with high order of convergence that require derivative evaluations for finding the multiple root of a function. The derivative free higher-order techniques for computing multiple root are rare and yet to be explored. It is not an easy task to attain an optimal derivative-free root-finder family of methods. We have presented a derivative-free optimal eighth order iterative scheme for finding the zeros of a nonlinear equations with known multiplicity of zeros with a univariate and a multivariate weight functions. The number of functional evaluations required for our presented scheme is four. We have compared the numerical results of our presented scheme with the most recent methods in the literature. We conclude that our method gives eight order of convergence also for the case when function has root of multiplicity one. The dynamical comparison of our presented method with recent seventh and eighth order methods shows that newly proposed method has, in general, wider convergence region. It is apparent from the numerical results and construction that our presented family of method is optimal and efficient in terms of small residual errors.