Survey of Mathematics

7.2 Linear differential equations

The solutions of a homogeneous linear equation of order n form a vector space of dimension n, because "solution to starting values" is an isomorphism. Every solution of the inhomogeneous equation is one particular solution plus a homogeneous one. With constant coefficients, the roots of the characteristic polynomial write the whole solution space down.

Taught in 375/376Apostol, not taughtBeyond the courseApostol 6.2 to 6.8, 6.10Technau, MATH 376 lectures of March 23 to April 13MATH 376 worksheets 19 to 21, 23 and 28, homework 8 to 10MATH 376 final 6(b), practice final 4(b)

In 2.6 the solutions of Ax=bAx = b turned out to be one particular solution plus the null space of AA. In 2.8 the function eλte^{\lambda t} turned out to be an eigenvector of the derivative. This chapter puts those two facts together. An equation such as y′′+3y′+2y=0y'' + 3y' + 2y = 0 asks for the null space of an operator on functions, and everything we know about null spaces applies: it is a vector space, it has a dimension (here 22), and the full solution of y′′+3y′+2y=ety'' + 3y' + 2y = e^t is one solution plus anything in that null space. For constant coefficients the null space is found by solving a polynomial.

Before you start

You need existence and uniqueness (7.1), dimension and isomorphism, and complex roots of real polynomials. Three quick checks:

Quick checkIf 2+3i2 + 3i is a root of the real polynomial t2−4t+13t^2 - 4t + 13, what is the other root?
Quick checkA linear map μ:V→R3\mu : V \to \mathbb R^3 is one-to-one and onto. What is dim⁡V\dim V?
Quick checkLet DD be differentiation. What is the function e3te^{3t} for DD?

The picture

Everything below is about the equation y′′+by′+cy=0y'' + by' + cy = 0 (a mass on a spring with friction: cc is the spring, bb the friction), with the solution that starts at y(0)=1y(0) = 1 and rests, y′(0)=0y'(0) = 0. The left panel shows the two roots of r2+br+cr^2 + br + c in the complex plane. The right panel shows the solution. Use the presets first, then move the sliders yourself.

Watch three things. Roots on the real axis give pure decay or growth, with no wiggle. A root pair off the axis gives a wiggle, and its imaginary part is the speed of the wiggle. The real part (left or right of the vertical axis) says whether the solution dies away or grows. The rest of the chapter explains why: the formula of the solution is read straight off the roots, and the reason it can be read off is that the solution set is a vector space of dimension 22.

Where this came from· Euler and the trick of trying an exponential

Leonhard Euler wanted to solve higher-order linear equations with constant coefficients directly, in closed form, without first lowering their order step by step. He raised the idea in a letter to Johann Bernoulli on 15 September 1739, and gave the full treatment in a paper of 1743 (Miscellanea Berolinensia, volume 7, pages 193 to 242). His method is the one in this chapter: try y=erty = e^{rt}, which turns the differential equation into an ordinary polynomial equation in rr; each linear factor of that polynomial gives a solution. The same paper deals with repeated factors, which is where tertte^{rt} comes from, and with complex roots, whose solutions come out as sines and cosines. The statement that the solutions form a vector space of dimension nn is much younger: it needs the language of linear algebra and, underneath it, the existence and uniqueness theorem of 7.1.

The idea, in words

Why· Linear means superposition, and superposition means linear algebra

An equation is linear when it never multiplies the unknown by itself or by its derivatives, and never feeds it into a function such as sin⁡\sin. For such an equation, if y1y_1 and y2y_2 are solutions of the version with 00 on the right, so is y1+y2y_1 + y_2 and so is 5y15y_1. So the solutions are a vector space. The next question is its size. The existence and uniqueness theorem of 7.1 says that a solution of an equation of order nn is pinned down by nn starting numbers (y(t0),…,y(n−1)(t0))(y(t_0), \dots, y^{(n-1)}(t_0)), and that every choice of those numbers occurs. Therefore “solution ↦\mapsto its starting numbers” is a one-to-one, onto, linear map to Rn\mathbb R^n, and the solution space has dimension nn. Writing the general solution means finding nn independent solutions. With constant coefficients that is easy: erte^{rt} is a solution exactly when rr is a root of the characteristic polynomial, and repeated roots and complex roots are handled by two small tricks.

Definitions and theorems

Linear equations and linear operators

Definition T

Linear differential equation

Let JJ be an interval and let a0,…,an−1a_0, \dots, a_{n-1} and RR be continuous functions on JJ. The equation

y(n)+an−1(t) y(n−1)+⋯+a1(t) y′+a0(t) y=R(t)y^{(n)} + a_{n-1}(t)\,y^{(n-1)} + \dots + a_1(t)\,y' + a_0(t)\,y = R(t)

is a linear differential equation of order nn. The functions aka_k are its coefficients and RR is the right-hand side (forcing term). (Technau writes the sum as ∑pi y(n−i)\sum p_i\,y^{(n-i)}; it is the same equation with the coefficients numbered from the top.)

In one lineAn equation y(n)+an−1(t)y(n−1)+⋯+a0(t)y=R(t)y^{(n)} + a_{n-1}(t)y^{(n-1)} + \dots + a_0(t)y = R(t), in which the unknown yy and its derivatives each appear to the first power, multiplied only by functions of tt.

Why it existsIt is the class of equations where solutions can be added and scaled, so linear algebra applies.

Definition T

Homogeneous equation

The linear equation above is homogeneous if R(t)=0R(t) = 0 for all t∈Jt \in J, and inhomogeneous otherwise. For an inhomogeneous equation Ly=RLy = R, the equation Ly=0Ly = 0 is its associated homogeneous equation.

In one lineA linear equation whose right-hand side is zero everywhere: Ly=0Ly = 0. If RR is not zero everywhere the equation is inhomogeneous.

Why it existsThe word 'homogeneous' marks the case where the zero function is a solution and sums of solutions are solutions. Everything else is built from it.

Definition T

Differential operator

For continuous coefficients aka_k on JJ, define L:Cn(J)→C(J)L : C^n(J) \to C(J) by

(Ly)(t)=y(n)(t)+an−1(t) y(n−1)(t)+⋯+a0(t) y(t).(Ly)(t) = y^{(n)}(t) + a_{n-1}(t)\,y^{(n-1)}(t) + \dots + a_0(t)\,y(t).

Here Cn(J)C^n(J) is the vector space of functions with nn continuous derivatives on JJ and C(J)C(J) the space of continuous functions (2.1). The operator DD is Df=f′Df = f', so L=Dn+an−1Dn−1+⋯+a0L = D^n + a_{n-1}D^{n-1} + \dots + a_0. The equation Ly=RLy = R asks: which functions does LL send to RR?

In one lineThe map LL that sends a function yy to the function y(n)+an−1y(n−1)+⋯+a0yy^{(n)} + a_{n-1}y^{(n-1)} + \dots + a_0y.

Why it existsIt turns the equation Ly=RLy = R into the same shape as Ax=bAx = b: a linear map and a target.

Fact T Technau, March 23 (Definition 7.6)

A linear differential operator is a linear map

For f,g∈Cn(J)f, g \in C^n(J) and a number cc: L(f+g)=Lf+LgL(f + g) = Lf + Lg and L(cf)=c LfL(cf) = c\,Lf. Hence LL is a linear map (2.3) and the set of solutions of Ly=0Ly = 0 is ker⁡L=N(L)\ker L = N(L), a subspace of Cn(J)C^n(J).

In one lineL(f+g)=Lf+LgL(f + g) = Lf + Lg and L(cf)=c LfL(cf) = c\,Lf, so the solutions of Ly=0Ly = 0 form the null space of a linear map.

Why it is trueDifferentiation is linear, and multiplying by a fixed function is linear.

ProofTechnau, March 23
The idea: Each term of L is a derivative followed by a multiplication by a function of t. Both steps respect sums and scalars, so their sum does.
The kk-th derivative is linear: Dk(f+g)=Dkf+DkgD^k(f + g) = D^kf + D^kg and Dk(cf)=cDkfD^k(cf) = cD^kf.
(f+g)(k)=f(k)+g(k)(f + g)^{(k)} = f^{(k)} + g^{(k)} and (cf)(k)=cf(k)(cf)^{(k)} = c f^{(k)} (rules for derivatives, 1.4).
So f↦akDkff \mapsto a_k D^kf is linear.
Multiplying by the fixed function ak(t)a_k(t) distributes: ak(f+g)=akf+akga_k(f + g) = a_kf + a_kg and ak(cf)=c akfa_k(cf) = c\,a_kf.
So L=Dn+an−1Dn−1+⋯+a0L = D^n + a_{n-1}D^{n-1} + \dots + a_0 is linear.
A sum of linear maps is linear.
So ker⁡L\ker L is a subspace. ■\blacksquare
The null space of a linear map is a subspace (2.3). The solutions of Ly=0Ly = 0 are by definition the functions sent to 00.

The sign of the right-hand side now matters more than anything else. This is the point the 376 final tested in 6(b) and worksheet 19 #4 and #5.

Theorem T Technau, March 23 (Lemma 7.5); Apostol 6.10; worksheet 19 #4 and #5

Homogeneous and inhomogeneous solution sets

Let LL be a linear differential operator. (a) ker⁡L\ker L is a vector space. (b) If Lyp=RL y_p = R, then yy is a solution of Ly=RLy = R if and only if y−yp∈ker⁡Ly - y_p \in \ker L. So the solution set is {yp+h:h∈ker⁡L}\{y_p + h : h \in \ker L\}. (c) If R≠0R \ne 0 as a function, the zero function is not a solution, and the solution set is not closed under addition or scaling, so it is not a vector space.

In one lineThe solutions of Ly=0Ly = 0 form a vector space. If Ly=RLy = R and RR is not the zero function, the solutions do NOT form a vector space: they are yp+ker⁡Ly_p + \ker L, where ypy_p is any one solution.

Why it is trueSubtract two solutions of Ly=RLy = R and the right-hand sides cancel. And y=0y = 0 would need 0=R0 = R.

ProofTechnau, March 23 (Lemma 7.5); worksheet 19
The idea: (a) is the previous fact. (b) Linearity of L turns the difference of two solutions into a homogeneous one. (c) Test the zero vector.
(a) ker⁡L\ker L is a subspace of Cn(J)C^n(J), hence a vector space.
The previous theorem.
(b, ⇒\Rightarrow) If Ly=RLy = R and Lyp=RLy_p = R, then y−yp∈ker⁡Ly - y_p \in \ker L.
Linearity: L(y−yp)=Ly−Lyp=R−R=0L(y - y_p) = Ly - Ly_p = R - R = 0.
(b, ⇐\Leftarrow) If h∈ker⁡Lh \in \ker L then yp+hy_p + h solves Ly=RLy = R.
Linearity: L(yp+h)=Lyp+Lh=R+0=RL(y_p + h) = Ly_p + Lh = R + 0 = R.
(c) The zero function is not a solution, so the set is not a subspace; and the sum of two solutions solves the equation with right-hand side 2R2R. ■\blacksquare
L(0)=0≠RL(0) = 0 \ne R. Also if Ly1=Ly2=RLy_1 = Ly_2 = R then L(y1+y2)=2R≠RL(y_1 + y_2) = 2R \ne R.

This is the structure you already know from 2.6: the solutions of Ax=bAx = b are xp+N(A)x_p + N(A), a translated copy of the null space. A line that misses the origin is not a subspace, and neither is the solution set of an inhomogeneous equation.

Worked example MATH 376 final 6(b); worksheet 19 #5
Do the solutions of y'' + y = cos t form a vector space of dimension 2?

Solution.

  1. Identify the type. The equation y′′+y=cos⁡ty'' + y = \cos t has right-hand side cos⁡t\cos t, which is not the zero function. So it is inhomogeneous. The first thing to do with any statement about a solution set is to look at the right-hand side.
  2. Test the zero function. 0′′+0=00'' + 0 = 0, and 0≠cos⁡t0 \ne \cos t. So y=0y = 0 is not a solution. Every vector space contains the zero vector, so a set missing it cannot be a vector space.
  3. Find the actual solution set. Try yp=t2sin⁡ty_p = \frac t2\sin t. Then yp′=12sin⁡t+t2cos⁡ty_p' = \frac12\sin t + \frac t2\cos t and yp′′=cos⁡t−t2sin⁡ty_p'' = \cos t - \frac t2\sin t, so yp′′+yp=cos⁡ty_p'' + y_p = \cos t. The homogeneous equation y′′+y=0y'' + y = 0 has the solutions acos⁡t+bsin⁡ta\cos t + b\sin t (two independent solutions, and the dimension is 22 by the theorem below). So the solution set is {t2sin⁡t+acos⁡t+bsin⁡t}\{\frac t2\sin t + a\cos t + b\sin t\}. By the theorem above: one particular solution plus the whole null space.
  4. Describe it. It is a translate of a 22-dimensional plane of functions, not a plane through the origin. The sum of two solutions is a solution of y′′+y=2cos⁡ty'' + y = 2\cos t. Only the homogeneous solutions have a dimension; the inhomogeneous set is an affine space.

Answer. False. The solution set is not a vector space. (The associated homogeneous equation has a solution space of dimension 22.) On the 376 final, a student answered True, solved y′′+y=0y'' + y = 0 and never used the right-hand side cos⁡t\cos t. They also wrote the solution as et(cos⁡t+12sin⁡t)e^t(\cos t + \frac12\sin t) with a spurious factor ete^t: the roots are ±i\pm i with real part 00, so there is no exponential at all.

Quick checkWhich of these is a vector space under the usual addition and scaling of functions?

Existence, uniqueness, and the dimension theorem

To use 7.1 for an equation of order nn we turn it into a system, using the trick of the previous chapter.

Definition T

Companion matrix

For y(n)+an−1y(n−1)+⋯+a0y=Ry^{(n)} + a_{n-1}y^{(n-1)} + \dots + a_0y = R and x=(y,y′,…,y(n−1))x = (y, y', \dots, y^{(n-1)}) we have xk′=xk+1x_k' = x_{k+1} for k<nk < n and xn′=−a0x1−a1x2−⋯−an−1xn+Rx_n' = -a_0x_1 - a_1x_2 - \dots - a_{n-1}x_n + R. In matrix form x′=A(t)x+g(t)x' = A(t)x + g(t) with

A(t)=[010⋯0001⋯0⋮⋱000⋯1−a0−a1−a2⋯−an−1],g(t)=[00⋮0R(t)].A(t) = \begin{bmatrix} 0 & 1 & 0 & \cdots & 0\\ 0 & 0 & 1 & \cdots & 0\\ \vdots & & & \ddots & \\ 0 & 0 & 0 & \cdots & 1\\ -a_0 & -a_1 & -a_2 & \cdots & -a_{n-1}\end{bmatrix}, \qquad g(t) = \begin{bmatrix}0\\0\\\vdots\\0\\R(t)\end{bmatrix}.

A(t)A(t) is the companion matrix of the equation. (Technau’s notes of March 23 print the last row with an index mismatch and one dropped sign. With the numbering y(n)+∑k<naky(k)y^{(n)} + \sum_{k<n} a_ky^{(k)} the last row is −a0,…,−an−1-a_0, \dots, -a_{n-1}, as above.)

In one lineThe matrix A(t)A(t) with ones directly above the diagonal and the last row (−a0,−a1,…,−an−1)(-a_0, -a_1, \dots, -a_{n-1}), for which x=(y,y′,…,y(n−1))x = (y, y', \dots, y^{(n-1)}) satisfies x′=A(t)x+(0,…,0,R)x' = A(t)x + (0, \dots, 0, R).

Why it existsIt is what remains of the equation when you remember each derivative as a separate coordinate.

Theorem T Technau, March 23 (Theorem 7.6); Apostol 6.5

Existence and uniqueness for linear equations of order n

Let a0,…,an−1,Ra_0, \dots, a_{n-1}, R be continuous on an interval JJ, t0∈Jt_0 \in J and c0,…,cn−1∈Rc_0, \dots, c_{n-1} \in \mathbb R. Then there is exactly one function y∈Cn(J)y \in C^n(J) with Ly=RLy = R on JJ and y(k)(t0)=cky^{(k)}(t_0) = c_k for k=0,…,n−1k = 0, \dots, n-1.

In one lineFor continuous coefficients and right-hand side on JJ, any t0∈Jt_0 \in J and any numbers c0,…,cn−1c_0, \dots, c_{n-1}, the equation Ly=RLy = R has exactly one solution on all of JJ with y(k)(t0)=cky^{(k)}(t_0) = c_k for k<nk < n.

Why it is trueOrder nn is a first-order system for x=(y,…,y(n−1))x = (y, \dots, y^{(n-1)}), and 7.1 solves linear systems on the whole interval.

ProofTechnau, March 23
The idea: Translate to the companion system, apply the linear existence-uniqueness theorem of 7.1, and translate back.
The IVP for yy is equivalent to the IVP x′=A(t)x+g(t)x' = A(t)x + g(t), x(t0)=(c0,…,cn−1)x(t_0) = (c_0, \dots, c_{n-1}).
The reduction fact of 7.1 (the first coordinate of a solution xx of the system is a solution yy, with xk+1=y(k)x_{k+1} = y^{(k)}).
AA and gg are continuous on JJ.
The entries of AA and gg are 00, 11, −ak-a_k and RR: continuous on JJ by hypothesis.
So the system has exactly one solution on JJ.
The theorem 'linear systems have solutions on the whole interval' of 7.1, which rests on the Banach fixed point theorem for a power of the Picard operator.
Hence the original IVP has exactly one solution on JJ. ■\blacksquare
Solutions correspond one to one under y=x1y = x_1. The first coordinate has nn continuous derivatives: x1(k)=xk+1x_1^{(k)} = x_{k+1} for k<nk < n, and xn′=−∑akxk+1+Rx_n' = -\sum a_kx_{k+1} + R is continuous.
Theorem T Technau, March 25 (Theorem 7.7); Apostol 6.6

Dimension of the solution space of a linear ODE

Let L=Dn+an−1Dn−1+⋯+a0L = D^n + a_{n-1}D^{n-1} + \dots + a_0 with continuous coefficients on JJ. Then dim⁡ker⁡L=n\dim \ker L = n. Consequently any nn linearly independent solutions b1,…,bnb_1, \dots, b_n form a basis, and every solution is c1b1+⋯+cnbnc_1b_1 + \dots + c_nb_n for exactly one choice of numbers c1,…,cnc_1, \dots, c_n.

In one lineThe solution space ker⁡L\ker L of a homogeneous linear equation of order nn has dimension exactly nn.

Why it is true'Solution to its starting numbers' is a linear map to Rn\mathbb R^n that is onto by existence and one-to-one by uniqueness, so it is an isomorphism.

Why· The picture behind the proof

In the picture of this chapter, the solution is determined by where it starts: the two numbers (y(0),y′(0))(y(0), y'(0)). Every point of the plane R2\mathbb R^2 is the starting point of exactly one solution. The point (1,0)(1, 0) is the solution drawn on the right of the picture. The point (0,1)(0, 1) is a different solution, (sin⁡t)(\sin t) for y′′+y=0y'' + y = 0. The map “solution ↦\mapsto starting point” matches the space of solutions with the plane. Since the plane has dimension 22, so does the space of solutions. In 7.4 this plane becomes the picture in which solutions are curves.

ProofTechnau, March 25
The idea: Define the map from solutions to starting numbers. It is linear. It is onto because of existence, and one-to-one because of uniqueness. An isomorphism preserves dimension.
Define μ:ker⁡L→Rn\mu : \ker L \to \mathbb R^n by μ(y)=(y(t0),y′(t0),…,y(n−1)(t0))\mu(y) = \big(y(t_0), y'(t_0), \dots, y^{(n-1)}(t_0)\big).
Fix t0∈Jt_0 \in J ahead of time. ker⁡L\ker L is a vector space (previous theorem), so the map goes between two vector spaces.
μ\mu is linear.
Evaluation of a function, and of each derivative, at t0t_0 respects sums and scalar multiples.
μ\mu is onto.
Given (c0,…,cn−1)(c_0, \dots, c_{n-1}), the existence part of the existence-uniqueness theorem (with R=0R = 0) gives a solution yy with μ(y)=(c0,…,cn−1)\mu(y) = (c_0, \dots, c_{n-1}).
μ\mu is one-to-one.
If μ(y)=O\mu(y) = O then yy and the zero function both solve Ly=0Ly = 0 with all starting numbers 00. The uniqueness part says y=0y = 0. So the null space of μ\mu is {0}\{0\}, and a linear map with trivial null space is one-to-one (2.3).
So dim⁡ker⁡L=dim⁡Rn=n\dim \ker L = \dim \mathbb R^n = n.
A one-to-one onto linear map is an isomorphism, and isomorphic spaces have equal dimension (2.4).
The statement about nn independent solutions follows. ■\blacksquare
In an nn-dimensional space nn independent vectors form a basis (2.2), and a basis gives unique coordinates.
Proof workshopRebuild the proof that the solution space has dimension nTechnau, March 25

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Quick checkIn the proof of the dimension theorem, which hypothesis of the existence-uniqueness theorem makes the map μ\mu one-to-one?
    Corollary T Technau, March 25 (Corollary 7.8)

    General solution of a linear equation

    Let b1,…,bnb_1, \dots, b_n be a basis of ker⁡L\ker L and Lyp=RLy_p = R. Then the solutions of Ly=RLy = R on JJ are exactly the functions y=yp+c1b1+⋯+cnbny = y_p + c_1b_1 + \dots + c_nb_n, with c1,…,cnc_1, \dots, c_n arbitrary numbers. Given starting numbers (c0′,…,cn−1′)(c_0', \dots, c_{n-1}') at t0t_0 the constants cic_i are determined: they solve a linear system ∑icibi(k)(t0)=ck′−yp(k)(t0)\sum_i c_i b_i^{(k)}(t_0) = c_k' - y_p^{(k)}(t_0) whose matrix is invertible. (That matrix is the Wronskian matrix of 7.3.)

    In one lineIf b1,…,bnb_1, \dots, b_n is a basis of ker⁡L\ker L and ypy_p solves Ly=RLy = R, then every solution is y=yp+c1b1+⋯+cnbny = y_p + c_1b_1 + \dots + c_nb_n.

    Why it is trueCombine the two structure theorems: the solution set is ypy_p plus ker⁡L\ker L, and ker⁡L\ker L is spanned by a basis.

    Definition T

    General solution

    The general solution of Ly=RLy = R is the expression y=yp+c1b1+⋯+cnbny = y_p + c_1b_1 + \dots + c_nb_n above. For the homogeneous equation (R=0R = 0) it is y=c1b1+⋯+cnbny = c_1b_1 + \dots + c_nb_n. A particular solution is any one function ypy_p with Lyp=RLy_p = R; it does not depend on any constants.

    In one lineThe formula y=yp+c1b1+⋯+cnbny = y_p + c_1b_1 + \dots + c_nb_n with arbitrary constants, which lists every solution of Ly=RLy = R.

    Why it existsIt is the answer to 'find all solutions', the way a parametric description is the answer to 'find all solutions of Ax = b'.

    Definition T

    Particular solution

    A particular solution of Ly=RLy = R is any one function ypy_p that satisfies the equation. Finding one is the job of 7.3 (variation of parameters, undetermined coefficients).

    In one lineAny single function ypy_p with Lyp=RLy_p = R.

    Why it existsYou need only one. The homogeneous solutions supply all the rest.

    Worked example MATH 376 worksheet 19 #6; worksheet 21 #9
    Why are cos t and sin t every solution of y'' + y = 0? And when do two solutions form a basis?

    Solution.

    1. Count the dimension. The equation y′′+y=0y'' + y = 0 is homogeneous of order 22, so its solution space has dimension 22. The dimension theorem.
    2. Check that cos⁡t\cos t and sin⁡t\sin t are solutions. (cos⁡t)′′=−cos⁡t(\cos t)'' = -\cos t and (sin⁡t)′′=−sin⁡t(\sin t)'' = -\sin t, so both satisfy y′′+y=0y'' + y = 0. Direct substitution.
    3. Check that they are independent. Their starting numbers at t0=0t_0 = 0 are μ(cos⁡)=(1,0)\mu(\cos) = (1, 0) and μ(sin⁡)=(0,1)\mu(\sin) = (0, 1). The map μ\mu is an isomorphism, so independent starting vectors mean independent solutions.
    4. Conclude. Two independent solutions in a 22-dimensional space form a basis, so every solution is c1cos⁡t+c2sin⁡tc_1\cos t + c_2\sin t. “Any solution” is what the dimension theorem gives. Linearity alone gives only that each combination IS a solution.
    5. A basis test from starting values (worksheet 21 #9). Suppose y1,y2y_1, y_2 solve a second-order homogeneous equation with y1(0)=1y_1(0) = 1, y1′(0)=2y_1'(0) = 2, y2(0)=0y_2(0) = 0, y2′(0)=3y_2'(0) = 3. Then μ(y1)=(1,2)\mu(y_1) = (1, 2) and μ(y2)=(0,3)\mu(y_2) = (0, 3) are independent in R2\mathbb R^2 (the determinant is 1⋅3−0⋅2=3≠01 \cdot 3 - 0 \cdot 2 = 3 \ne 0), so y1,y2y_1, y_2 are independent solutions and a basis. The determinant 33 is the Wronskian at 00, which 7.3 makes into a general test.

    Answer. y=c1cos⁡t+c2sin⁡ty = c_1\cos t + c_2\sin t is the general solution; and y1,y2y_1, y_2 in part 5 are a basis.

    Quick checkTwo solutions of a second-order homogeneous equation have y1(0)=1y_1(0) = 1, y1′(0)=2y_1'(0) = 2 and y2(0)=2y_2(0) = 2, y2′(0)=4y_2'(0) = 4. Could y1,y2y_1, y_2 be a basis of the solution space?

    Equations with constant coefficients

    From here on the coefficients are numbers, and the whole solution space can be written down.

    Definition T

    Constant-coefficient operator

    A constant-coefficient operator is A=Dn+an−1Dn−1+⋯+a1D+a0A = D^n + a_{n-1}D^{n-1} + \dots + a_1D + a_0 with real or complex numbers aka_k, acting on infinitely differentiable functions C∞(J)C^\infty(J) (the solutions of Ay=0Ay = 0 turn out to be infinitely differentiable automatically, because y(n)y^{(n)} is a combination of lower derivatives). The polynomial PA(t)=tn+an−1tn−1+⋯+a0P_A(t) = t^n + a_{n-1}t^{n-1} + \dots + a_0 is its characteristic polynomial; we write A=PA(D)A = P_A(D). Do not confuse this with the characteristic polynomial det⁡(λI−M)\det(\lambda I - M) of a matrix in 2.8; the two are linked in the example on the companion matrix below.

    In one lineAn operator A=Dn+an−1Dn−1+⋯+a0A = D^n + a_{n-1}D^{n-1} + \dots + a_0 with numbers aka_k as coefficients. It equals PA(D)P_A(D) for the polynomial PA(t)=tn+an−1tn−1+⋯+a0P_A(t) = t^n + a_{n-1}t^{n-1} + \dots + a_0.

    Why it existsWriting AA as a polynomial in DD turns the differential equation Ay=0Ay = 0 into algebra with polynomials.

    Definition T

    Characteristic polynomial of an operator

    For a constant-coefficient operator A=PA(D)A = P_A(D) the characteristic polynomial of the operator is PAP_A. The equation PA(r)=0P_A(r) = 0 is the characteristic equation of Ay=0Ay = 0. The key computation: A(ert)=PA(r) ertA(e^{rt}) = P_A(r)\,e^{rt}, because Dkert=rkertD^k e^{rt} = r^ke^{rt}.

    In one lineFor A=Dn+an−1Dn−1+⋯+a0A = D^n + a_{n-1}D^{n-1} + \dots + a_0, the polynomial PA(t)=tn+an−1tn−1+⋯+a0P_A(t) = t^n + a_{n-1}t^{n-1} + \dots + a_0. Its roots decide the solutions.

    Why it existsTrying y=erty = e^{rt} in Ay=0Ay = 0 gives PA(r)ert=0P_A(r)e^{rt} = 0, so the solutions of the form erte^{rt} are exactly the roots.

    Theorem T Technau, March 25; Apostol 6.7

    Constant-coefficient operators multiply like polynomials

    For constant-coefficient operators AA and BB acting on C∞(J)C^\infty(J): the composition ABAB (apply BB first) is the constant-coefficient operator with characteristic polynomial PAPBP_AP_B. Hence AB=BAAB = BA.

    In one lineIf A=PA(D)A = P_A(D) and B=PB(D)B = P_B(D) then AB=(PAPB)(D)AB = (P_AP_B)(D). In particular AB=BAAB = BA.

    Why it is trueComposing two operators multiplies out like composing polynomials in DD, because DiDj=Di+jD^iD^j = D^{i+j} and the coefficients are numbers that pass through DD.

    ProofTechnau, March 25
    The idea: Expand the composition term by term with the distributive law and collect the powers of D.
    AB=∑i,jaiDi(bjDj)AB = \sum_{i,j}a_iD^i(b_jD^j).
    Write A=∑iaiDiA = \sum_i a_iD^i and B=∑jbjDjB = \sum_j b_jD^j (with an=bm=1a_n = b_m = 1). Composition of linear maps distributes over sums (2.4).
    =∑i,jaibjDi+j= \sum_{i,j}a_ib_jD^{i+j}.
    A number bjb_j passes through DiD^i: Di(bjf)=bjDifD^i(b_jf) = b_jD^if. And DiDj=Di+jD^iD^j = D^{i+j}, since differentiating jj times and then ii times is differentiating i+ji + j times.
    =(PAPB)(D)= (P_AP_B)(D).
    This is the sum we get on multiplying the polynomials PA(t)=∑aitiP_A(t) = \sum a_it^i and PB(t)=∑bjtjP_B(t) = \sum b_jt^j, with tt replaced by DD.
    So AB=BAAB = BA. ■\blacksquare
    Polynomials commute: PAPB=PBPAP_AP_B = P_BP_A. So ABAB and BABA have the same characteristic polynomial and are the same operator. (A different thing for variable coefficients: D∘t≠t∘DD \circ t \ne t \circ D.)
    Worked example Technau, March 25 (Example 7.10)
    Factor the operator A = D² − 5D + 6.

    Solution.

    1. Write the characteristic polynomial. PA(t)=t2−5t+6P_A(t) = t^2 - 5t + 6. Replace DkD^k by tkt^k.
    2. Factor it. t2−5t+6=(t−2)(t−3)t^2 - 5t + 6 = (t - 2)(t - 3), since 2+3=52 + 3 = 5 and 2⋅3=62 \cdot 3 = 6. Roots of a polynomial give its factors (0.6).
    3. Translate back to operators. A=(D−2)(D−3)A = (D - 2)(D - 3). By the theorem, multiplication of polynomials in DD is composition of operators.
    4. Check on a function. (D−2)(D−3)f=(D−2)(f′−3f)=f′′−3f′−2f′+6f=f′′−5f′+6f(D - 2)(D - 3)f = (D - 2)(f' - 3f) = f'' - 3f' - 2f' + 6f = f'' - 5f' + 6f. Both factors are applied; the order does not matter.

    Answer. A=(D−2)(D−3)=(D−3)(D−2)A = (D - 2)(D - 3) = (D - 3)(D - 2).

    Fact T Apostol 6.7; Euler's formula of 0.6

    Derivative of a complex exponential

    Define ert=eαt(cos⁡βt+isin⁡βt)e^{rt} = e^{\alpha t}(\cos\beta t + i\sin\beta t) for r=α+iβr = \alpha + i\beta and real tt (Euler’s formula). Then (ert)′=rert(e^{rt})' = re^{rt}.

    In one lineFor a complex number r=α+iβr = \alpha + i\beta, ert=eαt(cos⁡βt+isin⁡βt)e^{rt} = e^{\alpha t}(\cos\beta t + i\sin\beta t) satisfies D(ert)=rertD(e^{rt}) = re^{rt}.

    Why it is trueDifferentiate the real and imaginary parts and use i⋅i=−1i \cdot i = -1.

    ProofApostol 6.7
    The idea: Product rule on the real part e^{αt} times the unit-size part cos + i sin.
    (ert)′=αeαt(cos⁡βt+isin⁡βt)+eαt(−βsin⁡βt+iβcos⁡βt)(e^{rt})' = \alpha e^{\alpha t}(\cos\beta t + i\sin\beta t) + e^{\alpha t}(-\beta\sin\beta t + i\beta\cos\beta t).
    Product rule on each of the real and imaginary parts, with (eαt)′=αeαt(e^{\alpha t})' = \alpha e^{\alpha t}, (cos⁡βt)′=−βsin⁡βt(\cos\beta t)' = -\beta\sin\beta t and (sin⁡βt)′=βcos⁡βt(\sin\beta t)' = \beta\cos\beta t.
    The second bracket equals iβ(cos⁡βt+isin⁡βt)i\beta(\cos\beta t + i\sin\beta t).
    iβ(cos⁡βt+isin⁡βt)=iβcos⁡βt−βsin⁡βti\beta(\cos\beta t + i\sin\beta t) = i\beta\cos\beta t - \beta\sin\beta t, since i2=−1i^2 = -1.
    So (ert)′=(α+iβ)eαt(cos⁡βt+isin⁡βt)=rert(e^{rt})' = (\alpha + i\beta)e^{\alpha t}(\cos\beta t + i\sin\beta t) = re^{rt}. ■\blacksquare
    Factor out the common part.

    So for every complex number rr, D(ert)=rertD(e^{rt}) = re^{rt}, and erte^{rt} is an eigenfunction of DD with eigenvalue rr. Every statement of this chapter holds verbatim for complex-valued functions (a complex-valued function is a pair of real ones, and the solution space is then a complex vector space of dimension nn). We use them, and return to real functions at the end.

    Fact T Technau, March 27 (Proposition 7.13); Apostol 6.8

    Shifting an exponential

    For a polynomial p(t)p(t) and a complex number rr: (D−r)(p(t)ert)=p′(t)ert(D - r)\big(p(t)e^{rt}\big) = p'(t)e^{rt}. Consequently (D−r)k(tjert)=j(j−1)⋯(j−k+1) tj−kert(D - r)^k\big(t^je^{rt}\big) = j(j-1)\cdots(j-k+1)\,t^{j-k}e^{rt} for k≤jk \le j and (D−r)j+1(tjert)=0(D - r)^{j+1}\big(t^je^{rt}\big) = 0.

    In one lineFor a polynomial pp and a number rr: (D−r)(p(t)ert)=p′(t) ert(D - r)\big(p(t)e^{rt}\big) = p'(t)\,e^{rt}.

    Why it is trueThe product rule gives p′ert+p rertp'e^{rt} + p\,re^{rt}, and subtracting r pertr\,pe^{rt} cancels the second term. So D−rD - r lowers the degree of the polynomial by one.

    ProofTechnau, March 27
    The idea: Product rule, then one term cancels. Induct for the powers.
    D(pert)=p′ert+p rertD(pe^{rt}) = p'e^{rt} + p\,re^{rt}.
    Product rule, and D(ert)=rertD(e^{rt}) = re^{rt} from the previous fact.
    (D−r)(pert)=p′ert+rpert−rpert=p′ert(D - r)(pe^{rt}) = p'e^{rt} + rpe^{rt} - rpe^{rt} = p'e^{rt}.
    Subtract rr times the function.
    So (D−r)k(tjert)=(dkdtktj)ert=j(j−1)⋯(j−k+1) tj−kert(D - r)^k(t^je^{rt}) = \big(\tfrac{d^k}{dt^k}t^j\big)e^{rt} = j(j-1)\cdots(j-k+1)\,t^{j-k}e^{rt}.
    Apply the formula kk times to p=tjp = t^j: each application differentiates the polynomial once, and ddtti=iti−1\frac{d}{dt}t^i = it^{i-1}.
    For k=j+1k = j + 1 the result is 00. ■\blacksquare
    After jj differentiations tjt^j becomes the constant j!j!; one more gives 00.
    Worked example MATH 376 practice final 4(b)
    Show directly that b_j(t) = t^j e^{rt} satisfies (D − r)^100 y = 0 for j = 0, 1, ..., 99.

    Solution.

    1. Compute one application. (D−r)(tjert)=jtj−1ert+rtjert−rtjert=jtj−1ert(D - r)(t^je^{rt}) = jt^{j-1}e^{rt} + rt^je^{rt} - rt^je^{rt} = jt^{j-1}e^{rt}. Product rule; the two r tjertr\,t^je^{rt} terms cancel.
    2. State the pattern. (D−r)kbj=j(j−1)⋯(j−k+1) tj−kert(D - r)^k b_j = j(j-1)\cdots(j-k+1)\,t^{j-k}e^{rt} for 0≤k≤j0 \le k \le j. Induction on kk: the case k=1k = 1 is step 1, and applying step 1 to tj−kertt^{j-k}e^{rt} multiplies by j−kj - k and lowers the power by one.
    3. Reach zero. At k=jk = j we get j! ertj!\,e^{rt}, and one more application gives (D−r)(j! ert)=0(D - r)(j!\,e^{rt}) = 0. So (D−r)j+1bj=0(D - r)^{j+1}b_j = 0. erte^{rt} has derivative rertre^{rt}, so (D−r)ert=0(D - r)e^{rt} = 0.
    4. Use the size of jj. For j≤99j \le 99 we have j+1≤100j + 1 \le 100, and applying (D−r)(D - r) more times to 00 still gives 00. So (D−r)100bj=0(D - r)^{100}b_j = 0. The equation is of order 100100 and each power tjt^j with j<100j < 100 is killed by it.

    Answer. All of ert,tert,…,t99erte^{rt}, te^{rt}, \dots, t^{99}e^{rt} solve (D−r)100y=0(D - r)^{100}y = 0. (By the dimension theorem the solution space has dimension 100100, so these 100100 functions, once shown independent, are a basis.)

    Theorem T Technau, March 27 (Proposition 7.13); Apostol 6.8; worksheet 20

    Basis for repeated roots

    Let rr be a complex number and m≥1m \ge 1. The functions bj(t)=tjertb_j(t) = t^je^{rt}, j=0,1,…,m−1j = 0, 1, \dots, m-1, are a basis of ker⁡(D−r)m\ker(D - r)^m.

    In one lineThe mm functions ert,tert,…,tm−1erte^{rt}, te^{rt}, \dots, t^{m-1}e^{rt} are a basis of the solutions of (D−r)my=0(D - r)^my = 0.

    Why it is trueThey all solve it by the shifting fact, they are independent because a polynomial with too many zeros is zero, and the dimension theorem says mm independent solutions are a basis.

    ProofTechnau, March 27
    The idea: Each b_j is a solution, by the shifting fact. They are independent since dividing by e^{rt} leaves a polynomial. The operator has order m, so the dimension theorem finishes.
    Each bjb_j lies in ker⁡(D−r)m\ker(D - r)^m.
    The shifting fact: (D−r)j+1bj=0(D - r)^{j+1}b_j = 0, and j+1≤mj + 1 \le m.
    Suppose ∑j<mcjtjert=0\sum_{j<m}c_jt^je^{rt} = 0 on JJ. Then ∑j<mcjtj=0\sum_{j<m}c_jt^j = 0 for all t∈Jt \in J.
    Divide by erte^{rt}, which is never zero.
    So all cj=0c_j = 0: the bjb_j are independent.
    A non-zero polynomial of degree less than mm has fewer than mm roots (0.6), and JJ contains infinitely many points.
    So they are a basis. ■\blacksquare
    (D−r)m(D - r)^m is a constant-coefficient operator of order mm, so its kernel has dimension mm (dimension theorem), and mm independent vectors in an mm-dimensional space are a basis.
    Proof workshopRebuild: t^j e^(rt), j below m, are a basis of the solutions of (D − r)^m y = 0Technau, March 27

    Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.

    1. (D−r)(p(t)ert)=p′(t)ert(D - r)\big(p(t)e^{rt}\big) = p'(t)e^{rt} for every polynomial pp.
    2. (D−r)j+1(tjert)=0(D - r)^{j+1}\big(t^je^{rt}\big) = 0, so tjertt^je^{rt} solves (D−r)my=0(D - r)^my = 0 whenever j<mj < m.
    3. If ∑j<mcjtjert=0\sum_{j<m}c_jt^je^{rt} = 0 then ∑cjtj=0\sum c_jt^j = 0 for infinitely many tt, so all cj=0c_j = 0.
    4. So the mm functions are independent solutions of an equation of order mm, hence a basis.
    Quick checkThe characteristic roots of a third-order equation are 1,1,21, 1, 2. Which is the general solution?
    Fact T Technau, March 25 (Proposition 7.11)

    Kernel of a factor lies in the kernel of the product

    If A=A1⋯AkA = A_1\cdots A_k with each AiA_i a constant-coefficient operator, then every solution of Ajy=0A_jy = 0 is a solution of Ay=0Ay = 0.

    In one lineIf A=A1A2⋯AkA = A_1A_2\cdots A_k are constant-coefficient operators, then ker⁡Aj⊆ker⁡A\ker A_j \subseteq \ker A for every jj.

    Why it is trueThe operators commute, so the factor AjA_j can be moved to act first, and it sends the function to zero.

    ProofTechnau, March 25
    The idea: Commute A_j to the right end, so it acts first.
    A=(∏i≠jAi)AjA = \big(\prod_{i \ne j}A_i\big)A_j.
    The constant-coefficient operators commute (previous theorem).
    So y∈ker⁡Ay \in \ker A. ■\blacksquare
    If Ajy=0A_jy = 0, then Ay=(∏i≠jAi)(Ajy)=(∏i≠jAi)0=0Ay = \big(\prod_{i \ne j}A_i\big)(A_jy) = \big(\prod_{i \ne j}A_i\big)0 = 0, since linear maps send 00 to 00.
    Theorem T Technau, April 13 and 29 (Proposition 9.18); Apostol 6.8; homework 10 #1

    Basis of solutions from the roots

    Let A=PA(D)A = P_A(D) be a constant-coefficient operator of order nn with PA(t)=∏i=1k(t−ri)miP_A(t) = \prod_{i=1}^{k}(t - r_i)^{m_i}, the rir_i distinct complex numbers. Then the functions tjeritt^je^{r_it} with 1≤i≤k1 \le i \le k and 0≤j<mi0 \le j < m_i form a basis of ker⁡A\ker A (over C\mathbb C).

    In one lineIf PA(t)=∏i=1k(t−ri)miP_A(t) = \prod_{i=1}^{k}(t - r_i)^{m_i} with distinct roots rir_i, the n=∑min = \sum m_i functions tjeritt^je^{r_it} (i≤ki \le k, 0≤j<mi0 \le j < m_i) are a basis of the solutions of Ay=0Ay = 0.

    Why it is trueEach is killed by its own factor of AA, they are independent by a degree-lowering argument, and there are nn of them in an nn-dimensional space.

    ProofTechnau, April 13; homework 10 #1
    The idea: Membership by the factor fact, independence by induction on the number of distinct roots, applying the factor that kills one root's block and keeps the others alive, and then the count n.
    Every function tjeritt^je^{r_it} (j<mij < m_i) is in ker⁡A\ker A.
    A=∏(D−ri)miA = \prod(D - r_i)^{m_i} by the multiplication theorem; each factor (D−ri)mi(D - r_i)^{m_i} kills tjeritt^je^{r_it} for j<mij < m_i (basis for repeated roots), and a factor's kernel lies in the kernel of the product.
    Independence: we show the claim for k=1k = 1 first.
    Claim to prove by induction on kk: if r1,…,rkr_1, \dots, r_k are distinct and p1,…,pkp_1, \dots, p_k are polynomials with ∑ipi(t)erit=0\sum_ip_i(t)e^{r_it} = 0 on an interval, then all pi=0p_i = 0. For k=1k = 1: p1er1t=0p_1e^{r_1t} = 0 gives p1(t)=0p_1(t) = 0 at infinitely many tt, so p1=0p_1 = 0.
    For the step from k−1k - 1 to kk, apply the operator (D−r1)N(D - r_1)^N to ∑i≤kpierit=0\sum_{i \le k}p_ie^{r_it} = 0. The first term disappears.
    Let N=deg⁡p1+1N = \deg p_1 + 1 (take N=1N = 1 if p1=0p_1 = 0). Apply (D−r1)N(D - r_1)^N. The shifting fact: it kills p1er1tp_1e^{r_1t} because p1p_1 has degree less than NN.
    Each other term becomes qieritq_ie^{r_it} where qiq_i is pip_i transformed NN times by p↦p′+(ri−r1)pp \mapsto p' + (r_i - r_1)p: qi=0q_i = 0 if and only if pi=0p_i = 0.
    For i≠1i \ne 1: (D−r1)(perit)=(p′+(ri−r1)p)erit(D - r_1)(pe^{r_it}) = (p' + (r_i - r_1)p)e^{r_it} (product rule). The polynomial p′+(ri−r1)pp' + (r_i - r_1)p has the same degree as pp and leading coefficient multiplied by ri−r1≠0r_i - r_1 \ne 0. So the map p↦p′+(ri−r1)pp \mapsto p' + (r_i - r_1)p sends a non-zero polynomial to a non-zero one.
    So ∑i≥2qierit=0\sum_{i \ge 2}q_ie^{r_it} = 0 forces all qi=0q_i = 0, hence p2=⋯=pk=0p_2 = \dots = p_k = 0.
    Induction hypothesis for the k−1k - 1 distinct roots r2,…,rkr_2, \dots, r_k.
    So all pi=0p_i = 0.
    Only the first term remains: p1er1t=0p_1e^{r_1t} = 0, so p1=0p_1 = 0 by the case k=1k = 1.
    So the nn functions are independent.
    A combination ∑cijtjerit\sum c_{ij}t^je^{r_it} is of the form ∑pierit\sum p_ie^{r_it} with pi=∑jcijtjp_i = \sum_jc_{ij}t^j. All pi=0p_i = 0 means all cij=0c_{ij} = 0.
    They are a basis. ■\blacksquare
    The dimension theorem: dim⁡ker⁡A=n\dim\ker A = n over C\mathbb C, and nn independent vectors are a basis.
    Worked example MATH 376 homework 8 #2; worksheet 20 #4
    Distinct real roots: solve y''' − 6y'' + 11y' − 6y = 0 with y(0) = 2, y'(0) = 1, y''(0) = 0.

    Solution.

    1. Write the characteristic polynomial. P(t)=t3−6t2+11t−6P(t) = t^3 - 6t^2 + 11t - 6. Replace y(k)y^{(k)} by tkt^k.
    2. Factor it. P(t)=(t−1)(t−2)(t−3)P(t) = (t - 1)(t - 2)(t - 3). Try t=1t = 1: 1−6+11−6=01 - 6 + 11 - 6 = 0, so t−1t - 1 is a factor; divide to get t2−5t+6t^2 - 5t + 6.
    3. Write the general solution. y=C1et+C2e2t+C3e3ty = C_1e^t + C_2e^{2t} + C_3e^{3t}. Three distinct roots give three exponentials, and order 33 means three is the dimension.
    4. Differentiate for the starting numbers. y′=C1et+2C2e2t+3C3e3ty' = C_1e^t + 2C_2e^{2t} + 3C_3e^{3t} and y′′=C1et+4C2e2t+9C3e3ty'' = C_1e^t + 4C_2e^{2t} + 9C_3e^{3t}. Order 33 has three conditions, on yy, y′y', y′′y''.
    5. Solve for the constants. At t=0t = 0: C1+C2+C3=2C_1 + C_2 + C_3 = 2, C1+2C2+3C3=1C_1 + 2C_2 + 3C_3 = 1, C1+4C2+9C3=0C_1 + 4C_2 + 9C_3 = 0. Subtracting consecutive equations gives C2+2C3=−1C_2 + 2C_3 = -1 and 2C2+6C3=−12C_2 + 6C_3 = -1, so C3=12C_3 = \frac12, C2=−2C_2 = -2, C1=72C_1 = \frac72. Elimination as in 2.6.
    6. Check. y′(0)=72−4+32=1y'(0) = \frac72 - 4 + \frac32 = 1 and y′′(0)=72−8+92=0y''(0) = \frac72 - 8 + \frac92 = 0. Test the two conditions you did not use to write the answer.

    Answer. y=72et−2e2t+12e3ty = \frac72e^t - 2e^{2t} + \frac12e^{3t}.

    Your answerThe solution of y′′−3y′+2y=0y'' - 3y' + 2y = 0 with y(0)=2y(0) = 2, y′(0)=1y'(0) = 1 is y=3et−e2ty = 3e^t - e^{2t} (worksheet 28 #1). What is y(1)y(1)? (Four decimals.)
    Worked example MATH 376 worksheet 20 #5, #6, #7, #9; homework 9 #1
    Repeated roots: solve y'' − 2y' + y = 0 with y(0) = 3, y'(0) = 1; solve x'' + 6x' + 9x = 0 with x(0) = 2, x'(0) = 1; give the general solution of y''' − 3y'' + 3y' − y = 0, of y''' − y'' − y' + y = 0 and of y⁗ − 2y''' − y'' + 2y' = 0.

    Solution.

    1. First equation. P(t)=t2−2t+1=(t−1)2P(t) = t^2 - 2t + 1 = (t - 1)^2: a double root 11, so y=(c1+c2t)ety = (c_1 + c_2t)e^t. A double root contributes ete^t and tette^t.
    2. Use the starting values. y(0)=c1=3y(0) = c_1 = 3. And y′=c2et+(c1+c2t)ety' = c_2e^t + (c_1 + c_2t)e^t, so y′(0)=c2+c1=1y'(0) = c_2 + c_1 = 1 and c2=−2c_2 = -2. Differentiate with the product rule BEFORE substituting t=0t = 0.
    3. Second equation. t2+6t+9=(t+3)2t^2 + 6t + 9 = (t + 3)^2, so x=(C1+C2t)e−3tx = (C_1 + C_2t)e^{-3t}. And x′=(C2−3C1−3C2t)e−3tx' = (C_2 - 3C_1 - 3C_2t)e^{-3t}, so x(0)=C1=2x(0) = C_1 = 2 and x′(0)=C2−3C1=1x'(0) = C_2 - 3C_1 = 1 gives C2=7C_2 = 7. The same two moves.
    4. Triple root. t3−3t2+3t−1=(t−1)3t^3 - 3t^2 + 3t - 1 = (t - 1)^3, so y=(c1+c2t+c3t2)ety = (c_1 + c_2t + c_3t^2)e^t. A root of multiplicity mm gives the powers 1,t,…,tm−11, t, \dots, t^{m-1}.
    5. Mixed. t3−t2−t+1=t2(t−1)−(t−1)=(t−1)(t2−1)=(t−1)2(t+1)t^3 - t^2 - t + 1 = t^2(t - 1) - (t - 1) = (t - 1)(t^2 - 1) = (t - 1)^2(t + 1), so y=c1et+c2tet+c3e−ty = c_1e^t + c_2te^t + c_3e^{-t}. Factor by grouping, then read multiplicities.
    6. Fourth order. t4−2t3−t2+2t=t(t−2)(t−1)(t+1)t^4 - 2t^3 - t^2 + 2t = t(t - 2)(t - 1)(t + 1), so y=c1+c2e2t+c3et+c4e−ty = c_1 + c_2e^{2t} + c_3e^t + c_4e^{-t}. The root 00 gives e0t=1e^{0t} = 1, a constant.

    Answer. y=(3−2t)ety = (3 - 2t)e^t; x=(2+7t)e−3tx = (2 + 7t)e^{-3t}; (c1+c2t+c3t2)et(c_1 + c_2t + c_3t^2)e^t; c1et+c2tet+c3e−tc_1e^t + c_2te^t + c_3e^{-t}; c1+c2e2t+c3et+c4e−tc_1 + c_2e^{2t} + c_3e^t + c_4e^{-t}.

    Your answerThe solution of x′′+6x′+9x=0x'' + 6x' + 9x = 0 with x(0)=2x(0) = 2, x′(0)=1x'(0) = 1 is x=(2+7t)e−3tx = (2 + 7t)e^{-3t}. What is x(1)x(1)? (Three decimals.)

    Complex roots, and real solutions

    The roots of a real polynomial can be complex, but the equation is real and we want real solutions. Euler’s formula does it.

    Theorem T Technau, April 6 (Lemma 7.20); Apostol 6.8; worksheets 21 and 23

    Real solutions from complex roots

    Let AA have real coefficients and let r=α+iβr = \alpha + i\beta, β≠0\beta \ne 0, be a root of PAP_A of multiplicity mm. Then rˉ=α−iβ\bar r = \alpha - i\beta is a root of the same multiplicity, and in a basis of ker⁡A\ker A the 2m2m functions tjertt^je^{rt}, tjerˉtt^je^{\bar rt} may be replaced by the 2m2m real functions uj=tjeαtcos⁡βtu_j = t^je^{\alpha t}\cos\beta t and vj=tjeαtsin⁡βtv_j = t^je^{\alpha t}\sin\beta t, j=0,…,m−1j = 0, \dots, m-1. Hence the real solutions of Ay=0Ay = 0 are the real linear combinations of the real basis functions made this way from all roots.

    In one lineIf AA has real coefficients and r=α+iβr = \alpha + i\beta (β≠0\beta \ne 0) is a root of multiplicity mm, then so is rˉ\bar r, and the 2m2m functions tjeαtcos⁡βtt^je^{\alpha t}\cos\beta t and tjeαtsin⁡βtt^je^{\alpha t}\sin\beta t (0≤j<m0 \le j < m) replace the 2m2m complex solutions tjertt^je^{rt} and tjerˉtt^je^{\bar rt}.

    Why it is trueThe real and imaginary parts of tjertt^je^{rt} are real solutions, and the change from {f,fˉ}\{f, \bar f\} to {Re⁡f,Im⁡f}\{\operatorname{Re} f, \operatorname{Im} f\} is an invertible linear change of basis.

    ProofTechnau, April 6 and 10; Apostol 6.8
    The idea: Conjugating the factorization shows the multiplicities agree. Then u and v are linear combinations of f and its conjugate with an invertible 2x2 coefficient matrix, so the new family has the same span, is still independent and consists of real functions.
    rˉ\bar r is a root of the same multiplicity mm.
    Write PA(t)=(t−r)mQ(t)P_A(t) = (t - r)^mQ(t) with Q(r)≠0Q(r) \ne 0. Since the coefficients of PAP_A are real, conjugating all coefficients does not change PAP_A (this is the argument of 0.6): PA(t)=(t−rˉ)mQˉ(t)P_A(t) = (t - \bar r)^m\bar Q(t) with Qˉ(rˉ)=Q(r)‾≠0\bar Q(\bar r) = \overline{Q(r)} \ne 0.
    Put fj=tjertf_j = t^je^{rt} and fˉj=tjerˉt\bar f_j = t^je^{\bar rt}.
    Euler's formula (0.6): f=tjert=tjeαt(cos⁡βt+isin⁡βt)f = t^je^{rt} = t^je^{\alpha t}(\cos\beta t + i\sin\beta t) and fˉ=tjeαt(cos⁡βt−isin⁡βt)\bar f = t^je^{\alpha t}(\cos\beta t - i\sin\beta t).
    uj=12(fj+fˉj)u_j = \tfrac12(f_j + \bar f_j) and vj=12i(fj−fˉj)v_j = \tfrac1{2i}(f_j - \bar f_j).
    Add and subtract the two lines above.
    So uj,vju_j, v_j are real solutions of Ay=0Ay = 0.
    Combinations of solutions are solutions. And uj,vju_j, v_j are real-valued.
    Replacing each pair fj,fˉjf_j, \bar f_j by uj,vju_j, v_j in the basis of the previous theorem gives another basis of the complex solution space.
    The matrix [121212i−12i]\begin{bmatrix}\frac12 & \frac12\\ \frac1{2i} & -\frac1{2i}\end{bmatrix} has determinant −12i≠0-\frac1{2i} \ne 0, so fj,fˉjf_j, \bar f_j are combinations of uj,vju_j, v_j as well. Replacing basis vectors by an invertible combination gives a basis (over C\mathbb C).
    So every real solution is a real combination of the real basis functions. ■\blacksquare
    If yy is a real solution, y=∑ckφky = \sum c_k\varphi_k with complex ckc_k and real φk\varphi_k. Taking real parts, y=∑(Re⁡ck)φky = \sum(\operatorname{Re}c_k)\varphi_k, because yy and φk\varphi_k are real.
    Worked example MATH 376 worksheet 21 #4, #5, #6; worksheet 23 #2
    Complex roots: solve y'' + 4y' + 13y = 0 with y(0) = 2, y'(0) = 0; give the general solutions of y'' − 2y' + 5y = 0 and y''' − y'' + y' − y = 0.

    Solution.

    1. Characteristic roots. t2+4t+13=0t^2 + 4t + 13 = 0 gives t=−4±16−522=−2±3it = \frac{-4 \pm \sqrt{16 - 52}}{2} = -2 \pm 3i. The quadratic formula; the discriminant −36-36 is negative.
    2. Real general solution. With α=−2\alpha = -2, β=3\beta = 3: y=e−2t(C1cos⁡3t+C2sin⁡3t)y = e^{-2t}(C_1\cos3t + C_2\sin3t). Real part of the root in the exponent, imaginary part as the frequency.
    3. First starting value. y(0)=C1=2y(0) = C_1 = 2. At t=0t = 0, e0=1e^0 = 1, cos⁡0=1\cos0 = 1, sin⁡0=0\sin0 = 0.
    4. Second starting value. y′=e−2t[−2(C1cos⁡3t+C2sin⁡3t)−3C1sin⁡3t+3C2cos⁡3t]y' = e^{-2t}\big[-2(C_1\cos3t + C_2\sin3t) - 3C_1\sin3t + 3C_2\cos3t\big], so y′(0)=−2C1+3C2=0y'(0) = -2C_1 + 3C_2 = 0 and C2=43C_2 = \frac43. Product rule, then substitute t=0t = 0.
    5. The second equation. t2−2t+5=0t^2 - 2t + 5 = 0 gives 1±2i1 \pm 2i, so y=et(C1cos⁡2t+C2sin⁡2t)y = e^t(C_1\cos2t + C_2\sin2t). α=1\alpha = 1, β=2\beta = 2.
    6. The third equation. t3−t2+t−1=(t−1)(t2+1)t^3 - t^2 + t - 1 = (t - 1)(t^2 + 1), with roots 11 and ±i\pm i, so y=C1et+C2cos⁡t+C3sin⁡ty = C_1e^t + C_2\cos t + C_3\sin t. The root pair ±i\pm i has α=0\alpha = 0, so there is no exponential factor. This is the fix for the extra ete^t in your 376 final 6(b).

    Answer. y=e−2t(2cos⁡3t+43sin⁡3t)y = e^{-2t}\big(2\cos3t + \frac43\sin3t\big); et(C1cos⁡2t+C2sin⁡2t)e^t(C_1\cos2t + C_2\sin2t); C1et+C2cos⁡t+C3sin⁡tC_1e^t + C_2\cos t + C_3\sin t.

    Your answerThe solution of y′′+4y′+13y=0y'' + 4y' + 13y = 0, y(0)=2y(0) = 2, y′(0)=0y'(0) = 0 is y=e−2t(2cos⁡3t+43sin⁡3t)y = e^{-2t}(2\cos3t + \frac43\sin3t). What is y(π/3)y(\pi/3)? (Three decimals.)
    Your answerA suspended mass obeys y′′+2y′+26y=0y'' + 2y' + 26y = 0. What is the angular frequency of its oscillation, in rad/s?
    Worked example Technau, April 6 (Lemma 7.20); new numbers
    A repeated complex pair: find a real basis for y⁗ + 2y'' + y = 0.

    Solution.

    1. Factor the characteristic polynomial. t4+2t2+1=(t2+1)2=(t−i)2(t+i)2t^4 + 2t^2 + 1 = (t^2 + 1)^2 = (t - i)^2(t + i)^2. The roots ±i\pm i each have multiplicity m=2m = 2.
    2. List the complex basis. eit,teit,e−it,te−ite^{it}, te^{it}, e^{-it}, te^{-it}. Each double root contributes erte^{rt} and tertte^{rt}.
    3. Pass to real functions. With α=0\alpha = 0 and β=1\beta = 1: cos⁡t\cos t, sin⁡t\sin t, tcos⁡tt\cos t, tsin⁡tt\sin t. Real and imaginary parts of eite^{it} and teitte^{it}.
    4. Check one. (tsin⁡t)′=sin⁡t+tcos⁡t(t\sin t)' = \sin t + t\cos t, (tsin⁡t)′′=2cos⁡t−tsin⁡t(t\sin t)'' = 2\cos t - t\sin t, (tsin⁡t)′′′=−3sin⁡t−tcos⁡t(t\sin t)''' = -3\sin t - t\cos t, (tsin⁡t)(4)=−4cos⁡t+tsin⁡t(t\sin t)^{(4)} = -4\cos t + t\sin t. Then y(4)+2y′′+y=(−4cos⁡t+tsin⁡t)+(4cos⁡t−2tsin⁡t)+tsin⁡t=0y^{(4)} + 2y'' + y = (-4\cos t + t\sin t) + (4\cos t - 2t\sin t) + t\sin t = 0. The terms in tsin⁡tt\sin t and in cos⁡t\cos t cancel separately.

    Answer. y=(c1+c2t)cos⁡t+(c3+c4t)sin⁡ty = (c_1 + c_2t)\cos t + (c_3 + c_4t)\sin t. The factor tt makes the oscillation grow without bound, although no root has positive real part.

    Quick checkThe characteristic polynomial of a real constant-coefficient equation is (r2−2r+5)2(r^2 - 2r + 5)^2. Which list is a basis of the real solutions?
    Why· The recipe for a constant-coefficient equation

    For y(n)+an−1y(n−1)+⋯+a0y=0y^{(n)} + a_{n-1}y^{(n-1)} + \dots + a_0y = 0 with real numbers aka_k: (1) Write P(t)=tn+an−1tn−1+⋯+a0P(t) = t^n + a_{n-1}t^{n-1} + \dots + a_0 and factor it completely, over the complex numbers. (2) For each real root rr of multiplicity mm write ert,tert,…,tm−1erte^{rt}, te^{rt}, \dots, t^{m-1}e^{rt}. (3) For each pair α±iβ\alpha \pm i\beta of multiplicity mm write tjeαtcos⁡βtt^je^{\alpha t}\cos\beta t and tjeαtsin⁡βtt^je^{\alpha t}\sin\beta t, 0≤j<m0 \le j < m. (4) You should now have exactly nn functions. (5) The general solution is an arbitrary real combination. (6) With starting values, differentiate with the product rule, put t=t0t = t_0, and solve the n×nn \times n linear system. Step (4) is the check that catches a missing power of tt.

    The first-order case and the companion matrix

    Worked example MATH 376 homework 9 #4; new
    First order with a variable coefficient: solve y' − P(t)y = 0 for continuous P, and solve y' + y = t with y(0) = 0.

    Solution.

    1. Choose an integrating factor. Let F(t)=∫0tP(s) dsF(t) = \int_0^tP(s)\,ds, so F′=PF' = P (the continuity of PP makes this work). Multiply the equation by e−Fe^{-F}. We want the left side to become a derivative of a product.
    2. Recognise the derivative. (e−Fy)′=e−Fy′−Pe−Fy=e−F(y′−Py)=0\big(e^{-F}y\big)' = e^{-F}y' - Pe^{-F}y = e^{-F}(y' - Py) = 0. Product and chain rule; the equation says the bracket is 00.
    3. Integrate. e−Fy=Ce^{-F}y = C, so y=CeF(t)=Cexp⁡∫0tPy = Ce^{F(t)} = C\exp\int_0^tP. A function with zero derivative on an interval is constant (1.4). One constant, as the dimension theorem predicts for order 11.
    4. The second problem. For y′+y=ty' + y = t take F=tF = t and multiply by ete^t: (ety)′=tet(e^ty)' = te^t. Integrate by parts: ety=(t−1)et+Ce^ty = (t - 1)e^t + C. ∫tet dt=tet−et\int te^t\,dt = te^t - e^t; differentiate to confirm.
    5. Fix the constant. y(0)=−1+C=0y(0) = -1 + C = 0, so C=1C = 1 and y=t−1+e−ty = t - 1 + e^{-t}. Starting value.
    6. Check. y′+y=(1−e−t)+(t−1+e−t)=ty' + y = (1 - e^{-t}) + (t - 1 + e^{-t}) = t and y(0)=−1+1=0y(0) = -1 + 1 = 0. Equation and starting value both checked.

    Answer. y=Cexp⁡∫0tPy = C\exp\int_0^tP; and y=t−1+e−ty = t - 1 + e^{-t}.

    Worked example Technau, March 23 and April 15; new
    The companion matrix of y''' − 6y'' + 11y' − 6y = 0, and its eigenvalues.

    Solution.

    1. Write the companion matrix. Here a0=−6a_0 = -6, a1=11a_1 = 11, a2=−6a_2 = -6, so the last row is (6,−11,6)(6, -11, 6): A=[0100016−116]A = \begin{bmatrix}0 & 1 & 0\\0 & 0 & 1\\6 & -11 & 6\end{bmatrix}. The last row is (−a0,−a1,−a2)(-a_0, -a_1, -a_2).
    2. Compute det⁡(λI−A)\det(\lambda I - A). Expanding gives λ3−6λ2+11λ−6\lambda^3 - 6\lambda^2 + 11\lambda - 6. The same polynomial as the characteristic polynomial of the equation.
    3. Factor it. (λ−1)(λ−2)(λ−3)(\lambda - 1)(\lambda - 2)(\lambda - 3), so the eigenvalues of AA are 1,2,31, 2, 3. The roots of the equation’s polynomial. The solutions et,e2t,e3te^{t}, e^{2t}, e^{3t} of the scalar equation are the first coordinates of eλtve^{\lambda t}v for the eigenvectors vv of AA.

    Answer. The characteristic polynomial of the companion matrix equals the characteristic polynomial of the equation. In general the two coincide (stretch problem below), and 7.4 uses the matrix side to solve systems.

    Where it is used

    Used inside maths· Inside maths: the same structure everywhere linear algebra goes

    The pattern “particular solution plus null space, and the null space has a basis” is the pattern of Ax=bAx = b (2.6), of integrals ("+ C+\,C" is the null space of DD: the constants, 2.3), and of linear recurrences such as Fk+2=Fk+1+FkF_{k+2} = F_{k+1} + F_k (the characteristic equation λ2=λ+1\lambda^2 = \lambda + 1 gives Binet’s formula, 2.8). The recurrence is the discrete twin of the ODE y′′=y′+yy'' = y' + y and has the same proof structure. Solving partial differential equations (the heat equation, the vibrating string) starts by separating variables, which produces exactly the equations of this chapter, and then uses eigenfunctions of D2D^2 as a basis, which is the idea of Fourier series.

    Used in the real world· Mechanical engineering: a car's suspension

    One wheel of a car carries a mass m=400m = 400 kg on a spring of stiffness k=16000k = 16000 N/m and a shock absorber with damping c=1500c = 1500 N s/m. The displacement yy from rest satisfies my′′+cy′+ky=0my'' + cy' + ky = 0, that is y′′+3.75y′+40y=0y'' + 3.75y' + 40y = 0. The roots are r=−1.875±6.040ir = -1.875 \pm 6.040i. So the car bounces at angular frequency 6.046.04 rad/s (period 1.041.04 s, about once a second) and each bounce is smaller than the one before by the factor e−1.875×1.04=0.142e^{-1.875 \times 1.04} = 0.142. After three bounces the amplitude is 0.1423=0.00290.142^3 = 0.0029 of the first. Compare the critical value ccrit=2km=5060c_{\text{crit}} = 2\sqrt{km} = 5060 N s/m. With this cc the damping ratio is c/ccrit=0.30c/c_{\text{crit}} = 0.30, a deliberately underdamped setting: at critical damping (the double root, the second preset of the picture) the car would sink back without bouncing, which designers avoid because the ride becomes stiff. Make cc very large and you reach the overdamped case, where the car returns slowly. All three cases are the three cases of the characteristic polynomial.

    Used in the real world· Electrical engineering: an RLC circuit

    A coil of inductance L=0.1L = 0.1 H, a resistor R=20 ΩR = 20\ \Omega and a capacitor C=100 μC = 100\ \muF are in series. The charge qq on the capacitor satisfies Lq′′+Rq′+q/C=0Lq'' + Rq' + q/C = 0, that is q′′+200q′+105q=0q'' + 200q' + 10^5q = 0. The characteristic roots are −100±300i-100 \pm 300i (check: (−100)2−105=−90000(-100)^2 - 10^5 = -90000, whose square root is 300i300i). So q(t)=e−100t(Acos⁡300t+Bsin⁡300t)q(t) = e^{-100t}(A\cos300t + B\sin300t). The charge rings at 300/(2π)=47.7300/(2\pi) = 47.7 Hz and dies away with a time constant 1100=10\frac{1}{100} = 10 ms: after 2323 ms the amplitude has fallen to a tenth. The roles are the mass-spring ones with L↔mL \leftrightarrow m, R↔cR \leftrightarrow c, 1/C↔k1/C \leftrightarrow k. This is why one equation serves for suspensions, circuits, and the vibrations of buildings.

    Traps

    Watch out· Only the homogeneous solution set is a vector space

    On the 376 final (6(b)) you answered True to “the solutions of y′′+y=cos⁡ty'' + y = \cos t form a vector space of dimension 2”. The solution set of an inhomogeneous equation misses the zero function and is not closed under addition. It is a translate yp+ker⁡Ly_p + \ker L. The dimension 22 belongs to ker⁡L\ker L, the associated homogeneous equation. Always look at the right-hand side first.

    Watch out· Purely imaginary roots have no exponential factor

    On the same question you wrote the solution with roots ±i\pm i as et(cos⁡t+12sin⁡t)e^t(\cos t + \frac12\sin t). A root α±iβ\alpha \pm i\beta gives eαtcos⁡βte^{\alpha t}\cos\beta t and eαtsin⁡βte^{\alpha t}\sin\beta t. For ±i\pm i, α=0\alpha = 0, so the solutions are cos⁡t\cos t and sin⁡t\sin t with no exponential. Also, the two functions are separate basis elements, not one function with a fixed ratio 12\frac12 between its parts.

    Watch out· A repeated root gives t times the exponential, not the exponential twice

    For roots 1,1,21, 1, 2 the solution c1et+c2et+c3e2tc_1e^t + c_2e^t + c_3e^{2t} has only two independent functions. The count of functions must equal the order. Worksheet 20 #8(b) tests exactly this.

    Watch out· Differentiate with the product rule before you substitute the starting values

    For y=(c1+c2t)ety = (c_1 + c_2t)e^t the derivative is c2et+(c1+c2t)etc_2e^t + (c_1 + c_2t)e^t, not c2etc_2e^t. Substituting t=0t = 0 in y′y' then needs both terms. It is also easy to write y′(0)=c2y'(0) = c_2 only. The check that catches it is to substitute your answer back.

    Watch out· Operators commute only for constant coefficients

    (D−2)(D−3)=(D−3)(D−2)(D - 2)(D - 3) = (D - 3)(D - 2) because the coefficients are numbers. With a variable coefficient, D(ty)=y+ty′D(ty) = y + ty' but t Dy=ty′t\,Dy = ty', so D∘t≠t∘DD \circ t \ne t \circ D. The factoring method and the ‘kernel of a factor’ fact are only for constant coefficients.

    Watch out· The order, not the number of distinct roots, is the dimension

    A cubic with roots 1,1,11, 1, 1 has three solutions et,tet,t2ete^t, te^t, t^2e^t even though there is one root. The multiplicities add to nn.

    Problems

    checkMATH 376 worksheet 20 #1 to #4

    Find the characteristic roots and the general solution of: (a) y′′−3y′+2y=0y'' - 3y' + 2y = 0; (b) y′′+y′−6y=0y'' + y' - 6y = 0; (c) y′′−4y′+4y=0y'' - 4y' + 4y = 0; (d) y′′−7y′+10y=0y'' - 7y' + 10y = 0.

    Solution

    (a) t2−3t+2=(t−1)(t−2)t^2 - 3t + 2 = (t - 1)(t - 2): y=c1et+c2e2ty = c_1e^t + c_2e^{2t}. (b) t2+t−6=(t+3)(t−2)t^2 + t - 6 = (t + 3)(t - 2): y=c1e−3t+c2e2ty = c_1e^{-3t} + c_2e^{2t}. (c) (t−2)2(t - 2)^2: y=(c1+c2t)e2ty = (c_1 + c_2t)e^{2t}. (d) (t−5)(t−2)(t - 5)(t - 2): y=C1e5t+C2e2ty = C_1e^{5t} + C_2e^{2t}.

    checkMATH 376 worksheet 19 #5; final 6(b)

    For each, say whether the solution set is a vector space and, if yes, its dimension: (a) y′′−y=0y'' - y = 0; (b) y′′−y=ety'' - y = e^t; (c) y′′′+y′=0y''' + y' = 0; (d) y′=y2y' = y^2.

    Solution

    (a) Yes, dimension 22. (b) No: the zero function is not a solution (0≠et0 \ne e^t); it is yp+y_p + (a 22-dimensional space), with yp=t2ety_p = \frac t2e^t. (c) Yes, dimension 33. (d) No. The equation is not linear. y=11−ty = \frac{1}{1-t} is a solution but 2y=21−t2y = \frac{2}{1-t} is not: (2y)′=2(1−t)2(2y)' = \frac{2}{(1-t)^2} while (2y)2=4(1−t)2(2y)^2 = \frac{4}{(1-t)^2}. So the set is not closed under scaling.

    checkMATH 376 worksheet 20 #8

    True or false: (a) If 22 is a double root, c1e2x+c2xe2xc_1e^{2x} + c_2xe^{2x} is the general solution of the associated part. (b) If the roots are 1,1,21, 1, 2 the general solution is c1ex+c2ex+c3e2xc_1e^x + c_2e^x + c_3e^{2x}. (c) If the roots are −1,2,3-1, 2, 3 the general solution is c1e−x+c2e2x+c3e3xc_1e^{-x} + c_2e^{2x} + c_3e^{3x}.

    Solution

    (a) True. (b) False: it is c1ex+c2xex+c3e2xc_1e^x + c_2xe^x + c_3e^{2x}. (c) True.

    checkMATH 376 worksheet 21 #9

    The solutions y1,y2y_1, y_2 of a second-order homogeneous equation satisfy y1(0)=1y_1(0) = 1, y1′(0)=2y_1'(0) = 2, y2(0)=0y_2(0) = 0, y2′(0)=3y_2'(0) = 3. Are they a basis of the solution space?

    Solution

    Yes. Their starting vectors (1,2)(1, 2) and (0,3)(0, 3) are independent in R2\mathbb R^2 (determinant 3≠03 \ne 0); μ\mu is an isomorphism, so y1,y2y_1, y_2 are independent, and two independent solutions of an order-22 equation form a basis.

    useMATH 376 worksheet 28 #1; homework 8 #3

    Solve y′′−3y′+2y=0y'' - 3y' + 2y = 0 with y(0)=2y(0) = 2, y′(0)=1y'(0) = 1; and give the general solution of y′′−7y′+10y=0y'' - 7y' + 10y = 0.

    Solution

    y=c1et+c2e2ty = c_1e^t + c_2e^{2t}; c1+c2=2c_1 + c_2 = 2, c1+2c2=1c_1 + 2c_2 = 1 gives c2=−1c_2 = -1, c1=3c_1 = 3. So y=3et−e2ty = 3e^t - e^{2t}. Check: y′=3et−2e2ty' = 3e^t - 2e^{2t}, y′(0)=1y'(0) = 1. Second: y=C1e5t+C2e2ty = C_1e^{5t} + C_2e^{2t}.

    useMATH 376 worksheet 21 #4; worksheet 28 #2

    Solve y′′−2y′+5y=0y'' - 2y' + 5y = 0 with y(0)=1y(0) = 1, y′(0)=0y'(0) = 0. Then give the general solution of y′′−4y′+13y=0y'' - 4y' + 13y = 0.

    Solution

    Roots 1±2i1 \pm 2i. y=et(C1cos⁡2t+C2sin⁡2t)y = e^t(C_1\cos2t + C_2\sin2t). y(0)=C1=1y(0) = C_1 = 1. y′=et[(C1+2C2)cos⁡2t+(C2−2C1)sin⁡2t]y' = e^t[(C_1 + 2C_2)\cos2t + (C_2 - 2C_1)\sin2t], so y′(0)=C1+2C2=0y'(0) = C_1 + 2C_2 = 0 gives C2=−12C_2 = -\frac12. y=et(cos⁡2t−12sin⁡2t)y = e^t(\cos2t - \frac12\sin2t). For the second equation, t2−4t+13=0t^2 - 4t + 13 = 0 gives t=2±3it = 2 \pm 3i, so y=e2t(C1cos⁡3t+C2sin⁡3t)y = e^{2t}(C_1\cos3t + C_2\sin3t) (worksheet 23 #2).

    use

    Find a real basis for the solutions of y(5)−2y(4)+y′′′=0y^{(5)} - 2y^{(4)} + y''' = 0 and for y′′′+4y′=0y''' + 4y' = 0.

    Solution

    First: t5−2t4+t3=t3(t−1)2t^5 - 2t^4 + t^3 = t^3(t - 1)^2: roots 00 (triple) and 11 (double). Basis: 1,t,t2,et,tet1, t, t^2, e^t, te^t. Second: t3+4t=t(t2+4)t^3 + 4t = t(t^2 + 4): roots 0,±2i0, \pm2i. Basis: 1,cos⁡2t,sin⁡2t1, \cos2t, \sin2t.

    use

    A mass-spring system obeys 2x′′+12x′+50x=02x'' + 12x' + 50x = 0. Find the roots, the frequency of the oscillation and the time for the amplitude to halve.

    Solution

    Divide by 22: x′′+6x′+25x=0x'' + 6x' + 25x = 0, roots −3±4i-3 \pm 4i. Angular frequency 44 rad/s (0.640.64 Hz). The amplitude is multiplied by e−3te^{-3t}; halving when e−3t=12e^{-3t} = \frac12, t=ln⁡23=0.231t = \frac{\ln2}{3} = 0.231 s.

    proveMATH 376 worksheet 19 #4

    Prove that S={y∈C2(I):y′′+p(t)y′+q(t)y=0}S = \{y \in C^2(I) : y'' + p(t)y' + q(t)y = 0\} is a vector space.

    Solution

    Plan. Show SS is a subspace of C2(I)C^2(I): contains zero, closed under sum and scalar multiple.

    0′′+p0′+q0=00'' + p0' + q0 = 0, so 0∈S0 \in S. If y1,y2∈Sy_1, y_2 \in S then (y1+y2)′′+p(y1+y2)′+q(y1+y2)=(y1′′+py1′+qy1)+(y2′′+py2′+qy2)=0(y_1 + y_2)'' + p(y_1 + y_2)' + q(y_1 + y_2) = (y_1'' + py_1' + qy_1) + (y_2'' + py_2' + qy_2) = 0. If y∈Sy \in S and cc is a number, (cy)′′+p(cy)′+q(cy)=c(y′′+py′+qy)=0(cy)'' + p(cy)' + q(cy) = c(y'' + py' + qy) = 0. By the subspace test, SS is a subspace of the vector space C2(I)C^2(I), hence a vector space. ■\blacksquare

    proveMATH 376 worksheet 19 #5

    Let g≢0g \not\equiv 0 be continuous. Prove that Sg={y:y′′+p(t)y′+q(t)y=g(t)}S_g = \{y : y'' + p(t)y' + q(t)y = g(t)\} is not a vector space, and describe it using a particular solution.

    Solution

    Plan. Show the zero function is missing; then write Sg=yp+SS_g = y_p + S.

    L[0]=0≠gL[0] = 0 \ne g since g≢0g \not\equiv 0, so 0∉Sg0 \notin S_g and SgS_g is not a subspace. (Also if y1,y2∈Sgy_1, y_2 \in S_g then L[y1+y2]=2g≠gL[y_1 + y_2] = 2g \ne g.) If yp∈Sgy_p \in S_g, then for y∈Sgy \in S_g we have L[y−yp]=g−g=0L[y - y_p] = g - g = 0, so y−yp∈Sy - y_p \in S; conversely L[yp+h]=gL[y_p + h] = g for h∈Sh \in S. Hence Sg=yp+SS_g = y_p + S. ■\blacksquare

    proveMATH 376 homework 8 #1(3)

    Prove that et1t,…,etrte^{t_1t}, \dots, e^{t_rt} are linearly independent on any interval when t1,…,trt_1, \dots, t_r are distinct. (Use the independence theorem of this chapter.)

    Solution

    Plan. Apply the key claim of the proof of the basis theorem with all polynomials constant.

    Suppose ∑jcjetjt=0\sum_jc_je^{t_jt} = 0 on an interval. This is the case of the claim ”∑pjerjt=0\sum p_je^{r_jt} = 0 with rjr_j distinct implies all pj=0p_j = 0” in which each pj=cjp_j = c_j is a constant polynomial. The claim, proved by induction on the number of exponentials, says cj=0c_j = 0 for all jj. (Alternative: the Wronskian of the functions is e(t1+⋯+tr)te^{(t_1 + \dots + t_r)t} times a Vandermonde determinant ∏i<j(tj−ti)≠0\prod_{i<j}(t_j - t_i) \ne 0; see 7.3.) ■\blacksquare

    prove

    Prove that AA and BB commute when A=D2+3D+2A = D^2 + 3D + 2 and B=D−5B = D - 5 by computing ABAB and BABA on a function ff.

    Solution

    Plan. Expand both orders and compare.

    ABf=(D2+3D+2)(f′−5f)=f′′′−5f′′+3f′′−15f′+2f′−10f=f′′′−2f′′−13f′−10fABf = (D^2 + 3D + 2)(f' - 5f) = f''' - 5f'' + 3f'' - 15f' + 2f' - 10f = f''' - 2f'' - 13f' - 10f. BAf=(D−5)(f′′+3f′+2f)=f′′′+3f′′+2f′−5f′′−15f′−10f=f′′′−2f′′−13f′−10fBAf = (D - 5)(f'' + 3f' + 2f) = f''' + 3f'' + 2f' - 5f'' - 15f' - 10f = f''' - 2f'' - 13f' - 10f. They agree, and both equal (D3−2D2−13D−10)f(D^3 - 2D^2 - 13D - 10)f, with characteristic polynomial (t2+3t+2)(t−5)=t3−2t2−13t−10(t^2 + 3t + 2)(t - 5) = t^3 - 2t^2 - 13t - 10. ■\blacksquare

    proveTechnau, March 25

    Prove that the characteristic polynomial det⁡(λI−A)\det(\lambda I - A) of the companion matrix of y′′+by′+cy=0y'' + by' + cy = 0 equals λ2+bλ+c\lambda^2 + b\lambda + c. Then explain why erte^{rt} is a solution of the equation exactly when rr is an eigenvalue of the companion matrix.

    Solution

    Plan. Compute the 2×22\times 2 determinant; then find the eigenvectors.

    A=[01−c−b]A = \begin{bmatrix}0 & 1\\-c & -b\end{bmatrix}, so λI−A=[λ−1cλ+b]\lambda I - A = \begin{bmatrix}\lambda & -1\\c & \lambda + b\end{bmatrix} and det⁡=λ(λ+b)+c=λ2+bλ+c\det = \lambda(\lambda + b) + c = \lambda^2 + b\lambda + c. For the second part: if erte^{rt} solves the equation then x=(y,y′)=ert(1,r)x = (y, y')= e^{rt}(1, r) solves x′=Axx' = Ax, so A(1,r)=r(1,r)A(1, r) = r(1, r), and rr is an eigenvalue with eigenvector (1,r)(1, r). Conversely, if Av=rvAv = rv then ertve^{rt}v solves x′=Axx' = Ax and its first coordinate solves the equation. (In general the characteristic polynomial of the companion matrix of an order-nn equation is λn+an−1λn−1+⋯+a0\lambda^n + a_{n-1}\lambda^{n-1} + \dots + a_0, by induction on nn expanding along the first column.) ■\blacksquare

    proveMATH 376 practice final 4(b); new generalisation

    Show that for r∈Rr \in \mathbb R and j∈{0,…,m−1}j \in \{0, \dots, m-1\}, tjertt^je^{rt} solves (D−r)my=0(D - r)^my = 0, and that these mm functions are independent.

    Solution

    Plan. Use the shifting fact; then divide by the exponential.

    (D−r)(pert)=p′ert(D - r)(pe^{rt}) = p'e^{rt} for a polynomial pp (product rule). Applying this j+1j + 1 times to p=tjp = t^j gives dj+1dtj+1tj⋅ert=0\frac{d^{j+1}}{dt^{j+1}}t^j \cdot e^{rt} = 0, and m≥j+1m \ge j + 1 gives (D−r)mtjert=0(D - r)^mt^je^{rt} = 0. If ∑j<mcjtjert=0\sum_{j<m}c_jt^je^{rt} = 0, divide by ert>0e^{rt} > 0: the polynomial ∑cjtj\sum c_jt^j has infinitely many roots, so it is zero and all cj=0c_j = 0. ■\blacksquare

    stretch

    The equation y′′+p(t)y′+q(t)y=0y'' + p(t)y' + q(t)y = 0 on (0,∞)(0, \infty) with p=1/tp = 1/t, q=−1/t2q = -1/t^2 is t2y′′+ty′−y=0t^2y'' + ty' - y = 0 (an Euler equation), whose coefficients are not constant. Try y=tsy = t^s and find two independent solutions. Why does the dimension theorem say that is all of them?

    Solution

    y=tsy = t^s gives t2s(s−1)ts−2+t sts−1−ts=(s2−1)tst^2s(s-1)t^{s-2} + t\,st^{s-1} - t^s = (s^2 - 1)t^s, which is zero when s=±1s = \pm1. So tt and t−1t^{-1} are solutions. They are independent (neither is a multiple of the other) on (0,∞)(0, \infty). The coefficients p=1/tp = 1/t and q=−1/t2q = -1/t^2 are continuous on (0,∞)(0, \infty), so the solution space has dimension 22 by the dimension theorem; two independent solutions are a basis, and the general solution is c1t+c2/tc_1t + c_2/t. (Rewrite with t=est = e^s to reduce an Euler equation to constant coefficients.)

    stretch

    Show that every real solution of y′′+ω2y=0y'' + \omega^2y = 0 (ω>0\omega > 0) can be written y=Acos⁡(ωt−φ)y = A\cos(\omega t - \varphi) with A≥0A \ge 0, and find AA and φ\varphi for y=3cos⁡2t+4sin⁡2ty = 3\cos2t + 4\sin2t.

    Solution

    The general real solution is y=c1cos⁡ωt+c2sin⁡ωty = c_1\cos\omega t + c_2\sin\omega t. Put A=c12+c22A = \sqrt{c_1^2 + c_2^2} and choose φ\varphi with cos⁡φ=c1/A\cos\varphi = c_1/A, sin⁡φ=c2/A\sin\varphi = c_2/A. Then Acos⁡(ωt−φ)=Acos⁡ωtcos⁡φ+Asin⁡ωtsin⁡φ=c1cos⁡ωt+c2sin⁡ωtA\cos(\omega t - \varphi) = A\cos\omega t\cos\varphi + A\sin\omega t\sin\varphi = c_1\cos\omega t + c_2\sin\omega t. For 3cos⁡2t+4sin⁡2t3\cos2t + 4\sin2t: A=5A = 5, cos⁡φ=35\cos\varphi = \frac35, sin⁡φ=45\sin\varphi = \frac45, so φ=arctan⁡43=0.9273\varphi = \arctan\frac43 = 0.9273 radians. So y=5cos⁡(2t−0.9273)y = 5\cos(2t - 0.9273): an oscillation of amplitude 55 and frequency 22 rad/s. ■\blacksquare

    Summary

    • A linear differential equation of order nn is Ly=RLy = R with L=Dn+an−1Dn−1+⋯+a0L = D^n + a_{n-1}D^{n-1} + \dots + a_0. LL is a linear map, so the solutions of the homogeneous equation Ly=0Ly = 0 are its null space, a vector space.
    • The solutions of an inhomogeneous equation (R≠0R \ne 0) are NOT a vector space: they are yp+ker⁡Ly_p + \ker L, a translate of the null space. Subtract two solutions and the right-hand sides cancel.
    • The map “solution ↦(y(t0),…,y(n−1)(t0))\mapsto (y(t_0), \dots, y^{(n-1)}(t_0))” is linear, onto by existence and one-to-one by uniqueness (7.1, via the companion matrix). So dim⁡ker⁡L=n\dim\ker L = n, and the general solution is y=yp+c1b1+⋯+cnbny = y_p + c_1b_1 + \dots + c_nb_n.
    • With constant coefficients L=P(D)L = P(D) and operators multiply like polynomials, so they commute. A real root rr of multiplicity mm gives ert,tert,…,tm−1erte^{rt}, te^{rt}, \dots, t^{m-1}e^{rt}, because (D−r)(D - r) lowers the degree of a polynomial factor by one.
    • A complex pair α±iβ\alpha \pm i\beta gives tjeαtcos⁡βtt^je^{\alpha t}\cos\beta t and tjeαtsin⁡βtt^je^{\alpha t}\sin\beta t (real and imaginary parts of tjertt^je^{rt}). No exponential factor appears when α=0\alpha = 0.
    • The recipe: factor PP, list nn functions, take an arbitrary real combination; with starting values, differentiate with the product rule and solve an n×nn \times n system. The count of functions must equal the order.
    • Your 376 traps: look at the right-hand side before talking about vector spaces (final 6(b)), the root pair ±i\pm i has no exponential, and a repeated root needs the factor tt.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    7.1 Existence and uniqueness for differential equations
    2.2 Span, independence, basis, dimension
    2.3 Linear maps, null space, range, rank–nullity
    2.4 Inverses, one-to-one maps, isomorphism
    2.8 Eigenvalues and eigenvectors
    0.6 Complex numbers and polynomials, done properly
    Leads to
    7.3 The Wronskian, variation of parameters and undetermined coefficients
    7.4 Systems of equations and the matrix exponential
    Same idea elsewhere
    MATH 376: Lectures of March 23 to April 13 prove exactly this: Lemma 7.5 (difference of two solutions), Theorem 7.7 (dimension n), Proposition 7.13 and Lemma 7.20 (bases from roots). Worksheets 19 and 20 and homework 8 to 10 are the practice. The final's 6(b) asked whether the solutions of y'' + y = cos t form a vector space.
    MATH 340 / 521: The structure 'particular solution plus null space' is the same as for Ax = b in linear algebra, and is the template for linear partial differential equations (the heat and wave equations).
    Physics / EE: A mass on a spring with friction, a swinging pendulum at small angles and an RLC circuit all obey y'' + by' + cy = 0. The sign of the real part of the roots decides whether the motion dies out.