- Research
- Open access
- Published:

# A numerical solution by alternative Legendre polynomials on a model for novel coronavirus (COVID-19)

*Advances in Difference Equations*
**volume 2020**, Article number: 527 (2020)

## Abstract

Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. This paper provides a numerical solution for the mathematical model of the novel coronavirus by the application of alternative Legendre polynomials to find the transmissibility of COVID-19. The mathematical model of the present problem is a system of differential equations. The goal is to convert this system to an algebraic system by use of the useful property of alternative Legendre polynomials and collocation method that can be solved easily. We compare the results of this method with those of the Runge–Kutta method to show the efficiency of the proposed method.

## 1 Introduction

An outbreak of the 2019 novel coronavirus disease (COVID-19) in Wuhan, China has spread quickly nationwide. The COVID-19 epidemic has spread very quickly from China to all the world [1, 2]. Countries continue to battle the novel coronavirus as it has infected more than 28 million around the world [3].

In [4] the COVID-19 mathematical model has been derived as follows, where \(S_{p} ( t )\) is susceptible people, \(E_{p} ( t )\) is exposed people, \(I_{p} ( t )\) is symptomatic infected people, \(A_{p} ( t )\) is asymptomatic infected people, \(R_{p} ( t )\) is recovered and dead people, and \(W ( t )\) is COVID-19 in reservoir in time *t*. The parameters needed are defined in Table 1 and \(\Lambda _{p} = n_{p} \times N_{p}\), where \(N_{p}\) refers to the total number of people:

This paper aims to find the transmissibility of the COVID-19 by finding the unknowns \(S_{p}\), \(E_{p}\), \(I_{p}\), \(A_{p}\), \(R_{p}\), and *W*. In medical sciences, the computation of these variables is vital to measure the progression of disease and to get a better cure.

In this paper, for finding these variables, we use alternative Legendre polynomials and their operational matrix of derivative. The proposed method results are compared to those of Runge–Kutta method, which shows the reliability of the proposed method.

There exist some related papers on this topic that have solved the coronavirus model or some differential equation system that appears in the disease model, so we refer the readers to them to see some similar methods on this topic [5–8].

The remainder of the article is organized as follows. In Sect. 2, we review the properties of alternative Legendre polynomials and approximation of a function with them. Then we present the operational matrix of derivatives of these polynomials. In Sect. 3, we implement the alternative Legendre polynomials method on the coronavirus model. Section 4 shows the applicability of the proposed method through a test problem, also the results are compared with Runge–Kutta method results that confirm the reliability of the proposed method. Then Sect. 5 concludes the paper.

## 2 Some basic concepts of alternative Legendre polynomials (ALPs)

### 2.1 Properties of ALPs

The set \({P}_{n} = \{ P_{nk}:k = 0,1,\ldots,n\}\) of alternative Legendre polynomials of degree *n* is defined by an explicit formula on the interval \([0,1]\) (see [9]) as follows:

They are orthogonal on the interval \([0,1]\) with the weight function \(w(t) = 1\). The ALPs satisfy the orthogonality relationships

We can reproduce Eq. (2) with Rodrigues’s type as follows:

So, we have

Here, we note that each element of the set \({P}_{n} = \{ P_{nk}\}_{k = 0}^{n}\) is the polynomial of other *n*. For example, in the following we introduce the alternative Legendre polynomials \({P}_{3} = \{ P_{nk}\}_{k = 0}^{3}\) (\(n = 3\)).

In Fig. 1, we display the 4 set of ALPs with \(n = 3\) over the interval \([0,1]\).

### 2.2 Function approximation

Consider \({P}_{n} = \{ P_{nk}\}_{k = 0}^{n} \subset H = L^{2} [ 0,1 ]\) to be a set of ALPs and suppose that \(Y = \operatorname{Span} \{ P_{nk} ( t ):k = 0,1, \ldots ,n \} \). So, *Y* is a finite dimensional subspace of *H*. Suppose, *f* to be an arbitrary function in *H*. Therefore, based on the Weierstrass theorem, every continuous function \(f(t)\) on the interval [\(a,b\)] can be uniformly approximated by a polynomial function [9]. So, *f* has a unique best approximation in *Y* that we call \(f^{*}(t)\). We have

Then this implies that

where \(\langle \cdot,\cdot \rangle \) denotes an inner product. Therefore, any arbitrary function \(f \in H = L^{2} [ 0,1 ]\) may be approximated in terms of ALPs. So, there exists a set of unique coefficients \(\{ c_{k}:k = 0,1, \ldots ,n \} \) such that

coefficient \(c_{k}\) can be obtained in the following form:

and

Also, Eq. (8) can be written in a matrix form as follows:

where

and

Let \(a_{kj}^{(n)} = ( - 1)^{j}\binom {n - k }{j}\binom {n + k + j + 1}{n - k} \), then Eq. (2) can be written as

By using Eq. (14), for \(k = 0,1,\ldots,n\) now, we can write

Therefore Eq. (13) can be written in the following form:

where

and Φ is the upper triangular matrix defined by [10]

### Definition

The tensor product of two vectors \(f_{\hat{m}} = [ f_{i} ]\) and \(g_{\hat{m}} = [ g_{i} ]\) is defined as

Similarly, for two matrices \(A = [ a_{i,j} ]\) and \(B = [ b_{i,j} ]\) of \(\hat{m} \times \hat{m}\),

The lemma below will be needed in Sect. 3.

### Lemma

*Let the functions* \(f ( t )\), \(g ( t ) \in L^{2} [ 0,1 ]\)*be expanded into ALPs*, *that is*, \(f ( t ) = f^{T}\Phi ( t )\)*and* \(g ( t ) = g^{T}\Phi ( t )\). *Then*

### Proof

□

### 2.3 Operational matrix of derivative

In this section, we derive the operational matrix of derivative of the ALPs that plays an important role in simplifying a system of differential equations and implementation of the proposed method.

To compute this operational matrix, we need to introduce the following properties of ALPs that can easily be deduced from the given definitions. Let \(P_{ni}(t) = \sum_{r = 0}^{n} p_{r}^{(i)}t^{r}\), \(P_{nj}(t) = \sum_{r = 0}^{n} p_{r}^{(j)}t^{r}\), and \(P_{nk}(t) = \sum_{r = 0}^{n} p_{r}^{(k)}t^{r}\) be *i*th, *j*th, and *k*th of ALPs, respectively. Therefore, we have

The derivative of the vector \(\Phi (t)\) can be expressed by

Here, \(D^{(1)}\) is the \((n + 1) \times (n + 1)\) operational matrix of derivative.

So, by applying the differential operator with respect to *t*, we can write \(D_{t} = \frac{d}{dt}\) (see[11]). By applying the polynomial \(P_{nk}(t)\), we obtain

Here, by using Eq. (11), one can approximate \(t^{k + j - 1}\) in terms of ALPs as follows:

The approximation coefficients \(b_{r}^{(k,j)}\) are obtained using Eq. (9) as follows:

Substituting (27) into (26), we have

Then, using Eqs. (26) and (27), we have

hence

Therefore, for the vector \(\Phi (t) \) defined by (13), we get

where \(D^{(1)} \) is the \((n + 1) \times (n + 1) \) operational matrix of derivative based on the ALPs as follows:

## 3 Implementation of an alternative Legendre polynomials method on the novel coronavirus (COVID-19) problem

Firstly, note that the variable of system (1) becomes normalized as follows [4]:

So, the normalized model is changed as follows:

with the initial conditions

The main objective of this paper is to implement ALPs approach on the system of differential Eqs. (34) with the above initial conditions to find the numerical solution of this system. From Eq. (11), we can approximate our unknown functions as follows:

where coefficient vectors \(C_{i}:i = 1,\ldots,6\) that were defined in Eq. (29) are as follows:

By using Eqs. (34) and (32), we have

By substituting Eqs. (37) and (35) into the system of differential Eqs. (1), we have

Also, by considering the initial conditions for main problem (1) and Eq. (35), we have

Equation (39) gives six linear equations.

Since the total unknowns for vectors \(C_{i}:i = 1,\ldots,6\) are (\(6n + 5\)), we collocate Eq. (38) in the set of (\(6n - 1\)) nodal points \(t_{l}\) of the Guass–Chelyshkov [10] as follows:

Now, by replacing the nodes \(t_{l}\) in Eq. (38),

for \(i = 0,\ldots,6n - 1\), we can solve this system of 6*n* equations that resulted from Eqs. (39) and (41) by using Newton’s iteration scheme [12–16] for calculating the unknown vectors \(C_{i}:i = 1,\ldots,6\).

For existence and stability of the proposed method with ALPs, we can refer to paper [9].

In our implementation, the calculations are done in *Mathematica 11* software, on a personal computer with Core-i5 processor, 2.67 GHZ frequency, and 4 GB memory.

## 4 Numerical example

In this section a test problem of the coronavirus model is solved by our proposed method.

The values of the initial conditions and parameters are given as [4]:

Also, we get the initial values of unknown parameters as follows:

We solve this problem by \(n = 16\) in ALPs. The results of proposed method are compared with the results of Runge–Kutta method. Figure 2 and Tables 2–7 show the comparison between them.

## 5 Conclusion

The World Health Organization declared the coronavirus (COVID-19) a pandemic on March 11, 2020. This virus spread quickly in more than 200 countries, and up to now more than 28 million around the world have been infected. This paper aims to solve the mathematical model of coronavirus that can show the transmissibility of this virus that is vital to measure the progression of the disease and to get a better cure. By use of alternative Legendre polynomials and their operational matrix of derivative, we convert the system of coronavirus model to an algebraic model. We compare the results of the present method with those of the Runge–Kutta method, which confirmed the reliability of the proposed method results.

## References

World Health Organization. Coronavirus. World Health Organization, Available at https://www.who.int/health-topics/coronavirus

Novel, C.P.: The epidemiological characteristics of an outbreak of 2019 novel coronavirus diseases (COVID-19) in China. Zhonghua liu xing bing xue za zhi= Zhonghua liuxingbingxue zazhi

**41**(2), 145 (2020)This site shows Coronavirus cases online, Available at https://www.worldometers.info/coronavirus/

Chen, T.M., Rui, J., Wang, Q.P., Zhao, Z.Y., Cui, J.A., Yin, L.: A mathematical model for simulating the phase-based transmissibility of a novel coronavirus. Infect. Dis. Poverty

**9**(1), 1–8 (2020)Ullah, S., Khan, M.A.: Modeling the impact of non-pharmaceutical interventions on the dynamics of novel coronavirus with optimal control analysis with a case study. Chaos Solitons Fractals

**139**, 110075 (2020)Khan, M.A., Atangana, A.: Modeling the dynamics of novel coronavirus (2019-nCov) with fractional derivative. Alex. Eng. J.

**59**(4), 2379–2389 (2020)Atangana, A.: Modelling the spread of COVID-19 with new fractal-fractional operators: can the lockdown save mankind before vaccination? Chaos Solitons Fractals

**136**, 109860 (2020)Atangana, A., Araz, S.İ.: New numerical method for ordinary differential equations: Newton polynomial. J. Comput. Appl. Math.

**372**, 112622 (2020)Chelyshkov, V.S.: Alternative orthogonal polynomials and quadratures. Electron. Trans. Numer. Anal.

**25**(7), 17–26 (2006)Meng, Z., Yi, M., Huang, J., Song, L.: Numerical solutions of nonlinear fractional differential equations by alternative Legendre polynomials. Appl. Math. Comput.

**336**, 454–464 (2018)Ebadi, M.A., Hashemizadeh, E.: A new approach based on the Zernike radial polynomials for numerical solution of the fractional diffusion-wave and fractional Klein–Gordon equations. Phys. Scr.

**93**(12), 125202 (2018)Maleknejad, K., Hashemizadeh, E.: A numerical approach for Hammerstein integral equations of mixed type using operational matrices of hybrid functions. Sci. Bull. “Politeh.” Univ. Buchar., Ser. A, Appl. Math. Phys.,

**73**, 95–104 (2011)Maleknejad, K., Hashemizadeh, E., Basirat, B.: Computational method based on Bernstein operational matrices for nonlinear Volterra–Fredholm–Hammerstein integral equations. Commun. Nonlinear Sci. Numer. Simul.

**17**(1), 52–61 (2012)Maleknejad, K., Hashemizadeh, E.: Numerical solution of nonlinear singular ordinary differential equations arising in biology via operational matrix of shifted Legendre polynomials. Am. J. Comput. Appl. Math.

**1**(1), 15–19 (2011)Ebadi, M.A., Hashemizadeh, E.S., Refahi Sheikhani, A.H.: Zernike radial polynomials method for solving nonlinear singular boundary value problems arising in physiology. J. New Res. Math.

**5**(19), 139–150 (2020)Maleknejad, K., Hashemizadeh, E.: Numerical solution of the dynamic model of a chemical reactor by hybrid functions. Proc. Comput. Sci.

**3**, 908–912 (2011)

### Acknowledgements

The authors would like to express their sincere thanks to all the doctors and nurses around the world risking their lives to save others in the coronavirus pandemic. Also, we would like to show our gratitude to the editor of the journal and anonymous reviewers for their comments that greatly improved the quality of manuscript.

### Availability of data and materials

The final number of coronavirus cases can be found in the following site: https://www.worldometers.info/coronavirus/. And the material is not applicable.

## Funding

Not applicable.

## Author information

### Authors and Affiliations

### Contributions

The authors have equal contributions to each part of this paper. All the authors read and approved the final manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that they have no competing interests.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Hashemizadeh, E., Ebadi, M.A. A numerical solution by alternative Legendre polynomials on a model for novel coronavirus (COVID-19).
*Adv Differ Equ* **2020**, 527 (2020). https://doi.org/10.1186/s13662-020-02984-4

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13662-020-02984-4