Docsity

Solving Numerical Differential Equations using Euler's Method - Prof. J. M. Mahaffy, Assignments of Mathematics

Toggle sidebar
bg1
Fall 2000 Problems Numerical Differential Equations
1. Consider the following initial value problems:
a. dy
dt = 0.3y, y(0) = 20.b. dy
dt = 10 −0.3y, y (0) = 10.
Solve each of these initial value problems, then use Euler’s method to approximate the
solution using a stepsize of h= 0.2 for t∈[0,1]. Find the approximate solution for y(1),
then compute the percent error between the actual solution and the approximate solution using
Euler’s method.
2. A population of animals that includes emigration satisfies the differential equation
P0=kP −m, P (0) = 100,
where k= 0.1 and m= 2.
a. Solve this differential equation and find P(1).
b. Use Euler’s method with h= 0.2 to approximate the solution at t= 1. Find the percent
error between the actual solution and this approximate solution at t= 1.
3. The temperature of an object is initially 50◦C. If it is in a room where the temperature, Te(t),
is slowly decreasing with Te(t) = 20 −t, then using Newton’s Law of Cooling, the temperature
of the object satisfies the differential equation
T0=−k(T−(20 −t)),
where k= 0.2 hr−1.
a. Verify that the solution to this initial value problem is given by
T(t) = 25 −t+ 25e−0.2t
and find the temperature at t= 2.
b. Use Euler’s method with h= 0.5 to approximate the solution at t= 2. This means that
you are to the differential equation above and take four Euler’s method steps. Find the percent
error between the actual solution and this approximate solution at t= 2.
pf2

Partial preview of the text

Download Solving Numerical Differential Equations using Euler's Method - Prof. J. M. Mahaffy and more Assignments Mathematics in PDF only on Docsity!

Fall 2000 Problems Numerical Differential Equations

  1. Consider the following initial value problems:

a.

dy dt = 0. 3 y, y(0) = 20. b.

dy dt = 10 − 0. 3 y, y(0) = 10.

Solve each of these initial value problems, then use Euler’s method to approximate the solution using a stepsize of h = 0.2 for t ∈ [0, 1]. Find the approximate solution for y(1), then compute the percent error between the actual solution and the approximate solution using Euler’s method.

  1. A population of animals that includes emigration satisfies the differential equation

P ′^ = kP − m, P (0) = 100,

where k = 0.1 and m = 2.

a. Solve this differential equation and find P (1). b. Use Euler’s method with h = 0.2 to approximate the solution at t = 1. Find the percent error between the actual solution and this approximate solution at t = 1.

  1. The temperature of an object is initially 50◦C. If it is in a room where the temperature, Te(t), is slowly decreasing with Te(t) = 20 − t, then using Newton’s Law of Cooling, the temperature of the object satisfies the differential equation

T ′^ = −k(T − (20 − t)),

where k = 0.2 hr−^1.

a. Verify that the solution to this initial value problem is given by

T (t) = 25 − t + 25e−^0.^2 t

and find the temperature at t = 2.

b. Use Euler’s method with h = 0.5 to approximate the solution at t = 2. This means that you are to the differential equation above and take four Euler’s method steps. Find the percent error between the actual solution and this approximate solution at t = 2.

  1. The body temperature of a particular animal is normally 40◦C. Suppose this animal is hit by a car at midnight (t = 0), and the environmental temperature, Te(t), over the next few hours is slowly decreasing with Te(t) = 15 − t. From Newton’s Law of Cooling, the temperature of the roadkill satisfies the differential equation

T ′^ = −k(T − (15 − t)),

where k = 0.2 hr−^1.

a. Verify that the solution to this initial value problem is given by

T (t) = 20 − t + 20e−^0.^2 t,

and find the temperature of the body at 2 AM.

b. Use Euler’s Method with h = 0.5 to approximate the temperature at t = 2. This means that you are to use the differential equation above and take four Euler’s method steps.

  1. a. Radioactive elements are often the products of the decay of another radioactive element. A differential equation describing this situation is given by the following:

dR dt = − 0. 05 R + 0. 15 e−^0.^02 t, R(0) = 10.

Use Euler’s method with a stepsize of h = 1 to find the approximate solution at t = 3.

b. Show that the actual solution is

R(t) = 5e−^0.^05 t^ + 5e−^0.^02 t.

Use this solution to find the percent error of Euler’s method at t = 3.