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].

Short Answer

Expert verified

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

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

0.5

1.177

1.0

0.376

1.5

1.359

2.0

2.667

2.5

2.007

3.0

2.723

3.5

4.112

4

3.721

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) = 3cos(y - 5x)}}\) and \({\bf{x = }}{{\bf{x}}_{\bf{0}}}{\bf{ = 0,y = }}{{\bf{y}}_{\bf{o}}}{\bf{ = 0}}\) and h = 0.1, M = 40

\(\begin{array}{l}{{\bf{k}}_{\bf{1}}}{\bf{ = h}}{\rm{f}}{\bf{(x,y) = (0}}{\bf{.1)3(cosy - 5x)}}\\{{\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)3}}\left( {{\bf{cos}}\left( {{\bf{y + }}\frac{{{{\bf{k}}_{\bf{1}}}}}{{\bf{2}}}} \right){\bf{ - 5(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)3}}\left( {{\bf{cos}}\left( {{\bf{y + }}\frac{{{{\bf{k}}_{\bf{2}}}}}{{\bf{2}}}} \right){\bf{ - 5(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)3cos(y + }}{{\bf{k}}_{\bf{3}}}{\bf{) - 5(x + 0}}{\bf{.1))}}\\{{\bf{k}}_{\bf{1}}}{\bf{ = h(x,y) = 0}}{\bf{.3}}\\{{\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{.298501}}\\{{\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{.298479}}\\{{\bf{k}}_{\bf{4}}}{\bf{ = hf}}\left( {{\bf{x + h,y + }}{{\bf{k}}_{\bf{3}}}} \right){\bf{ = 0}}{\bf{.293929}}\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{.297}}\end{array}\)

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

03

Evaluate the other values of x and y

x

y

x

y

x

y x y

0.2

0.583

1.2

0.576

2.2

2.723 3.2 3.317

0.3

0.841

1.3

0.801

2.3

2.520 3.3 3.609

0.4

1.049

1.4

1.069

2.4

2.228 3.4 3.880

0.5

1.177

1.5

1.359

2.5

2.007 3.5 4.112

0.6

1.180

1.6

1.658

2.6

1.946 3.6 4.278

0.7

1.023

1.7

1.954

2.7

2.028 3.7 4.339

0.8

0.742

1.8

2.233

2.8

2.207 3.8 4.251

0.9

0.486

1.9

2.479

2.9

2.447 3.9 4.009

1

0.376

2

2.667

3

2.723 4 3.721

1.1

0.421

2.1

2.764

3.1

3.017

04

Plot the Graph

Hence the solution is

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

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

0.5

1.177

1.0

0.376

1.5

1.359

2.0

2.667

2.5

2.007

3.0

2.723

3.5

4.112

4

3.721

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

Rocket Flight. A model rocket having initial mass mo kg is launched vertically from the ground. The rocket expels gas at a constant rate of a kg/sec and at a constant velocity of b m/sec relative to the rocket. Assume that the magnitude of the gravitational force is proportional to the mass with proportionality constant g. Because the mass is not constant, Newton’s second law leads to the equation (mo - αt) dv/dt - αβ = -g(m0 – αt), where v = dx/dt is the velocity of the rocket, x is its height above the ground, and m0 - αt is the mass of the rocket at t sec after launch. If the initial velocity is zero, solve the above equation to determine the velocity of the rocket and its height above ground for 0≤t<m0/α.

In Example 1, we solved for the velocity of the object as a function of time (equation (5)). In some cases, it is useful to have an expression, independent of t, that relates vand x.Find this relation for the motion in Example 1. [Hint: Lettingv(t)=V(xt), thendvdt=(dvdx)V]

Falling Body.In Example 1 of Section 3.4, page 110, we modeled the velocity of a falling body by the initial value problem \({\bf{m}}\frac{{{\bf{dv}}}}{{{\bf{dt}}}}{\bf{ = mg - bv,v(0) = }}{{\bf{v}}_{\bf{o}}}{\bf{ = 0}}\)under the assumption that the force due to air resistance is –bv. However, in certain cases the force due to air resistance behaves more like\({\bf{ - b}}{{\bf{v}}^{\bf{r}}}\), where \({\bf{(r > 1)}}\) is some constant. This leads to the model \({\bf{m}}\frac{{{\bf{dv}}}}{{{\bf{dt}}}}{\bf{ = mg - b}}{{\bf{v}}^{\bf{r}}}{\bf{,v(0) = }}{{\bf{v}}_{\bf{o}}}\) (14).To study the effect of changing the parameter rin (14),take \({\bf{m = 1,}}\,\,{\bf{g = 9}}{\bf{.81,}}\,\,{\bf{b = 2}}\) and \({{\bf{v}}_{\bf{o}}}{\bf{ = 0}}\).Then use the improved Euler’s method subroutine with \({\bf{h = 0}}{\bf{.2}}\) to approximate the solution to (14) on the interval \(0 \le {\bf{t}} \le 5\)for \({\bf{r = 1}}{\bf{.0,}}\,\,{\bf{1}}{\bf{.5}}\) and 2.0. What is the relationship between these solutions and the constant solution\({\bf{v(t) = }}{\left( {\frac{{{\bf{9}}{\bf{.81}}}}{{\bf{2}}}} \right)^{\frac{{\bf{1}}}{{\bf{r}}}}}\)?

A parachutist whose mass is 75 kg drops from a helicopter hovering 2000 m above the ground and falls toward the ground 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 b1 = 30 N-sec/m when the chute is closed and b2= 90 N-sec/m when the chute is open. If the chute does not open until the velocity of the parachutist reaches 20 m/sec, after how many seconds will she reach the ground?

Sailboats A and B each have a mass of 60 kg and cross the starting line at the same time on the first leg of a race. Each has an initial velocity of 2 m/sec. The wind applies a constant force of 650 N to each boat, and the force due to water resistance is proportional to the velocity of the boat. For sailboat A the proportionality constants arebefore planing when the velocity is less than 5 m/sec andwhen the velocity is above 5 m/sec. For sailboat B the proportionality constants arebefore planing when the velocity is less than 6 m/sec andwhen the velocity is above. If the first leg of the race is 500 m long, which sailboat will be leading at the end of the first leg?

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