Use the fourth-order Runge–Kutta algorithm to approximate the solution to the initial value problemy'=1-xy,y(1)=1at x = 2. For a tolerance of, use a stopping procedure based on the absolute error.

Short Answer

Expert verified

ϕ(2)=0.7014

Step by step solution

01

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

Since y'=1-xy,y(1)=1and x=x0=1,y=yo=1and h = 1, M = 10

k1=hf(x,y)=1(1-0)=0k2=hfx+h2,y+k12=-12k3=hfx+h2,y+k22=-18k4=hfx+h,y+k3=-34

02

Find the values of x and y

x=1+1=2y=1+16k1+2k2+2k3+k4=1+16(0-212-218-34)=0.6667

Therefore ϕ2=0.6667.

Since1-0.6667=0.3333>0.001

03

Find the other values

Apply the same procedure for h=0.5, and h=0.25 respectively.

ϕ2=0.700799

Thus, 0.6667-0.7008=0.0341>0.001

ϕ2=0.701385

Hence, 0.6667-0.7014=0.0006<0.001

So,ϕ2=0.7014.

Hence the solution is ϕ(2)=0.7014

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

Stefan’s law of radiation states that the rate of change of temperature of a body at Tdegrees Kelvin in a medium at M degrees Kelvin is proportional to M4-T4. That is dTdt=k(M4-T4),where kis a positive constant. Solve this equation using separation of variables. Explain why Newton’s law and Stefan’s law are nearly the same when Tis close to Mand Mis constant. [Hint: Factor M4-T4]


Suppose the snowball in Problem 21 melts so that the rate of change in its diameter is proportional to its surface area. Using the same given data, determine when its diameter will be 2 in. Mathematically speaking, when will the snowball disappear?

An object of mass 5 kg is given an initial downward velocity of 50 m/sec and then allowed to fall under the influence of gravity. Assume that the force in newtons due to air resistance is -10v, where v is the velocity of the object in m/sec. Determine the equation of motion of the object. If the object is initially 500 m above the ground, determine when the object will strike the ground.

Two friends sit down to talk and enjoy a cup of coffee. When the coffee is served, the impatient friend immediately adds a teaspoon of cream to his coffee. The relaxed friend waits 5 min before adding a teaspoon of cream (which has been kept at a constant temperature). The two now begin to drink their coffee. Who has the hotter coffee? Assume that the cream is cooler than the air and has the same heat capacity per unit volume as the coffee, and that Newton’s law of cooling governs the heat transfer.

The solution to the initial value problemdydx+yx=x3y2,y(1)=3has a vertical asymptote (“blows up”) at some point in the interval [1,2]By experimenting with the improved Euler’s method subroutine, determine this point to two decimal places.

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