dynamical system, state variable t
dynamical system, state variable u
no state variable
question id: crocodile-dive-laundry-1
🟡 Loading...
Exercise 1 Some of these are first-order dynamical systems, others are ordinary derivatives. For each, say whether it is indeed a first-order differential equation and, if so, what is the name of the state variable.
dynamical system, state variable t
dynamical system, state variable u
no state variable
question id: crocodile-dive-laundry-1
dynamical system, state variable 2
dynamical system, state variable y
no state variable
question id: crocodile-dive-laundry-2
dynamical system, state variable t
dynamical system, state variable z
no state variable
question id: crocodile-dive-laundry-3
dynamical system, state variable x
dynamical system, state variable y
no state variable
question id: crocodile-dive-laundry-4
dynamical system, state variable t
dynamical system, state variable y
no state variable
question id: crocodile-dive-laundry-5
dynamical system, state variable u
dynamical system, state variable t
no state variable
question id: crocodile-dive-laundry-6
Exercise 2 For the following, you can use whatever you like for function names, e.g.
Write down the framework for a system of differential equations with state variables
Write down the framework for a system of differential equations with state
Write down the framework for a system of differential equations with state variables
Exercise 3 XREF not implemented yet shows time series for the rabbit and fox population density starting at the initial condition
Using the R/mosaic commands given in the text to make XREF not implemented yet, integrate the equations from
A. Using the time-series plots, estimate the period of the cyclic oscillations. - What is the period of the fox population cycle? - How large in amplitude (peak to trough) is the fox population cycle? - How do the cycle period and amplitude for the rabbits compare to those for the foxes?
B. Change the initial condition from
Exercise 4 We will explore some common pitfalls for using the integrateODE()
and traj_plot()
functions.
integrateODE()
function?
To translate a dynamical system into a set of numerical solutions, one for each state variable.
To draw a flow field of the dynamical system.
To anti-differentiate a differential equation, giving a symbolic solution.
To plot the trajectory of a dynamical system.
question id: maple-beat-plate-1
integrateODE()
?
A set of tilde expressions, each one an individual argument.
A set of named arguments, with the formula on the right-hand side.
A set of equations separated by semi-colons.
A set of tilde expressions separated by semi-colons.
question id: maple-beat-plate-2
z
?dz
z
zdot
dt_z
question id: maple-beat-plate-3
integrateODE()
command look like? (Note: we are using ...
as a placeholder for other inputs that will be needed by integrateODE()
.)
integrateODE(dx ~ y, dy ~ -x, ...)
integrateODE(dx = y, dy = -x, ...)
integrateODE(dx ~ y, dy = -x, ...)
question id: maple-beat-plate-4
The initial condition for each and every state variable.
The trajectory.
The time series.
The initial condition for at least one of the state variables.
question id: maple-beat-plate-5
integrateODE()
to carry forward the solution in time, say for 10 time units?bounds(t=0:10)
duration=10
t=10
for=10
question id: maple-beat-plate-6
Exercise 5 This activity makes use of the following app:
Click on the picture of the app and it will open in a new browser tab. Arrange that new tab side-by-side with the one where you are reading this.
To solve a differential equation with the Euler method, you need two things:
You will also need
How Euler works The first row of the table shows the situation at
In the following, whenever we write
Select
linear decay to zero
linear growth from zero
exponential decay to zero
exponential growth from zero
exponential decay to
exponential growth from
question id: spruce-make-lamp-1
linear decay to zero
linear growth from zero
exponential decay to zero
exponential growth from zero
exponential decay to
exponential growth from
question id: spruce-make-lamp-2
linear decay to zero
linear growth from zero
exponential decay to zero
exponential growth from zero
exponential decay to
exponential growth from
question id: spruce-make-lamp-3
linear decay to zero
linear growth from zero
exponential decay to zero
exponential growth from zero
exponential decay to
exponential growth from
question id: spruce-make-lamp-4
linear decay to
exponential decay to
exponential growth from zero followed by exponential decay to
exponential decay to zero followed by exponential growth to
question id: spruce-make-lamp-5
Exercise 6 XREF not implemented yet shows the difference between the symbolic solution to
The approximation error occurs after the seventh decimal place.
A. How large can
B. How large can
Exercise 7 This system of differential equations, called the Lorenz equations is famous as the first widely recognized example of a type of motion called chaos.
What are the state variables and what are the parameters?
What is the dimension of the state space?
For initial conditions integrateODE()
to integrate the equations over bounds(t=0:50), dt=0.01
. Call your trajectory T1
.
Based on your results in (3), what are the values of
Make a time series plot of
Plot out the npts=10000
argument to traj_plot()
. The trajectory will appear to cross itself, but this is because you are only plotting two of the state variables.
Create another trajectory T2
in the same way you made T1
. But change each of the initial conditions in the third decimal point. Then plot out the T1
(with color="blue"
) and the T2
(with color=“red”`) on the same axes. The two time series will track one another very closely, but then come out of sync with one another.
The characteristic feature of chaos is that a small change in initial conditions can lead to a very large change in the time series. How long does it take for the two time series in (7) to become utterly out of sync with one another?
The function traj_plot_3D()
provides a simple way to look at the trajectory in 3 dimensions. Such a plot shows that the trajectory does not in fact cross itself. Use this command:
Solution containing functions x(t), y(t), z(t).
Exercise 8 The differential equation
Exponential growth is considered fast, but there are far faster forms of growth. To illustrate, consider the differential equation
This can be interpreted in terms of a model of the size of the flame as one lights a match. Think of the flame as a ball of hot gas of radius
Within the ball of flame, O_2_ reacts with the cumbustible material to produce the products of combustion and heat. Needless to say, this reaction eliminates the O_2_ in the ball. But O_2_ can diffuse into the ball from outside. The O_2_ infusion rate available in this way is proportional to the surface area of the ball, that is,
The match-flame equation is one that can be separated into parts: all the
Integrating both sides of the separated equation will produce
A. Integrate the left side of the separated equation and use that to find a relationship between
B. The constant of integration,
C. Replace
D.
E. Use integrateODE()
to integrate the original differential equation. You will have to pick some numerical value for
F. Describe in everyday words what the solution says and how big the ball of flame becomes.
The model