Prerequisite: Existence and Uniqueness for the Cauchy ProblemFor y' = f(t, y), y(t0) = y0, Peano's theorem gives local existence when f is continuous (not uniqueness: y' = sqrt|y|), Cauchy-Lipschitz gives local existence and uniqueness when f is also Lipschitz in y (it suffices that f and df/dy are continuous), solutions may blow up in finite time (y' = y^2), global existence holds when f is Lipschitz on the whole strip, and an equation of order n reduces to a first-order system.Existence and Uniqueness for the Cauchy Problem →; eigenvalues and eigenvectors from linear algebra. Related: First-Order Equations - Separable and Reducible TypesSeparable equations y' = h(t) g(y) are solved by finding the stationary solutions (zeros of g) and separating variables; homogeneous equations y' = f(y/t), equations y' = f(at + by + c) and Bernoulli equations reduce to separable or linear ones by a substitution, and in every case the stationary solutions and the interval of existence must be checked.First-Order Equations - Separable and Reducible Types →.
Systems arise when several quantities influence each other: two tanks exchanging liquid, currents in two coupled loops of a circuit, position and velocity of an oscillator.
Variation of constants for second-order equations
For y′′+a(t)y′+b(t)y=f(t) the general integral is y=C1y1+C2y2+yp, where y1,y2 are independent solutions of the homogeneous equation and yp a particular solution. The method of variation of constants (Lagrange) finds yp even when f is not compatible with the method of undetermined coefficients (e.g. tant, t1) and when a,b are not constant, provided y1,y2 are known.
Seek yp=C1(t)y1+C2(t)y2. Then yp′=C1y1′+C2y2′+(C1′y1+C2′y2). There are two unknown functions but one equation, so one more condition may be imposed; choose it so that yp′ contains no Ci′:
C1′y1+C2′y2=0.
Then yp′′=C1y1′′+C2y2′′+C1′y1′+C2′y2′, and substituting, the terms with C1,C2 vanish since y1,y2 solve the homogeneous equation; what is left is C1′y1′+C2′y2′=f:
{C1′y1+C2′y2=0C1′y1′+C2′y2′=f(t)
The determinant of the coefficient matrix is the Wronskiandeterminant of the matrix formed by y1, y2 and their derivatives W=y1y2′−y2y1′=0 (independence), so the system has a unique solution. By Cramer:
C1′=−Wy2f,C2′=Wy1f.
Any primitive will do: added constants only add a homogeneous solution, already in the general integral. Example: y′′−y=et, y1=et, y2=e−t, W=−2: C1′=21, C2′=−2e2t, yp=2tet−41et.
Integral formula. With primitives vanishing at t0: yp(t)=∫t0tW(s)y1(s)y2(t)−y1(t)y2(s)f(s)ds, the solution with yp(t0)=yp′(t0)=0. For y′′+y=f (W=1): yp=∫t0tsin(t−s)f(s)ds; with f=1, t0=0: yp=1−cost. The factor multiplying f(s) is the Green function: it depends only on the homogeneous equation.
Worked example: y′′+y=sint1 on (0,π). Homogeneous: λ=±i, y1=cost, y2=sint, W=1. Cramer: C1′=−sint⋅sint1=−1, C2′=sintcost; so C1=−t, C2=lnsint (the sine is positive on (0,π)). yp=−tcost+sintln(sint) and
y=C1cost+C2sint−tcost+sintln(sint).
The interval is (0,π) because sint1 is undefined at 0 and π. Undetermined coefficients cannot be used here.
Double root: y′′−6y′+9y=te3t, t>0. λ=3 double: y1=e3t, y2=te3t, W=e6t. C1′=−1, C2′=t1, so yp=−te3t+tlnte3t; the first term is homogeneous and is absorbed: y=C1e3t+C2te3t+tlnte3t.
First order. For y′=a(t)y+b(t) the homogeneous solutions are CeA(t), A′=a. With yp=C(t)eA: C′eA+CaeA=aCeA+b, so C′=e−Ab: the solution formula for first-order linear equations.
A first-order linear system in Rn is
Y′(t)=A(t)Y(t)+B(t),
with Y=(y1,…,yn)T, A(t) an n×n matrix of functions, B(t) a vector of functions.
Theorem. If A(t),B(t) are continuous on an interval I, then for every initial datum Y(t0)=Y0 there is a unique solution defined on the whole of I.
Example: Y′=(0−110)Y, Y(0)=(1,0), has the unique solution Y=(cost,−sint) on R. This is the global existence theorem: F(t,Y)=A(t)Y+B(t) is Lipschitz in Y on each strip [a,b]×Rn since ∥A(t)(Y1−Y2)∥≤L∥Y1−Y2∥ with L related to the maximum of the entries of A on [a,b].
Reduction of an order-n equation. y(n)+an−1y(n−1)+⋯+a0y=f(t) becomes X′=AX+F with xk=y(k−1), A the companion matrix, F=(0,…,0,f). For n=2:
(x1x2)′=(0−a01−a1)(x1x2)+(0f).
det(A−λI)=λ2+a1λ+a0 is the characteristic polynomial of the equation: the two methods coincide.
Homogeneous systems and fundamental matrix
The solutions of Y′=A(t)Y form a vector space of dimension n.
Definition. A fundamental matrix is an n×n matrix whose columns are n linearly independent solutions. Its determinant is the Wronskiandeterminant of the matrix whose columns are n solutions, nonzero at every point of the interval if the solutions are independent.
Example: for the system above Φ(t)=(cost−sintsintcost) is fundamental, detΦ=1.
Why dimension n. The map sending a solution to its value Y(t0)∈Rn is linear and, by existence and uniqueness, bijective. The solutions with initial data e1,…,en form a basis. Moreover the Wronskian is either zero at every point or never zero: independence at one instant means independence always.
The general integral of the homogeneous system is Φ(t)C, C∈Rn constant; that of the complete system is Φ(t)C+Yp(t).
Constant coefficients
Let Y′=AY, A constant. Seek Y=eλtV: substituting, λeλtV=AeλtV, i.e. (A−λI)V=0. So λ is an eigenvalue (det(A−λI)=0) and V=0 an eigenvector. If A has n independent eigenvectors (e.g. distinct eigenvalues) the solutions eλitVi are independent (equal to Vi at t=0), and Y=∑cieλitVi.
Example: distinct real eigenvalues. Y′=(1411)Y.
- det(A−λI)=(1−λ)2−4=λ2−2λ−3=0⇒λ1=3, λ2=−1.
- λ1=3: (−241−2)V=0⇒v2=2v1, V1=(1,2).
- λ2=−1: (2412)V=0⇒v2=−2v1, V2=(1,−2).
General solution Y=c1e3t(21)+c2e−t(−21). Cauchy problem with Y(0)=(2,0): c1+c2=2, 2c1−2c2=0, so c1=c2=1: y1=e3t+e−t, y2=2e3t−2e−t. Check: y1′=3e3t−e−t=y1+y2. In the phase plane the eigenspaces (1,2) (λ=3) and (1,−2) (λ=−1) are straight-line orbits and the other orbits are hyperbola branches c1e3t(1,2)+c2e−t(1,−2).
Complex case. If λ=α±iβ with eigenvector V=ReV+iImV, the complex solution e(α+iβ)tV yields two real solutions (real and imaginary parts):
Y1=eαt(cosβtReV−sinβtImV),Y2=eαt(sinβtReV+cosβtImV).
The conjugate eigenvalue gives nothing new.
Example: oscillator y′′+y=0, Y=(y,y′), A=(0−110). λ2+1=0, λ=±i (α=0, β=1). For λ=i: −iv1+v2=0, V=(1,i), ReV=(1,0), ImV=(0,1). Y1=(cost,−sint), Y2=(sint,cost): the first components solve y′′+y=0, the second are their derivatives. In the phase plane they are circles run clockwise (no growth or decay since α=0).
Double eigenvalue with one eigenvector. If λ is double but (A−λI)V=0 has only a line of solutions, the solutions are eλtV and eλt(tV+W) with (A−λI)W=V: the analogue of teλt.
Elimination method for 2×2 systems
For a constant-coefficient 2×2 system there is an alternative to eigenvectors which reduces to one second-order equation:
{x′=ax+by+f1(t)y′=cx+dy+f2(t),T=a+d, D=ad−bc.
Method (if b=0).
- From the first equation, by=x′−ax−f1.
- Differentiate the first equation: x′′=ax′+by′+f1′; substitute the second equation in by′=bcx+bdy+bf2 and use bdy=d(x′−ax−f1):
x′′−Tx′+Dx=f1′−df1+bf2.
The polynomial λ2−Tλ+D is the characteristic polynomial of A.
- Solve this scalar equation (homogeneous plus particular): two constants c1,c2.
- Obtain y=bx′−ax−f1 (differentiate x; do not solve a second equation, to avoid extra constants).
- Initial data: x(0) and x′(0)=ax(0)+by(0)+f1(0).
If b=0 swap roles (eliminate x, using c=0); if b=c=0 the equations are independent.
Example 1 (homogeneous Cauchy). x′=x−y, y′=y−4x, x(0)=−21, y(0)=1. a=1,b=−1,c=−4,d=1, T=2, D=−3, y=x−x′. The equation is x′′−2x′−3x=0, λ=3,−1, x=c1e3t+c2e−t, and y=x−x′=−2c1e3t+2c2e−t. Data: c1+c2=−21, −2c1+2c2=1, so c2=0, c1=−21:
x=−21e3t,y=e3t.
Check: x′=−23e3t=x−y, y′=3e3t=y−4x.
Example 2 (nonhomogeneous). x′=y, y′=−x+t: a=0,b=1,c=−1,d=0, f2=t, so x′′+x=t; xh=c1cost+c2sint, xp=t. Hence x=c1cost+c2sint+t, y=x′=−c1sint+c2cost+1. Check: y′=−x+t.
A double eigenvalue is handled as in a scalar equation (x=(c1+c2t)eλt, y obtained by differentiating), with no generalized eigenvectors.
Matrix exponential
etA=k=0∑∞k!tkAk=I+tA+2t2A2+⋯
converges for all t; term-by-term differentiation gives dtdetA=AetA and e0A=I, so the solution of Y′=AY, Y(0)=Y0 is
Y(t)=etAY0,
just as y=eaty0 solves y′=ay. For A=(0010), A2=0 and etA=(10t1).
Computation. If A=diag(λ1,…,λn), etA=diag(eλ1t,…,eλnt). If A=PDP−1 (columns of P are eigenvectors), Ak=PDkP−1 and etA=PetDP−1. In the example above P=(121−2), D=diag(3,−1), P−1=41(221−1) and
etA=41(2e3t+2e−t4e3t−4e−te3t−e−t2e3t+2e−t);
applied to Y0=(2,0) it gives (e3t+e−t,2e3t−2e−t).
Variation of constants for systems
For Y′=AY+B(t), with Φ a fundamental matrix,
Yp(t)=Φ(t)∫Φ−1(t)B(t)dt.
Derivation: with Yp=ΦC(t), Φ′C+ΦC′=AΦC+B and Φ′=AΦ leave ΦC′=B, i.e. C′=Φ−1B. With constant A and Φ=etA: Y(t)=etAY0+∫0te(t−s)AB(s)ds. Example: Y′=diag(1,2)Y+(et,0)T: Φ=diag(et,e2t), Φ−1B=(1,0), Yp=(tet,0).
Common mistakes
- Sign errors in the Wronskian or Cramer formulas; forgetting that the method needs normal form (divide by the coefficient of y′′ first, e.g. t2y′′+⋯=g).
- No need for integration constants in C1(t),C2(t).
- Ignoring intervals where f, W or the coefficients are singular.
- Forgetting to multiply by the eigenvector in the vector solution.
- Counting four real solutions from a pair of complex conjugate eigenvalues: they give two.
- Believing etA is the matrix of the exponentials of the entries: this holds only for diagonal matrices.