Using the Runge–Kutta algorithm for systems with h = 0.05, approximate the solution to the initial value problem y'''+y''+y2=t;y(0)=1,y'(0)=0,y''(0)=1 at t=1.

Short Answer

Expert verified

The result can get by the Runge-Kutta method and the result is y(1)=1.25958

Step by step solution

01

Transform the equation

Here the equation is y'''+y''+y2=t.

The system can be written as:

x1=y(t)x2=y'=xy''=x3

The transform equation is:

x'1=x2x'2=x3x'3=t-x3-x21

The initial conditions are:

x1(0)=1x2(0)=1x3(0)=1

02

Apply the Runge-Kutta method

For h=1

k1,1=hx2k2,1=hx3k3,1=h(t-x3-x21)k1,2=hx2+k2,12k2,2=hx3+k3,12k3,2=ht+h2-x3-k3,12-x1+k1,1w2k1,3=hx3+k2,22k2,3=hx3+k3,22k3,3=ht+h2-x3-k3,22-x1+k1,2w2k1,4=h(x2+k2,3)k2,4=h(x3+k3,3)k3,4=h(t+h-x3-k3,3-(x1+k1,3)2)

For,

t0=0a1=0a2=0a3=1x1(1,1)=1.29167x2(1,1)=0.28125

Repeating the same procedure for h=2-1,,2-2,2-3.

n

h

x1

x2

x3x3

0

1.0

1.29167

0.28125

0.03125

1

0.5

1.26039

0.34509

-0.06642

2

0.25

1.25960

0.346996

-0.06957

3

0.125

1.25958

0.34704

-0.06971

Hence, y (1) =1.25958

This is the required result.

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

In Problems 13-19,find at least the first four nonzero terms in a power series expansion of the solution to the given initial value problem.

(x2+1)y''-exy'+y=0;y(0)=1,y'(0)=1

In Problems 13-16, write a differential equation that fits the physical description. The rate of change in the temperature T of coffee at time t is proportional to the difference between the temperature M of the air at time t and the temperature of the coffee at time t.

In Problems 10–13, use the vectorized Euler method with h = 0.25 to find an approximation for the solution to the given initial value problem on the specified interval.

y''=t2-y2;y(0)=0,y'(0)=1on[0,1]

In Problems 14–24, you will need a computer and a programmed version of the vectorized classical fourth-order Runge–Kutta algorithm. (At the instructor’s discretion, other algorithms may be used.)†

Using the vectorized Runge–Kutta algorithm, approximate the solution to the initial value problem y''=t2+y2;y(0)=1,y'(0)=0at t=1. Starting with h=1, continue halving the step size until two successive approximations of both y1andy'1differ by at most 0.1.

Mixing.Suppose a brine containing 0.2 kg of salt per liter runs into a tank initially filled with 500 L of water containing 5 kg of salt. The brine enters the tank at a rate of 5 L/min. The mixture, kept uniform by stirring, is flowing out at the rate of 5 L/min (see Figure 2.6).

(a)Find the concentration, in kilograms per liter, of salt in the tank after 10 min. [Hint:LetAdenote the number of kilograms of salt in the tank attminutes after the process begins and use the fact that

rate of increase inA=rate of input- rate of exit.

A further discussion of mixing problems is given in Section 3.2.]

(b)After 10 min, a leak develops in the tank and an additional liter per minute of mixture flows out of the tank (see Figure 2.7). What will be the concentration, in kilograms per liter, of salt in the tank 20 min after the leak develops? [Hint:Use the method discussed in Problems 31 and 32.]

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