Shooting Method
Shooting Method
Shooting Method
COMPUTATIONAL MATHEMATICS
SEMINAR ON
SHOOTING METHOD
PRESENTED
BY
SOWMITH NALLURI
14481D8714
MTECH 1ST YEAR
INTRODUCTION:
With initial condition, y(x0) =y0, and illustrate the theory with respect to this
equation. The methods so developed can, in general be applied to the solution of
systems of first order equations, and will yield the solution in one of the two
following cases:
Case (a):
A series for y in terms of powers of x, from which the value of y can be
obtained by direct substitution.
Case (b):
A set of tabulated values of x and y.
The methods like Taylor and Picard belong to case (a), whereas those of Euler,
Runge-kutta, Adams-Bashforth, belong to case (b)
These methods are called step-by-step methods or marching methods because the
values of y are computed by short steps ahead for equal intervals h of the
independent variable. In the methods of Euler and Runge-kutta, the interval length
h should be kept small and hence these methods can be applied for tabulating y
over a limited range only. If, however the function values are desired over a wider
range, the methods Adams-Bashforth, Adams-Moulton, Milne and so on may be
used. These methods use finite-differences and require starting values which are
usually obtained by Taylors series or Runge-Kutta methods.
It is well known that a differential equation of the nth order will have n arbitrary
constants in its general solution. In order to compute the numerical solution of such
an equation, we therefore need n conditions, problems in which all the initial
conditions are specified at initial point only are called initial value problems.
On the other hand, in problems involving second- and higher order equations, we
may need the conditions of two or more points. Such problems are called
Boundary value problems
Solutions to Initial value problem and boundary value problem:
1. Taylors series:
Consider D.E as y=f(x,y) conditions: y(x0)=y0
y=y0+ (h/1!) y0+ (h2/2!)y0+..
2. Picards method:
Yn+1 = y0+ f(x,yn) dx
3. Eulers method:
Yn+1 = yn+h f (xn , yn)
4. Modified Eulers method:
Yn+1=yn+ (h/2) [f(xn,yn)+f(xn+1,yn+1)]
SHOOTING METHOD:
The shooting method uses the methods used in solving initial value problems. This
is done by assuming initial values that would have been given if the ordinary
differential equation were a initial value problem. The boundary value obtained is
compared with the actual boundary value. Using trial and error or some scientific
approach, one tries to get as close to the boundary value as possible.
Shooting method appears to be a straightforward way to solve nonlinear BVPs but
many problems arise while actually carrying out numerical calculations using it.
For Instance, it requires an intelligent guess for the missing initial conditions. Here,
the problem of convergence of the Newton iterates can be very troublesome, the
major problem being the location of the root within the radius of convergence and
that too is not known a priority degree of difficulty increases as the dimension $
increases and shooting method practically becomes useless. Due to this drawback,
the conventional simple shooting methods are not preferred to obtain numerical
solutions to non linear BVPS.
PROBLEM:
Using shooting method, find the solution of boundary value problem y11 = y,
y (0) = 0; y (1) = 1.1752. Use Taylors method to solve initial value problem.
SOLUTION:
Assume y(x) = y0 (x) + k1y1(x) + k2y2 (x)+ .
Where y0 , y1 , y2 are the solutions of given differential equation.
Y011 - y0 = 0
y0(0)= 0 ;
11
y1 - y1 = 0
y1(0)= 1 ;
y211 - y2= 0 y2(0)= 0 ;
1st DE:
y11 y = 0
y(0) = 0
y01(0) = 0
y11(0) = 0
y21(0) = 1
y1(0) = 0 this is a trival solution.
y0 = 0
2nd DE: y11 - y = 0
y(0) = 1
y1(0) = 0
Y0(0) = 0
y1(0) = (e0 + e-0)/2 = (1+1)/2 = 1
y2(0) = (e0 - e-0)/2 = (1-1)/2 = 0
At x=1
Y0(1) = 0
y1(0) = (e1+ e-1)/2 = 1.543
y2(0) = ( e1 - e-1)/2 = 1.175
We have
x=0
k1= 0
x=1
k2= 1.00018