Use the fourth-order Runge–Kutta subroutine with h = 0.25 to approximate the solution to the initial value problemy'=x+1-y,y(0)=1, at x = 1. Compare this approximation with the one obtained in Problem 5 using the Taylor method of order 4.

Short Answer

Expert verified

ϕ(1)=1.3679

Step by step solution

01

Find the values of ki, i = 1, 2, 3, 4

Since f(x,y)=x+1-yand x = 0, y = 1, and h = 0.25

role="math" localid="1664324055813" k1=hf(x,y)=0.25(0+1-1)=0k2=hfx+h2,y+k12=0.03125k3=hfx+h2,y+k22=0.0273438k4=hfx+h,y+k3=0.0556641

02

Find the values of x and y

x=0+0.25=0.25y=1+16k1+2k2+2k3+k4=1+16(0-2(0.031125)-2(0.0273438)-0.0556641)=1.02881

03

Use values of x and y for finding values of ki, i = 1, 2, 3, 4

k1=hf(x,y)=0.25(0.25+1-1.02881)=0.0552975k2=hfx+h2,y+k12=0.0796353k3=hfx+h2,y+k22=0.0765931k4=hfx+h,y+k3=0.0986392

Now

x=0.25+0.25=0.5y=1.02881+16(0.0552975-2(0.0796353)-2(0.0765931)-0.0986492)=1.10654

04

Repeat the procedure for two times

k1=hf(x,y)=0.25(0.5+1-1.10654)=0.098365k2=hfx+h2,y+k12=0.117319k3=hfx+h2,y+k22=0.11495k4=hfx+h,y+k3=0.132127x=0.5+0.25=0.75y=1.10654+16k1+2k2+2k3+k4=1.10654+16(0.098365-2(0.117319)-2(0.11495)-0.132127)=1.22238

And

k1=hf(x,y)=0.25(0.75+1-1.22238)=0.131905k2=hfx+h2,y+k12=0.146667k3=hfx+h2,y+k22=0.144822k4=hfx+h,y+k3=0.1582x=0.75+0.25=1y=1.22238+16k1+2k2+2k3+k4=0.52761+16(0.131905-2(0.146667)-2(0.144822)-0.1582)=1.36789

Thereforeϕ(1)=1.3679

Hence the solution isϕ(1)=1.3679

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

Use the improved Euler’s method subroutine with step size h= 0.1 to approximate the solution to the initial value problemy'=x=y2,y(1)=0, at the points x= 1.1, 1.2, 1.3, 1.4, and 1.5. (Thus, input N= 5.) Compare these approximations with those obtained using Euler’s method (see Exercises 1.4,Problem 5, page 28).

Use the fourth-order Runge–Kutta subroutine with h= 0.25 to approximate the solution to the initial value problem y'=2y-6,y(0)=1, at x= 1. (Thus, input N= 4.) Compare this approximation to the actual solution y=3-2e2xevaluated at x= 1.

Use the improved Euler’s method with tolerance to approximate the solution to y'=1-y+y3,y(0)=0, at x= 1. For a tolerance ofε=0.003 , use a stopping procedure based on the absolute error.

In Problems 23–27, assume that the rate of decay of a radioactive substance is proportional to the amount of the substance present. The half-life of a radioactive substance is the time it takes for one-half of the substance to disintegrate. The only undiscovered isotopes of the two unknown elements hohum and inertium (symbols Hh and It) are radioactive. Hohum decays into inertium with a decay constant of 2/yr, and inertium decays into the nonradioactive isotope of bunkum (symbol Bu) with a decay constant of 1/yr. An initial mass of 1 kg of hohum is put into a non-radiaoctive container, with no other source of hohum, inertium, or bunkum. How much of each of the three elements is in the container after t yr? (The decay constant is the constant of proportionality in the statement that the rate of loss of mass of the element at any time is proportional to the mass of the element at that time.)

Use the fourth-order Runge–Kutta subroutine with h = 0.25 to approximate the solution to the initial value problemy'=1-y,y(0)=0, at x = 1. Compare this approximation with the one obtained in Problem 6 using the Taylor method of order 4.

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