Q5.3-17E

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, approximate the solution to the initial value problem

dudx=3u-4v;u(0)=1'dvdx=2u-3v;v(0)=1

at x = 1. Starting with h=1, continue halving the step size until two successive approximations of u(1)and v(1) differ by at most 0.001.

Step-by-Step Solution

Verified
Answer

The solution is u1=0.36789 and v1=0.36789.

1Transform the equation

Write the equation as u'=3u-4v and v'=2u-3v.


The transformation of the equation is:

u'(t)=x'2(t)v'(t)=x3(t)x2(t)=v(t)x1=u(t)x'2(t)=3x1-4x2x'3(t)=2x1-3x2


The initial conditions are

u0=1v0=1

2Apply Runge –Kutta method

For the solution apply the Runge-Kutta method in MATLAB for h=0.25, and the solution is u(1)=0.36789 and v(1)=0.36789.

3Find that u 1 and v ( 1 ) differ by at most 0.001.

Subtracting the values of u1 and v1 then 

 

u1-v1=0.36789-0.36678=0.001101

 

Therefore, u1 and v1 differ by at most 0.001.