• No results found

A new type of shooting method for nonlinear boundary value problems

N/A
N/A
Protected

Academic year: 2021

Share "A new type of shooting method for nonlinear boundary value problems"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

ORIGINAL ARTICLE

A new type of shooting method for nonlinear boundary

value problems

Muhammad Ahsan

*

, Sarah Farrukh

School of Chemical and Materials Engineering, National University of Sciences and Technology, H-12, Islamabad 44000, Pakistan Received 11 April 2013; revised 16 July 2013; accepted 18 July 2013

Available online 12 August 2013

KEYWORDS

Boundary value problem; New shooting method; Nonlinear boundary value problems;

Initial value problems; Interpolation

Abstract In this article we introduce a new type of iterative method for initial value problems (IVPs). We enhance this method by using shooting techniques and interpolation for the boundary value problems. Our method is more accurate and applicable than built in methods used in different software packages. We solved several examples for initial value problems and linear and non-linear boundary value problems and compared results to those obtained using MATLAB.

ª 2013 Production and hosting by Elsevier B.V. on behalf of Faculty of Engineering, Alexandria University.

1. Introduction

Many techniques for solving boundary value problems were discussed and presented by many researchers. The common technique for solving boundary value problems is shooting method. In shooting method the boundary value problem (BVP) is reduced to the solution of an initial value problem (IVP), by assuming initial values that would have been given if the ordinary differential equation were an initial value prob-lem. The boundary value calculated is then matched with the real boundary value. Using trial and error or some scientific approach, one attempts to get as close to the boundary value

as possible [1,2]. The concept of multiple shooting was first

suggested by Morrison et al.[3]later promoted by Keller[4]

who developed and analyzed both a simple shooting method (SSM) and a multiple shooting method (MSM). A more latest version of a multiple shooting method, MUSN, was developed

by Mattheij and Staarink[5]. Lie-group shooting method was

proposed by Liu[6–8].

In this article, we develop an iterative formula for the ini-tial value problem (IVP) and convert it to boundary value problem by shooting technique and interpolation. The mostly used shooting technique in different software depends on Newton Raphson method, which fails to predict results when the first derivative of function is zero or undefined .Thus, technique fails in many problems, while we used interpolation to approximate the guess, due to this we can solve several problems using shooting method that could not be solved. This article is organized as follows. Section1

is an introduction and Section 2introduces a new

approxi-mating formula for the IVP. Section3describes the shooting

technique and in Section 4 some nonlinear problems are

solved using the proposed shooting method. Section 5

con-cludes the paper. * Corresponding author. Tel.: +92 3336057937.

E-mail address:[email protected](M. Ahsan).

Peer review under responsibility of Faculty of Engineering, Alexandria University.

Production and hosting by Elsevier

Alexandria University

Alexandria Engineering Journal

www.elsevier.com/locate/aej www.sciencedirect.com

1110-0168ª 2013 Production and hosting by Elsevier B.V. on behalf of Faculty of Engineering, Alexandria University.

(2)

2. New approximating formula for initial value problem Let us consider the nonlinear initial value problem y0¼ fðx; yÞ; yðxoÞ ¼ yo

We consider the Taylor series expansion of yðx þ hÞ yðx þ hÞ ¼ yðxÞ þ hy0ðxÞ þ1 2h 2 y00ðxÞ þ1 3!h 3 y000ðxÞ þ Oðh4Þ ð1Þ

where the given nonlinear part of the initial value problem is y0ðxÞ ¼ fðx; yÞ

Now, we can further approximate for second and third derivatives,

y00ðxÞ ¼ fxðx; yÞ þ fyðx; yÞy0ðxÞ

y00ðxÞ ¼ fxðx; yÞ þ fyðx; yÞ  fðx; yÞ

y000ðxÞ ¼ fxxðx; yÞ þ fyxðx; yÞy0ðxÞ þ fyyðx; yÞðy0ðxÞÞ 2

y000ðxÞ ¼ fxxðx; yÞ þ fyxðx; yÞ  fðx; yÞ þ fyyðx; yÞf2ðx; yÞ

So putting all derivatives approximations in(1) yðx þ hÞ ¼ yðxÞ þ hfðx; yÞ þ1

2h 2f xðx; yÞ þ1 2h 2 fyðx; yÞfðx; yÞ þ 1 3!h 3 fxxðx; yÞ þ1 3!h 3 fyxðx; yÞfðx; yÞ þ 1 3!h 3 fyyðx; yÞf2ðx; yÞ ð2Þ

Consider the equation proposed for our iterative formula;

yðx þ hÞ ¼ yðxÞ þ Ahf0þ Bhf1þ Chf2 ð3Þ

where

f0¼ fðx; yÞ ð4Þ

f1¼ fðx þ Ph; y þ Qhf0Þ ð5Þ

f2¼ fðx þ Rh; y þ Shf1Þ ð6Þ

f1¼ fðx; yÞ þ Phfxðx; yÞ þ Qhfyðx; yÞfðx; yÞ ð7Þ

f2¼ fðx; yÞ þ Rhfxðx; yÞ þ Shfyðx; Þfðx; yÞ þ

S2h2 2 fyy

þ SRh2fxðx; yÞ þ R2h2fxxðx; yÞ ð8Þ

Our aim is to find the values of the constants A, B, C, P, Q, Rand S, putting(4)–(8)in(3)

yðx þ hÞ ¼ yðxÞ þ Ahfðx; yÞ þ Bhfðx; yÞ þ BPh2

fxðx; yÞ

þ BQh2fyðx; yÞfðx; yÞ þ Chfðx; yÞ þ CRh 2 fxðx; yÞ þ CSh2 fyðx; yÞfðx; yÞ þ CS2 h3 2fyyðx; yÞ þ CSRh3

fxðx; yÞfyðx; yÞ þ CR2h3fxxðx; yÞ

which implies

yðx þ hÞ ¼ yðxÞ þ hfðx; yÞ½A þ B þ C þ h2fxðx; yÞ½BP

þ CR þ h2 fyðx; yÞ½BQ þ CS þ CS2 h 3 2fyyðx; yÞ þ CSRh 3 fxfyþ CR2 h3 2fxx ð9Þ Comparing(2) and (9) Aþ B þ C ¼ 1 Let A¼ B ¼ C ¼ 1=3 BPþ CR ¼ 1=2 BQþ CS ¼ 1=2 CR2¼ 1=3 1=3ðP þ RÞ ¼ 1=2 ) P þ R ¼ 3=2 ) P ¼ 1=2 1=3ðQ þ SÞ ¼ 1=2 ) Q þ S ¼ 3=2 R2¼ 1 ) R ¼ 1

Solving above equations for the constants and putting val-ues in Eqs.(4)–(8) for solving(3), we have our required for-mula as f0¼ fðx; yÞ f1¼ xþ h 2; yþ hf0   f2¼ xþ h; y þ h 2f1   y¼ yðxÞ þh 3ðf0þ f1þ f2Þ ð10Þ 3. Shooting method

Let us consider the two point non-linear boundary value problem

y00¼ fðx; y; y0Þ; yðaÞ ¼ a; yðbÞ ¼ b ðAÞ

Our aim is to convert the above boundary value problem into initial value problem. In this case, (A) equation can be written as for IVP.

y00¼ fðx; y; y0Þ; yðaÞ ¼ a; y0ðaÞ ¼ Unknown

¼ s ðSayÞ ðAÞ

Now, the goal is to find s for which the solution satisfies the second boundary condition

(3)

yðbÞ ¼ b:

The method is explained by an example, (seeFig. 1).

Example. Take the case of a pressure vessel that is being tested in the laboratory to check its ability to withstand pressure. For a thick pressure vessel of inner radius ‘a’ and outer radius ‘b’, the differential equation for the radial displacement ‘u’ of a point along the thickness is given by[9]

d2u dr2þ 1 r du dr u r2¼ 0

Suppose that the inner radius a = 500and the outer radius

b= 800. Two strain gauges that are bonded tangentially at

the inner and the outer radius measure the normal tangential strain in the pressure vessel as

et=r¼a¼ 0:00077462

et=r¼b¼ 0:00038462

at the maximum needed pressure. Since the radial displace-ment and tangential strain are related simply by

et¼ u r Then ujr¼a¼ 0:00077462  5 ¼ 0:003873100 ujr¼b¼ 0:00038462  8 ¼ 0:003077000

Starting with the ordinary differential equation d2u dr2þ 1 r du dr u r2¼ 0; uð5Þ ¼ 0:0038731; uð8Þ ¼ 0:0030770 Let du dr¼ w Then dw drþ 1 rw u r2¼ 0

Giving us two first order differential equations as du dr¼ w; uð5Þ ¼ 0:0038731 00 dw dr ¼  w rþ u r2; wð5Þ ¼ not known Let us assume wð5Þ ¼du drð5Þ  uð8Þ  uð5Þ 8 5 ¼ 0:00026538

Set up the initial value problem. du dr¼ w ¼ f1ðr; u; wÞ; uð5Þ ¼ 0:0038731 00 dw dr ¼  w rþ u r2¼ f2ðr; u; wÞ; wð5Þ ¼ 0:00026538

The results obtained using the New Type Shooting Method are

summarized inTables 1 and 2together with a comparisons to

those obtained using other standard techniques in literature [9].

4. Some nonlinear problems are solved using shooting type method

Problem 1. The opening and closing of small high perfor-mance hydraulic valves used to control guidance jets in a space craft are accomplished by the use of torque motor. The IVP describing the rotation of the motor shaft is[10].

h00þ 4h0þ 3h ¼ cos t; hð0Þ ¼ h0ð0Þ ¼ 0

in which h stand for angular displacement of the motor shaft.The results are shown inFig. 2.

Problem 2. Consider the unidirectional thin film flow of an incompressible fluid of third grade down an inclined plane of inclination a„ 0 in[11]. It is assumed that the ambient air was

Table 1 Comparison of new shooting type method (NSTM) with other methods.

r(in) Exact (in) Euler (in) Runge Kutta (in) NSTM

5 3.8731· 103 3.8731· 103 3.8731· 103 3.8731· 103

5.75 3.5567· 103 3.5085· 103 3.5554· 103 3.6149· 103

6.5 3.3366· 103 3.2858· 103 3.3341· 103 3.4522· 103

7.25 3.1829· 103 3.1518· 103 3.1792· 103 3.3549· 103

8 3.0770· 103 3.0770· 103 3.0723· 103 3.3070· 103

Table 2 Error in results of new shooting type method (NSTM) and other methods.

r(in) Exact (in) |et| (%) (Euler) |et| (%) Runge Kutta (in) |et| (%) NSTM

5 3.8731· 103 0 0 0

5.75 3.5567· 103 1.3731 3.5824· 102 5.82· 103

6.5 3.3366· 103 1.5482 7.4037· 102 1.15· 102

7.25 3.1829· 103 9.8967· 101 1.1612· 101 1.70· 102

(4)

0 0.5 1 1.5 2 2.5 3 3.5 4 -0.25 -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 Time y* (t) velocity approximate exact

Figure 2 Results of Problem 1.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Time y* (t) beta=0.4 beta=0.2 beta=0.6

Figure 3 Results of Problem 2.

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 0 1 2 3 4 5 6 7 Time y* (t) velocity approximate second oder

(5)

stationary, surface tension negligible and thin film of uniform thickness d. In the absence of pressure gradient, they obtained

the governing nonlinear second-order ODE[11].

d2t dx2þ 6ðb2þ b3Þ l dt dx  2 d2t dx2 qg l ¼ 0;

with boundary conditions tð0Þ ¼ Uo;

dt

dx¼ 0 at x ¼ d

in which v is the fluid velocity, q the density, l dynamic viscos-ity, b2and b3are material moduli of third order fluid, g the

acceleration due to gravity and d the thickness of the thin layer. Defining U¼Ud v ; y¼ y d d2u dy2þ 6b du dy  2 d2u dy2þ k ¼ 0; uð0Þ ¼ 0; du dy¼ 0 at y ¼ 1

The obtained results are depicted inFig. 3.

Problem 3. A Blasius boundary layer in physics and fluid mechanics describes the steady two dimensional boundary layer that forms on a semi-infinite plate which is held parallel to constant unidirectional flow U[12].

f000þ ff00¼ 0

with boundary conditions fð0Þ ¼ 0; f0ð5Þ ¼ 1

where f is the dimensionless stream function. The results are shown inFig. 4.

5. Conclusion

A new type of shooting method is proposed in this study. The results show good competitive performance with other

well-known numerical methods. The work would be extended to develop a code which works as a function in MATLAB like ode45, ode23 and ode113. Moreover, this method could be fur-ther extended to deal with non-linear coupled BVP.

Acknowledgement

The authors are grateful to Nayyar Mehmood for his guidance and support during the preparation of this paper.

References

[1] H.G. Bock, K.J. Plitt, A Multiple Shooting Algorithm for Direct Solution of Optimal Control Problems, 1983.

[2]C. Kirches, H.G. Bock, J.P. Schlo¨der, S. Sager, Complementary condensing for the direct multiple shooting method, in: Modeling, Simulation and Optimization of Complex Processes, Springer, 2012, pp. 195–206.

[3]D.D. Morrison, J.D. Riley, J.F. Zancanaro, Multiple shooting method for two-point boundary value problems, Communications of the ACM 5 (1962) 613–614.

[4]H.B. Keller, Numerical Solution of Two Point Boundary Value Problems, SIAM, 1976.

[5]R.M. Mattheij, G. Staarink, An efficient algorithm for solving general linear two-point BVP, SIAM Journal on Scientific and Statistical Computing 5 (1984) 745–763.

[6]C. Liu, The Lie-group shooting method for nonlinear two-point boundary value problems exhibiting multiple solutions, Computer Modeling in Engineering and Sciences 13 (2006) 149. [7]C. Liu, Efficient shooting methods for the second-order ordinary differential equations, Computer Modeling in Engineering and Sciences 15 (2006) 69.

[8]C. Liu, The Lie-group shooting method for singularly perturbed two-point boundary value problems, Computer Modeling in Engineering and Sciences 15 (2006) 179.

[9] A. Kaw, E. Kalu, Numerical Methods with Applications: Abridged, in, Lulu, Raleigh, NC, USA, 2011.

[10]A. Kharab, R.B. Guenther, An Introduction to Numerical Methods: A MATLAB Approach, CRC Press, 2011.

[11]M. Sajid, T. Hayat, The application of homotopy analysis method to thin film flows of a third order fluid, Chaos, Solitons & Fractals 38 (2008) 506–515.

[12]H. Schlichting, K. Gersten, Boundary-Layer Theory, Springer, 2004.

References

Related documents

Sources: Federal Reserve Bank of New York; Current Issues in Economics and Finance; July/August 2002 Apex Information Technologies; EBPP Study.. 19 19

ANY ONE DISABILITY refers to all of the periods of Disability arising from the same cause including any and all complications except that if the Insured

Sutton It will really relieve you to be the initial one reading this e- book An Introduction To Native North America Third Edition By Mark Q.. Sutton as well as obtain

Despite the fact that free economic zones of various types provide more favorable conditions for foreign investors than in the country as a whole, the conditions that determine

histogram are further chosen to be split by applying Eq. The same process can be repeated by splitting each of the two peaks into two adjacent bins with the similar heights

Material and Method: Antioxidant and free radical scavenging activity of extract of ethanolic extract of Tecoma capensis was investigated against 2, 2

Make span is the important measure of performance and the other performance measures commonly considered are utilization of resources like machines and material handling system..

This suggests that providing higher access in a forest eco- system would not ensure higher health and sanitation of dependent communities and that the income earned from the