Question #75362

Write down Runge Kutta Fehlberg Method(Error Control)
1

Expert's answer

2018-04-02T10:35:08-0400

Answer on Question #75362 – Math – Quantitative Methods

Question

Write down Runge Kutta Fehlberg Method (Error Control)

Solution

Consider the problem:


y=f(x,y),y(x0)=y0y' = f(x, y), \qquad y(x_0) = y_0


The Runge-Kutta-Fehlberg method is single-step method. This method has a procedure to determine whether the correct step size hh is used. Each step requires the use of the following six values:


k1=hf(xk,yk)k_1 = h \cdot f(x_k, y_k)k2=hf(xk+14h,yk+14k1)k_2 = h \cdot f\left(x_k + \frac{1}{4}h, y_k + \frac{1}{4}k_1\right)k3=hf(xk+38h,yk+332k1+932k2)k_3 = h \cdot f\left(x_k + \frac{3}{8}h, y_k + \frac{3}{32}k_1 + \frac{9}{32}k_2\right)k4=hf(xk+1213h,yk+19322197k172002197k2+72962197k3)k_4 = h \cdot f\left(x_k + \frac{12}{13}h, y_k + \frac{1932}{2197}k_1 - \frac{7200}{2197}k_2 + \frac{7296}{2197}k_3\right)k5=hf(xk+h,yk+439216k18k2+3680513k38454104k4)k_5 = h \cdot f\left(x_k + h, y_k + \frac{439}{216}k_1 - 8k_2 + \frac{3680}{513}k_3 - \frac{845}{4104}k_4\right)k6=hf(xk+12h,yk827k1+2k235442565k3+18594104k41140k5)k_6 = h \cdot f\left(x_k + \frac{1}{2}h, y_k - \frac{8}{27}k_1 + 2k_2 - \frac{3544}{2565}k_3 + \frac{1859}{4104}k_4 - \frac{11}{40}k_5\right)


Then we calculate the approximation to the solution with the help of the method of the fourth order:


wk+1=yk+25216k1+14082565k3+21974101k415k5,Error=O(h4)w_{k+1} = y_k + \frac{25}{216}k_1 + \frac{1408}{2565}k_3 + \frac{2197}{4101}k_4 - \frac{1}{5}k_5, \quad \text{Error} = O(h^4)


And the approximation to the solution with the help of the method of the 5th order:


yk+1=yk+16135k1+665612825k3+2856156430k4950k5+255k6,Error=O(h5)y_{k+1} = y_k + \frac{16}{135}k_1 + \frac{6656}{12825}k_3 + \frac{28561}{56430}k_4 - \frac{9}{50}k_5 + \frac{2}{55}k_6, \quad \text{Error} = O(h^5)


At each step, two different approximations for the solution are made and compared.


R=1hwk+1yk+1,δ=(ε2R)14R = \frac{1}{h}|w_{k+1} - y_{k+1}|, \quad \delta = \left(\frac{\varepsilon}{2R}\right)^{\frac{1}{4}}


If the two answers are in close agreement (RεR \leq \varepsilon), the approximation is accepted. If the two answers do not agree to a specified accuracy (ε\varepsilon), the step size is reduced. If the answers agree to more significant digits than required, the step size is increased. The optimal step size is (δh\delta \cdot h)

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS