Continuous and Discrete Dynamical Systems


Continuous and Discrete Dynamical Systems

Michael
Let’s begin with the broad distinction between differential equations and difference equations. Both describe dynamical systems, meaning systems that change over time. In a differential equation, time is continuous: the independent variable t is a real number. In a difference equation, time is discrete: the independent variable is usually a whole number such as 0, 1, 2, 3, and so on.

Corey
So differential equations describe change continuously, while difference equations describe change one step at a time. Why study both in a course that is called differential equations and linear algebra?

Michael
Because the two subjects are closely connected, especially through linear algebra. Difference equations provide a natural discrete counterpart to differential equations, and later in the course, matrices and vectors will be used to study systems of linear differential and difference equations.

Corey
What is the simplest important differential equation to keep in mind?

Michael
A central example is dy/dt equals a times y, where a is a fixed constant. You are looking for a function of time whose derivative is always a times the function itself. This is an autonomous equation because its right-hand side depends on y, not explicitly on t.

Corey
And the general solution is y equals c times e to the at, correct?

Michael
Exactly. The general solution is y equals c e to the at. The constant a is fixed by the differential equation, but c is arbitrary, so this formula represents infinitely many solutions. You can check it by differentiating: the derivative of c e to the at is a times c e to the at, which is a y.

Corey
How does an initial condition turn those infinitely many solutions into one?

Michael
Suppose the initial condition is y of zero equals y naught, where y naught is a specific number. Substituting t equals zero into c e to the at gives c, so c must equal y naught. The unique solution of the initial value problem is therefore y of t equals y naught e to the at. You may also see the solution written with a function name, such as phi of t.

Corey
What is the related difference equation?

Michael
The discrete counterpart is y sub n equals a times y sub n minus one, or equivalently y sub n plus one equals a times y sub n. With the initial value y sub zero, the unique solution is y sub n equals y sub zero times a to the n.

Corey
That looks like the discrete version of the exponential solution. How can we verify it?

Michael
First, when n equals zero, it gives y sub zero times a to the zero, which is y sub zero. Second, substitute the formula into the recurrence: y sub n equals y sub zero a to the n, while a times y sub n minus one equals a times y sub zero a to the n minus one. Using the exponent rule, that becomes y sub zero a to the n, so the equation is satisfied.

Corey
And if you do not recognize the formula right away, you should not try to integrate.

Michael
Right. For a difference equation, iterate instead. Start with y sub n equals a y sub n minus one, then replace y sub n minus one with a y sub n minus two, and continue. The pattern becomes y sub n equals a to the n times y sub n minus n, and since n minus n is zero, the result is y sub zero a to the n. Difference equations are handled by repeatedly using the recursive relation and looking for a pattern.

Corey
The textbook describes these basic equations as exponential growth and decay models, right?

Michael
Yes. The equation dy/dt equals a y is the simplest linear differential equation in y, and its behavior includes exponential growth or decay depending on the constant. The discrete formula y sub n equals y sub zero a to the n is the corresponding discrete model.

Corey
What is the broader method of separation of variables?

Michael
Suppose the differential equation has the form dy/dt equals g of t times h of y. The right-hand side must be written as a product of a function of t and a function of y. Dividing by h of y and treating dt in the usual differential notation gives dy over h of y equals g of t dt. Then you integrate both sides and try to solve for y as a function of t.

Corey
Does separation of variables always produce an explicit formula for y?

Michael
No. Sometimes the integrations are difficult or cannot be expressed using familiar elementary functions. In that case, you may have to stop with an implicit solution. For example, an integral involving sine of t squared leads to a special Fresnel function rather than an ordinary function you usually encounter in calculus.

Corey
So separation of variables is a method that goes beyond simply guessing a solution, but it still may not finish the problem explicitly.

Michael
Exactly. Other methods introduced later include integrating factors and more sophisticated educated guessing. In chapter three, linear systems of differential equations will be handled with matrices and vectors, where eigenvalues and eigenvectors become especially important.

Corey
Let’s move to slope fields. What do they show?

Michael
A slope field is a way to visualize solutions of a first-order differential equation without finding formulas for those solutions. A first-order equation contains only a first derivative. At each point with coordinates t and y, the equation dy/dt equals f of t, y gives a small line segment whose slope is f of t, y.

Corey
And the function on the right-hand side is not itself a solution.

Michael
Correct. The function f defines the slope field. A solution is a function y of t whose graph follows the slope field: at every point on the graph, the small slope segment must be tangent to the solution. Sketching those curves can reveal the long-term behavior of the modeled system even when an explicit formula is too difficult to find.

Corey
How do slope fields differ for equations that depend only on t and autonomous equations that depend only on y?

Michael
If dy/dt equals f of t, then the slope is constant along vertical lines because every point with the same t has the same slope. The solutions are antiderivatives of f, so they differ by vertical translations. For an autonomous equation, dy/dt equals f of y, the slope is constant along horizontal lines because points with the same y have the same slope. The solutions are often related by horizontal translations.

Corey
What are equilibrium solutions?

Michael
For an autonomous equation, an equilibrium solution is a constant function that satisfies the differential equation. In the graph of f of y, equilibrium values occur where f of y equals zero. Those values correspond to horizontal solution lines in the t-y plane.

Corey
How does the graph of f of y help you draw the slope field?

Michael
For the graph of f of y, put y on the horizontal axis and dy/dt on the vertical axis. The zeros of that graph identify equilibrium values. Where f of y is positive, the slope field has positive slopes; where f of y is negative, it has negative slopes. The slope remains constant along each horizontal line in the t-y plane.

Corey
A logistic model was mentioned as an example of an autonomous population model.

Michael
Yes. A logistic model is more complicated than exponential growth and can be represented by a graph of f of y. That graph is not itself a solution; it is the graph of the right-hand side, used to construct and interpret the slope field. The same general slope-field reasoning applies.

Corey
What does Euler’s method contribute?

Michael
Euler’s method is a numerical approximation method for estimating solutions of differential equations. It uses a difference equation to step forward through approximate values. It can be implemented in Mathematica using NestList, and it is useful when finding an exact formula is difficult.

Corey
What should we know about existence and uniqueness?

Michael
For an initial value problem y prime equals f of t, y with y of t naught equal to y naught, if f is continuous near the point with coordinates t naught and y naught, then a solution is guaranteed to exist there. For uniqueness, an additional condition is used: the partial derivative of f with respect to y should also be continuous near that point.

Corey
And the practical consequence of uniqueness is that distinct solution curves cannot touch each other.

Michael
Exactly. If uniqueness applies, two distinct solutions cannot intersect or touch. Therefore, if two known solutions lie above and below an initial condition, the unique solution through that initial condition must remain between them.

Corey
There was also a connection between slope fields and contour plots.

Michael
Contour plots can show curves in the t-y plane where the right-hand side function has a constant value. Those curves help identify where the slope is zero, one, two, or another constant, which in turn helps construct a slope field, especially when the right-hand side depends on both t and y.

Corey
Let’s switch to the linear algebra portion. What was the initial focus?

Michael
The course began with coordinate systems, including skewed coordinate systems. The axes do not have to be horizontal and vertical or meet at right angles. Using slanted axes can seem unusual, but it gives flexibility and can make some later problems easier to solve.

Corey
Then came vectors and vector algebra.

Michael
Right. Important skills include graphing vectors, adding and subtracting them, and multiplying them by scalars. The dot product can be computed from vector components, and geometrically it equals the length of one vector times the length of the other times the cosine of the angle between them.

Corey
Projection vectors were another major idea.

Michael
The projection of v along the line through w is given by the vector formula: v dot w divided by w dot w, multiplied by w. The fraction is a scalar, but the entire result is a vector. Projections can be used in physics, such as finding the component of a force along an inclined plane, and they also arise in statistics and in constructing transformations such as reflections.

Corey
What is the essential picture for systems of linear equations?

Michael
For two equations in two unknowns, if one equation is a constant multiple of the other, both equations represent the same line, so there are infinitely many solutions. If they are not multiples, they represent different lines and typically have one solution at their intersection. For higher-dimensional systems, such as three equations in three unknowns, row reduction is an important method, and reduced row echelon form can also be found with a calculator.

Corey
And linear transformations include familiar geometric operations.

Michael
Yes. Examples from two-dimensional space to itself include reflections, rotations, and shears. The course also moves toward transformations in higher-dimensional spaces, with special attention to kernels and images.

Corey
Define the kernel first.

Michael
For a linear transformation T, the kernel is the set of all vectors in the domain that map to the zero vector in the codomain. In symbols, these are the vectors x for which T of x equals the zero vector. The kernel is equivalent to the solution set of a homogeneous system of linear equations, meaning a system whose right-hand sides are all zero.

Corey
And the image is the set of possible outputs.

Michael
Exactly. The image, also called the range, is the set of all vectors T of x as x runs through the domain. It consists of every output the transformation can produce.

Corey
How do one-to-one and onto relate to the kernel and image?

Michael
A one-to-one function maps distinct inputs to distinct outputs. For example, x squared is not one-to-one because both 2 and negative 2 map to 4. A linear transformation is one-to-one if and only if its kernel is trivial, meaning the only vector that maps to zero is the zero vector.

Corey
And onto means that every element of the codomain is reached.

Michael
Right. A function is onto when its image is the entire codomain. So for a linear transformation, the key tests are: one-to-one means the kernel contains only the zero vector, and onto means the image equals the whole codomain.

Corey
That connects the major themes: continuous and discrete dynamical systems, methods for understanding differential equations, and the linear algebra tools that will eventually be used to study systems.

Michael
Exactly. The most concrete ideas to retain are the continuous-versus-discrete distinction, the exponential solutions for the simplest equations, iteration for difference equations, separation of variables, slope fields, Euler’s method, existence and uniqueness, and the core linear algebra concepts of vectors, projections, systems, transformations, kernels, images, one-to-one functions, and onto functions.

Ask anything
We've read this whole study set, so questions about it get the best answers.