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

Find the equation for the angular velocity ω in Problem15, assuming that the retarding torque is proportional to role="math" localid="1663966970646" ω

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. Carbon dating is often used to determine the age of a fossil. For example, a humanoid skull was found in a cave in South Africa along with the remains of a campfire. Archaeologists believe the age of the skull to be the same age as the campfire. It is determined that only 2% of the original amount of carbon-14 remains in the burnt wood of the campfire. Estimate the age of the skull if the half-life of carbon-14 is about 5600 years.

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.

Use the Taylor methods of orders 2 and 4 with h = 0.25 to approximate the solution to the initial value problem y'=1-y,y(0)=0, at x = 1. Compare these approximations to the actual solutiony=1+e-xevaluated at x = 1.

Transmission Lines.In the study of the electric field that is induced by two nearby transmission lines, an equation of the formdzdx+g(x)z2=f(x)arises. Letf(x)=5x+2andg(x)=x2. If z(0)=1, use the fourth-order Runge–Kutta algorithm to approximate z(1). For a tolerance ofε=0.0001, use a stopping procedure based on the absolute error.

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