1,090
Views
10
CrossRef citations to date
0
Altmetric
Full Length Article

Numerical solution of quadratic Riccati differential equations

&
Pages 392-397 | Received 28 Feb 2016, Accepted 25 Aug 2016, Published online: 08 Mar 2019

Abstract

The quadratic Riccati differential equations are part of non-linear differential equations which have many applications. This paper introduces the classical fourth order Runge Kutta method (RK4) for solving the numerical solution of the quadratic Riccati differential equations. To validate the applicability of the method on the proposed equation, some model examples have been solved for different values of mesh sizes. The numerical results in terms of point wise absolute errors presented in tables and graphs show that the present method approximates the exact solution very well.

1 Introduction

The Riccati differential equation is a well-known non linear differential equation and has different applications in engineering and science domains, such as robust stabilization, stochastic realization theory, network synthesis, optimal control and in financial mathematics [Citation1]. Non linear deferential equations are essential tools for modeling many physical situations, for instance, spring mass systems, resistor–capacitor–induction circuits, bending of beams, chemical reaction, pendulums, the motion of rotating mass around body and so on [Citation2].

Thus, the problem has attracted much attention and has been studied by many authors. Recently, various methods are used like: using the method of Bezier curves, by developing the Bezier polynomial of degree n [Citation3], the multistage variational iteration method is applied as a new efficient method for solving quadratic Riccati differential equation [Citation4], using Legendre scaling functions consisting of expanding the required approximate solution as the elements of Legendre scaling functions and the operational matrix of integral, then reducing the problem to a set of algebraic equations [Citation5] and approximate solution of generalized Riccati differential equations by iterative decomposition algorithm [Citation6]. The solution of Riccati equation with variable co-efficient by differential transformation method (DTM) [Citation7] has presented the absolute error between the approximated solutions which are obtained by DTM.

However, the above mentioned methods have some restrictions and disadvantages. For instance, there is a big difference between the results obtained by DTM, but as we have shown in examples there is a small point wise absolute error between the numerical result obtained by RK4 and the exact value. The classical RK4 is widely used for solving initial value problems and provides approximations which converge to the true solution as h approaches zero [Citation8,Citation9].

In this paper, we introduce classical RK4 method for solving the nonlinear Riccati quadratic differential equation. The stability of the method for the problem under consideration has also been investigated. The approximate solution obtained by the proposed method versus the exact solution for different values of mesh size on some nodal points has been given. To validate the efficiency of the method, four model examples are solved.

2 Formulation of the method

Consider the quadratic Riccati differential equation of the form:(1) dydt=p(t)+q(t)y+r(t)y2(1) with initial value condition(2) y(t0)=α(2) where p(t), q(t), r(t) are continuous with r(t)0, and t0, α are arbitrary constants for y(t), which is an unknown function. To describe the scheme, we denote the problem in Eq. Equation(1) as:(3) dydt=f(t, y)(3) and divide the interval [t0, tf] into N equal subintervals of mesh length h and the mesh points given by ti=t0+ih;i=1, 2, n. To solve the problem, we apply the single step method that requires information about the solution at ti to calculate ti+1 [Citation8]. Let the general numerical solution of Eq. Equation(1) be given as:(4) yi+1=yi+i=14wiki(4) where(5) ki=hf(ti+cih, yi+j=13aijkj),fori=1, 2, 3, 4(5) and the parameters ci, aij for i=2, 3, 4; and w1, , w4 are chosen in such a way that the numerical solution yi+1 approximates the exact solution y(ti+1)of Eq. Equation(1) very well.

Now, expanding k2, k3, k4 in Taylor series about ti, substituting in Eq. Equation(4) and matching the coefficients of h, h2, h3 and h4, we obtain the systems of equations which on solving gives us:c2=c3=1/2,c4=1,w2=w3=1/3,w1=w4=1/6,a21=1/2,a31=0,a32=1/2,a41=a42=0,a43=1.

Thus, Eq. Equation(4) becomes an explicit classical fourth order Runge Kutta method and written as:(6) yi+1=yi+16(k1+2k2+2k3+k4)(6) wherek1=hf(ti, yy)k2=hf(ti+h2, yi+k12)k3=hf(ti+h2, yi+k22)k4=hf(ti+h, yi+k3)

In the determination of the parameters, since the terms up to O(h4) are compared, the truncation error is O(h5) and the order of the method is 4.

3 Stability and convergence analysis

Consider Eq. Equation(1) at the discretized point as:(7) f(ti, yi)=p(ti)+q(ti)y(ti)+r(ti)y2(ti)(7)

Further, consider the linear first order test differential equation:y=λy,y(t0)=y0Where λ is a constant, and has its solution in the form ofy(t)=y(t0)e(λ(tt0))which att=t0+nh.

The solution becomes:(8) y(tn)=y(t0)eλnh=y0(eλh)n(8)

Let the non-linear quadratic Riccati differential equation of the form given in Eqs. (1)–(3) and Eq. Equation(7) written as:(9) y=f(t, y);y(t0)=y0=α(9)

The non-linear function Eq. Equation(9) can be linearized by expanding the function in Taylor series about the point (t0, y0) and truncating it after the first term:(10) y=f(t0, y0)+(tt0)ft(t0, y0)+(yy0)fy(t0, y0)(10)

Using Eq. Equation(7) and by the chain rule differentiation, we have y=p0+q0y0+r0y02+(tt0)[p0+q0y0+q0y0+r0y02+2r0y0y0]+y[q0+2r0y0y0]q0y02r0y02y0 For simplicity, consider p(t0)=p0, q(t0)=q0, r(t0)=r0, y(t0)=y0, y(t0)=y0 and using Eq. Equation(2) y(t0)=y0=α=constant; Thus, y0=0.(11) y=q0y+p0+r0y02+(tt0)[p0+q0y0+r0y02](11)

This can be written as:(12) y=λy+c(12) where λ=q0, c=p0+r0y02+(tt0)[p0+q0y0+r0y02]

Dividing both sides of Eq. Equation(12) by λ, we obtain yλ=y+cλ.

If w=y+cλ, then we have:(13) y=wcλ(13)

Substituting Eq. Equation(13) into Eq. Equation(12) gives:(14) w=λw(14) which is called the linear test equation for the non-linear Eq. Equation(1).

The solution of this test equation, Eq. Equation(15), is:(15) w=keλt(15)

Now, by considering Eq. Equation(6), we have:k1=hf(tn, yn)=λhynk2=λhyn+12(λh)2yn=[λh+(λh)22]ynk3=λhyn+12λh[λh+12(λh)2]yn=[λh+(λh)22+(λh)34]ynk4=λhyn+λh[λh+(λh)22+(λh)34]yn=[λh+(λh)2+(λh)32+(λh)44]yn

On substituting the values for k1, k2, k3 and k4, we obtain:yn+1=yn+16λhyn+13[(λh+(λh)22)yn]+13[(λh+(λh)22+(λh)34)yn]+16[(λh+(λh)2+(λh)32+(λh)44)yn]yn+1=[1+λh+(λh)22+(λh)36+(λh)424]yn(16) yn+1=E(λh)yn(16) Where E(λh)=1+λh+(λh)22+(λh)36+(λh)424

From Eq. Equation(8), it is easily observed that the exact value of y(tn) increases for the constant λ>0 and decreases for λ<0 with the factor eλh. While from Eq. Equation(16) the approximate value of ynincreases or decreases with the factor of E(λh). If λh>0, then eλh1, so the fourth order RK method is relatively stable. If λh<0, then the interval of absolutely stable is 2.78<λh<0.

The computational rate of convergence can also be obtained by using the double mesh principle defined below. Consider the numerical solution obtained by Eq. Equation(6) and let Zh=max|yihyih/2|, i=1, 2, , N1. Where yih is the numerical solution on the mesh {ti}1N1 at the nodal point ti=t0+ih, i=1, 2, , N1 and where yih/2 is the numerical solution at the nodal point t1 on the mesh {ti}12N1 where, ti=t0+ih/2, i=1, 2, , 2N1.

In the same way one can define Zh/2 by replacing h by h/2 and N1 by 2N1, that is, Zh/2=max|yih/2yih/4|, i=1, 2, , 2N1.

The computed rate of convergence is defined as:(17) Rate=logZhlogZh/2log2(17)

Numerical examples are given to illustrate the efficiency and convergence of this method.

In , the rate of convergence for examples 2, 3 and 4 respectively is given at different mesh sizes.

Table 1 Rate of convergence for some model examples with different mesh sizes.

4 Numerical examples

To validate the applicability of the method, four quadratic Riccati differential equations have been considered. For each N, the point wise absolute errors are approximated by the formula, E=|y(ti)yi|, for i=0, 1, 2, N and where,y(ti) and yi are the exact and computed approximate solution of the given problem respectively, at the nodal point ti.

Example 1

Consider the following quadratic Riccati differential equation [Citation3]

y(t)=16t25+8ty(t)+y2(t),0t1y(0)=1where the exact solution is: y(t)=14t.

The numerical solution in terms of point wise absolute errors by the comparing with the previous method is given in .

Example 2

Consider the following quadratic Riccati differential equation [Citation3Citation[4]Citation[5]Citation6]

y(t)=1+2y(t)y2(t),0t1y(0)=0,where the exact solution is: y(t)=1+2tanh(2t+0.5ln(212+1)).

Table 2 Absolute error for example 1 (mesh size h=0.1 OR N = 10).

The numerical solution in terms of absolute errors is given in .

Example 3

Consider the following quadratic Riccati differential equation [Citation3]

y(t)=ete3t+2e2ty(t)ety2(t),0t1y(0)=1.where the exact solution is y(t)=et.

Table 3 Absolute error for example 2.

The numerical solution in terms of absolute errors is given in .

Example 4

Consider the following Riccati differential equation [Citation5]

y(t)=11+t+y(t)y2(t),0t1y(0)=1with analytic solution y(t)=11+t. shows that the numerical solution in terms of absolute error for different step size h.

Table 4 Absolute errors for example 3.

Table 5 Absolute errors for example 4.

5 Numerical results

The following graphs (Figs. 1Fig. 2Fig. 34) show the numerical solutions obtained by the present method versus its corresponding exact solution.

Fig. 1 The graph of numerical and exact solution of example 1 for N = 30.
Fig. 2 The graph of numerical and exact solution of example 2 for N = 30.
Fig. 3 The graph of numerical and exact solution of example 3 for N = 30.
Fig. 4 The graph of numerical and solution exact solution of example 4 for N = 30.

6 Discussion and conclusion

In this paper, we presented classical KR4 for solving quadratic Riccati differential equations. To further collaborate the applicability of the proposed method; tables of point wise absolute error and graphs have been plotted for examples 1–4 for exact solution versus the numerical solutions at different values of mesh size h. shows that the absolute errors obtained by RK4 have been compared with absolute errors obtained by Ref. [Citation3]. also show that the point wise absolute error decreases as the mesh size h decreases, which in turn shows the convergence of the computed solution. Generally, the present method is computationally: stable, effective, simple to use, convergent and give accurate solution than some previously existing methods, including the more recent method in Ref. [Citation3].

References

  • S.RiazM.RafiqO.AhmadNon standard finite difference method for quadratic Riccati differential equation, Pakistan, Punjab UniversityJ Math4722015
  • A.R.VahidiM.DidgarImproving the accuracy of the solutions of Riccati equationsInt J Ind Math4120121120
  • F.GhomanjaniE.KhorramApproximate solution for quadratic Riccati differential equationJ Taibah Univ Sci201510.1016/j.jtusci.2015.04.001
  • B.BatihaA new efficient method for solving quadratic Riccati differential equationInt J Appl Math Res4120152429
  • R.N.BaghchehjoughiB.N.SarayM.LakestaniNumerical solution of Riccati differential equation using Legendre scaling functions, IranJ Curr Res Sci212014149153
  • O.A.TaiwoJ.A.OsilagunApproximate solution of generalized Riccati differential equations by iterative decomposition algorithmInt J Eng Innovative Tech122012
  • S.MukherjeB.RoySolution of Riccati equation with variable coefficient by differential transformation methodInt J Nonlinear Sci1422012251256
  • M.K.JainNumerical solution of differential equations, finite difference and finite element methods3rd ed2014New Age International Publishers
  • M.K.JainS.R.K.IyengrR.K.JainNumerical methods for scientific and engineering computation5th ed2007