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 algorithm to approximate the solution to the initial value problem\({\bf{y' = ycosx,y(0) = 1}}\) , at \({\bf{x = \pi }}\). For a tolerance of \({\bf{\varepsilon = 0}}{\bf{.01}}\) use a stopping procedure based on the absolute error.

Short Answer

Expert verified

\(\phi {\bf{(}}\pi {\bf{) = 1}}\)

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) = y}}\;{\bf{cos}}\;{\bf{x}}\) and \({\bf{x = }}{{\bf{x}}_{\bf{0}}}{\bf{ = 0,y = }}{{\bf{y}}_{\bf{o}}}{\bf{ = 1}}\) and h = 3.141593, M = 10

\(\begin{array}{c}{{\bf{k}}_{\bf{1}}}{\bf{ = h}}{\rm{f}}{\bf{(x,y) = 3}}{\bf{.141593(y}}\;{\bf{cos}}\;{\bf{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{ = 3}}{\bf{.141593}}\left( {{\bf{y + }}\frac{{{{\bf{k}}_{\bf{1}}}}}{{\bf{2}}}} \right){\bf{cos(x + 1}}{\bf{.570795)}}\\{{\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{ = 3}}{\bf{.141593}}\left( {{\bf{y + }}\frac{{{{\bf{k}}_{\bf{2}}}}}{{\bf{2}}}} \right){\bf{cos(x + 1}}{\bf{.570795)}}\\{{\bf{k}}_{\bf{4}}}{\bf{ = hf}}\left( {{\bf{x + h,y + }}{{\bf{k}}_{\bf{3}}}} \right){\bf{ = 3}}{\bf{.141593(y + }}{{\bf{k}}_{\bf{3}}}{\bf{)cos(x + 3}}{\bf{.141593)}}\\{{\bf{k}}_{\bf{1}}}{\bf{ = h(x,y) = 3}}{\bf{.141593}}\\{{\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{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{k}}_{\bf{4}}}{\bf{ = hf}}\left( {{\bf{x + h,y + }}{{\bf{k}}_{\bf{3}}}} \right){\bf{ = - 3}}{\bf{.141593}}\end{array}\)

02

Find the values of x and y

\(\begin{array}{c}{\bf{x = 0 + 3}}{\bf{.141593 = 1}}{\bf{.005}}\\{\bf{y = 1 + }}\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{ = 1}}\end{array}\)

Therefore \(\phi {\bf{(}}\pi {\bf{) = y(}}\pi {\bf{;}}\pi {\bf{) = 1}}\)

\(\left| {{\bf{1 - 1}}} \right|{\bf{ = 0 < 0}}{\bf{.01}}\)

So \(\phi {\bf{(}}\pi {\bf{) = 1}}\) with tolerance \(\xi {\bf{ = 0}}{\bf{.01}}\) where \(\phi {\bf{(x)}}\) is the solution of the given IVP.

Hence the solution is \(\phi {\bf{(}}\pi {\bf{) = 1}}\)

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

On a hot Saturday morning while people are working inside, the air conditioner keeps the temperature inside the building at 24°C. At noon the air conditioner is turned off, and the people go home. The temperature outside is a constant35°Cfor the rest of the afternoon. If the time constant for the building is 4 hr, what will be the temperature inside the building at 2:00 p.m.? At 6:00 p.m.? When will the temperature inside the building reach27°C?

Determine the recursive formulas for the Taylor method of order 2 for the initial value problemy'=cos(x+y),y(0)=π.

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?

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.

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?

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