0% found this document useful (0 votes)
238 views2 pages

Numerical Methods & ODE Exercises

This document outlines 5 exercises involving solving ordinary differential equations (ODEs) numerically: 1) Solve an initial value problem analytically and using Euler's method and Runge-Kutta method. 2) Solve a problem over an interval using Euler's and Runge-Kutta method. 3) Use world population data and Runge-Kutta method to simulate population growth. 4) Solve a system of ODEs over an interval using Euler's and Runge-Kutta method. 5) Determine how long it takes for water to drain from a tank using a numerical ODE method.

Uploaded by

Jing Xuan Chua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
238 views2 pages

Numerical Methods & ODE Exercises

This document outlines 5 exercises involving solving ordinary differential equations (ODEs) numerically: 1) Solve an initial value problem analytically and using Euler's method and Runge-Kutta method. 2) Solve a problem over an interval using Euler's and Runge-Kutta method. 3) Use world population data and Runge-Kutta method to simulate population growth. 4) Solve a system of ODEs over an interval using Euler's and Runge-Kutta method. 5) Determine how long it takes for water to drain from a tank using a numerical ODE method.

Uploaded by

Jing Xuan Chua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

KNS2723 Numerical methods and statistics

Exercise 5
1. Solve the following initial value problem over the interval from t = 0 to 2 where y(0) = 1.
Display all your results on the same graph.

(a) Analytically.
(b) Using Euler’s method with h = 0.5 and 0.25.
(c) Using the fourth-order RK method with h = 0.5.
2. Solve the following problem over the interval from x = 0 to 1 using a step size of 0.25 where
y(0) = 1. Display all your results on the same graph.

(a) Analytically
(b) Using Euler’s method
(c) Using the fourth-order RK method.
3. The growth of populations of organisms has many engineering and scientific applications.
One of the simplest models assumes that the rate of change of the population p is proportional
to the existing population at any time t:

where kg = the growth rate. The world population in millions from 1950 through 2000 was:

(a) Assuming that the equation holds, use the data from 1950 through 1970 to estimate kg.
(b) Use the fourth-order RK method along with the results of (a) to stimulate the world
population from 1950 to 2050 withh a step size of 5 years. Display your simulation results
along with the data on a plot.
4. Solve the following pair of ODEs over the interval from t = 0 to 0.4 using a step size of 0.1.
The initial conditions are y(0) = 2 and z(0) = 4. Obtain your solution with (a) Euler’s method
and (b) the fourth-order RK method. Display your results as a plot.
5. A spherical tank has a circular orifice in its bottom through which the liquid flows out. The
flow rate through the hole can be estimated as

where Qout = outflow (m3/s), C = an empirically derived coefficient, A = the area of the orifice
(m2), g = the gravitational constant (= 9.81 m/s2), and h = the depth of liquid in the tank. Use
one of the numerical methods described for the ODE to determine how long it will take for
the water to flow out of a 3-m diameter tank with an initial height of 2.75 m. Note that the
orifice has a diameter of 3 cm and C = 0.55.

You might also like