Q. Use Runge Kutta Fehlberg method with tolerance TOL=〖10〗^(-4), hmax=0.25, and hmin=0.05 to approximate the solution to the following initial value problem. Compare the result to the actual value.
y^'=1+〖(t-y)〗^2, 2≤t≤3,y(2)=1, actual solution y(t)=t+1⁄((1-t)).
Expert's answer
Answer on Question #76899 – Math – Quantitative Methods
Question
Use Runge Kutta Fehlberg method with tolerance TOL=[[10]] ^(-4), hmax=0.25, and hmin=0.05 to approximate the solution to the following initial value problem. Compare the result to the actual value. y∧=1+[[(t−y)]] ^2, 2≤t≤3,y(2)=1, actual solution y(t)=t+1/((1−t)).
Solution
Consider the IVP:
y′=1+(t−y)21,y(2)=1,2≤t≤3
we seek:
yn+1=yn+hi=1∑sbiki+O(hs+1)
The Runge-Kutta-Fehlberg method is a one-step method with the approximations calculated using the Runge-Kutta method of order 4 and 5. For this method each step requires the use of the following six values:
At each step, two different approximations for the solution are made and compared:
εn+1=h1∣∣yk+14−yk+15∣∣,δ<(εn+1ε)1/4
The optimal step size is (δ⋅h). The Runge-Kutta-Felberg method consists in the fact that at each step of the method the accuracy of the function is determined by the difference in values between the results of the methods RK-4 and RK-5. If they differ by no more than ε- the required accuracy, then the value is considered an approximate value of the function at the point at the considered step. Otherwise, in the considered step, the new step value and the new value of the function are recomputed with the subsequent error estimate (2).
For IVP (1) the Runge-Kutta-Fehlberg method with step size 0.05≤h≤0.25 and tolerance ε=10−4 gives a result in 9 points:
the graph of the approximate (yi) and exact (f(ti)) solutions:
the difference between the approximate (yi) and the exact (f(ti)) solutions:
step size:
the accuracy obtained in the calculations:
The result of calculations in the form of a table:
When calculating the step size, the method controls the accuracy of the solution within TOL=10−4 (errRKF45), as a result, when compared with the analytical solution, the maximum error is ∼3.6⋅10−4
Answer provided by https://www.AssignmentExpert.com
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot