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.

Short Answer

Expert verified

ϕ(1)=-11.7679

Step by step solution

01

Find the values of ki i = 1, 2, 3, 4

Since f(x,y)=2y-6and x = 0, y = 1 and h = 0.25

k1=hf(x,y)=0.25(2(1)-6)=-1k2=hfx+h2,y+k12=-1.25k3=hfx+h2,y+k22=-1.3125k4=hfx+h,y+k3=-1.65625

02

Find the values of x and y

x=0+0.25=0.25y=1+16k1+2k2+2k3+k4=1+16(-1-2(1.25)-2(1.3125)-1.65625)=-0.29688

03

Use values of x and y for finding values of  ki i = 1, 2, 3, 4

k1=hf(x,y)=0.25(2(-0.29688)-6)=-1.62844k2=hfx+h2,y+k12=-2.06055k3=hfx+h2,y+k22=-2.16358k4=hfx+h,y+k3=-2.73022

Now

x=0.25+0.25=0.5y=1+16k1+2k2+2k3+k4=1+16(-1.64844-2(2.06055-2(2.16358-2.73022)=-2.43470

04

Repeat the procedure for two times

k1=hf(x,y)=0.25(2(-2.43470)-6)=-2.71735k2=hfx+h2,y+k12=-3.39670k3=hfx+h2,y+k22=-3.56652k4=hfx+h,y+k3=-4.50060x=0.5+0.25=0.75y=1+16k1+2k2+2k3+k4=1+16(-2.71735-2(3.39670)-2(3.56652)-4.50060)=-5.95876

And

k1=hf(x,y)=0.25(2(-5.95876)-6)=-4.47938k2=hfx+h2,y+k12=-5.59922k3=hfx+h2,y+k22=-5.87918k4=hfx+h,y+k3=-7.41895x=0.75+0.25=1y=1+16k1+2k2+2k3+k4=-5.95876+16(-4.47938-2(5.59922)-2(5.87918)-7.41895)=-11.7679

Since at x = 1

ϕ(x)=3-2e2xϕ(1)=-11.7781

Theny(1)-ϕ1=0.0120

Hence the solution isϕ(1)=-11.7679

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

Use the improved Euler’s method subroutine with step size h= 0.2 to approximate the solution to the initial value problemy'=1x(y2+y),y(1)=1 at the points x= 1.2, 1.4, 1.6, and 1.8. (Thus, input N= 4.) Compare these approximations with those obtained using Euler’s method (see Exercises 1.4, Problem 6, page 28).

The Taylor method of order 2 can be used to approximate the solution to the initial value problem\({\bf{y' = y,y(0) = 1}}\) , at x= 1. Show that the approximation \({{\bf{y}}_{\bf{n}}}\)obtained by using the Taylor method of order 2 with the step size \(\frac{{\bf{1}}}{{\bf{n}}}\) is given by the formula\({{\bf{y}}_{\bf{n}}}{\bf{ = }}{\left( {{\bf{1 + }}\frac{{\bf{1}}}{{\bf{n}}}{\bf{ + }}\frac{{\bf{1}}}{{{\bf{2}}{{\bf{n}}^{\bf{2}}}}}} \right)^{\bf{n}}}\). The solution to the initial value problem is\({\bf{y = }}{{\bf{e}}^{\bf{x}}}\), so \({{\bf{y}}_{\bf{n}}}\)is an approximation to the constant e.

Use the improved Euler’s method with tolerance to approximate the solution to y'=1-y+y3,y(0)=0, at x= 1. For a tolerance ofε=0.003 , use a stopping procedure based on the absolute error.

During the summer the temperature inside a van reaches 55°C, while that outside is a constant35°C. When the driver gets into the van, she turns on the air conditioner with the thermostat set at16°C. If the time constant for the van is1k=2hrand that for the van with its air conditioning system is1k1=13hr, when will the temperature inside the van reach 27°C?

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?

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