Question: BOTH MATLAB AND HAND SOLUTION Consider the following first-order model of pollutant uptake: V dx/dt = W-Qx where V = 106, W = 106 and

BOTH MATLAB AND HAND SOLUTION

 BOTH MATLAB AND HAND SOLUTION Consider the following first-order model of

Consider the following first-order model of pollutant uptake: V dx/dt = W-Qx where V = 106, W = 106 and Q = 105. Consider a lake with no pollutant initially (i.e., x(0)=0). a) Solve the differential equation for x(t) analytically (the true solution). b) Use Euler's method with the step size h = 0.2 to obtain value of x at time, t, equals 10. Compute the error between Euler's solution and true solution. Repeat the analysis with h = 0.1 and 0.05. Comment on the results. What is the order of accuracy for this method? c) Repeat the process and analysis explained in part (b) with the fourth-order Runge- Kutta (RK4) method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!