Initial Value Problem #1:

positive

Initial Value Problem #1:

 

Consider the following first order ODE:

 

 

 

dy

3y

from t

= 1tot = 2.2withy_1_ = 1

 

 

-----

= t2-----

 

(a)

dt

t

 

 

 

 

 

Solve with Euler’s explicit method using h=0.4 .

 

 

(b)

Solve with the midpoint method using h=0.4 .

 

 

(c)

Solve with the classical fourth-order Runge–Kutta method using h=0.4 .

 

The analytical solution of the ODE is

1

5

+t3·

. In each part, calculate the error between the true

 

y =--

§ ---

 

 

 

 

6

© t3

¹

 

 

 

solution and the numerical solution at the points where the numerical solution is determined.

  • 10 years ago
  • 5
Answer(1)

Purchase the answer to view it

NOT RATED
  • maths.docx