Escolar Documentos
Profissional Documentos
Cultura Documentos
Problem 22.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
dy
= y t 31.5 y
dt
dy
=( 1+ 4 x ) y
dt
dy
2
=2 y +t
dt
dy
=2 y +5 et
dt
dz y z
=
dt
2
You will need to create an m-file function to define the system of equations. Remember that the
results need to be a column vector. Display your results as a graph.
Problem 22.8
The van der Pol equation is a model of an electronic circuit that arose back in the days of vacuum
tubes:
d2 y (
2 dy
1 y ) + y=0
2
dt
dt
Given the initial conditions, y(0)=y(0)=1, solve this equation from t=0 to 10 using the built in ode45
function. Display your results as a graph. You will need to reformulate this second order differential
equation into a system of two first order equations.
Problem 22.15
The motion of a damped spring-mass system (as shown below) is described by the following ordinary
differential equation:
d2 x
dx
+c + kx=0
2
dt
dt
where x equals displacement from the equilibrium position (m), t= time (s), m= 20 kg mass, and c=
the damping coefficient (N s/m). The damping coefficient c takes on three values of 5 (underdamped),
40 (critically damped) and 200 (overdamped.) The spring constant k = 20 N/m. The initial velocity
(dx/dt) is zero, and the initial displacement is x = 1 m. Solve this equation using a built-in ode solver
over the time period from t=0 to 15 s. Plot the displacement (x) versus time for each of the three
values of the damping coefficient on the same plot.
Problem 22.18
In the first printing of the third edition there were several mistakes in the material balance the
equations should read as follows
dCA1 1
CA0 CA1 k * CA1
dt
dCB1 1
CB1 k * CA1
dt
dCA2 1
CA1 CA2 k * CA2
dt
dCB2 1
CB1 CB2 k * CA2
dt
Solve this problem with ode45 and present your results as a graph
Problem 22.22
Solve this problem with ode45. Do not try to create a phase plane graph.
Problem 23.2 No additional instructions.
Problem 23.9
Recall from Example 20.5 that the following humps function exhibits both flat and steep regions over
a relatively short x range.
f ( x )=
1
1
+
6
2
( x0.3 ) +0.01 ( x0.9 )2+ 0.04
Determine the value of the definite integral of this function between x=0 and 1 using
a) the quad function
b) the ode45 function. Solving this problem with ode45 depends on the realization that the evaluation
of the definite integral
b
I f ( x)dx
a
dy
f ( x)
dx
for y(b) given the initial condition y(a)=0.