Skip to main content

Section 5.2 Behavior of non-linear systems

Subsection Conservative equations

An equation of the form
\begin{equation*} x'' + f(x) = 0 \end{equation*}
for an arbitrary function \(f(x)\) is called a conservative equation. For example the pendulum equation is a conservative equation. The equations are conservative as there is no friction in the system so the energy in the system is β€œconserved.” Let us write this equation as a system of nonlinear ODE.
\begin{equation*} x' = y, \qquad y' = -f(x) . \end{equation*}
These types of equations have the advantage that we can solve for their trajectories easily.

Definition 5.2.1.

Assume that we have an autonomous system of differential equations defining \(x\) and \(y\text{,}\)
\begin{equation*} x' = f(x,y) \qquad y' = g(x,y). \end{equation*}
A trajectory for this system is a curve in the \(xy\)-plane that the solution curve \((x(t), y(t))\) will stay on for all \(t\text{.}\) This curve will generally be given with \(y\) as a function of \(x\text{,}\) or the level curve of some function \(F(x,y)\text{.}\)
For conservative equations, we want to first think of \(y\) as a function of \(x\) for a moment. Then use the chain rule
\begin{equation*} x'' = y' = \frac{dy}{dx} x' = y \frac{dy}{dx} , \end{equation*}
where the prime indicates a derivative with respect to \(t\text{.}\) We obtain \(y \frac{dy}{dx} + f(x) = 0\text{.}\) We integrate with respect to \(x\) to get \(\int y \frac{dy}{dx} \,dx + \int f(x)\, dx = C\text{.}\) In other words
\begin{equation*} \frac{1}{2} y^2 + \int f(x)\, dx = C . \end{equation*}
We obtained an implicit equation for the trajectories, with different \(C\) giving different trajectories. The value of \(C\) is conserved on any trajectory. This expression is sometimes called the Hamiltonian or the energy of the system. If you look back to SectionΒ 1.9, you will notice that \(y\frac{dy}{dx} + f(x) = 0\) is an exact equation, and we just found a potential function.
Another approach we could use in this case is separable equations, if it works out. The idea is that we have the system
\begin{equation*} x' = y, \qquad y' = -f(x) \end{equation*}
and want to develop a differential equation for \(y\) in terms of \(x\text{.}\) We can write this differential equation using some principles from implicit differentiation and parametric equations as
\begin{equation*} \frac{dy}{dx} = \frac{dy/dt}{dx/dt}, \end{equation*}
which, for this case, is
\begin{equation*} \frac{dy}{dx} = \frac{-f(x)}{y}. \end{equation*}
This equation is separable as
\begin{equation*} y\ dy = -f(x)\ dx \end{equation*}
and we can get to the same implicit equation for the trajectories as before.

Example 5.2.2. .

Find the trajectories for the equation \(x'' + x-x^2 = 0\text{,}\) which is the equation from ExampleΒ 5.1.2.
Solution.
The corresponding first order system is
\begin{equation*} x' = y , \qquad y' = -x+x^2 . \end{equation*}
Trajectories satisfy
\begin{equation*} \frac{1}{2} y^2 + \frac{1}{2} x^2 - \frac{1}{3} x^3 = C . \end{equation*}
We solve for \(y\)
\begin{equation*} y = \pm \sqrt{-x^2 + \frac{2}{3} x^3 + 2C} . \end{equation*}
Plotting these graphs we get exactly the trajectories in FigureΒ 5.1.3. In particular we notice that near the origin the trajectories are closed curves: they keep going around the origin, never spiraling in or out. Therefore we discovered a way to verify that the critical point at \((0,0)\) is a stable center. The critical point at \((0,1)\) is a saddle as we already noticed. This example is typical for conservative equations.
Consider an arbitrary conservative equation \(x'' + f(x) = 0\text{.}\) All critical points occur when \(y=0\) (the \(x\)-axis), that is when \(x' = 0\text{.}\) The critical points are those points on the \(x\)-axis where \(f(x) = 0\text{.}\) The trajectories are given by
\begin{equation*} y = \pm \sqrt{ - 2 \int f(x)\, dx + 2C} . \end{equation*}
So all trajectories are mirrored across the \(x\)-axis. In particular, there can be no spiral sources nor sinks. The Jacobian matrix is
\begin{equation*} \begin{bmatrix} 0 & 1 \\ -f'(x) & 0 \end{bmatrix} . \end{equation*}
The critical point is almost linear if \(f'(x) \not= 0\) at the critical point. Let \(J\) denote the Jacobian matrix. The eigenvalues of \(J\) are solutions to
\begin{equation*} 0 = \det(J - \lambda I) = \lambda^2 + f'(x) . \end{equation*}
Therefore \(\lambda = \pm \sqrt{-f'(x)}\text{.}\) In other words, either we get real eigenvalues of opposite signs (if \(f'(x) < 0\)), or we get purely imaginary eigenvalues (if \(f'(x) > 0\)). There are only two possibilities for critical points, either an unstable saddle point, or a stable center. There are never any sinks or sources.

Subsection Hamiltonian Systems

A generalization of conservative equations to systems is a Hamiltonian system. This type of system has all of the nice properties of conservative equations when converted into systems, but allows for more general interactions between \(x\) and \(y\text{.}\) For these systems, the point is that the equation has a conserved quantity called a Hamiltonian, which does not change as the system evolves in time, which generally represents the energy of the system. Calling this function \(H(x,y)\text{,}\) this means that
\begin{equation*} \frac{d}{dt}H(x,y) = 0. \end{equation*}
By the chain rule, this is equivalent to
\begin{equation*} \frac{\partial H}{\partial x} \frac{dx}{dt} + \frac{\partial H}{\partial y} \frac{dy}{dt} = 0. \end{equation*}
One way to satisfy this is with
\begin{align} \frac{dx}{dt} \amp = -\frac{\partial H}{\partial y} \tag{5.2.1}\\ \frac{dy}{dt} \amp = \frac{\partial H}{\partial x}\tag{5.2.2} \end{align}
and this gives the definition of a Hamiltonian system.

Definition 5.2.3.

The system
\begin{align*} \frac{dx}{dt} \amp =f(x,y)\\ \frac{dy}{dt} \amp = g(x,y) \end{align*}
is Hamiltonian if there is a function \(H(x,y)\) so that \(f(x,y) = -\frac{\partial H}{\partial y}\) and \(g(x,y) = \frac{\partial H}{\partial x}\text{.}\)
For solving these sorts of systems, we know that
\begin{equation*} \frac{d}{dt}H(x,y) = 0, \end{equation*}
since that’s how we defined the system. This means that the trajectories of this system are given by
\begin{equation*} H(x,y) = C \end{equation*}
for a constant \(C\) determined by initial conditions. So if we can find the function \(H\) that expresses the system in the form (5.2.1)-(5.2.2), then we are done.
Finding this \(H\) is a lot similar to finding solutions to exact equations in SectionΒ 1.9. First, we need to determine if the system is Hamiltonian. Since we want to have that
\begin{equation*} f(x,y) = -\frac{\partial H}{\partial y} \qquad g(x,y) = \frac{\partial H}{\partial x} \end{equation*}
we know that
\begin{equation*} f_x(x,y) = -\frac{\partial^2 H}{\partial x \partial y} \qquad g_y(x,y) = \frac{\partial^2 H}{\partial x \partial y} \end{equation*}
which shows that
\begin{equation*} f_x + g_y = 0. \end{equation*}
This is what we can use to check if a system is Hamiltonian; compare to TheoremΒ 1.9.6 for exact equations.
Once we know that a system is Hamiltonian, we can integrate the different components of the equation to find the function \(H\text{.}\) Since \(f = -\frac{\partial H}{\partial y}\text{,}\) then we can write
\begin{equation*} H(x,y) = -\int f(x,y)\ dy + A(x) \end{equation*}
where \(A(x)\) is an unknown function, which can be determined by differentiating this in \(x\) and setting equal to \(g(x,y)\text{.}\)

Example 5.2.4.

Consider the system of differential equations given by
\begin{equation*} x' = -4x + 3y \qquad y' = 2x + 4y. \end{equation*}
Determine if this system is Hamiltonian and, if so, find the trajectories of the solution.
Solution.
We first check if \(f_x + g_y = 0\) to see if the system is Hamiltonian. Since \(f_x = -4\) and \(g_y = 4\text{,}\) this means we have a Hamiltonian system. In order to find the function \(H\text{,}\) we use that
\begin{equation*} \frac{\partial H}{\partial y} = -f(x,y) = 4x - 3y. \end{equation*}
Integrating both sides in \(y\) gives that
\begin{equation*} H(x,y) = 4xy - \frac{3}{2}y^2 + A(x) \end{equation*}
for an unknown function \(A(x)\text{.}\) Differentiating this in \(x\) gives
\begin{equation*} \frac{\partial H}{\partial x} = 4y + A'(x) \end{equation*}
which we want to equal \(2x + 4y\text{.}\) This gives that \(A'(x) = 2x\) so \(A(x) = x^2\text{.}\) Thus, the Hamiltonian is given by
\begin{equation*} H(x,y) = x^2 + 4xy - \frac{3}{2}y^2 \end{equation*}
so that the trajectories are defined by
\begin{equation*} x^2 + 4xy - \frac{3}{2}y^2 = C \end{equation*}
for any constant \(C\text{.}\) These are sketched in FigureΒ 5.2.5.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.5. Vector field and trajectories for a Hamiltonian System.
Note that this system is linear and autonomous. Therefore, we could have solved this using those methods as well. For this, we have the coefficient matrix
\begin{equation*} A = \begin{bmatrix} -4 & 3 \\ 2 & 4 \end{bmatrix} \end{equation*}
and we can find the eigenvalues of this matrix as the roots of
\begin{equation*} \det(A - \lambda I) = (-4-\lambda)(4-\lambda) - (3)(2) = \lambda^2 - 22 \end{equation*}
whose roots are \(\pm\sqrt{22}\) which have opposite signs. Therefore, this will be a saddle point, which we see represented in the plot in FigureΒ 5.2.5.

Subsection Separatrices and Basins of Attractions

If we have an asymptotically stable critical point \((x_0, y_0)\) for an autonomous system of differential equation, we know that solutions that start β€œnear” this point will converge to it as \(t \rightarrow \infty\text{.}\) That’s what it means for the point to be asymptotically stable. However, for applications, it may be important to know exactly which initial conditions \((x(0), y(0))\) will end up converging to \((x_0, y_0)\text{.}\) This can be particularly relevant when there are multiple asymptotically stable equilibrium solutions and we need to determine which one a given initial condition will converge to.

Definition 5.2.6.

Let \((x_0, y_0)\) be an asymptotically stable equilibrium solution for the autonomous system \(\vec{x}\ ` = \vec{F}(x,y)\text{.}\) The basin of attraction for \((x_0, y_0)\) is the set of all points \((a,b)\) where the solution to
\begin{equation*} \vec{x}' = \vec{F}(x,y) \qquad \vec{x}(0) = \begin{bmatrix} a \\ b \end{bmatrix} \end{equation*}
converges to \((x_0, y_0)\) as \(t \rightarrow \infty\text{.}\)
In general, the basin of attraction for an asymptotically stable critical point is difficult, if not impossible, to find analytically. The main approach here is to use a direction field to approximate the basin of attraction.

Example 5.2.7.

Find all asymptotically stable critical points for the autonomous system
\begin{equation*} \frac{dx}{dt} = x(7-2x-5y) \qquad \frac{dy}{dt} =(y+1)(5-3x-2y) \end{equation*}
and determine an approximate basin of attraction for each.
Solution.
We want to start by finding the critical points for this system, classifying them to determine if they are asymptotically stable, and then use a slope field to try to find the basin of attraction. In order to have a critical point, we need to have both \(\frac{dx}{dt}\) and \(\frac{dy}{dt}\) equal to zero. This means that we need
\begin{equation*} \left[ x=0 \text{ or } 7-2x-5y = 0\right] \quad \text{ and } \quad \left[ y=-1 \text{ or } 5 - 3x - 2y = 0 \right]. \end{equation*}
This results in the points \((0, -1)\text{,}\) \(\left(0, \nicefrac{5}{2}\right)\text{,}\) \((6, -1)\text{,}\) and \((1, 1)\text{.}\) In order to classify each of these critical points, we need to find the Jacobian matrix for this system, which is
\begin{equation*} J(x,y) = \begin{bmatrix} F_x & F_y \\ G_x & G_y \end{bmatrix} = \begin{bmatrix} 7-4x-5y & -5x \\ -3(y+1) & 3 - 3x - 4y \end{bmatrix}, \end{equation*}
and then we want to plug each critical point into this matrix in turn.
Plugging in \((0,-1)\) gives \(\left[ \begin{smallmatrix} 12 & 0 \\ 0 & 7 \end{smallmatrix} \right]\text{,}\) which has eigenvalues of \(12\) and \(7\text{,}\) and so is a nodal source, which is unstable. Plugging in \(\left(0, \nicefrac{5}{2}\right)\) gives \(\left[ \begin{smallmatrix} -\nicefrac{11}{2} & 0 \\ -\nicefrac{21}{2} & -7 \end{smallmatrix} \right]\text{,}\) which has eigenvalues of \(-\nicefrac{11}{2}\) and \(-7\text{,}\) which is a nodal sink, and so asymptotically stable. Plugging in \((6,-1)\) gives \(\left[ \begin{smallmatrix} -12 & 30 \\ 0 & -11 \end{smallmatrix} \right]\text{,}\) which has eigenvalues at \(-11\) and \(-12\text{,}\) giving an asymptotically stable nodal sink. The last point at \((1,1)\) gives \(\left[ \begin{smallmatrix} -2 & -5 \\ -6 & -4 \end{smallmatrix} \right]\text{,}\) which is not triangular, and so does not have easily identifiable eigenvalues. We could use trace-determinant analysis to classify (SectionΒ 4.7) or we can just compute the eigenvalues. Those are found by the roots of
\begin{equation*} \det(A - \lambda I) = (-2-\lambda)(-4-\lambda) - (-5)(-2) = \lambda^2 + 6\lambda - 2 \end{equation*}
and since the last term is negative, we know we are going to get roots of opposite signs, so this is an unstable saddle point. The actual eigenvalues are
\begin{equation*} \frac{-6 \pm \sqrt{36 - 4(1)(-2)}}{2} = -3 \pm \frac{\sqrt{44}}{2} = -3\pm\sqrt{11}. \end{equation*}
So, this means we have two asymptotically stable critical points, \(\left(0, \nicefrac{5}{2}\right)\) and \((6, -1)\text{.}\) We need to look at a slope field to determine the approximate basin of attraction for each of these points.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.8. Plots showing the slope field for ExampleΒ 5.2.7 (left) and a slope field combined with approximate basins of attraction (right).
From FigureΒ 5.2.8, we can see that there is a sort of dividing line between the two nodal sinks. If the solution starts on one side of the line, it funnels into one critical point, and on the other side, it heads to the other one. This dividing line also seems to pass through the saddle point at \((1,1)\text{,}\) which is not a coincidence, as we will see later.
Another interesting feature of these regions is the boundary of them. This is a curve that separates solutions that converge to the asymptotically stable equilibrium solution and those that don’t. This leads to another definition.

Definition 5.2.9.

Consider the autonomous system \(\vec{x}' = \vec{F}(x,y)\text{.}\) A separatrix (plural separatrices) is a curve in the plane that separates trajectories that have different long-term behaviors of solutions to \(\vec{x}\ ` = \vec{F}(x,y)\text{.}\)
The boundary of a basin of attraction is a separatrix because the long-term behavior inside the curve (converging to the asymptotically stable critical point) is different from the behavior outside the curve (going somewhere else). These dividing curves also show up in other contexts.

Example 5.2.10.

Analyze the system
\begin{align*} \frac{dx}{dt} \amp = -x -y \\ \frac{dy}{dt} \amp = -2x \end{align*}
in the context of separatrices.
Solution.
This is a linear, homogeneous system, so we can analyze it via that approach. For the coefficient matrix \(A = \left[ \begin{smallmatrix} -1 & -1 \\ -2 & 0 \end{smallmatrix} \right]\text{,}\) we have eigenvalues as the roots of \((-1-\lambda)(-\lambda) - 2\text{,}\) or \(\lambda^2 + \lambda - 2\text{.}\) Therefore, the eigenvalues here are \(1\) and \(-2\text{.}\) For \(1\) we have eigenvector \(\left[ \begin{smallmatrix} 1 \\ -2 \end{smallmatrix}\right]\) and for \(-2\text{,}\) an eigenvector is \(\left[ \begin{smallmatrix} 1 \\ 1 \end{smallmatrix}\right]\text{.}\) We can see what this looks like on a slope field in FigureΒ 5.2.11.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.11. Plot showing the slope field for ExampleΒ 5.2.10 with a sketch of the separatrix.
There are no asymptotically stable critical points here, so there are no basins of attraction. However, there are two distinct behaviors of the solution curve. It is going away from the origin, but it could go to the top left, or to the bottom right. Both of those make sense based on the slope field here. So how do we know which way it goes? The line drawn on the right side of FigureΒ 5.2.11 seems to divide these two regions up. If the solution starts above the line, it goes to the top left, otherwise, it goes to the bottom right. This is the separatrix for this saddle point.
But what is that line? If we inspect the graph more closely, the separatrix here is the straight-line solution that converges to zero over time; the one particular solution that does not go off to infinity because it only has the \(e^{-2t}\) term in it. So the straight-line solutions that flow into saddle points divide what happens on the two sides of it. This is a very common fact in looking at separatrices: if they go through a critical point, they generally do so as the in-flowing solution from a saddle point. All of the examples we have seen so far with separatrices have done exactly this.

Subsection Nullclines

When trying to find critical points for a non-linear, autonomous system, we need all (both, in the case of two component systems) of the equations to be zero. What happens if only one of the equations is zero? This is a lot easier to find, and can also give us a fair bit of information.

Definition 5.2.12.

Consider the autonomous two-component system
\begin{equation*} \frac{dx}{dt} = f(x,y) \qquad \frac{dy}{dt} = g(x,y). \end{equation*}
A nullcline for this system is a curve where either \(f(x,y) = 0\) or \(g(x,y) = 0\text{.}\) We can also be more specific and use the term x-nullcline for the curve(s) where \(\frac{dx}{dt} = 0\) and y-nullcline for where \(\frac{dy}{dt} = 0\text{.}\)
The way we can use these nullclines is to know in general which direction the solution curve will move in different regions of the plane. Assuming that all of the functions involved are continuous, if we know that the solution at a given point will move to the right, that is, if \(\frac{dx}{dt} > 0\text{,}\) then we know that the solution will continue to move to the right until we cross an \(x\)-nullcline. If the solution starts going back to the left, this means that \(\frac{dx}{dt}\) becomes negative, and so must cross zero, which is where a nullcline is.
In addition, we know that along an \(x\)-nullcline, \(\frac{dx}{dt} = 0\text{,}\) so the solution can only be moving in the \(y\) direction, that is, vertically. If we can determine in which direction the solution graph will cross the nullclines, this can also be helpful and useful. It doesn’t give as much information as a full slope field or trajectory plot, but it can give a general idea of what is going to happen to the solution over time.

Example 5.2.13.

Use a nullcline analysis to determine the overall behavior of solutions to the system
\begin{equation*} \frac{dx}{dt} = (y-1)(x-y) \qquad \frac{dy}{dt} = (x+3)(x-2). \end{equation*}
Solution.
We can get the equations for nullclines from the factors of each of the differential equations here. For \(x\)-nullclines, we get \(y=1\) and \(y=x\text{,}\) and for \(y\)-nullclines, we get \(x=-3\) and \(x=2\text{.}\) Once we have these lines, we need to determine what happens within each of the regions on the resulting graph. For example, if we look in the region above \(y=1\text{,}\) above \(y=x\) and right of \(x=2\text{,}\) we can plug in, for example \((3,4)\text{.}\) At this point \(\frac{dx}{dt} = (4-1)(3-4) = -3 < 0\) and \(\frac{dy}{dt} = (3+3)(3-2) = 6 > 0\text{.}\) Therefore, the solution here moves up and to the left. We can fill in all of the other regions in a similar manner. This is shown on the left of FigureΒ 5.2.14.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.14. Plots showing the nullcline diagram for ExampleΒ 5.2.13 (left) and a slope field for the same differential equation (right).
Based on the nullcline diagram here, we can see that there seems to be some sort of spiraling behavior around both \((2,2)\) and \((-3, -3)\text{,}\) which we know are critical points because the two different nullclines intersect there. From this alone, we can’t really tell if they are sources, sinks, or centers, but we do get a general idea of the behavior. We also see what looks like saddles at \((-3, 1)\) and \((2, 1)\text{,}\) since these critical points have two opposite arrows pointing towards this point (corresponding to the negative eigenvalue of the linearized system), and two opposite arrows pointing away from the point (corresponding to the positive eigenvalue). The slope field seems to validate all of these general discussions from the nullcline diagram.

Example 5.2.15.

Use a nullcline analysis to determine the overall behavior of solutions to the system
\begin{equation*} \frac{dx}{dt} = (x-3)(y+1) \qquad \frac{dy}{dt} = (y-2)(x+y). \end{equation*}
Solution.
As with the previous example, we can find the nullcline equations from the factors above. The \(x\)-nullclines are at \(x=3\) and \(y=-1\text{,}\) and the \(y\)-nullclines are at \(y=2\) and \(x=-y\text{.}\) We can plug in points to fill in the nullcline diagram like before, and compare to the slope field, shown in FigureΒ 5.2.16.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.16. Plots showing the nullcline diagram for ExampleΒ 5.2.15 (left) and a slope field for the same differential equation (right).
In this diagram, we see some of the other types of critical points and what they look like through nullclines. The point at \((3,2)\) looks like a nodal source, because all of the arrows point away from that point, and \((3,-3)\) looks like a nodal source. Finally, we see a potential saddle at \((1,-1)\) because of the patterns of the arrows, all of which are also shown in the slope field for this system.
An extra point with this type of result is that we know we can not cross the nullclines at \(x=3\) and \(y=2\text{.}\) For instance, the line \(x=3\) is an \(x\)-nullcline. This means that the solution must cross the line moving vertically. However, it is a vertical line, and there is no way to cross a vertical line moving vertically. The same argument applies to \(y=2\text{.}\) We can also see this by the fact that the arrows on either side of the line both point into or away from these nullclines.

Exercises Exercises

1.

Find the implicit equations of the trajectories of the following conservative systems. Next find their critical points (if any) and classify them.
(b)
\(\theta''+\sin \theta = 0\)
Answer.
\(\frac{1}{2}y^2 - \cos(\theta) = C\text{.}\) \((n\pi, 0)\) is a saddle if \(n\) is even, and a center if \(n\) is odd.
(c)
\(z''+ (z-1)(z+1) = 0\)
Answer.
\(\frac{1}{2}y^2 + \frac{z^3}{3} - z = C\text{,}\) \((1,0)\) is a center, \((-1, 0)\) is a saddle.

2.

Find the implicit equations of the trajectories of the following conservative systems. Next find their critical points (if any) and classify them.
(a)
\(x''+ x^2 = 4\)
Answer.
\(\frac{1}{2}y^2 + \frac{1}{3}x^3 -4x = C\text{.}\) critical points: \((-2,0)\text{,}\) an unstable saddle, and \((2,0)\text{,}\) a stable center.

3.

The conservative system \(x''+x^3 = 0\) is not almost linear. Classify its critical point(s) nonetheless.
Answer.
Critical point at \((0,0)\text{.}\) Trajectories are \(y = \pm \sqrt{2C-(\nicefrac{1}{2})x^4}\text{,}\) for \(C > 0\text{,}\) these give closed curves around the origin, so the critical point is a stable center.

4.

Determine if the following system is Hamiltonian. If it is, find the general solution in the form \(H(x,y) = C\) and sketch some of the trajectories.
\begin{equation*} \frac{dx}{dt} = x - 2y \qquad \frac{dy}{dt} = 3x - y. \end{equation*}
Answer.
\(H(x,y) = -\frac{3}{2}x^2 + xy - y^2\)

5.

Determine if the following system is Hamiltonian. If it is, find the general solution in the form \(H(x,y) = C\) and sketch some of the trajectories.
\begin{equation*} \frac{dx}{dt} = 4x - 2y + 2 \qquad \frac{dy}{dt} = -5x + y - 1. \end{equation*}
Answer.

6.

Determine if the following system is Hamiltonian. If it is, find the general solution in the form \(H(x,y) = C\) and sketch some of the trajectories.
\begin{equation*} \frac{dx}{dt} = x^2 - 2xy + 3y^2 \qquad \frac{dy}{dt} = y^2 - 2xy + e^x . \end{equation*}
Answer.
\(H(x,y) = x^2y - xy^2 + y^3 - e^x\)

7.

Determine if the following system is Hamiltonian. If it is, find the general solution in the form \(H(x,y) = C\) and sketch some of the trajectories.
\begin{equation*} \frac{dx}{dt} = 3x - 4xy \qquad \frac{dy}{dt} = 5xy - y. \end{equation*}
Afterwards, do the same but with the system
\begin{equation*} \frac{dx}{dt} = \frac{3}{y} - 4 \qquad \frac{dy}{dt} = 5 - \frac{3}{x}, \end{equation*}
noticing that this is the same as the first system with each equation divided by \(xy\text{.}\)
Answer.
First is not Hamiltonian. Second is with \(H(x,y) = 3\ln(|y|) + \ln(|x|) - 5x - 4y\text{.}\)

8.

Consider a generic thing on a spring, with displacement \(u\) and velocity \(v\text{.}\) Assume that
\begin{equation*} mu''+ku=0, \end{equation*}
where \(m\) and \(k\) are some positive constants.
(a)
Rewrite this equation as a first-order system in \(u\) and \(v\text{.}\)
Answer.
\(u' = v\text{,}\) \(v'= -\frac{k}{m}u\)

9.

Suppose \(f\) is always positive. Find the trajectories of \(x''+f(x') = 0\text{.}\) Are there any critical points?
Answer.

10.

Suppose that \(x' = f(x,y)\text{,}\) \(y' = g(x,y)\text{.}\) Suppose that \(g(x,y) > 1\) for all \(x\) and \(y\text{.}\) Are there any critical points? What can we say about the trajectories at \(t\) goes to infinity?
Answer.
All will have \(y\rightarrow \infty\text{.}\) No critical points.

11.

In FigureΒ 5.2.17 is the direction field for the system \(\dfrac{dx}{dt}=y^2-3y, \dfrac{dy}{dt}=x^2-4x\text{.}\) The critical points are \((0,0), (4,0), (0,3)\text{,}\) and \((4,3)\text{.}\) Draw the nullclines on the plot. What do the nullclines tell us about the critical points?
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.17. Direction field for the system \(\dfrac{dx}{dt}=y^2-3y, \dfrac{dy}{dt}=x^2-4x\text{.}\)
Answer.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.18. Direction field for the system \(\dfrac{dx}{dt}=y^2-3y, \dfrac{dy}{dt}=x^2-4x\) with nullclines.

12.

Nullclines apply to linear systems as well, although since we can often solve those explicitly they’re less necessary. Construct the nullcline diagram for the system \(\dfrac{dx}{dt}=-3x+y\text{,}\) \(\dfrac{dy}{dt}=6x+2y\text{,}\) and use it to classify (by type) the equilibrium point at the origin. What is the linearization of this system at \((0,0)\text{?}\)
Answer.
Saddle
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.19. Nullcline Diagram for the system \(\dfrac{dx}{dt}=-3x+y\text{,}\) \(\dfrac{dy}{dt}=6x+2y\text{.}\)

13.

Consider the system \(\displaystyle \frac{dx}{dt}= -2x+y, \frac{dy}{dt}=-y+x^2\text{.}\)
(b)
Sketch all nullclines for this system on a single diagram. Label each region, and use these results to classify each equilibrium point.
Answer.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.20. Nullcline Diagram for the system \(\displaystyle \frac{dx}{dt}= -2x+y, \frac{dy}{dt}=-y+x^2\text{.}\)

14.

Nullclines need not be lines. Consider the system
\begin{equation*} \begin{bmatrix} \displaystyle \frac{dx}{dt}=4-y^2\\ \dfrac{dy}{dt}=8-x^2-y^2 \end{bmatrix}. \end{equation*}
(b)
Sketch the nullcline diagram and label all regions DL, DR, UL, or UR. Classify (according to type) any critical point(s) that can be classified using this analysis.
Answer.
\((2,2)\) is a saddle, \((-2, -2)\) is a saddle.
(c)
Two critical points cannot be classified using the nullcline analysis. Classify these (again according to type) using the Jacobian.
Answer.
\((-2, 2)\) is a spiral sink, \((2, -2)\) is a spiral source.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.21. Nullcline diagram for the system \(\frac{dx}{dt}=4-y^2\text{,}\) \(\dfrac{dy}{dt}=8-x^2-y^2\text{.}\)

15.

Consider the system
\begin{equation} \begin{bmatrix} \frac{dx}{dt}=x-y^2+2\\[12pt] \frac{dy}{dt}=x^2-y^2 \end{bmatrix}\tag{5.2.3} \end{equation}
(b)
Create the nullcline diagram for the system, labelling each region as one of UL, UR, DL, or DR. Use this information to classify two critical points according to type.
Answer.
\((2, -2)\) is a saddle, \((-1, 1)\) is a saddle.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.22. Nullcline diagram for the system \(\frac{dx}{dt}=x-y^2+2\text{,}\) \(\frac{dy}{dt}=x^2-y^2\text{.}\)
(c)
Use the Jacobian matrix to classify any remaining critical points.
Answer.
\((2,2)\) is a spiral sink, \((-1, -1)\) is a spiral source.
(d)
Is there a conserved quantity (Hamiltonian function) for this system? If so, find one. If not, explain why not.
Answer.
No, can not have sources or sinks.

16.

For a conflict between two armies, Lanchester’s Law asserts that \(\dfrac{dx}{dt}=-\alpha y\) and \(\dfrac{dy}{dt}=-\beta x\text{,}\) where \(x\) and \(y\) are the two populations, and \(\alpha\) and \(\beta\) are some positive constants.
(a)
Find a Hamiltonian function for this system satisfying \(H(0,0)=0\text{.}\)
Answer.
\(\beta\frac{x^2}{2} - \alpha \frac{y^2}{2} = 0\)
(c)
Assume that we are just looking at the first quadrant, since the populations are non-negative. Find the curve along which the Hamiltonian function is zero, and explain its significance in terms of who wins the conflict.
Answer.
\(y = \sqrt{\frac{\beta}{\alpha}}x\text{,}\) dividing line deciding who wins

17.

Consider the non-linear system
\begin{equation} \frac{dx}{dt}=4x-3y-x(x^2+y^2), \ \frac{dy}{dt}=3x+4y-y(x^2+y^2). %5.1 or 2\tag{5.2.4} \end{equation}

18.

Consider the system of differential equations
\begin{equation} \frac{dx}{dt} = (x^2 - 1)y \qquad \frac{dy}{dt} = (y-3)(y-1)x \tag{5.2.5} \end{equation}
which has slope field sketched in FigureΒ 5.2.23.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.23. Slope field for the system \(5.2.5)
(a)
Find and classify all critical points of the system (5.2.5).
Answer.
\((1, -1)\) Nodal sink, \((-1, -1)\) Nodal source, \((1, 3)\) Nodal source, \((-1, 3)\) Nodal sink, \((0,0)\) Saddle.
(c)
Do any of these critical points have a basin of attraction? If so, sketch out what regions of the plane correspond to a basin of attraction for those critical points.
Answer.
Yes, bottom right goes to \((-1, 1)\text{,}\) top left goes to \((-1, 3)\text{.}\)

19.

Consider the system of differential equations
\begin{equation} \frac{dx}{dt} = (2-y)(y+1)(x+1) \qquad \frac{dy}{dt} = -(x+2)(x-1)y \tag{5.2.6} \end{equation}
which has slope field sketched below.
ALT TEXT HERE
IMAGE DESCRIPTION HERE
Figure 5.2.25. Slope field for the system \(5.2.6)
(a)
Find and classify all critical points of the system (5.2.6).
Answer.
\((-2, 2)\) saddle, \((-2, -1)\) saddle, \((1, 2)\) saddle, \((1, -1)\) saddle, \((-1, 0)\) nodal source.
(c)
Do any of these critical points have a basin of attraction? If so, sketch out what regions of the plane correspond to a basin of attraction for those critical points.
Answer.