Q5.3-14E

Question

In Problems 14–24, you will need a computer and a programmed version of the vectorized classical fourth-order Runge–Kutta algorithm. (At the instructor’s discretion, other algorithms may be used.)†

Using the vectorized Runge–Kutta algorithm with h = 0.5, approximate the solution to the initial value 3t2y''-5ty'+5y=0;y(1)=0,y'(1)=23 problemat t = 8.

Compare this approximation to the actual solution y(t)=t53-t.

Step-by-Step Solution

Verified
Answer

The solution is 0.153081544.

1Transform the equation

Here h=0.25 on 1,8

Write the equation as y''=5ty'-5y3t2.


The equations can be written as:

x1(t)=y(t)x2(t)=y'(t)=x'1


The transformation of the equation is:

x'1t=x2tx'2t=5tx2-5x13t2


The initial conditions are:

x11=y11=0x21=y'1=23

2Apply Runge –Kutta method

For the solution apply the Runge-Kutta method in MATLAB, and the solution is 0.153081544

3Compare this approximation to the actual solution y ( t ) = t 5 3 - t .

By putting the value of t=1

y1=1-1=0

Therefore, the approximation solution is y1=0.