Q5.3-25E
Question
Using the Runge–Kutta algorithm for systems with h = 0.05, approximate the solution to the initial value problem at t=1.
Step-by-Step Solution
Verified Answer
The result can get by the Runge-Kutta method and the result is y(1)=1.25958
1Transform the equation
Here the equation is
The system can be written as:
The transform equation is:
The initial conditions are:
2Apply the Runge-Kutta method
For h=1
For,
Repeating the same procedure for .
n | h | |||
0 | 1.0 | 1.29167 | 0.28125 | 0.03125 |
1 | 0.5 | 1.26039 | 0.34509 | -0.06642 |
2 | 0.25 | 1.25960 | 0.346996 | -0.06957 |
3 | 0.125 | 1.25958 | 0.34704 | -0.06971 |
Hence, y (1) =1.25958
This is the required result.
Other exercises in this chapter
Q5.3-23E
Nonlinear Spring. The Duffing equation y''+y+ry3=0 where r is a constant is a model for the vibrations of amass attached to a nonlinear spri
View solution Q5.3-24E
Pendulum with Varying Length. A pendulum is formed by a mass m attached to the end of a wire that is attached to the ceiling. Assume that the length l(t)of the
View solution Q5.3-28E
Lunar Orbit. The motion of a moon moving in a planar orbit about a planet is governed by the equations d2xdt2=-Gmxr3,d2ydt2=-Gmyr3 where r=(x2+y2)12, G is
View solution Q5.3-29E
Competing Species. Let pi(t) denote, respectively, the populations of three competing species Si,i=1,2,3.Suppose these species have the same growth rates, and t
View solution