Unit 4: Taylor Series Method
Unit 4: Taylor Series Method
y(xo) = yo
we decide upon what interval, starting at the initial condition, we
desire to find the solution. We chop this interval into small
subdivisions of length h. Then, using the initial condition as our
starting point, we generate the rest of the solution by using the
iterative formulas:
xn+1 = xn + h
yn+1 = yn + h f(xn, yn)
to find the coordinates of the points in our numerical solution.
We terminate this process when we have reached the right end
of the desired interval.
B. Better estimate for the solution than Euler method is
expected if average slope over the interval (t0,t1) is used
instead of slope at a point. This is being used in modified
Euler method. The solution is approximated as a straight line
in the interval (t0,t1) with slope as arithmetic average at the
beginning and end point of the interval.
Fourth order Runge Kutta method for solving first and second
order equations –
A method of numerically integrating ordinary differential
equations by using a trial step at the midpoint of an
interval to cancel out lower-order error terms. The second-
order formula is
(1)
(2)
(3)
The fourth-order formula is
(4)
(5)
(6)
(7)
(8)
sometimes known as RK4. This method is reasonably
simple and robust and is a good general candidate for
numerical solution of differential equations when combined
with an intelligent adaptive step-size routine.
(1)
Let
(2)
be the step interval, and consider the Maclaurin series of
about ,
(3)
(4)
Here, the derivatives of are given by the backward
differences
(5)
(6)
(7)
etc. Note that by (◇), is just the value of .
(9)
to obtain