Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

In Problems 7-12 use the Runge-Kutta method to approximatex(0.2)andy(0.2).First useh=0.2and then useh=0.1. Use a numerical solver andh=0.1to graph the solution in the neighborhood oft=0.

x'=2xyy'=xx(0)=6,   y(0)=2

Short Answer

Expert verified

The solution of the problem calculated using Runge-Kutta method is

y2=3.4199,x2=8.3055forh=0.1andy2=3.4199,x2=8.3055forh=0.2

Step by step solution

01

Define Runge-Kutta Method.

To cancel out lower-order error terms, the Runge-Kutta technique of integrating differential equations uses a trial step at the middle of an interval. When paired with a clever adaptive step-size procedure, this method is relatively simple and resilient, making it an excellent general option for solving differential equations. The formula used in this method is,

yn+1=yn+16k1+13k2+13k3+16k4+Oh5

02

Find the value of y1,u1 for h=0.2

We have the first order differential equation with initial condition,

x'=2xyy'=xx(0)=6,   y(0)=2

Using Runge-Kutta method using the step find the approximate values using the formula,

yn+1=yn+h6k1+2k2+2k3+k4(1a)xn+1=xn+h6m1+2m2+2m3+m4(2a)

We have to find the constants k1,k2,k3,k4and m1,m2,m3,m4at n=0,h=0.2.

Since we have x0=6,y0=2we get,

k1=ft0,x0,y0=x0=6m1=gt0,t0,y0=2x0y0=2×62=122=10

k2=ft0+12h,x0+12hm1,y0+12hk1=x0+12hm1=6+12×0.2×10=6+1=7

m2=gt0+12h,x0+12hm1,y0+12hk1=2x0+12hm1y0+12hk1=26+12×0.2×102+12×0.2×6=2(7)(2.6)=142.6=11.4

k3=ft0+12h,x0+12hm2,y0+12hk2=x0+12hm2=6+12×0.2×11.4=6+1.14=7.14

m3=gt0+12h,x0+12hm2,y0+12hk2=2x0+12hm2y0+12hk2=26+12×0.2×11.42+12×0.2×7=2(7.14)(2.7)=14.282.7=11.58

k4=ft0+h,x0+hm3,y0+12hk3=x0+hm3=6+0.2×11.58=6+2.316=8.316

m4=gt0+h,x0+hm3,y0+hk3=2x0+hm3y0+hk3=2(6+0.2×11.58)(2+0.2×7.14)=2(8.316)(3.428)=16.6323.428=13.204

After that when n=0, substitute the value of constants to get the value of y1,x1.

y1=y0+h6k1+2k2+2k3+k4=2+0.26[6+2(7)+2(7.14)+8.316]=2+0.26×(42.596)=2+1.41987=3.4199

and

x1=x0+h6m1+2m2+2m3+m4=6+0.26[10+2(11.4)+2(11.58)+13.204]=6+0.26×(69.164)=6+2.3055=8.3055

03

Find the value of y2 ffor h=0.1

Using method using the step h=0 along with the conditions use the below formula to find the values.

yn+1=yn+h6k1+2k2+2k3+k4(1a)xn+1=xn+h6m1+2m2+2m3+m4(2a)

k1=ft0,x0,y0=x0=6m1=gt0,t0,y0=2x0y0=2×62=122=10

k2=ft0+12h,x0+12hm1,y0+12hk1=x0+12hm1=6+12×0.1×10=6+0.5=6.5

m2=gt0+12h,x0+12hm1,y0+12hk1=2x0+12hm1y0+12hk1=26+12×0.1×102+12×0.1×6=2(6.5)(2.3)=132.3=10.7

k3=ft0+12h,x0+12hm2,y0+12hk2=x0+12hm2=6+12×0.1×10.7=6+0.535=6.535

m3=gt0+12h,x0+12hm2,y0+12hk2=2x0+12hm2y0+12hk2=26+12×0.1×10.72+12×0.1×6.5=2(6.535)(2.325)=13.072.325=10.745

k4=ft0+h,x0+hm3,y0+12hk3=x0+hm3=6+0.1×10.745=6+1.0745=7.0745

m4=gt0+h,x0+hm3,y0+hk3=2x0+hm3y0+hk3=2(6+0.1×10.745)(2+0.1×6.535)=2(7.0745)(2.6535)=14.1492.6535=11.4955

After that when n=0 substitute the vlue of constants to get the value of y1,x1

y1=y0+h6k1+2k2+2k3+k4=2+0.16[6+2(6.5)+2(6.535)+7.0745]=2+0.16×(39.1445)=2+0.6524=2.6524

x1=x0+h6m1+2m2+2m3+m4=6+0.16[10+2(10.7)+2(10.745)+11.4955]=6+0.16×(64.3855)=6+1.0731=7.0731

After that we can find the value of x and y using other constants as shown in the table below. Then we get the value of y2=3.4199

Hence the value is .y2=3.4199

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Question: Assume thatw2=34in (4). Use the resulting second-order Runge-Kutta method to approximatey(0.5), wherey(x)is the solution of the initial-value problem in Problem 1. Compare this approximate value with the approximate value obtained in Problem 11 in Exercises 9.1.

When \(E = 100V,R = 10ohm,L = 1h\)the system of differential equations for the currents\({i_1}(t)\) and \({i_3}(t)\) in the electrical network given in Figure\(9.4.3\) is

\(\begin{aligned}{*{20}{c}}{\frac{{d{i_1}}}{{dt}} = - 20{i_1} + 10{i_3} + 100}\\{\frac{{d{i_3}}}{{dt}} = 10{i_1} - 20{i_3}}\end{aligned}\)

where \({i_1}(0) = 0\)and\({i_3}(0) = 0\). Use the \(RK4\)method to approximate \({i_1}(t)\)and \({i_3}(t)\)at \(t\). Use \(h = 0.1\). Use a numerical solver to graph the solution for \(0 \le t \le 5\). Use the graphs to predict the behavior of\({i_1}(t)\) and\({i_3}(t)\) as\(t \to \infty \).

Figure\(9.4.3\)Network in Problem \(6\).

In Problems 7-12 use the Runge-Kutta method to approximate x(0.2)and y(0.2). First useh=0.2 and then use h=0.1. Use a numerical solver and h=0.1to graph the solution in a neighborhood of t=0 .

x'+4xy'=7tx'+y'2y=3tx(0)=1,     y(0)=2

Consider the initial-value problem y'=x2+y3,y(1)=1. See Problem 12 in Exercises 9.1.

  1. Compare the results obtained from using the RK4 method over the interval [1,1.4] with step sizes h = 0.1and h = 0.05.
  2. Use a numerical solver to graph the solution of the initial value problem on the interval [1,1.4].

Consider the initial-value problem y'=(x+y-1)2,y(0)=2. Use the improved Euler's method with h=0.1and h=0.05to obtain approximate values of the solution at x=0.5. At each step, compare the approximate value with the actual value of the analytic solution.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free