Question

Problem 1

Two simultaneous reactions are described by the following ODES:

Use 4th order Runge-Kutta (RK4) to solve the above ODEs for the time period 0≤t≤5 minutes.

Apply a step size (h=At) of 1 minute.

(a) Show hand calculations for only one step size (0.5).

(b) Write a Matlab program to solve the equation as described above.

(c) Integrate the equation using the following step sizes: 0.5, 0.1, 0.001 minute. Discuss the

results your solution for different step sizes.

Question image 1