Research Article | Open Access

Volume 2012 |Article ID 302923 | https://doi.org/10.5402/2012/302923

R. K. Mohanty, Rajive Kumar, Vijay Dahiya, "Cubic Spline Method for 1D Wave Equation in Polar Coordinates", International Scholarly Research Notices, vol. 2012, Article ID 302923, 6 pages, 2012. https://doi.org/10.5402/2012/302923

# Cubic Spline Method for 1D Wave Equation in Polar Coordinates

Accepted28 Sep 2011
Published20 Nov 2011

#### Abstract

Using nonpolynomial cubic spline approximation in space and finite difference in time direction, we discuss three-level implicit difference scheme of for the numerical solution of 1D wave equations in polar coordinates, where and are grid sizes in time and space coordinates, respectively. The proposed method is applicable to problems with singularity. Stability theory of the proposed method is discussed, and numerical examples are given in support of the theoretical results.

#### 1. Introduction

We consider the 1D linear singular hyperbolic equation of the form subject to the initial conditions and with boundary conditions at of the form where and are time and distance variable, respectively. For and 2, the equation above represent, 1D wave equation in cylindrical and spherical polar coordinates, respectively. We shall assume that the initial and boundary conditions are given with sufficient smoothness to maintain the order of accuracy of the difference scheme and spline functions under consideration.

In this paper, we are interested to discuss a new approximation based on cubic spline polynomial for the solution to singular hyperbolic equation (1). During last three decades, several numerical schemes for the solution of two-point boundary value problems and partial differential equations have been developed by many researchers. First Bickley  and Fyfe  have discussed the second-order accurate spline method for the solution of linear two-point boundary value problems. Jain and Aziz  have derived fourth-order cubic spline method for solving the nonlinear two-point boundary value problems with significant first derivative terms. Further, Khan and Aziz  have studied parametric cubic spline method to the solution of a system of second-order boundary value problem. In 1974, Raggett and Wilson  have used a cubic spline technique of lower order accuracy to solve the wave equation. Later, Fleck Jr  has proposed a cubic spline method for solving the wave equation of linear optics. In recent years, Mohanty , Gao and Chi , Rashidinia et al. [9, 10], Mohebbi and Dehghan , Ding and Zhang [12, 13], and Liu and Liu  have derived various numerical methods for solution of nonsingular 2D hyperbolic equations. A difference method of accuracy two in time and four in space for the solution of differential equation (1) has been studied by Mohanty  using finite difference method. A new discretization method of order four for the numerical solution of one-space dimensional second-order nonlinear hyperbolic equations has been studied by Mohanty et al. [16, 17]. Recently, Mohanty and Dahiya  have derived highly accurate cubic spline method for the solution of parabolic equations. In this paper, using nine grid points, we discuss a new three-level implicit cubic spline finite difference method of accuracy two in time and four in space for the solution of differential equation (1). To the authors’ knowledge, no cubic spline method of accuracy two in time and four in space for the solution of (1) has been discussed in the literature so far. In next section, we discuss the derivation of the proposed cubic spline method. It has been experienced in the past that the cubic spline solutions for the wave equation in polar coordinates usually deteriorate in the vicinity of the singularity. We overcome this difficulty by modifying the method in such a way that the solutions retain its order and accuracy everywhere in the vicinity of the singularity. In Section 3, we discuss the linear stability analysis of the proposed cubic spline method. In Section 4, we compare the computed results with the one obtained by the method discussed in . Final remarks are given in Section 5.

#### 2. The Method Based on Cubic Spline Approximation

The solution domain is divided into mesh with the spatial step size in -direction and the time step size in -direction, respectively, where and are positive integers. The mesh ratio parameter is given by . Grid points are defined by . The notations are used for the discrete approximation and the exact value of at the grid point , respectively.

At the grid point , we denote

Let be the cubic spline interpolating polynomial of the function between the grid points and and be given by which satisfies at th level the following properties:(i) coincides with a polynomial of degree three on each , , ,(ii), and(iii), , .

The derivatives of cubic spline function are given by where and replacing by “,” we get Combining (8) and (9), we obtain Further, from (8), we have and, from (9), we have We consider the following approximations: Since the derivative values of defined by (7), (10), (11), and (12) are not known at each grid point , we use the following approximations for the derivatives of .

Let where and are approximations to and , respectively.

We may rewrite the differential equation (1) as

Let us denote .

A fourth-order method (see ) based on cubic spline approximations for the differential equation (15) may be written as where

Multiplying throughout by 6 and by the help of the approximations (17), from (16), we obtain a cubic spline finite difference method with accuracy of for the solution of differential equation (1) as

Note that the method (18) is of for the numerical solution of (1). However, the method fails to compute at . We modify the method in such a manner that it retains its order and accuracy in the vicinity of the singularity.

We use the following approximations: where and . Substituting the approximations (19) into (18) and neglecting higher order terms, we get

Note that the cubic spline method (20) is of for the numerical solution of differential equation (1), which is free from the terms hence can be computed for .

#### 3. Stability Analysis

Now we discuss the stability analysis for the scheme (20). For stability, we consider the homogeneous part of the scheme (20), which can be written as where

It is difficult to find the stability region for the scheme (21). In order to obtain a valid stability region, we may modify the scheme (21) (see ) as

The additional terms added in (23) are of high order and do not affect the accuracy of the scheme.

Put (where such that ) in the modified scheme (23), we getwhere is a nonzero real parameter to be determined. Left-hand side of (24) is a real quantity. Thus, the imaginary part of right-hand side of (24) must be zero.

Thus, we obtain provided.

Hence, .

Substituting the values of in (24) and (25), we obtain

Since , the method (23) is stable as long as , which is true if .

Hence, the required stability condition is which is the required stability interval for the scheme (23).

#### 4. Numerical Results

A difference method of , for the differential equation (1) may be written as

Note that the proposed cubic spline method (23) and the difference method (28) for second-order hyperbolic equation (1) are three-level schemes. The value of u at is known from the initial condition. To start any computation, it is necessary to know the numerical value of u of required accuracy at . In this section, we discuss an explicit scheme of for u at first time level, that is, at , in order to solve the differential equation (1) using the proposed method (23) and second-order method (28).

Since the values of and are known explicitly at , this implies all their successive tangential derivatives are known at , that is, the values of , and so forth, are known at .

An approximation for of at may be written as

From (1), we have

Thus, using the initial values and their successive tangential derivative values, from (30), we can obtain the value of , and, then ultimately, from (29), we can compute the value of at first time level, that is, at .

We solve the differential equation (1) in the region , whose exact solution is given by . The maximum absolute errors at are tabulated in Table 1 for various values of and in Table 2 for . We have compared the numerical results of the proposed method with the results obtained by using the method discussed in  in terms of accuracy. All computations were performed using double precision arithmetic.

 h Proposed 𝑂 ( 𝑘 2 + ℎ 4 ) method 𝑂 ( 𝑘 2 + ℎ 2 ) method 𝛼 = 1 𝛼 = 2 𝛼 = 1 𝛼 = 2 1/16 0.6222 (−4) 0.3981 (−4) 0.2094 (−3) 0.2760 (−3) 1/32 0.1593 (−4) 0.1057 (−4) 0.5404 (−4) 0.6849 (−4) 1/64 0.3997 (−5) 0.2699 (−5) 0.1365 (−4) 0.1705 (−4) 1/128 0.9944 (−6) 0.6797 (−6) 0.3412 (−5) 0.4257 (−5)
 h Proposed 𝑂 ( 𝑘 2 + ℎ 4 ) method 𝑂 ( 𝑘 4 + ℎ 4 ) method discussed in  𝛼 = 1 𝛼 = 2 𝛼 = 1 𝛼 = 2 1/10 0.3227 (−4) 0.1658 (−4) 0.6280 (−4) 0.5558 (−4) 1/20 0.1967 (−5) 0.1019 (−5) 0.3884 (−5) 0.3378 (−5) 1/40 0.1174 (−6) 0.6282 (−7) 0.2322 (−6) 0.2084 (−6) 1/80 0.6935 (−8) 0.3897 (−8) 0.1408 (−7) 0.1266 (−7)

A relation between the exact solution and the approximate numerical solution as given in the following equation: where is the measure of the mesh discretization, is a constant, and is the order (rate) of convergence. If the meshes to be considered are sufficiently refined, the higher-order terms can be neglected. Then, the maximum absolute errors can be approximated as

Taking the logarithm of both sides of (32), we obtain

For two different refined mesh spacing and , we have the following two relations

Subtracting (34b) from (34a), we obtain the order (rate) of convergence where and are maximum absolute errors for two uniform mesh widths and , respectively. For computation of order of convergence of the proposed method, we have considered and in Table 2, and we found the order of convergence of the proposed method for is 4.08 and for is 4.01.

#### 5. Final Remarks

Available numerical methods based on spline approximations for the numerical solution of 1D wave equation in polar coordinates are of accurate, which require nine grid points. In this paper, using the same number of grid points, we have discussed a new stable three-level implicit cubic spline finite difference method of accuracy for the solution of wave equation in polar coordinates. For a fixed parameter , the proposed method behaves like a fourth-order method, which is exhibited from the computed results.

#### Acknowledgment

The authors thank the anonymous reviewers for their constructive suggestions, which substantially improved the standard of the paper.

1. W. G. Bickley, “Piecewise cubic interpolation and two-point boundary value problems,” The Computer Journal, vol. 11, pp. 206–208, 1968. View at: Google Scholar
2. D. J. Fyfe, “The use of cubic splines in the solution of two-point boundary value problems,” The Computer Journal, vol. 12, pp. 188–192, 1969. View at: Publisher Site | Google Scholar
3. M. K. Jain and T. Aziz, “Cubic spline solution of two-point boundary value problems with significant first derivatives,” Computer Methods in Applied Mechanics and Engineering, vol. 39, no. 1, pp. 83–91, 1983. View at: Publisher Site | Google Scholar
4. A. Khan and T. Aziz, “Parametric cubic spline approach to the solution of a system of second-order boundary-value problems,” Journal of Optimization Theory and Applications, vol. 118, no. 1, pp. 45–54, 2003. View at: Publisher Site | Google Scholar
5. G. F. Raggett and P. D. Wilson, “A fully implicit finite difference approximation to the one-dimensional wave equation using a cubic spline technique,” Journal of the Institute of Mathematics and its Applications, vol. 14, pp. 75–77, 1974. View at: Publisher Site | Google Scholar
6. J. A. Fleck Jr., “A cubic spline method for solving the wave equation of nonlinear optics,” Journal of Computational Physics, vol. 16, pp. 324–341, 1974. View at: Publisher Site | Google Scholar
7. R. K. Mohanty, “An unconditionally stable difference scheme for the one-space-dimensional linear hyperbolic equation,” Applied Mathematics Letters, vol. 17, no. 1, pp. 101–105, 2004. View at: Publisher Site | Google Scholar
8. F. Gao and C. Chi, “Unconditionally stable difference schemes for a one-space-dimensional linear hyperbolic equation,” Applied Mathematics and Computation, vol. 187, no. 2, pp. 1272–1276, 2007. View at: Publisher Site | Google Scholar
9. J. Rashidinia, R. Jalilian, and V. Kazemi, “Spline methods for the solutions of hyperbolic equations,” Applied Mathematics and Computation, vol. 190, no. 1, pp. 882–886, 2007. View at: Publisher Site | Google Scholar
10. J. Rashidinia, R. Mohammadi, and R. Jalilian, “Spline methods for the solution of hyperbolic equation with variable coefficients,” Numerical Methods for Partial Differential Equations, vol. 23, no. 6, pp. 1411–1419, 2007. View at: Publisher Site | Google Scholar
11. A. Mohebbi and M. Dehghan, “High order compact solution of the one-space-dimensional linear hyperbolic equation,” Numerical Methods for Partial Differential Equations, vol. 24, no. 5, pp. 1222–1235, 2008. View at: Publisher Site | Google Scholar
12. H. Ding and Y. Zhang, “Parameters spline methods for the solution of hyperbolic equations,” Applied Mathematics and Computation, vol. 204, no. 2, pp. 938–941, 2008. View at: Publisher Site | Google Scholar
13. H. Ding and Y. Zhang, “A new unconditionally stable compact difference scheme of $O\left({\tau }^{2}+{h}^{4}\right)$ for the 1D linear hyperbolic equation,” Applied Mathematics and Computation, vol. 207, no. 1, pp. 236–241, 2009. View at: Publisher Site | Google Scholar
14. H.-W. Liu and L.-B. Liu, “An unconditionally stable spline difference scheme of $O\left({k}^{2}+{h}^{4}\right)$ for solving the second-order 1D linear hyperbolic equation,” Mathematical and Computer Modelling, vol. 49, no. 9-10, pp. 1985–1993, 2009. View at: Publisher Site | Google Scholar
15. R. K. Mohanty, “New unconditionally stable difference schemes for the solution of multi-dimensional telegraphic equations,” International Journal of Computer Mathematics, vol. 86, no. 12, pp. 2061–2071, 2009. View at: Publisher Site | Google Scholar
16. R. K. Mohanty, M. K. Jain, and K. George, “On the use of high order difference methods for the system of one space second order nonlinear hyperbolic equations with variable coefficients,” Journal of Computational and Applied Mathematics, vol. 72, no. 2, pp. 421–431, 1996. View at: Publisher Site | Google Scholar
17. R. K. Mohanty and U. Arora, “A new discretization method of order four for the numerical solution of one-space dimensional second-order quasi-linear hyperbolic equation,” International Journal of Mathematical Education in Science and Technology, vol. 33, no. 6, pp. 829–838, 2002. View at: Publisher Site | Google Scholar
18. R. K. Mohanty and V. Dahiya, “An $O\left({k}^{2}+k{h}^{2}+{h}^{4}\right)$ accurate two-level implicit cubic spline method for one space dimensional Quasi-linear parabolic equations,” American Journal of Computational Mathematics, vol. 1, pp. 11–17, 2011. View at: Google Scholar
19. R. K. Mohanty, “Stability interval for explicit difference schemes for multi-dimensional second-order hyperbolic equations with significant first-order space derivative terms,” Applied Mathematics and Computation, vol. 190, no. 2, pp. 1683–1690, 2007. View at: Publisher Site | Google Scholar