/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q14E Use the fourth-order Runge–Kut... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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 91Ó°ÊÓ!

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.2 to approximate the solution toat the points x = 0, 0.2, 0.4, …., 2.0. Use your answers to make a rough sketch of the solution on [0, 2].

A sailboat has been running (on a straight course) under a light wind at 1 m/sec. Suddenly the wind picks up, blowing hard enough to apply a constant force of 600 N to the sailboat. The only other force acting on the boat is water resistance that is proportional to the velocity of the boat. If the proportionality constant for water resistance is b= 100 N-sec/m and the mass of the sailboat is 50 kg, find the equation of motion of the sailboat. What is the limiting velocity of the sailboat under this wind?

Show that when the trapezoid scheme given in formula (8) is used to approximate the solutionf(x)=exofy'=y,y(0)=1 , at x = 1, then we get yn+1=1+h21-h2yn,n = 0, 1, 2, . . . , which leads to the approximation (1+h21-h2)1hfor the constant e.Compute this approximation for h= 1,10-1,10-2,10-3,and10-4and compare your results with those in Tables 3.4 and 3.5.

A parachutist whose mass is 100 kgdrops from a helicopter hovering 3000 m above the ground and falls under the influence of gravity. Assume that the force due to air resistance is proportional to the velocity of the parachutist, with the proportionality constant b3=20 N-sec/mwhen the chute is closed andb4=100 N-sec/m when the chute is open. If the chute does not open until 30 sec after the parachutist leaves the helicopter, after how many seconds will he hit the ground? If the chute does not open until 1 min after he leaves the helicopter, after how many seconds will he hit the ground?

Use the fourth-order Runge–Kutta subroutine with h= 0.1 to approximate the solution to\({\bf{y' = 3cos(y - 5x),y(0) = 0}}\) , at the points x= 0, 0.1, 0.2, . . ., 4.0. Use your answers to make a rough sketch of the solution on [0, 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.