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

Use the fourth-order Runge–Kutta subroutine with h= 0.1 to approximate the solution to\({\bf{y' = cos}}\;{\bf{5y - x,y(0) = 0}}\),at the points x= 0, 0.1, 0.2, . . ., 3.0. Use your answers to make a rough sketch of the solution on\(\left[ {{\bf{0,3}}} \right]\).

Short Answer

Expert verified

\({{\rm{x}}_{\rm{n}}}\)

\({{\rm{y}}_{\rm{n}}}\)

0.5

0.21462

1.0

0.13890

1.5

-0.02668

2.0

-0.81879

2.5

-1.69491

3.0

-2.99510

The rough sketch is given below.

Step by step solution

01

Find the values of \({{\bf{k}}_{\bf{i}}}{\bf{.i = 1,2,3,4}}\)

Using the improved 4th order Runge-Kutta subroutine.

Since \({\bf{f(x,y) = cos}}\;{\bf{5y - x}}\) and \({\bf{x = }}{{\bf{x}}_{\bf{0}}}{\bf{ = 0,y = }}{{\bf{y}}_{\bf{o}}}{\bf{ = 0}}\) and h = 0.1, M = 30

\(\begin{array}{l}{{\bf{k}}_{\bf{1}}}{\bf{ = h}}{\rm{f}}{\bf{(x,y) = 0}}{\bf{.1(cos5y - x)}}\\{{\bf{k}}_{\bf{2}}}{\bf{ = hf}}\left( {{\bf{x + }}\frac{{\bf{h}}}{{\bf{2}}}{\bf{,y + }}\frac{{{{\bf{k}}_{\bf{1}}}}}{{\bf{2}}}} \right){\bf{ = 0}}{\bf{.1}}\left( {{\bf{cos}}\left( {{\bf{5y + }}\frac{{{{\bf{k}}_{\bf{1}}}}}{{\bf{2}}}} \right){\bf{ - (x + 0}}{\bf{.05)}}} \right)\\{{\bf{k}}_{\bf{3}}}{\bf{ = hf}}\left( {{\bf{x + }}\frac{{\bf{h}}}{{\bf{2}}}{\bf{,y + }}\frac{{{{\bf{k}}_{\bf{2}}}}}{{\bf{2}}}} \right){\bf{ = 0}}{\bf{.1}}\left( {{\bf{cos}}\left( {{\bf{5y + }}\frac{{{{\bf{k}}_{\bf{2}}}}}{{\bf{2}}}} \right){\bf{ - (x + 0}}{\bf{.05)}}} \right)\\{{\bf{k}}_{\bf{4}}}{\bf{ = hf}}\left( {{\bf{x + h,y + }}{{\bf{k}}_{\bf{3}}}} \right){\bf{ = 0}}{\bf{.1(y + }}{{\bf{k}}_{\bf{3}}}{\bf{)(cos(5(y + }}{{\bf{k}}_{\bf{3}}}{\bf{) - (x + 0}}{\bf{.05))}}\\{{\bf{k}}_{\bf{1}}}{\bf{ = h(x,y) = 0}}{\bf{.1}}\\{{\bf{k}}_{\bf{2}}}{\bf{ = hf}}\left( {{\bf{x + }}\frac{{\bf{h}}}{{\bf{2}}}{\bf{,y + }}\frac{{{{\bf{k}}_{\bf{1}}}}}{{\bf{2}}}} \right){\bf{ = 0}}{\bf{.091891}}\\{{\bf{k}}_{\bf{3}}}{\bf{ = hf}}\left( {{\bf{x + }}\frac{{\bf{h}}}{{\bf{2}}}{\bf{,y + }}\frac{{{{\bf{k}}_{\bf{2}}}}}{{\bf{2}}}} \right){\bf{ = 0}}{\bf{.092373}}\\{{\bf{k}}_{\bf{4}}}{\bf{ = hf}}\left( {{\bf{x + h,y + }}{{\bf{k}}_{\bf{3}}}} \right){\bf{ = 0}}{\bf{.079522}}\end{array}\)

02

Find the values of x and y

\(\begin{array}{c}{\bf{x = 0 + 0}}{\bf{.1 = 0}}{\bf{.1}}\\{\bf{y = 0 + }}\frac{{\bf{1}}}{{\bf{6}}}\left( {{{\bf{k}}_{\bf{1}}}{\bf{ + 2}}{{\bf{k}}_{\bf{2}}}{\bf{ + 2}}{{\bf{k}}_{\bf{3}}}{\bf{ + }}{{\bf{k}}_{\bf{4}}}} \right)\\{\bf{ = 0}}{\bf{.091342}}\end{array}\)

The solution of the given IVP at x=0.1 is approx. 0.091.

03

Evaluate the other values of x and y

x

y

x

y

x

y

0.2

0.157

1.2

0.087

2.2

-1.173

0.3

0.195

1.3

0.055

2.3

-1.300

0.4

0.212

1.4

0.019

2.4

-1.454

0.5

0.215

1.5

-0.027

2.5

-1.695

0.6

0.208

1.6

-0.086

2.6

-2.037

0.7

0.196

1.7

-0.170

2.7

-2.309

0.8

0.180

1.8

-0.306

2.8

-2.501

0.9

0.161

1.9

-0.535

2.9

-2.698

1

0.139

2

-0.819

3

-2.995

1.1

0.114

2.1

-0.029

04

Plot the Graph

Hence the solution is

\({{\rm{x}}_{\rm{n}}}\)

\({{\rm{y}}_{\rm{n}}}\)

0.5

0.21462

1.0

0.13890

1.5

-0.02668

2.0

-0.81879

2.5

-1.69491

3.0

-2.99510

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

A swimming pool whose volume is 10,000 gal contains water that is 0.01% chlorine. Starting at t = 0, city water containing 0.001% chlorine is pumped into the pool at a rate of 5 gal/min. The pool water flows out at the same rate. What is the percentage of chlorine in the pool after 1 h? When will the pool water be 0.002% chlorine?

The pathway for a binary electrical signal between gates in an integrated circuit can be modeled as an RCcircuit, as in Figure 3.13(b); the voltage source models the transmitting gate, and the capacitor models the receiving gate. Typically, the resistance is 100Ωand the capacitance is very small, say, 10-12F(1 picofarad, pF). If the capacitor is initially uncharged and the transmitting gate changes instantaneously from 0 to 5 V, how long will it take for the voltage at the receiving gate to reach (say) ? (This is the time it takes to transmit a logical “1.”)

Beginning at time t=0, fresh water is pumped at the rate of 3 gal/min into a 60-gal tank initially filled with brine. The resulting less-and-less salty mixture overflows at the same rate into a second 60-gal tank that initially contained only pure water, and from there it eventually spills onto the ground. Assuming perfect mixing in both tanks, when will the water in the second tank taste saltiest? And exactly how salty will it then be, compared with the original brine?

A white wine at room temperature 70°F is chilled in ice (32°F). If it takes 15 min for the wine to chill to 60°F, how long will it take for the wine to reach 56°F?

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.

To see how sensitive the technique of carbon dating of Problem 25 is

(a) Redo Problem 25 assuming the half-life of carbon-14 is 5550 yr.

(b) Redo Problem 25 assuming 3% of the original mass remains.

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