Ordinary Differential Equations
A differential equation relates an unknown function to its derivatives. Newton’s second law, population growth, radioactive decay and electric circuits are all described this way. This chapter solves the equations that can be solved in closed form: first-order equations of special types, equations whose order or dimension can be reduced, and above all linear equations and systems. Most equations cannot be solved explicitly, so the last sections study solutions through the equation itself, using phase planes, energy and equilibria.
8.1 Basic Concepts
Definition 8.1 (Ordinary Differential Equation) A differential equation is an equation satisfied by one or more unknown functions and their derivatives; its order is the highest derivative that appears. It is an ordinary differential equation (ODE) if all unknown functions depend on a single variable. An \(n\)th-order ODE
\[ F(x,y,y',\dots,y^{(n)})=0 \]
is implicit; it is explicit if it has the form \(y^{(n)}=f(x,y,y',\dots,y^{(n-1)})\). A function \(y:I\to\mathbb R\) is a solution if \(F(x,y(x),\dots,y^{(n)}(x))=0\) for all \(x\in I\). A first-order system has the form \(y'=F(x,y)\) with \(y:I\to\mathbb R^n\).
An \(n\)th-order explicit equation is equivalent to a first-order system: with \(\mathbf y=(y,y',\dots,y^{(n-1)})^T\),
\[ \mathbf y'=\begin{pmatrix}y'\\y''\\\vdots\\f(x,y,y',\dots,y^{(n-1)})\end{pmatrix}=F(x,\mathbf y). \]
So the theory of higher-order equations reduces to that of first-order systems.
Definition 8.2 (Linear Equations and Systems) A linear system has the form \(y'=A(x)y+f(x)\), where \(A(x)\) is an \(n\times n\) matrix and \(f(x)\) a column vector, the inhomogeneous term. It is homogeneous if \(f\equiv0\) and has constant coefficients if \(A\) is constant. Similarly, an \(n\)th-order linear equation has the form
\[ y^{(n)}+a_{n-1}(x)y^{(n-1)}+\dots+a_1(x)y'+a_0(x)y=f(x). \]
Definition 8.3 (Initial Value Problem) An initial value problem for \(y'=F(x,y)\) prescribes the initial condition \(y(x_0)=y_0\). For an \(n\)th-order equation, the initial conditions are \(y(x_0)=y_0,\ y'(x_0)=y_1,\ \dots,\ y^{(n-1)}(x_0)=y_{n-1}\). A family of solutions depending on \(n\) arbitrary constants is a general solution; a solution containing no arbitrary constants is a particular solution.
Since a solution is typically determined by its initial conditions, the general solution of an \(n\)th-order equation usually involves \(n\) constants. It need not contain every solution, however. The general solution of \(y'=y^2\) is \(y=-\frac1{x+C}\), yet \(y\equiv0\) is also a solution.
8.2 First-Order Equations
8.2.1 Direction Fields and Integral Curves
An explicit first-order equation \(\frac{dy}{dx}=f(x,y)\) assigns a slope \(f(x,y)\) to each point of the plane, a slope field. A function \(y(x)\) is a solution iff the graph \(y=y(x)\) has slope \(f(x,y(x))\) at each of its points; the graph is an integral curve of the field. More generally, consider
\[ P(x,y)\,dx+Q(x,y)\,dy=0. \]
Definition 8.4 (Integral Curve) A \(C^1\) curve \(\gamma:(x(t),y(t))\) is an integral curve of \(P\,dx+Q\,dy=0\) if
\[ P(x(t),y(t))x'(t)+Q(x(t),y(t))y'(t)=0, \]
that is, wherever \(\gamma\) passes, its tangent is orthogonal to \((P,Q)^T\).
Where \((P,Q)\ne(0,0)\), the direction orthogonal to \((P,Q)\) defines a direction field, and the integral curves are the curves tangent to it. The slope field of \(y'=f(x,y)\) is the special case \(f\,dx-dy=0\). Where \(x'(t)\ne0\), an integral curve can be reparametrized by \(x\).
The simplest equation is \(y'=f(x)\). Its slope field is invariant under vertical translation, so vertical translates of integral curves are integral curves. If \(f\) is continuous on \((\alpha,\beta)\), then for every \(x_0\in(\alpha,\beta)\) and \(y_0\in\mathbb R\), the initial value problem \(y'=f(x)\), \(y(x_0)=y_0\) has the unique solution
\[ y(x)=y_0+\int_{x_0}^xf(t)\,dt,\qquad x\in(\alpha,\beta), \]
by the fundamental theorem of calculus and the fact that a function with zero derivative on an interval is constant.
The equation \(y'=\lambda y\) models the simplest population growth (\(\lambda\) is the net growth rate) and radioactive decay (\(\lambda<0\)). Its slope field does not depend on \(t\), so time translates of solutions are solutions. If \(\lambda\ne0\) and \(y\ne0\), then \(y'\ne0\), and by the inverse function rule \(\frac{dt}{dy}=\frac1{\lambda y}\), which is of the simplest type. Integrating,
\[ t=t_0+\frac{\ln y-\ln y_0}\lambda,\qquad y(t)=y_0e^{\lambda(t-t_0)}. \]
For a radioactive substance, the half-life is \(T=-\frac{\ln2}\lambda\). When an organism dies, its intake of carbon-14 (half-life about \(5730\) years) stops. If \(y\) is the fraction of carbon-14 remaining now, at time \(t\), and \(y_0\) is the natural fraction, the organism died at time
\[ t_0=t-\frac{\ln y-\ln y_0}\lambda=t+T\log_2\frac y{y_0}. \]
8.2.2 Separable Equations
Definition 8.5 (Separable Equation) An equation of the form \(\frac{dy}{dx}=\frac{f(x)}{g(y)}\), that is, \(g(y)\,dy=f(x)\,dx\), is separable.
Integrating both sides gives \(G(y)=F(x)+C\), where \(F,G\) are antiderivatives of \(f,g\). Where \(g(y)\ne0\), \(G\) is invertible and \(y=G^{-1}(F(x)+C)\). Geometrically, the change of coordinates \(z=G(y)\) turns the equation into \(\frac{dz}{dx}=g(y)\frac{dy}{dx}=f(x)\), which is of the simplest type. Separation of variables manipulates differentials formally and can lose or add solutions, for example where \(g(y)\) or \(\frac1{g(y)}\) vanishes, so the result must be checked.
In 1696 Johann Bernoulli posed the following challenge: given points \(A\) and \(B\) in a vertical plane, with \(A\) higher and not directly above \(B\), find the curve along which a bead sliding from rest under gravity travels from \(A\) to \(B\) in the shortest time.
Put \(A\) at the origin with the \(y\)-axis pointing down. By conservation of energy, \(\frac12mv^2=mgy\), so \(v=\sqrt{2gy}\). Bernoulli treated the bead as light passing through layers of varying speed. By Fermat’s principle and Snell’s law, \(\frac v{\sin\theta}=C\), where \(\theta\) is the angle between the curve and the downward vertical. Since \(\cot\theta=y'\), we get \(\sin^2\theta=\frac1{1+y'^2}\), so
\[ y\bigl(1+y'^2\bigr)=2C_1,\qquad y'=\sqrt{\frac{2C_1}y-1} \]
while the curve descends. This is separable. Substituting \(y=2C_1\sin^2s\) gives \(\sqrt{2C_1/y-1}=\cot s\) and \(dx=4C_1\sin^2s\,ds\), so
\[ x=C_1(2s-\sin2s),\qquad y=C_1(1-\cos2s), \]
using \(x=y=0\) at \(s=0\). This is a cycloid. The ratio \(\frac{y}{x}=\frac{1-\cos2s}{2s-\sin2s}\) decreases continuously from \(+\infty\) to \(0\) on \((0,\pi)\), so exactly one \(s_0\) matches \(B=(x_b,y_b)\), and this determines \(C_1=\frac{y_b}{1-\cos2s_0}\).
8.2.3 Equations Reducible to Separable Form
A symmetry of the direction field suggests a change of variables that makes the equation separable.
- \(y'=f(ax+by)\) with \(b\ne0\). The field is invariant under translation along the lines \(ax+by=C\). With \(p=ax+by\), \(\frac{dp}{dx}=a+bf(p)\), so \(x=\int\frac{dp}{a+bf(p)}=G(ax+by)+C\).
- Homogeneous equations \(y'=f(\frac yx)\). The field is invariant under scaling from the origin. With \(t=\frac yx\) and \(u=\ln|x|\), which turns scaling into translation, \(\frac{dt}{dx}=\frac{f(t)-t}x\) and hence \(\frac{du}{dt}=\frac1{f(t)-t}\). So \(\ln|x|=G(\frac yx)+C\), where \(G\) is an antiderivative of \(\frac1{f(t)-t}\).
8.2.4 Exact Equations and Integrating Factors
Definition 8.6 (Exact Equation) The equation \(P\,dx+Q\,dy=0\) is exact if there is a function \(H(x,y)\) such that along every \(C^1\) curve,
\[ \frac d{dt}H(x(t),y(t))=P(x(t),y(t))x'(t)+Q(x(t),y(t))y'(t). \]
\(H\) is a potential of \(P\,dx+Q\,dy\), and the integral curves lie on the level sets \(H(x,y)=C\).
The separable equation \(f(x)\,dx-g(y)\,dy=0\) is exact with \(H=F(x)-G(y)\). The equation \((3x-y+2)\,dx+(-x+y-1)\,dy=0\) is exact with \(H=\frac32x^2-xy+\frac12y^2+2x-y\), which one checks by differentiating \(H(x(t),y(t))\).
Definition 8.7 (Integrating Factor) If \(P\,dx+Q\,dy=0\) is not exact but \(\mu P\,dx+\mu Q\,dy=0\) is, then \(\mu(x,y)\) is an integrating factor.
- For the linear equation \(a(x)y\,dx+dy=0\), with \(A(x)=\int_0^xa(s)\,ds\), the factor \(e^{A(x)}\) works: \(\frac d{dt}\bigl(e^{A(x(t))}y(t)\bigr)=e^{A(x(t))}\bigl(a(x(t))y(t)x'(t)+y'(t)\bigr)\). The solutions are \(e^{A(x)}y=C\).
- For \(y\,dx-x\,dy=0\), the factor \(\frac1{xy}\) gives \(\frac{dx}x-\frac{dy}y=d(\ln|x|-\ln|y|)\), so \(y=C_1x\). In polar coordinates, \(y\,dx-x\,dy=-r^2\,d\theta\), so \(\frac1{x^2+y^2}\) is also an integrating factor, turning the equation into \(d\theta=0\).
Criteria for exactness and the search for integrating factors belong to multivariable calculus.
8.3 Reducing Order and Dimension
Lowering the order of an equation, or the number of coupled unknowns in a system, is a basic strategy.
8.3.1 Equations Without the Unknown Function
An equation \(F(x,y^{(k)},y^{(k+1)},\dots,y^{(n)})=0\) in which \(y,\dots,y^{(k-1)}\) do not appear becomes, with \(z=y^{(k)}\), an equation of order \(n-k\) in \(z\). Solving for \(z\) and integrating \(k\) times gives \(y\).
A wolf at \((a,0)\), \(a>0\), sees a rabbit passing the origin and running up the \(y\)-axis at speed \(v\). The wolf runs at speed \(1\), always heading straight at the rabbit. Does it catch the rabbit?
Let the wolf be at \((x(t),y(t))\). Its tangent passes through the rabbit at \((0,vt)\), so \(vt-y=-x\frac{dy}{dx}\). Differentiating in \(x\) gives \(v\frac{dt}{dx}=-x\frac{d^2y}{dx^2}\), and since the wolf moves left at unit speed, \(\frac{dt}{dx}=-\sqrt{1+y'^2}\). Hence
\[ x\frac{d^2y}{dx^2}=v\sqrt{1+\Bigl(\frac{dy}{dx}\Bigr)^2}, \]
which does not contain \(y\). With \(z=y'\) it is separable: \(\frac{dz}{\sqrt{1+z^2}}=\frac{v\,dx}x\), so \(z=\frac12\bigl(Ax^v-\frac1{Ax^v}\bigr)\). The initial condition \(y'(a)=0\) gives \(A=a^{-v}\), and integrating with \(y(a)=0\):
\[ y=\frac{x^{1+v}}{2a^v(1+v)}-\frac{a^vx^{1-v}}{2(1-v)}+\frac{av}{1-v^2}\qquad(v\ne1). \]
If \(v\ge1\), then \(y\to+\infty\) as \(x\to0^+\) (for \(v=1\) the middle term is replaced by \(-\frac a2\ln x\)), and the wolf never catches the rabbit. If \(v<1\), the wolf reaches the \(y\)-axis at height \(y(0)=\frac{av}{1-v^2}\). The distance it runs is
\[ L=\int_0^a\sqrt{1+y'^2}\,dx=\int_0^a\frac xvy''\,dx=\Bigl[\frac{xy'}v\Bigr]_0^a-\frac1v\int_0^ay'\,dx=\frac{a}{1-v^2}, \]
which is also its running time. In that time the rabbit reaches exactly \(\frac{av}{1-v^2}\), so the wolf catches it.
Variation of constants also reduces order. If \(y_0\) is a nowhere-vanishing solution of the linear homogeneous equation \(Ly=y^{(n)}+a_{n-1}(x)y^{(n-1)}+\dots+a_0(x)y=0\), then \(y=C(x)y_0(x)\) solves \(Ly=f\) iff \(L(Cy_0)=f\). Since \(Ly_0=0\), this equation does not contain \(C\) itself, so it has order \(n-1\) in \(C'\). For example, \(e^x\) solves \(xy''-(x+1)y'+y=0\), and \(y=e^xC(x)\) solves \(xy''-(x+1)y'+y=f(x)\) iff \(xC''+(x-1)C'=e^{-x}f(x)\).
8.3.2 Equations Without the Independent Variable
For \(F(y,y',\dots,y^{(n)})=0\), take \(y\) as the new variable and \(z=y'\) as the new unknown. Since \(\frac d{dx}=z\frac d{dy}\), we get \(\frac{d^ky}{dx^k}=\bigl(z\frac d{dy}\bigr)^{k-1}z\), so the equation becomes one of order \(n-1\) for \(z(y)\). Then \(\frac{dy}{dx}=z(y)\) is separable.
A catenary is the curve of a chain hanging under gravity. Galileo guessed a parabola; in 1691 Huygens, Leibniz and Johann Bernoulli found the true equation. Let \(T(\theta)\) be the tension where the tangent makes angle \(\theta\) with the horizontal, \(\rho\) the linear density and \(l\) arc length. Balancing forces on a small piece gives \(T\cos\theta=T_0\) and \((T\sin\theta)'_\theta=\rho gl'_\theta\). Hence \(T_0(\tan\theta)'=\rho gl'\), that is,
\[ y''=A\sqrt{1+y'^2},\qquad A=\frac{\rho g}{T_0}. \]
This contains neither \(x\) nor \(y\). Substitute \(y'=\sinh t\). Then \(\sqrt{1+y'^2}=\cosh t\) and \(y''=\cosh t\cdot t'_x\), so \(t'_x=A\) and \(t=Ax+C_1\). Integrating \(y'=\sinh(Ax+C_1)\),
\[ y=\frac1A\cosh(Ax+C_1)+C_2. \]
8.3.3 Factoring the Operator
A linear differential operator can sometimes be factored into first-order operators. For example,
\[ x\frac{d^2}{dx^2}-(x+1)\frac d{dx}+1=\Bigl(x\frac d{dx}-1\Bigr)\Bigl(\frac d{dx}-1\Bigr), \]
so \(xy''-(x+1)y'+y=f\) is equivalent to the system \(x z'-z=f\), \(y'-y=z\), which is solved one equation at a time.
- Constant coefficients. If \(\lambda_1,\dots,\lambda_n\) are the roots, with multiplicity, of the characteristic polynomial \(\lambda^n+a_{n-1}\lambda^{n-1}+\dots+a_0\), then \[ \frac{d^n}{dx^n}+a_{n-1}\frac{d^{n-1}}{dx^{n-1}}+\dots+a_0=\Bigl(\frac d{dx}-\lambda_1\Bigr)\cdots\Bigl(\frac d{dx}-\lambda_n\Bigr), \] and \(Ly=f\) becomes a chain of first-order equations \(\bigl(\frac d{dx}-\lambda_1\bigr)z_1=f\), \(\bigl(\frac d{dx}-\lambda_2\bigr)z_2=z_1\), …, \(\bigl(\frac d{dx}-\lambda_n\bigr)y=z_{n-1}\).
- Euler equations \(x^ny^{(n)}+a_{n-1}x^{n-1}y^{(n-1)}+\dots+a_1xy'+a_0y=f(x)\) factor as \(\bigl(x\frac d{dx}-\lambda_1\bigr)\cdots\bigl(x\frac d{dx}-\lambda_n\bigr)y=f\), as shown in Proposition 8.2.
8.3.4 Triangular Systems
Reducing the coupling between unknowns also simplifies a system. A triangular system
\[ y_1'=f_1(x,y_1),\quad y_2'=f_2(x,y_1,y_2),\quad\dots,\quad y_n'=f_n(x,y_1,\dots,y_n) \]
is solved one equation at a time: find \(y_1\), substitute it into the second equation, and so on. All the reductions above end in a system of this form.
For a Jordan block \(A\) with \(\lambda\) on the diagonal and \(1\) above it, the system \(y'=Ay+f(x)\) reads \(y_k'-\lambda y_k=y_{k+1}+f_k(x)\) for \(k<n\) and \(y_n'-\lambda y_n=f_n(x)\), and is solved for \(y_n,y_{n-1},\dots,y_1\) in turn. For a general constant complex matrix \(A\), the Jordan form gives an invertible \(P\) with \(P^{-1}AP=\Lambda\) block diagonal, with Jordan blocks \(\Lambda_1,\dots,\Lambda_k\). The substitution \(z=P^{-1}y\) turns \(y'=Ay+f\) into
\[ z'=\Lambda z+P^{-1}f(x), \]
which splits into independent systems, one for each Jordan block. Thus the invariant subspaces of the coefficient matrix decouple the system.
8.4 Linear Differential Equations
Let \(Ly=y^{(n)}+a_{n-1}(x)y^{(n-1)}+\dots+a_1(x)y'+a_0(x)y\) with coefficients continuous on an interval \(I\). Since \(L\) is linear, the following hold.
Theorem 8.1 (Superposition Principle) If \(Ly=f\) and \(Lz=g\), then \(L(\lambda y+\mu z)=\lambda f+\mu g\) for all complex \(\lambda,\mu\).
Theorem 8.2 (Structure of Solution Spaces) The solutions of \(Ly=0\) form a vector space \(V_0\). The solutions of \(Ly=f\) form an affine space \(V_f=y_1+V_0\) for any \(y_1\in V_f\). That is, the general solution of the inhomogeneous equation is a particular solution plus the general solution of the homogeneous equation.
Solving a linear equation therefore splits into solving the homogeneous equation and finding one particular solution.
8.4.1 First-Order Linear Equations
For \(y'+a(x)y=f(x)\), let \(Y_0(x)=e^{-\int_{x_0}^xa(t)\,dt}\), a nowhere-vanishing solution of \(y'+a(x)y=0\). Any differentiable \(y\) can be written \(y=Y_0(x)C(x)\) with \(C=\frac y{Y_0}\), and since \(Y_0'+aY_0=0\),
\[ y'+a(x)y=Y_0(x)C'(x). \]
This is the method of variation of constants. It shows that \(y\) solves the equation iff \(C'=\frac f{Y_0}\).
Theorem 8.3 (First-Order Linear Equations) Let \(a,f\) be continuous on \(I\).
- The solutions of \(y'+a(x)y=0\) are exactly \(y=CY_0(x)\), a one-dimensional vector space; the solutions of \(y'+a(x)y=f(x)\) form a one-dimensional affine space.
- For all \(x_0\in I\) and \(y_0\in\mathbb R\), the initial value problem \(y'+a(x)y=f(x)\), \(y(x_0)=y_0\) has the unique solution \[ y(x)=Y_0(x)y_0+\int_{x_0}^x\frac{Y_0(x)}{Y_0(t)}f(t)\,dt,\qquad x\in I. \]
By the computation above, \(y\) is a solution iff \(C(x)=C_0+\int_{x_0}^x\frac{f(t)}{Y_0(t)}\,dt\). Since \(Y_0(x_0)=1\), the initial condition forces \(C_0=y_0\).
For special inhomogeneous terms, a particular solution can be found without integration.
Solve \(y'+ay=e^{\mu x}P(x)\) with \(\mu\in\mathbb C\) and \(P\) a polynomial of degree \(k\). Let \(\mathcal P_{\mu,k}\) be the space of functions \(e^{\mu x}Q(x)\) with \(\deg Q\le k\). Since \(L(e^{\mu x}Q)=e^{\mu x}\bigl(Q'+(\mu+a)Q\bigr)\), the operator \(L\) maps \(\mathcal P_{\mu,k}\) to itself, with matrix upper triangular with diagonal \(\mu+a\).
- If \(\mu\ne-a\), \(L\) is invertible on \(\mathcal P_{\mu,k}\), and the unique \(Q\) of degree \(k\) with \(Q'+(\mu+a)Q=P\) is \[ Q=\frac P{a+\mu}-\frac{P'}{(a+\mu)^2}+\frac{P''}{(a+\mu)^3}-\dots+(-1)^k\frac{P^{(k)}}{(a+\mu)^{k+1}}, \] as the sum telescopes.
- If \(\mu=-a\), then \(Q'=P\), so \(Q=\int P\,dx\) has degree \(k+1\).
In either case the general solution is \(y=Ce^{-ax}+e^{\mu x}Q(x)\).
The Bernoulli equation \(y'+a(x)y=b(x)y^\beta\), \(\beta\ne0,1\), is not linear. Dividing by \(y^\beta\) shows that \(u=y^{1-\beta}\) satisfies the linear equation \(u'+(1-\beta)a(x)u=(1-\beta)b(x)\).
8.4.2 Higher-Order Linear Equations
Solve \(xy''-(x+1)y'+y=x^2e^x\). Matching \(\bigl(x\frac d{dx}-\alpha\bigr)\bigl(\frac d{dx}-\beta\bigr)=x\frac{d^2}{dx^2}-(\beta x+\alpha)\frac d{dx}+\alpha\beta\) with the operator gives \(\alpha=\beta=1\). With \(z=y'-y\),
\[ xz'-z=x^2e^x,\qquad y'-y=z. \]
The first is a first-order linear equation with general solution \(z=C_1x+xe^x\). Then the second, by superposition, gives
\[ y=C_2e^x-C_1(x+1)+\frac{x^2}2e^x. \]
Solve \(x^2y''-2y=x^4\). By inspection, \(x^2\) solves the homogeneous equation and \(\frac{x^4}{10}\) solves the inhomogeneous one. Setting \(y=x^2C(x)\) in the homogeneous equation gives \(x^4C''+4x^3C'=0\), so \(C'=kx^{-4}\) and \(C=\frac{C_2}{x^3}+C_1\). The general solution is
\[ y=\frac{x^4}{10}+\frac{C_2}x+C_1x^2. \]
Solve \(y'''-5y''+8y'-4y=0\). Trying \(e^{\lambda x}\) gives \(\lambda^3-5\lambda^2+8\lambda-4=0\), with root \(\lambda=1\). For \(y=e^xC(x)\), Leibniz’s rule gives
\[ Ly=e^x\bigl(C'''-2C''+C'\bigr). \]
So \(C_1=C'\) satisfies \(C_1''-2C_1'+C_1=0\), which has the solution \(e^x\). Repeating with \(C_1=e^xC_2(x)\) gives \(C_2''=0\), so \(C'=(ax+b)e^x\) and \(C=(ax+b-a)e^x+c\). Hence all solutions are
\[ y=(ax+b-a)e^{2x}+ce^x. \]
8.5 First-Order Linear Systems
A first-order linear system \(y'=A(x)y+f(x)\) in components reads \(y_i'=\sum_ja_{ij}(x)y_j+f_i(x)\). The \(n\)th-order equation \(u^{(n)}+a_{n-1}(x)u^{(n-1)}+\dots+a_0(x)u=f(x)\) corresponds to the companion matrix
\[ A(x)=\begin{pmatrix}0&1&&\\&\ddots&\ddots&\\&&0&1\\-a_0(x)&-a_1(x)&\cdots&-a_{n-1}(x)\end{pmatrix},\qquad f=\begin{pmatrix}0\\\vdots\\0\\f(x)\end{pmatrix}: \]
\(y\) solves the system iff \(y=(u,u',\dots,u^{(n-1)})^T\) with \(u\) a solution of the equation. The superposition principle holds as before: if \(y'=Ay+f\) and \(z'=Az+g\), then \((\alpha y+\beta z)'=A(\alpha y+\beta z)+\alpha f+\beta g\). So the solutions of \(y'=A(x)y\) form a vector space \(V_0\), and those of \(y'=A(x)y+f(x)\) form an affine space over \(V_0\).
Theorem 8.4 (Existence for Linear Systems) If \(A(x)\) is continuous on \(I\), then for every \(x_0\in I\) and \(y_0\in\mathbb R^n\), the initial value problem \(y'=A(x)y\), \(y(x_0)=y_0\) has a solution defined on all of \(I\).
The proof is deferred to a later course.
Definition 8.8 (Matrix Solution and Wronskian) If \(y_1,\dots,y_n\) solve \(y'=A(x)y\), the matrix \(U(x)=(y_1(x),\dots,y_n(x))\) with these columns satisfies \(U'=A(x)U\); it is a matrix solution. Its determinant \(W(x)=\det U(x)\) is the Wronskian of \(y_1,\dots,y_n\).
Theorem 8.5 (Liouville’s Formula) The Wronskian of \(n\) solutions of \(y'=A(x)y\) satisfies
\[ W'(x)=\operatorname{tr}A(x)\cdot W(x),\qquad W(x)=W(x_0)\,e^{\int_{x_0}^x\operatorname{tr}A(s)\,ds}. \]
By the Leibniz rule for determinants, \(W'=\sum_kW_k\), where \(W_k\) is \(W\) with its \(k\)th row differentiated. The \(k\)th row of \(U\) consists of the \(k\)th components of the solutions, and by the system its derivative is \(a_{kk}(x)\) times the \(k\)th row plus a combination of the other rows. Hence \(W_k=a_{kk}W\), and \(W'=\operatorname{tr}A\cdot W\).
Corollary 8.1 (Wronskian Vanishes Nowhere or Everywhere) Let \(y_1,\dots,y_n\) solve \(y'=A(x)y\). If \(W(x_0)\ne0\) for some \(x_0\), then \(W(x)\ne0\) for all \(x\). Equivalently, if \(y_1(x_0),\dots,y_n(x_0)\) are linearly independent for some \(x_0\), then they are linearly independent for every \(x\).
Theorem 8.6 (Existence and Uniqueness for Linear Systems) If \(A(x)\) and \(f(x)\) are continuous on \(I\), then for every \(x_0\in I\) and \(y_0\in\mathbb R^n\), the initial value problem \(y'=A(x)y+f(x)\), \(y(x_0)=y_0\) has a unique solution on \(I\), namely
\[ y(x)=U(x)y_0+U(x)\int_{x_0}^xU(t)^{-1}f(t)\,dt, \]
where \(U\) is the matrix solution with \(U(x_0)=I_n\).
By Theorem 8.4, let \(y_k\) solve \(y'=A(x)y\) with \(y_k(x_0)=e_k\). By Corollary 8.1, \(U(x)=(y_1,\dots,y_n)\) is invertible for every \(x\). Variation of constants: every differentiable \(y\) can be written \(y=U(x)C(x)\) with \(C=U^{-1}y\), and since \(U'=AU\),
\[ y'-Ay=U(x)C'(x). \]
So \(y\) is a solution iff \(C'=U^{-1}f\), that is, \(C(x)=C_0+\int_{x_0}^xU(t)^{-1}f(t)\,dt\), and \(y(x_0)=y_0\) forces \(C_0=y_0\).
Corollary 8.2 (Dimension of the Solution Space) For continuous \(A(x)\) and \(f(x)\), the solutions of \(y'=A(x)y\) form an \(n\)-dimensional vector space \(V_0\), and the solutions of \(y'=A(x)y+f(x)\) form an \(n\)-dimensional affine space over \(V_0\).
Let \(k,\omega>0\) and solve \(y''+k^2y=\sin\omega x\). As a system, \(\mathbf y=(y,y')^T\) satisfies \(\mathbf y'=\begin{pmatrix}0&1\\-k^2&0\end{pmatrix}\mathbf y+\begin{pmatrix}0\\\sin\omega x\end{pmatrix}\), with matrix solution
\[ U(x)=\begin{pmatrix}\cos kx&\sin kx\\-k\sin kx&k\cos kx\end{pmatrix},\qquad\det U=k. \]
Variation of constants gives \(C'=U^{-1}\binom0{\sin\omega x}=\frac1k\binom{-\sin kx\sin\omega x}{\cos kx\sin\omega x}\). Integrating and using product-to-sum formulas:
- If \(\omega\ne k\), the solutions are \(y=\frac{\sin\omega x}{k^2-\omega^2}+A\cos kx+B\sin kx\), all bounded.
- If \(\omega=k\), the solutions are \(y=A\cos kx+B\sin kx-\frac x{2k}\cos kx\), all unbounded.
\(y''+k^2y=0\) describes a harmonic oscillator of frequency \(k\), and \(\sin\omega x\) is a periodic external force of frequency \(\omega\). When the frequencies differ, every motion stays bounded. When they agree, every motion grows without bound: this is resonance.
Definition 8.9 (Linearly Independent Functions) Functions \(y_1,\dots,y_n\) on \(I\) are linearly independent if no constants \(C_1,\dots,C_n\), not all zero, satisfy \(C_1y_1(x)+\dots+C_ny_n(x)=0\) for all \(x\in I\).
Theorem 8.7 (Wronskian Criterion) Solutions \(y_1,\dots,y_n\) of the homogeneous equation \(y^{(n)}+a_{n-1}(x)y^{(n-1)}+\dots+a_0(x)y=0\) are linearly independent if and only if, for every \(x\in I\), the Wronskian matrix
\[ \begin{pmatrix}y_1(x)&\cdots&y_n(x)\\y_1'(x)&\cdots&y_n'(x)\\\vdots&&\vdots\\y_1^{(n-1)}(x)&\cdots&y_n^{(n-1)}(x)\end{pmatrix} \]
is invertible. Its determinant satisfies \(W(x)=W(x_0)e^{-\int_{x_0}^xa_{n-1}(t)\,dt}\).
If \(\sum C_iy_i\equiv0\) with not all \(C_i=0\), differentiating \(n-1\) times shows that \((C_1,\dots,C_n)^T\) lies in the kernel of the Wronskian matrix at every \(x\). Conversely, suppose the matrix is singular at some \(x_0\), with \((C_1,\dots,C_n)^T\ne0\) in its kernel. Then \(y=\sum C_iy_i\) solves the equation with \(y(x_0)=\dots=y^{(n-1)}(x_0)=0\). By uniqueness applied to the companion system (Theorem 8.6), \(y\equiv0\), so the \(y_i\) are dependent. The formula for \(W\) is Liouville’s formula for the companion matrix, whose trace is \(-a_{n-1}\).
If \(y_1,\dots,y_n\) are independent solutions of the homogeneous equation, variation of constants solves the inhomogeneous equation \(Ly=f\). Write
\[ \begin{pmatrix}y\\y'\\\vdots\\y^{(n-1)}\end{pmatrix}=\begin{pmatrix}y_1&\cdots&y_n\\y_1'&\cdots&y_n'\\\vdots&&\vdots\\y_1^{(n-1)}&\cdots&y_n^{(n-1)}\end{pmatrix}\begin{pmatrix}C_1(x)\\C_2(x)\\\vdots\\C_n(x)\end{pmatrix}. \]
Then \(y\) solves \(Ly=f\) iff the same matrix applied to \((C_1',\dots,C_n')^T\) gives \((0,\dots,0,f)^T\). Solving this linear algebraic system for the \(C_k'\) and integrating gives the general solution \(y=C_1(x)y_1+\dots+C_n(x)y_n\).
8.6 Linear Equations with Constant Coefficients
8.6.1 Higher-Order Equations
For the constant-coefficient equation \(p\bigl(\frac d{dx}\bigr)y=f(x)\) with characteristic polynomial \(p(\lambda)=\lambda^n+a_{n-1}\lambda^{n-1}+\dots+a_0\), two tasks remain: construct \(n\) independent solutions of the homogeneous equation, and find one particular solution. The key identity is
\[ p\Bigl(\frac d{dx}\Bigr)\bigl(e^{\lambda x}z\bigr)=e^{\lambda x}\,p\Bigl(\frac d{dx}+\lambda\Bigr)z, \]
which follows from \(\bigl(\frac d{dx}\bigr)(e^{\lambda x}z)=e^{\lambda x}\bigl(\frac d{dx}+\lambda\bigr)z\).
A quasi-polynomial is a function \(P(x)e^{\lambda x}\) with \(P\) a polynomial and \(\lambda\in\mathbb C\). Taking real and imaginary parts covers \(P(x)e^{\alpha x}\cos\beta x\) and \(P(x)e^{\alpha x}\sin\beta x\).
Proposition 8.1 (Undetermined Coefficients) If \(\lambda\) is a root of \(p\) of multiplicity \(m\ge0\) and \(P\) is a polynomial of degree \(d\), then \(p\bigl(\frac d{dx}\bigr)y=P(x)e^{\lambda x}\) has a particular solution \(y=x^mQ(x)e^{\lambda x}\) with \(Q\) a polynomial of degree \(d\).
By the key identity, \(y=ze^{\lambda x}\) is a solution iff \(p\bigl(\frac d{dx}+\lambda\bigr)z=P\). Write \(p(\mu+\lambda)=\mu^mq(\mu)\) with \(q(0)\ne0\). On polynomials of degree at most \(d\), the operator \(q\bigl(\frac d{dx}\bigr)\) is triangular with diagonal \(q(0)\), hence invertible, so some \(w\) of degree \(d\) has \(q\bigl(\frac d{dx}\bigr)w=P\). Integrating \(w\) \(m\) times with zero constants gives \(z=x^mQ(x)\) with \(z^{(m)}=w\).
- \(y''+3y'+2y=0\), \(y(0)=0\), \(y'(0)=1\). The characteristic roots are \(-1,-2\), so \(y=C_2e^{-x}-C_1e^{-2x}\). The initial conditions give \(C_1=C_2=1\), so \(y=e^{-x}-e^{-2x}\).
- \(y''+6y'+9y=xe^x\). Setting \(y=e^{-3x}z\) removes all but the highest term: \(z''=xe^{4x}\). Integrating twice, \[ y=(C_1x+C_2)e^{-3x}+\frac{(2x-1)e^x}{32}. \]
- \(y''+y=\sin\omega x\), \(\omega>0\). For \(y=e^{ix}z\) the homogeneous equation becomes \(z''+2iz'=0\), with real general solution \(A\cos x+B\sin x\). For a particular solution, solve the complex equation \(y''+y=e^{i\omega x}\) and take imaginary parts. With \(y=e^{i\omega x}z\) it becomes \(z''+2i\omega z'+(1-\omega^2)z=1\). If \(\omega\ne1\), \(z=\frac1{1-\omega^2}\) and \[ y=A\cos x+B\sin x+\frac{\sin\omega x}{1-\omega^2}, \] all bounded oscillations. If \(\omega=1\), \(z=\frac x{2i}\) and \(y=A\cos x+B\sin x-\frac x2\cos x\): although the force is bounded, every solution is an unbounded oscillation.
Theorem 8.8 (Fundamental System for Constant Coefficients) Let \(p(\lambda)=\prod_{j=1}^k(\lambda-\lambda_j)^{m_j}\) with distinct \(\lambda_j\in\mathbb C\). Then the \(n\) functions
\[ x^re^{\lambda_jx},\qquad 0\le r<m_j,\quad j=1,\dots,k, \]
are linearly independent solutions of \(p\bigl(\frac d{dx}\bigr)y=0\), so every solution is \(\sum_jP_j(x)e^{\lambda_jx}\) with \(\deg P_j<m_j\).
By the key identity, \(\bigl(\frac d{dx}-\lambda_j\bigr)^{m_j}(x^re^{\lambda_jx})=e^{\lambda_jx}\frac{d^{m_j}}{dx^{m_j}}x^r=0\) for \(r<m_j\), so these are solutions. Suppose \(\sum_jP_j(x)e^{\lambda_jx}\equiv0\) with \(P_1\ne0\) of degree \(d\). Note that \(\bigl(\frac d{dx}-\mu\bigr)(Pe^{\lambda x})=\bigl(P'+(\lambda-\mu)P\bigr)e^{\lambda x}\). For \(\mu\ne\lambda\) this preserves the degree and multiplies the leading coefficient by \(\lambda-\mu\ne0\); for \(\mu=\lambda\) it lowers the degree. Apply \(\bigl(\frac d{dx}-\lambda_1\bigr)^d\prod_{j\ge2}\bigl(\frac d{dx}-\lambda_j\bigr)^{m_j}\). Every term with \(j\ge2\) is annihilated, and the \(j=1\) term becomes \(ce^{\lambda_1x}\) with \(c\ne0\). This contradicts \(\sum_jP_je^{\lambda_jx}\equiv0\). By Corollary 8.2 the solution space has dimension \(n\), so these functions form a basis.
For real coefficients, a pair of conjugate roots \(\alpha\pm i\beta\) of multiplicity \(m\) contributes the real solutions \(x^re^{\alpha x}\cos\beta x\) and \(x^re^{\alpha x}\sin\beta x\), \(r<m\).
8.6.2 Euler Equations
An Euler equation has the form \(x^ny^{(n)}+a_{n-1}x^{n-1}y^{(n-1)}+\dots+a_1xy'+a_0y=f(x)\), \(x>0\).
Proposition 8.2 (Euler Equations Have Constant Coefficients in \(\ln x\)) With \(x=e^t\), write \(D=\frac d{dt}=x\frac d{dx}\). Then for all \(k\ge1\),
\[ x^k\frac{d^k}{dx^k}=D(D-1)\cdots(D-k+1). \]
Hence an Euler equation becomes a constant-coefficient equation in \(t\), and the homogeneous Euler equation has a basis of solutions of the form \(x^\alpha(\ln x)^r\).
By the chain rule, \(\frac{dz}{dt}=\frac{dz}{dx}\frac{dx}{dt}=x\frac{dz}{dx}\). Induct on \(k\): differentiating gives \(x\frac d{dx}\bigl(x^k\frac{d^k}{dx^k}\bigr)=x^{k+1}\frac{d^{k+1}}{dx^{k+1}}+kx^k\frac{d^k}{dx^k}\), so \(x^{k+1}\frac{d^{k+1}}{dx^{k+1}}=(D-k)\,x^k\frac{d^k}{dx^k}\).
Solve \(x^2y''+xy'-4y=x^3\). Trying \(y=x^\alpha\) gives \(x^\alpha(\alpha^2-4)\), so \(x^2\) and \(x^{-2}\) solve the homogeneous equation, and \(y=\frac{x^3}5\) solves the inhomogeneous one because \(3^2-4=5\). Equivalently, with \(x=e^t\) the equation becomes \(D(D-1)y+Dy-4y=e^{3t}\). The general solution is
\[ y=C_1x^2+\frac{C_2}{x^2}+\frac{x^3}5. \]
8.6.3 Systems with Constant Coefficients
For \(y'=Ay\) with constant \(A\): if \(v_1,\dots,v_k\) are independent eigenvectors with \(Av_j=\lambda_jv_j\), then \(y=C_1e^{\lambda_1x}v_1+\dots+C_ke^{\lambda_kx}v_k\) are solutions, and if \(k=n\) this is the general solution. When an eigenvalue’s geometric multiplicity is less than its algebraic multiplicity, generalized eigenvectors are needed. For an eigenvalue \(\lambda\), the chain
\[ \{0\}\subseteq\ker(A-\lambda I)\subseteq\ker(A-\lambda I)^2\subseteq\cdots \]
stops growing at some \(k\): once \(\ker(A-\lambda I)^k=\ker(A-\lambda I)^{k+1}\), all later kernels are equal. The dimension of the final kernel is the algebraic multiplicity of \(\lambda\).
Proposition 8.3 (Solutions from Generalized Eigenvectors) Let \(v_1,\dots,v_k\) be a Jordan chain for \(\lambda\): \((A-\lambda I)v_1=0\) and \((A-\lambda I)v_j=v_{j-1}\) for \(j\ge2\). Then \(y=\sum_jc_j(x)v_j\) solves \(y'=Ay\) iff
\[ c_j'-\lambda c_j=c_{j+1}\ (j<k),\qquad c_k'-\lambda c_k=0, \]
and the solutions spanned by the chain are
\[ y=C_1e^{\lambda x}v_1+C_2e^{\lambda x}(xv_1+v_2)+\dots+C_ke^{\lambda x}\Bigl(\frac{x^{k-1}}{(k-1)!}v_1+\dots+xv_{k-1}+v_k\Bigr). \]
Since \(Av_j=\lambda v_j+v_{j-1}\) (with \(v_0=0\)), \(A\sum c_jv_j=\sum_j(\lambda c_j+c_{j+1})v_j\) with \(c_{k+1}=0\). Comparing coefficients with \(\sum c_j'v_j\) gives the triangular system, solved from \(c_k=C_ke^{\lambda x}\) upward.
Solve \(\begin{pmatrix}x\\y\\z\end{pmatrix}'=\begin{pmatrix}0&1&0\\0&0&1\\4&-8&5\end{pmatrix}\begin{pmatrix}x\\y\\z\end{pmatrix}\) with \((x,y,z)(0)=(1,2,3)\).
The characteristic polynomial is \((\lambda-1)(\lambda-2)^2\). The eigenvector for \(1\) is \(u=(1,1,1)^T\). For \(2\), the geometric multiplicity is \(1\), with eigenvector \(v=(1,2,4)^T\), and \((A-2I)w=v\) gives the generalized eigenvector \(w=(0,1,4)^T\). Writing the solution as \(a(t)u+b(t)v+c(t)w\) gives \(a'=a\), \(b'=2b+c\), \(c'=2c\), so
\[ a=a_0e^t,\qquad c=c_0e^{2t},\qquad b=(b_0+c_0t)e^{2t}. \]
The initial condition \((1,2,3)=a_0u+b_0v+c_0w\) gives \(a_0=c_0=-1\), \(b_0=2\). Hence
\[ x=-e^t+(2-t)e^{2t},\qquad y=-e^t+(3-2t)e^{2t},\qquad z=-e^t+(4-4t)e^{2t}. \]
This is the companion system of \(y'''-5y''+8y'-4y=0\), solved earlier by variation of constants.
8.7 Ecological Models
In ecology, sociology and economics, there are no precise quantitative laws like those of physics. Models are built from plausible assumptions and yield qualitative conclusions. As the statistician George Box put it, “All models are wrong, but some are useful.”
- Malthus (1798). \(x'=\lambda x\) with a constant growth rate \(\lambda\). It is reasonable over short times, but predicts exponential explosion or extinction in the long run.
- Logistic (Verhulst) model. \(x'=(a-bx)x\) with \(a,b>0\). This is the case \(\lambda(x)=a-bx\) of \(x'=\lambda(x)x\), where the growth rate decreases as resources become scarce and turns negative for \(x>\frac ab\). The rescaling \(\tilde x=\frac{bx}a\), \(\tau=at\) removes the parameters: \(\frac{d\tilde x}{d\tau}=(1-\tilde x)\tilde x\). Its solutions are \(\tilde x=\frac1{1+Ce^{-\tau}}\), and every positive solution tends to the carrying capacity \(\tilde x=1\).
- Seasonal growth. \(x'=\lambda(t)x\) with \(\lambda\) periodic of period \(T\). The solution \(x(t)=x(0)e^{\int_0^t\lambda}\) satisfies \(x(t+T)=x(t)e^{T\bar\lambda}\), where \(\bar\lambda=\frac1T\int_0^T\lambda(t)\,dt\). So \(x\) is periodic iff the average growth rate \(\bar\lambda\) is \(0\). A refinement with limited resources is \(x'=\lambda(t)(N-x)x\).
Consider \(x'=\lambda(N-x)x-c\) with \(\lambda,N,c>0\), where \(c\) is the catch per unit time. Since \(\lambda(N-x)x-c=-\lambda\bigl(x-\frac N2\bigr)^2+\frac{\lambda N^2}4-c\):
- If \(0<c<\frac{\lambda N^2}4\), there are two roots \(\alpha<\beta\), and \(x'=\lambda(\beta-x)(x-\alpha)\). The substitution \(\tilde x=\frac{x-\alpha}{\beta-\alpha}\), \(\tau=\lambda(\beta-\alpha)t\) gives the logistic equation. If \(x(0)>\alpha\), then \(x\to\beta\): moderate fishing is sustainable. If \(x(0)<\alpha\), then \(x\) decreases and reaches \(0\) in finite time: the population cannot recover.
- If \(c=\frac{\lambda N^2}4\), then \(\alpha=\beta\) and \(x'=-\lambda(x-\alpha)^2\le0\).
- If \(c>\frac{\lambda N^2}4\), then \(x'\le\frac{\lambda N^2}4-c<0\), and overfishing drives the population extinct.
Let \(x\) be the number of rabbits and \(y\) the number of wolves:
\[ x'=(\lambda-ay)x,\qquad y'=(bx-\mu)y,\qquad a,b,\lambda,\mu>0. \]
The rabbits’ growth rate decreases with the number of wolves and is negative when \(y>\frac\lambda a\). The wolves’ growth rate increases with the number of rabbits and is negative when \(x<\frac\mu b\). The substitution \(x=\frac\mu bX\), \(y=\frac\lambda aY\), \(t=\frac s\mu\) gives
\[ X'=c(1-Y)X,\qquad Y'=(X-1)Y,\qquad c=\frac\lambda\mu. \]
This system is nonlinear, but \(\frac{dY}{dX}=\frac{(X-1)Y}{c(1-Y)X}\) is separable, and
\[ H(X,Y)=c(\ln Y-Y)+(\ln X-X) \]
is constant along solutions. In the first quadrant the level curves of \(H\) are simple closed curves around \((1,1)\), and one can show that solutions travel periodically around them: the populations of predators and prey oscillate.
8.8 Equilibria and Stability: Linear Oscillations
Most differential equations have no solution in terms of elementary functions. We now study solutions through the equation itself, starting with second-order linear equations.
By Hooke’s law and Newton’s second law, a mass on a spring obeys \(y''=-qy\) with \(q>0\), where \(y\) is the displacement from equilibrium. The mechanical energy \(E=\frac{y'^2}2+\frac{qy^2}2\), kinetic plus elastic, satisfies \(E'=y'(y''+qy)=0\), so it is conserved. For fixed \(E>0\), \(\frac{dy}{dt}=\pm\sqrt{2E-qy^2}\), and the period is
\[ T=4\int_0^{\sqrt{2E/q}}\frac{dy}{\sqrt{2E-qy^2}}=\frac{2\pi}{\sqrt q}. \]
So every nonzero solution is periodic, with a period that depends on \(q\) but not on the energy.
More generally, consider \(y''+py'+qy=0\). Its solutions are determined by \((y(t_0),y'(t_0))\). The plane with coordinates \((y,y')\) is the phase plane. The equation defines the vector field \(v(y,y')=(y',-qy-py')\) on it, the right-hand side of the system \(\binom{y}{y'}'=\begin{pmatrix}0&1\\-q&-p\end{pmatrix}\binom y{y'}\). Solutions trace phase curves along this field.
Definition 8.10 (Equilibrium and Stability) An equilibrium of \(\mathbf y'=F(\mathbf y)\) is a zero \(\mathbf y_0\) of \(F\); the constant \(\mathbf y\equiv\mathbf y_0\) is a solution. It is stable if solutions starting near \(\mathbf y_0\) stay near \(\mathbf y_0\) for all \(t\ge0\), and asymptotically stable if moreover they tend to \(\mathbf y_0\) as \(t\to+\infty\).
The characteristic roots \(\lambda_1,\lambda_2\) of \(\lambda^2+p\lambda+q\) are the eigenvalues of the matrix, with \(\lambda_1+\lambda_2=-p\), \(\lambda_1\lambda_2=q\), and discriminant \(\Delta=p^2-4q\). If \(\Delta>0\), each real eigenvalue \(\lambda\) has eigenvector \((1,\lambda)\), and on the line it spans, the eigenline, the field is parallel to the line. So a phase curve starting on an eigenline stays on it, and eigenlines prevent phase curves from rotating around the origin. On the eigenline of \(\lambda<0\), phase curves tend to the origin as \(t\to+\infty\); for \(\lambda>0\), as \(t\to-\infty\).
Theorem 8.9 (Classification of Linear Oscillations) For \(y''+py'+qy=0\), the equilibrium \((0,0)\) of the phase plane is:
- a saddle if \(q<0\), unstable;
- a center if \(q>0\), \(p=0\), stable but not asymptotically stable;
- unstable if \(q>0\), \(p<0\);
- asymptotically stable if \(q>0\), \(p>0\): a focus if \(0<p<2\sqrt q\) (underdamped), and a node if \(p\ge2\sqrt q\) (critically damped for \(p=2\sqrt q\), overdamped for \(p>2\sqrt q\)).
- If \(q<0\), then \(\lambda_1<0<\lambda_2\). A phase curve tends to the origin as \(t\to+\infty\) iff it lies on the eigenline of \(\lambda_1\), and as \(t\to-\infty\) iff it lies on that of \(\lambda_2\). All others move away in both directions, like water drops running off a saddle.
For \(q>0\), the energy \(E=\frac{qy^2+y'^2}2\) has ellipses as level sets, and \(E'=y'(y''+qy)=-py'^2\). The term \(-py'\) is a damping force proportional to velocity.
If \(p=0\), \(E\) is constant, and phase curves are ellipses around the origin: every motion is periodic.
If \(p<0\), then \(y(t)\) solves the equation iff \(z(s)=y(-s)\) solves \(z''-pz'+qz=0\). Reversing time turns this case into case (4).
If \(p>0\), \(E\) decreases, so phase curves move inward across the energy ellipses. If \(0<p<2\sqrt q\), the eigenvalues are complex with negative real part \(-\frac p2\). Solutions are \(e^{-pt/2}(A\cos\omega t+B\sin\omega t)\), so phase curves spiral into the origin: the mass swings back and forth with exponentially decaying amplitude. If \(p\ge2\sqrt q\), the eigenvalues are negative reals, and the eigenlines (one for \(p=2\sqrt q\), two for \(p>2\sqrt q\)) prevent rotation. Solutions are \((A+Bt)e^{\lambda t}\) or \(Ae^{\lambda_1t}+Be^{\lambda_2t}\), which tend to \(0\) and vanish at most once. The mass crosses the equilibrium position at most once and then returns to it without oscillating.
8.9 Qualitative Theory: Nonlinear Oscillations
We use the following fact, proved in courses on differential equations: if \(F\) is \(C^1\), then solutions of \(\mathbf y'=F(\mathbf y)\) with given initial values exist locally and are unique.
8.9.1 The Pendulum
A pendulum of length \(l\) obeys \(ml\theta''=-mg\sin\theta\), that is, \(\theta''+\frac gl\sin\theta=0\). Its energy
\[ E=\frac{\theta'^2}2+\frac gl(1-\cos\theta) \]
satisfies \(E'=\theta'\bigl(\theta''+\frac gl\sin\theta\bigr)=0\), so phase curves lie on level sets of \(E\).
- Oscillations, \(0<E<\frac{2g}l\). Let \(\Theta=\arccos\bigl(1-\frac{lE}g\bigr)\in(0,\pi)\) be the amplitude. Then \(\theta'=\pm\sqrt{\frac{2g}l(\cos\theta-\cos\Theta)}\), and the period is \[ T=2\sqrt{\frac{2l}g}\int_0^\Theta\frac{d\theta}{\sqrt{\cos\theta-\cos\Theta}}. \] With \(\theta=\Theta-s\), the integrand is \(\frac1{\sqrt{\cos\Theta(\cos s-1)+\sin\Theta\sin s}}=O\bigl(\frac1{\sqrt s}\bigr)\) as \(s\to0\), so \(T<\infty\) and the motion is periodic. As \(E\to0\), the substitution \(\theta=\Theta s\) and \(\cos\Theta s-\cos\Theta=\frac12\Theta^2(1-s^2)+o(\Theta^2)\) give \[ T\to4\sqrt{\frac lg}\int_0^1\frac{ds}{\sqrt{1-s^2}}=2\pi\sqrt{\frac lg}. \] The equilibrium \((\theta,\theta')=(0,0)\) is a stable center, and small oscillations have period about \(2\pi\sqrt{l/g}\).
- Separatrix, \(E=\frac{2g}l\). Then \(\Theta=\pi\), the integrand near \(\theta=\pi\) behaves like \(\frac{\sqrt2}s\), the integral diverges, and \(T=+\infty\).
- Rotations, \(E>\frac{2g}l\). Then \(|\theta'|\ge\sqrt{2E-\frac{4g}l}>0\), so \(\theta\) is monotone and unbounded: the pendulum swings over the top.
- The inverted position. Near \((\pi,0)\), with \(\theta=\pi+u\), the equation becomes \(u''-\frac glu+o(u)=0\), so \((\pi,0)\) is a saddle and unstable.
8.9.2 Motion in a Conservative Force Field
Consider \(\ddot x=F(x)\) for \(x\in(\alpha,\beta)\). An antiderivative \(U\) of \(-F\) is a potential, and a force field with a potential is conservative; by the fundamental theorem of calculus, every continuous one-dimensional force field is conservative. The equation becomes \(\ddot x=-U'(x)\). Examples:
- the spring, \(\ddot x=-kx\), with elastic potential \(U=\frac12kx^2\);
- free fall at height \(x\) above the Earth’s surface, \(\ddot x=-\frac{GM}{(R+x)^2}\), with gravitational potential \(U=-\frac{GM}{R+x}\);
- the pendulum, \(\ddot\theta=-\frac gl\sin\theta\), with \(U=\frac gl(1-\cos\theta)\).
Theorem 8.10 (Energy Conservation and Potential Wells) Along every solution of \(\ddot x=-U'(x)\), the energy \(E(x,v)=\frac12v^2+U(x)\), with \(v=\dot x\), is constant. Consequently a motion with energy \(E_0\) stays in the region \(\{U(x)\le E_0\}\).
\(\frac d{dt}E(x(t),\dot x(t))=\dot x\ddot x+U'(x)\dot x=\dot x\bigl(\ddot x+U'(x)\bigr)=0\). Since \(\frac12v^2\ge0\), \(U(x(t))\le E_0\).
Theorem 8.11 (Periodic Motion in a Potential Well) Suppose \(x_1<x_2\), \(U(x_1)=U(x_2)=E_0>U(x)\) for \(x\in(x_1,x_2)\), and \(U'(x_1)<0<U'(x_2)\). Then every motion with energy \(E_0\) starting in \((x_1,x_2)\) is periodic, with period
\[ T=2\int_{x_1}^{x_2}\frac{dx}{\sqrt{2(E_0-U(x))}}. \]
Start at \(x_0\in(x_1,x_2)\) with \(v_0=\sqrt{2(E_0-U(x_0))}>0\), and let \((\alpha,\beta)\) be the maximal interval around \(t_0\) on which \(\dot x>0\). There \(x\) is increasing with \(\dot x=\sqrt{2(E_0-U(x))}\), so \(x(t)\to x_2\) as \(t\to\beta^-\) and
\[ \beta-t_0=\int_{x_0}^{x_2}\frac{dx}{\sqrt{2(E_0-U(x))}}=\int_0^{x_2-x_0}\frac{ds}{\sqrt{2(U(x_2)-U(x_2-s))}}. \]
As \(s\to0^+\) the integrand is \(\frac1{\sqrt{2U'(x_2)s+o(s)}}\), so the integral converges and \(\beta<\infty\). Similarly \(\alpha>-\infty\), with \(x(t)\to x_1\) as \(t\to\alpha^+\). At \(x_2\) the velocity is \(0\) and \(\ddot x=-U'(x_2)<0\), so the motion turns back; the same argument with \(v<0\) shows that it reaches \(x_1\) in finite time, again with velocity \(0\), and turns back once more. The motion repeats, and the period is twice the time from \(x_1\) to \(x_2\).
Theorem 8.12 (Stable and Unstable Equilibria) Let \(U'(x_0)=0\), so \((x_0,0)\) is an equilibrium of \(\dot x=v\), \(\dot v=-U'(x)\).
- If \(U''(x_0)>0\) (\(x_0\) is a strict minimum of \(U\)), then \((x_0,0)\) is a center: it is surrounded by periodic phase curves, and their periods tend to \(\frac{2\pi}{\sqrt{U''(x_0)}}\) as they shrink to the equilibrium.
- If \(U''(x_0)<0\) (\(x_0\) is a strict maximum of \(U\)), then \((x_0,0)\) is an unstable saddle. The motions with energy \(U(x_0)\) near \(x_0\) approach \((x_0,0)\) as \(t\to+\infty\) or as \(t\to-\infty\), but never reach it in finite time.
In both cases this matches the linearization \(\dot x=v\), \(\dot v=-U''(x_0)(x-x_0)\), whose eigenvalues are \(\pm i\sqrt{U''(x_0)}\) or \(\pm\sqrt{-U''(x_0)}\).
- Near \(x_0\), \(U\) decreases to the left of \(x_0\) and increases to the right, so Theorem 8.11 applies to each energy slightly above \(U(x_0)\). If the phase curve meets the axis at \(x_1<x_0<x_2\), then substituting \(x=x_0+s(x_2-x_0)\) and using \(U(x)\approx U(x_0)+\frac12U''(x_0)(x-x_0)^2\),
\[ 2\int_{x_0}^{x_2}\frac{dx}{\sqrt{2(U(x_2)-U(x))}}\to2\int_0^1\frac{ds}{\sqrt{U''(x_0)(1-s^2)}}=\frac\pi{\sqrt{U''(x_0)}}, \]
and the same holds for the left half, so \(T\to\frac{2\pi}{\sqrt{U''(x_0)}}\).
- \(U\) is strictly increasing on \((x_0-\delta,x_0)\) and strictly decreasing on \((x_0,x_0+\delta)\). Start at \(x_1\in(x_0-\delta,x_0)\) with \(v_1=\sqrt{2(U(x_0)-U(x_1))}>0\), so the energy is \(U(x_0)\). If \(\dot x\) vanished at some first time \(t_2\), then \(U(x(t_2))=U(x_0)\), forcing \(x(t_2)=x_0\); but then the solution would pass through the equilibrium, contradicting uniqueness. So \(x\) increases on its maximal interval \((\alpha,\beta)\) and \(x(t)\to x_2\le x_0\). If \(x_2<x_0\), then \(\dot x\ge\sqrt{2(U(x_0)-U(x_2))}>0\) and the solution could be continued past \(\beta\); so \(x_2=x_0\) and \(\dot x\to0\). By uniqueness again \(\beta=+\infty\). Starting with \(-v_1\) instead gives a motion that tends to \((x_0,0)\) as \(t\to-\infty\), and similarly for \(x_3\in(x_0,x_0+\delta)\). Hence motions starting arbitrarily close to \((x_0,0)\) move away from it, and the equilibrium is unstable.
8.10 Supplementary Notes
8.10.1 Key Results
- An \(n\)th-order equation is equivalent to a first-order system, and its solutions are typically determined by \(n\) initial conditions (Definition 8.1, Definition 8.2, Definition 8.3).
- First-order equations describe direction fields. Separable, homogeneous and exact equations can be integrated, sometimes after multiplying by an integrating factor (Definition 8.4, Definition 8.5, Definition 8.6, Definition 8.7).
- Linear equations obey superposition, so their solution sets are affine spaces; first-order linear equations are solved by variation of constants (Theorem 8.1, Theorem 8.2, Theorem 8.3).
- For linear systems, Liouville’s formula shows the Wronskian vanishes nowhere or everywhere. Initial value problems have unique solutions, given by variation of constants, and the solution space has dimension \(n\) (Definition 8.8, Theorem 8.4, Theorem 8.5, Corollary 8.1, Theorem 8.6, Corollary 8.2).
- Solutions of an \(n\)th-order homogeneous equation are independent iff their Wronskian matrix is invertible (Definition 8.9, Theorem 8.7).
- Constant-coefficient equations have the fundamental system \(x^re^{\lambda_jx}\), quasi-polynomial forcing has quasi-polynomial particular solutions, and Euler equations reduce to constant coefficients via \(x=e^t\) (Theorem 8.8, Proposition 8.1, Proposition 8.2).
- Constant-coefficient systems are solved with eigenvectors and Jordan chains (Proposition 8.3).
- Damped linear oscillators have a saddle, center, focus or node at the origin, according to the signs of \(p\), \(q\) and \(p^2-4q\) (Definition 8.10, Theorem 8.9).
- In a conservative field, energy is conserved, motions in potential wells are periodic, minima of the potential are centers and maxima are saddles (Theorem 8.10, Theorem 8.11, Theorem 8.12).