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

On a mild Saturday morning while people are working inside, the furnace keeps the temperature inside the building at 21°C. At noon the furnace is turned off, and the people go home. The temperature outside is a constant 12°C for the rest of the afternoon. If the time constant for the building is 3 hr, when will the temperature inside the building reach 16°C? If some windows are left open and the time constant drops to 2 hr, when will the temperature inside reach 16°C?

Use the fourth-order Runge–Kutta algorithm to approximate the solution to the initial value problemy'=1-xy,y(1)=1at x = 2. For a tolerance of, use a stopping procedure based on the absolute error.

A solar hot-water-heating system consists of a hot-water tank and a solar panel. The tank is well insulated and has a time constant of 64 hr. The solar panel generates 2000 Btu/hr during the day, and the tank has a heat capacity of 2°Fper thousand Btu. If the water in the tank is initially80°Fand the room temperature outside the tank is, what will be the temperature in the tank after 12 hr of sunlight?

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?

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/α.

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