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=b turned out to be one particular solution plus the null space of A. In 2.8 the function eλt turned out to be an eigenvector of the derivative. This chapter puts those two facts together. An equation such as y′′+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 2), and the full solution of y′′+3y′+2y=et is one solution plus anything in that null space. For constant coefficients the null space is found by solving a polynomial.
Quick checkIf 2+3i is a root of the real polynomial t2−4t+13, what is the other root?
Roots of a real polynomial that are not real come in conjugate pairs. The roots of t2−4t+13 are 2±3i: they add to 4 and multiply to 13.Review: conjugate pairs of roots
Quick checkA linear map μ:V→R3 is one-to-one and onto. What is dimV?
A one-to-one onto linear map is an isomorphism, and isomorphic spaces have the same dimension. This is exactly how the dimension of the solution space of an ODE will be found.Review: isomorphic spaces have the same dimension
Quick checkLet D be differentiation. What is the function e3t for D?
D(e3t)=3e3t: the output is the input times the number 3. That is the definition of an eigenvector, with eigenvalue 3.Review: eigenvectors
The picture
Everything below is about the equation y′′+by′+cy=0 (a mass on a spring with friction: c is the spring, b the friction), with the solution that starts at y(0)=1 and rests, y′(0)=0. The left panel shows the two roots of r2+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 2.
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=ert, which turns the differential equation into an ordinary polynomial equation in r; each linear factor of that polynomial gives a solution. The same paper deals with repeated factors, which is where tert 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 n 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. For such an equation, if y1 and y2 are solutions of the version with 0 on the right, so is y1+y2 and so is 5y1. 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 n is pinned down by n starting numbers (y(t0),…,y(n−1)(t0)), and that every choice of those numbers occurs. Therefore “solution ↦ its starting numbers” is a one-to-one, onto, linear map to Rn, and the solution space has dimension n. Writing the general solution means finding n independent solutions. With constant coefficients that is easy: ert is a solution exactly when r 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 J be an interval and let a0,…,an−1 and R be continuous functions on J. The equation
y(n)+an−1(t)y(n−1)+⋯+a1(t)y′+a0(t)y=R(t)
is a linear differential equation of order n. The functions ak are its coefficients and R is the right-hand side (forcing term). (Technau writes the sum as ∑piy(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), in which the unknown y and its derivatives each appear to the first power, multiplied only by functions of t.
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)=0 for all t∈J, and inhomogeneous otherwise. For an inhomogeneous equation Ly=R, the equation Ly=0 is its associated homogeneous equation.
In one lineA linear equation whose right-hand side is zero everywhere: Ly=0. If R 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 ak on J, define L:Cn(J)→C(J) by
(Ly)(t)=y(n)(t)+an−1(t)y(n−1)(t)+⋯+a0(t)y(t).
Here Cn(J) is the vector space of functions with n continuous derivatives on J and C(J) the space of continuous functions (2.1). The operator D is Df=f′, so L=Dn+an−1Dn−1+⋯+a0. The equation Ly=R asks: which functions does L send to R?
In one lineThe map L that sends a function y to the function y(n)+an−1y(n−1)+⋯+a0y.
Why it existsIt turns the equation Ly=R into the same shape as Ax=b: a linear map and a target.
Fact TTechnau, March 23 (Definition 7.6)
A linear differential operator is a linear map
For f,g∈Cn(J) and a number c: L(f+g)=Lf+Lg and L(cf)=cLf. Hence L is a linear map (2.3) and the set of solutions of Ly=0 is kerL=N(L), a subspace of Cn(J).
In one lineL(f+g)=Lf+Lg and L(cf)=cLf, so the solutions of Ly=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 k-th derivative is linear: Dk(f+g)=Dkf+Dkg and Dk(cf)=cDkf.
(f+g)(k)=f(k)+g(k) and (cf)(k)=cf(k) (rules for derivatives, 1.4).
So f↦akDkf is linear.
Multiplying by the fixed function ak(t) distributes: ak(f+g)=akf+akg and ak(cf)=cakf.
So L=Dn+an−1Dn−1+⋯+a0 is linear.
A sum of linear maps is linear.
So kerL is a subspace. ■
The null space of a linear map is a subspace (2.3). The solutions of Ly=0 are by definition the functions sent to 0.
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 TTechnau, March 23 (Lemma 7.5); Apostol 6.10; worksheet 19 #4 and #5
Homogeneous and inhomogeneous solution sets
Let L be a linear differential operator. (a) kerL is a vector space. (b) If Lyp=R, then y is a solution of Ly=R if and only if y−yp∈kerL. So the solution set is {yp+h:h∈kerL}. (c) If R=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=0 form a vector space. If Ly=R and R is not the zero function, the solutions do NOT form a vector space: they are yp+kerL, where yp is any one solution.
Why it is trueSubtract two solutions of Ly=R and the right-hand sides cancel. And y=0 would need 0=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) kerL is a subspace of Cn(J), hence a vector space.
The previous theorem.
(b, ⇒) If Ly=R and Lyp=R, then y−yp∈kerL.
Linearity: L(y−yp)=Ly−Lyp=R−R=0.
(b, ⇐) If h∈kerL then yp+h solves Ly=R.
Linearity: L(yp+h)=Lyp+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 2R. ■
L(0)=0=R. Also if Ly1=Ly2=R then L(y1+y2)=2R=R.
This is the structure you already know from 2.6: the solutions of Ax=b are xp+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.
Identify the type. The equation y′′+y=cost has right-hand side cost, 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.
Test the zero function.0′′+0=0, and 0=cost. So y=0 is not a solution. Every vector space contains the zero vector, so a set missing it cannot be a vector space.
Find the actual solution set. Try yp=2tsint. Then yp′=21sint+2tcost and yp′′=cost−2tsint, so yp′′+yp=cost. The homogeneous equation y′′+y=0 has the solutions acost+bsint (two independent solutions, and the dimension is 2 by the theorem below). So the solution set is {2tsint+acost+bsint}. By the theorem above: one particular solution plus the whole null space.
Describe it. It is a translate of a 2-dimensional plane of functions, not a plane through the origin. The sum of two solutions is a solution of y′′+y=2cost. 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 2.) On the 376 final, a student answered True, solved y′′+y=0 and never used the right-hand side cost. They also wrote the solution as et(cost+21sint) with a spurious factor et: the roots are ±i with real part 0, so there is no exponential at all.
Quick checkWhich of these is a vector space under the usual addition and scaling of functions?
Only the homogeneous equation with no side condition. The second misses the zero function (it gives 4⋅0=0=t). The third also misses it, since y(0)=1 rules out y=0, and a sum of two such solutions has y(0)=2.Review: the subspace test
Existence, uniqueness, and the dimension theorem
To use 7.1 for an equation of order n 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=R and x=(y,y′,…,y(n−1)) we have xk′=xk+1 for k<n and xn′=−a0x1−a1x2−⋯−an−1xn+R. In matrix form x′=A(t)x+g(t) with
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) the last row is −a0,…,−an−1, as above.)
In one lineThe matrix A(t) with ones directly above the diagonal and the last row (−a0,−a1,…,−an−1), for which x=(y,y′,…,y(n−1)) satisfies x′=A(t)x+(0,…,0,R).
Why it existsIt is what remains of the equation when you remember each derivative as a separate coordinate.
Theorem TTechnau, March 23 (Theorem 7.6); Apostol 6.5
Existence and uniqueness for linear equations of order n
Let a0,…,an−1,R be continuous on an interval J, t0∈J and c0,…,cn−1∈R. Then there is exactly one function y∈Cn(J) with Ly=R on J and y(k)(t0)=ck for k=0,…,n−1.
In one lineFor continuous coefficients and right-hand side on J, any t0∈J and any numbers c0,…,cn−1, the equation Ly=R has exactly one solution on all of J with y(k)(t0)=ck for k<n.
Why it is trueOrder n is a first-order system for x=(y,…,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 y is equivalent to the IVP x′=A(t)x+g(t), x(t0)=(c0,…,cn−1).
The reduction fact of 7.1 (the first coordinate of a solution x of the system is a solution y, with xk+1=y(k)).
A and g are continuous on J.
The entries of A and g are 0, 1, −ak and R: continuous on J by hypothesis.
So the system has exactly one solution on J.
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 J. ■
Solutions correspond one to one under y=x1. The first coordinate has n continuous derivatives: x1(k)=xk+1 for k<n, and xn′=−∑akxk+1+R is continuous.
Theorem TTechnau, March 25 (Theorem 7.7); Apostol 6.6
Dimension of the solution space of a linear ODE
Let L=Dn+an−1Dn−1+⋯+a0 with continuous coefficients on J. Then dimkerL=n. Consequently any n linearly independent solutions b1,…,bn form a basis, and every solution is c1b1+⋯+cnbn for exactly one choice of numbers c1,…,cn.
In one lineThe solution space kerL of a homogeneous linear equation of order n has dimension exactly n.
Why it is true'Solution to its starting numbers' is a linear map to Rn 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)). Every point of the plane R2 is the starting point of exactly one solution. The point (1,0) is the solution drawn on the right of the picture. The point (0,1) is a different solution, (sint) for y′′+y=0. The map “solution ↦ starting point” matches the space of solutions with the plane. Since the plane has dimension 2, 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 μ:kerL→Rn by μ(y)=(y(t0),y′(t0),…,y(n−1)(t0)).
Fix t0∈J ahead of time. kerL is a vector space (previous theorem), so the map goes between two vector spaces.
μ is linear.
Evaluation of a function, and of each derivative, at t0 respects sums and scalar multiples.
μ is onto.
Given (c0,…,cn−1), the existence part of the existence-uniqueness theorem (with R=0) gives a solution y with μ(y)=(c0,…,cn−1).
μ is one-to-one.
If μ(y)=O then y and the zero function both solve Ly=0 with all starting numbers 0. The uniqueness part says y=0. So the null space of μ is {0}, and a linear map with trivial null space is one-to-one (2.3).
So dimkerL=dimRn=n.
A one-to-one onto linear map is an isomorphism, and isomorphic spaces have equal dimension (2.4).
The statement about n independent solutions follows. ■
In an n-dimensional space n 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.
We want a map from the solution space to Rn, the space of starting numbers.
Evaluating a function or its derivative at one point respects sums and scalar multiples.
The map has to be defined before we can say anything about it.
This is the existence half of the existence-uniqueness theorem, with right-hand side 0.
This is a statement about μ, so μ comes first.
The zero function is also a solution with starting numbers O, and uniqueness says there is only one.
Again a statement about μ. It uses the other half of the theorem.
A one-to-one onto linear map is an isomorphism, and isomorphic spaces have the same dimension.
You need both onto and one-to-one before you can call μ an isomorphism.
Quick checkIn the proof of the dimension theorem, which hypothesis of the existence-uniqueness theorem makes the map μ one-to-one?
One-to-one means two different solutions never share starting numbers. That is uniqueness. Existence is what makes μ onto. Continuity of the coefficients is needed for both, but it is not the part that separates them.
Corollary TTechnau, March 25 (Corollary 7.8)
General solution of a linear equation
Let b1,…,bn be a basis of kerL and Lyp=R. Then the solutions of Ly=R on J are exactly the functions y=yp+c1b1+⋯+cnbn, with c1,…,cn arbitrary numbers. Given starting numbers (c0′,…,cn−1′) at t0 the constants ci are determined: they solve a linear system ∑icibi(k)(t0)=ck′−yp(k)(t0) whose matrix is invertible. (That matrix is the Wronskian matrix of 7.3.)
In one lineIf b1,…,bn is a basis of kerL and yp solves Ly=R, then every solution is y=yp+c1b1+⋯+cnbn.
Why it is trueCombine the two structure theorems: the solution set is yp plus kerL, and kerL is spanned by a basis.
Definition T
General solution
The general solution of Ly=R is the expression y=yp+c1b1+⋯+cnbn above. For the homogeneous equation (R=0) it is y=c1b1+⋯+cnbn. A particular solution is any one function yp with Lyp=R; it does not depend on any constants.
In one lineThe formula y=yp+c1b1+⋯+cnbn with arbitrary constants, which lists every solution of Ly=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=R is any one function yp that satisfies the equation. Finding one is the job of 7.3 (variation of parameters, undetermined coefficients).
In one lineAny single function yp with Lyp=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.
Count the dimension. The equation y′′+y=0 is homogeneous of order 2, so its solution space has dimension 2. The dimension theorem.
Check that cost and sint are solutions.(cost)′′=−cost and (sint)′′=−sint, so both satisfy y′′+y=0. Direct substitution.
Check that they are independent. Their starting numbers at t0=0 are μ(cos)=(1,0) and μ(sin)=(0,1). The map μ is an isomorphism, so independent starting vectors mean independent solutions.
Conclude. Two independent solutions in a 2-dimensional space form a basis, so every solution is c1cost+c2sint. “Any solution” is what the dimension theorem gives. Linearity alone gives only that each combination IS a solution.
A basis test from starting values (worksheet 21 #9). Suppose y1,y2 solve a second-order homogeneous equation with y1(0)=1, y1′(0)=2, y2(0)=0, y2′(0)=3. Then μ(y1)=(1,2) and μ(y2)=(0,3) are independent in R2 (the determinant is 1⋅3−0⋅2=3=0), so y1,y2 are independent solutions and a basis. The determinant 3 is the Wronskian at 0, which 7.3 makes into a general test.
Answer.y=c1cost+c2sint is the general solution; and y1,y2 in part 5 are a basis.
Quick checkTwo solutions of a second-order homogeneous equation have y1(0)=1, y1′(0)=2 and y2(0)=2, y2′(0)=4. Could y1,y2 be a basis of the solution space?
The starting vectors (1,2) and (2,4) are parallel. The function 2y1 is also a solution with starting vector (2,4), so by uniqueness y2=2y1. Two solutions form a basis only if they are independent, and 'different' does not mean independent.
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+a0 with real or complex numbers ak, acting on infinitely differentiable functions C∞(J) (the solutions of Ay=0 turn out to be infinitely differentiable automatically, because y(n) is a combination of lower derivatives). The polynomial PA(t)=tn+an−1tn−1+⋯+a0 is its characteristic polynomial; we write A=PA(D). Do not confuse this with the characteristic polynomial det(λ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+⋯+a0 with numbers ak as coefficients. It equals PA(D) for the polynomial PA(t)=tn+an−1tn−1+⋯+a0.
Why it existsWriting A as a polynomial in D turns the differential equation Ay=0 into algebra with polynomials.
Definition T
Characteristic polynomial of an operator
For a constant-coefficient operator A=PA(D) the characteristic polynomial of the operator is PA. The equation PA(r)=0 is the characteristic equation of Ay=0. The key computation: A(ert)=PA(r)ert, because Dkert=rkert.
In one lineFor A=Dn+an−1Dn−1+⋯+a0, the polynomial PA(t)=tn+an−1tn−1+⋯+a0. Its roots decide the solutions.
Why it existsTrying y=ert in Ay=0 gives PA(r)ert=0, so the solutions of the form ert are exactly the roots.
Theorem TTechnau, March 25; Apostol 6.7
Constant-coefficient operators multiply like polynomials
For constant-coefficient operators A and B acting on C∞(J): the composition AB (apply B first) is the constant-coefficient operator with characteristic polynomial PAPB. Hence AB=BA.
In one lineIf A=PA(D) and B=PB(D) then AB=(PAPB)(D). In particular AB=BA.
Why it is trueComposing two operators multiplies out like composing polynomials in D, because DiDj=Di+j and the coefficients are numbers that pass through D.
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).
Write A=∑iaiDi and B=∑jbjDj (with an=bm=1). Composition of linear maps distributes over sums (2.4).
=∑i,jaibjDi+j.
A number bj passes through Di: Di(bjf)=bjDif. And DiDj=Di+j, since differentiating j times and then i times is differentiating i+j times.
=(PAPB)(D).
This is the sum we get on multiplying the polynomials PA(t)=∑aiti and PB(t)=∑bjtj, with t replaced by D.
So AB=BA. ■
Polynomials commute: PAPB=PBPA. So AB and BA have the same characteristic polynomial and are the same operator. (A different thing for variable coefficients: D∘t=t∘D.)
Worked example Technau, March 25 (Example 7.10)
Factor the operator A = D² − 5D + 6.
Solution.
Write the characteristic polynomial.PA(t)=t2−5t+6. Replace Dk by tk.
Factor it.t2−5t+6=(t−2)(t−3), since 2+3=5 and 2⋅3=6. Roots of a polynomial give its factors (0.6).
Translate back to operators.A=(D−2)(D−3). By the theorem, multiplication of polynomials in D is composition of operators.
Check on a function.(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).
Fact TApostol 6.7; Euler's formula of 0.6
Derivative of a complex exponential
Define ert=eαt(cosβt+isinβt) for r=α+iβ and real t (Euler’s formula). Then (ert)′=rert.
In one lineFor a complex number r=α+iβ, ert=eαt(cosβt+isinβt) satisfies D(ert)=rert.
Why it is trueDifferentiate the real and imaginary parts and use i⋅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).
Product rule on each of the real and imaginary parts, with (eαt)′=αeαt, (cosβt)′=−βsinβt and (sinβt)′=βcosβt.
The second bracket equals iβ(cosβt+isinβt).
iβ(cosβt+isinβt)=iβcosβt−βsinβt, since i2=−1.
So (ert)′=(α+iβ)eαt(cosβt+isinβt)=rert. ■
Factor out the common part.
So for every complex number r, D(ert)=rert, and ert is an eigenfunction of D with eigenvalue r. 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 n). We use them, and return to real functions at the end.
Fact TTechnau, March 27 (Proposition 7.13); Apostol 6.8
Shifting an exponential
For a polynomial p(t) and a complex number r: (D−r)(p(t)ert)=p′(t)ert. Consequently (D−r)k(tjert)=j(j−1)⋯(j−k+1)tj−kert for k≤j and (D−r)j+1(tjert)=0.
In one lineFor a polynomial p and a number r: (D−r)(p(t)ert)=p′(t)ert.
Why it is trueThe product rule gives p′ert+prert, and subtracting rpert cancels the second term. So D−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+prert.
Product rule, and D(ert)=rert from the previous fact.
(D−r)(pert)=p′ert+rpert−rpert=p′ert.
Subtract r times the function.
So (D−r)k(tjert)=(dtkdktj)ert=j(j−1)⋯(j−k+1)tj−kert.
Apply the formula k times to p=tj: each application differentiates the polynomial once, and dtdti=iti−1.
For k=j+1 the result is 0. ■
After j differentiations tj becomes the constant j!; one more gives 0.
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.
Compute one application.(D−r)(tjert)=jtj−1ert+rtjert−rtjert=jtj−1ert. Product rule; the two rtjert terms cancel.
State the pattern.(D−r)kbj=j(j−1)⋯(j−k+1)tj−kert for 0≤k≤j. Induction on k: the case k=1 is step 1, and applying step 1 to tj−kert multiplies by j−k and lowers the power by one.
Reach zero. At k=j we get j!ert, and one more application gives (D−r)(j!ert)=0. So (D−r)j+1bj=0. ert has derivative rert, so (D−r)ert=0.
Use the size of j. For j≤99 we have j+1≤100, and applying (D−r) more times to 0 still gives 0. So (D−r)100bj=0. The equation is of order 100 and each power tj with j<100 is killed by it.
Answer. All of ert,tert,…,t99ert solve (D−r)100y=0. (By the dimension theorem the solution space has dimension 100, so these 100 functions, once shown independent, are a basis.)
Theorem TTechnau, March 27 (Proposition 7.13); Apostol 6.8; worksheet 20
Basis for repeated roots
Let r be a complex number and m≥1. The functions bj(t)=tjert, j=0,1,…,m−1, are a basis of ker(D−r)m.
In one lineThe m functions ert,tert,…,tm−1ert are a basis of the solutions of (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 m 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 bj lies in ker(D−r)m.
The shifting fact: (D−r)j+1bj=0, and j+1≤m.
Suppose ∑j<mcjtjert=0 on J. Then ∑j<mcjtj=0 for all t∈J.
Divide by ert, which is never zero.
So all cj=0: the bj are independent.
A non-zero polynomial of degree less than m has fewer than m roots (0.6), and J contains infinitely many points.
So they are a basis. ■
(D−r)m is a constant-coefficient operator of order m, so its kernel has dimension m (dimension theorem), and m independent vectors in an m-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.
(D−r)(p(t)ert)=p′(t)ert for every polynomial p.
(D−r)j+1(tjert)=0, so tjert solves (D−r)my=0 whenever j<m.
If ∑j<mcjtjert=0 then ∑cjtj=0 for infinitely many t, so all cj=0.
So the m functions are independent solutions of an equation of order m, hence a basis.
Quick checkThe characteristic roots of a third-order equation are 1,1,2. Which is the general solution?
A double root r=1 gives the two solutions et and tet. Writing et twice (as in the second option) gives only two independent functions et,e2t, a plane inside a 3-dimensional space. The third option attaches the extra t to the wrong root. This is worksheet 20 #8(b).
Fact TTechnau, March 25 (Proposition 7.11)
Kernel of a factor lies in the kernel of the product
If A=A1⋯Ak with each Ai a constant-coefficient operator, then every solution of Ajy=0 is a solution of Ay=0.
In one lineIf A=A1A2⋯Ak are constant-coefficient operators, then kerAj⊆kerA for every j.
Why it is trueThe operators commute, so the factor Aj 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)Aj.
The constant-coefficient operators commute (previous theorem).
So y∈kerA. ■
If Ajy=0, then Ay=(∏i=jAi)(Ajy)=(∏i=jAi)0=0, since linear maps send 0 to 0.
Theorem TTechnau, April 13 and 29 (Proposition 9.18); Apostol 6.8; homework 10 #1
Basis of solutions from the roots
Let A=PA(D) be a constant-coefficient operator of order n with PA(t)=∏i=1k(t−ri)mi, the ri distinct complex numbers. Then the functions tjerit with 1≤i≤k and 0≤j<mi form a basis of kerA (over C).
In one lineIf PA(t)=∏i=1k(t−ri)mi with distinct roots ri, the n=∑mi functions tjerit (i≤k, 0≤j<mi) are a basis of the solutions of Ay=0.
Why it is trueEach is killed by its own factor of A, they are independent by a degree-lowering argument, and there are n of them in an n-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 tjerit (j<mi) is in kerA.
A=∏(D−ri)mi by the multiplication theorem; each factor (D−ri)mi kills tjerit for j<mi (basis for repeated roots), and a factor's kernel lies in the kernel of the product.
Independence: we show the claim for k=1 first.
Claim to prove by induction on k: if r1,…,rk are distinct and p1,…,pk are polynomials with ∑ipi(t)erit=0 on an interval, then all pi=0. For k=1: p1er1t=0 gives p1(t)=0 at infinitely many t, so p1=0.
For the step from k−1 to k, apply the operator (D−r1)N to ∑i≤kpierit=0. The first term disappears.
Let N=degp1+1 (take N=1 if p1=0). Apply (D−r1)N. The shifting fact: it kills p1er1t because p1 has degree less than N.
Each other term becomes qierit where qi is pi transformed N times by p↦p′+(ri−r1)p: qi=0 if and only if pi=0.
For i=1: (D−r1)(perit)=(p′+(ri−r1)p)erit (product rule). The polynomial p′+(ri−r1)p has the same degree as p and leading coefficient multiplied by ri−r1=0. So the map p↦p′+(ri−r1)p sends a non-zero polynomial to a non-zero one.
So ∑i≥2qierit=0 forces all qi=0, hence p2=⋯=pk=0.
Induction hypothesis for the k−1 distinct roots r2,…,rk.
So all pi=0.
Only the first term remains: p1er1t=0, so p1=0 by the case k=1.
So the n functions are independent.
A combination ∑cijtjerit is of the form ∑pierit with pi=∑jcijtj. All pi=0 means all cij=0.
They are a basis. ■
The dimension theorem: dimkerA=n over C, and n independent vectors are a basis.
Worked example MATH 376 homework 8 #2; worksheet 20 #4
Write the characteristic polynomial.P(t)=t3−6t2+11t−6. Replace y(k) by tk.
Factor it.P(t)=(t−1)(t−2)(t−3). Try t=1: 1−6+11−6=0, so t−1 is a factor; divide to get t2−5t+6.
Write the general solution.y=C1et+C2e2t+C3e3t. Three distinct roots give three exponentials, and order 3 means three is the dimension.
Differentiate for the starting numbers.y′=C1et+2C2e2t+3C3e3t and y′′=C1et+4C2e2t+9C3e3t. Order 3 has three conditions, on y, y′, y′′.
Solve for the constants. At t=0: C1+C2+C3=2, C1+2C2+3C3=1, C1+4C2+9C3=0. Subtracting consecutive equations gives C2+2C3=−1 and 2C2+6C3=−1, so C3=21, C2=−2, C1=27. Elimination as in 2.6.
Check.y′(0)=27−4+23=1 and y′′(0)=27−8+29=0. Test the two conditions you did not use to write the answer.
Answer.y=27et−2e2t+21e3t.
Your answerThe solution of y′′−3y′+2y=0 with y(0)=2, y′(0)=1 is y=3et−e2t (worksheet 28 #1). What is y(1)? (Four decimals.)
Roots 1 and 2; solve c1+c2=2 and c1+2c2=1.
y(1)=3e−e2=8.15485−7.38906=0.76579. Check the starting values first: y(0)=3−1=2 and y′(0)=3−2=1.
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.
First equation.P(t)=t2−2t+1=(t−1)2: a double root 1, so y=(c1+c2t)et. A double root contributes et and tet.
Use the starting values.y(0)=c1=3. And y′=c2et+(c1+c2t)et, so y′(0)=c2+c1=1 and c2=−2. Differentiate with the product rule BEFORE substituting t=0.
Second equation.t2+6t+9=(t+3)2, so x=(C1+C2t)e−3t. And x′=(C2−3C1−3C2t)e−3t, so x(0)=C1=2 and x′(0)=C2−3C1=1 gives C2=7. The same two moves.
Triple root.t3−3t2+3t−1=(t−1)3, so y=(c1+c2t+c3t2)et. A root of multiplicity m gives the powers 1,t,…,tm−1.
Mixed.t3−t2−t+1=t2(t−1)−(t−1)=(t−1)(t2−1)=(t−1)2(t+1), so y=c1et+c2tet+c3e−t. Factor by grouping, then read multiplicities.
Fourth order.t4−2t3−t2+2t=t(t−2)(t−1)(t+1), so y=c1+c2e2t+c3et+c4e−t. The root 0 gives e0t=1, a constant.
Your answerThe solution of x′′+6x′+9x=0 with x(0)=2, x′(0)=1 is x=(2+7t)e−3t. What is x(1)? (Three decimals.)
Put t=1 in (2+7t)e−3t and use e−3≈0.0498.
x(1)=9e−3=9×0.049787=0.44808.
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 TTechnau, April 6 (Lemma 7.20); Apostol 6.8; worksheets 21 and 23
Real solutions from complex roots
Let A have real coefficients and let r=α+iβ, β=0, be a root of PA of multiplicity m. Then rˉ=α−iβ is a root of the same multiplicity, and in a basis of kerA the 2m functions tjert, tjerˉt may be replaced by the 2m real functions uj=tjeαtcosβt and vj=tjeαtsinβt, j=0,…,m−1. Hence the real solutions of Ay=0 are the real linear combinations of the real basis functions made this way from all roots.
In one lineIf A has real coefficients and r=α+iβ (β=0) is a root of multiplicity m, then so is rˉ, and the 2m functions tjeαtcosβt and tjeαtsinβt (0≤j<m) replace the 2m complex solutions tjert and tjerˉt.
Why it is trueThe real and imaginary parts of tjert are real solutions, and the change from {f,fˉ} to {Ref,Imf} 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ˉ is a root of the same multiplicity m.
Write PA(t)=(t−r)mQ(t) with Q(r)=0. Since the coefficients of PA are real, conjugating all coefficients does not change PA (this is the argument of 0.6): PA(t)=(t−rˉ)mQˉ(t) with Qˉ(rˉ)=Q(r)=0.
Put fj=tjert and fˉj=tjerˉt.
Euler's formula (0.6): f=tjert=tjeαt(cosβt+isinβt) and fˉ=tjeαt(cosβt−isinβt).
uj=21(fj+fˉj) and vj=2i1(fj−fˉj).
Add and subtract the two lines above.
So uj,vj are real solutions of Ay=0.
Combinations of solutions are solutions. And uj,vj are real-valued.
Replacing each pair fj,fˉj by uj,vj in the basis of the previous theorem gives another basis of the complex solution space.
The matrix [212i121−2i1] has determinant −2i1=0, so fj,fˉj are combinations of uj,vj as well. Replacing basis vectors by an invertible combination gives a basis (over C).
So every real solution is a real combination of the real basis functions. ■
If y is a real solution, y=∑ckφk with complex ck and real φk. Taking real parts, y=∑(Reck)φk, because y and φ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.
Characteristic roots.t2+4t+13=0 gives t=2−4±16−52=−2±3i. The quadratic formula; the discriminant −36 is negative.
Real general solution. With α=−2, β=3: y=e−2t(C1cos3t+C2sin3t). Real part of the root in the exponent, imaginary part as the frequency.
First starting value.y(0)=C1=2. At t=0, e0=1, cos0=1, sin0=0.
Second starting value.y′=e−2t[−2(C1cos3t+C2sin3t)−3C1sin3t+3C2cos3t], so y′(0)=−2C1+3C2=0 and C2=34. Product rule, then substitute t=0.
The second equation.t2−2t+5=0 gives 1±2i, so y=et(C1cos2t+C2sin2t). α=1, β=2.
The third equation.t3−t2+t−1=(t−1)(t2+1), with roots 1 and ±i, so y=C1et+C2cost+C3sint. The root pair ±i has α=0, so there is no exponential factor. This is the fix for the extra et in your 376 final 6(b).
Your answerThe solution of y′′+4y′+13y=0, y(0)=2, y′(0)=0 is y=e−2t(2cos3t+34sin3t). What is y(π/3)? (Three decimals.)
3t=π there, so the cosine is −1 and the sine is 0.
At t=3π we have 3t=π, so cos3t=−1 and sin3t=0. Hence y=−2e−2π/3=−2×0.12316=−0.2463.
Your answerA suspended mass obeys y′′+2y′+26y=0. What is the angular frequency of its oscillation, in rad/s?
Find the roots of t2+2t+26; the frequency is the size of the imaginary part.
The characteristic roots are 2−2±4−104=−1±5i. The imaginary part 5 is the angular frequency, and the real part −1 is the decay rate. The solutions are e−tcos5t and e−tsin5t.
Worked example Technau, April 6 (Lemma 7.20); new numbers
A repeated complex pair: find a real basis for y⁗ + 2y'' + y = 0.
Solution.
Factor the characteristic polynomial.t4+2t2+1=(t2+1)2=(t−i)2(t+i)2. The roots ±i each have multiplicity m=2.
List the complex basis.eit,teit,e−it,te−it. Each double root contributes ert and tert.
Pass to real functions. With α=0 and β=1: cost, sint, tcost, tsint. Real and imaginary parts of eit and teit.
Check one.(tsint)′=sint+tcost, (tsint)′′=2cost−tsint, (tsint)′′′=−3sint−tcost, (tsint)(4)=−4cost+tsint. Then y(4)+2y′′+y=(−4cost+tsint)+(4cost−2tsint)+tsint=0. The terms in tsint and in cost cancel separately.
Answer.y=(c1+c2t)cost+(c3+c4t)sint. The factor t 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. Which list is a basis of the real solutions?
r2−2r+5 has roots 1±2i (α=1, β=2), each of multiplicity 2. The rule gives tjeαtcosβt and tjeαtsinβt for j=0,1. Repeating a function gives a dependent list (the second option), and dropping et ignores α (the third).
Why· The recipe for a constant-coefficient equation
For y(n)+an−1y(n−1)+⋯+a0y=0 with real numbers ak: (1) Write P(t)=tn+an−1tn−1+⋯+a0 and factor it completely, over the complex numbers. (2) For each real root r of multiplicity m write ert,tert,…,tm−1ert. (3) For each pair α±iβ of multiplicity m write tjeαtcosβt and tjeαtsinβt, 0≤j<m. (4) You should now have exactly n functions. (5) The general solution is an arbitrary real combination. (6) With starting values, differentiate with the product rule, put t=t0, and solve the n×n linear system. Step (4) is the check that catches a missing power of t.
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.
Choose an integrating factor. Let F(t)=∫0tP(s)ds, so F′=P (the continuity of P makes this work). Multiply the equation by e−F. We want the left side to become a derivative of a product.
Recognise the derivative.(e−Fy)′=e−Fy′−Pe−Fy=e−F(y′−Py)=0. Product and chain rule; the equation says the bracket is 0.
Integrate.e−Fy=C, so y=CeF(t)=Cexp∫0tP. A function with zero derivative on an interval is constant (1.4). One constant, as the dimension theorem predicts for order 1.
The second problem. For y′+y=t take F=t and multiply by et: (ety)′=tet. Integrate by parts: ety=(t−1)et+C. ∫tetdt=tet−et; differentiate to confirm.
Fix the constant.y(0)=−1+C=0, so C=1 and y=t−1+e−t. Starting value.
Check.y′+y=(1−e−t)+(t−1+e−t)=t and y(0)=−1+1=0. Equation and starting value both checked.
Answer.y=Cexp∫0tP; and y=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.
Write the companion matrix. Here a0=−6, a1=11, a2=−6, so the last row is (6,−11,6): A=00610−11016. The last row is (−a0,−a1,−a2).
Compute det(λI−A). Expanding gives λ3−6λ2+11λ−6. The same polynomial as the characteristic polynomial of the equation.
Factor it.(λ−1)(λ−2)(λ−3), so the eigenvalues of A are 1,2,3. The roots of the equation’s polynomial. The solutions et,e2t,e3t of the scalar equation are the first coordinates of eλtv for the eigenvectors v of A.
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=b (2.6), of integrals ("+C" is the null space of D: the constants, 2.3), and of linear recurrences such as Fk+2=Fk+1+Fk (the characteristic equation λ2=λ+1 gives Binet’s formula, 2.8). The recurrence is the discrete twin of the ODE y′′=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 D2 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=400 kg on a spring of stiffness k=16000 N/m and a shock absorber with damping c=1500 N s/m. The displacement y from rest satisfies my′′+cy′+ky=0, that is y′′+3.75y′+40y=0. The roots are r=−1.875±6.040i. So the car bounces at angular frequency 6.04 rad/s (period 1.04 s, about once a second) and each bounce is smaller than the one before by the factor e−1.875×1.04=0.142. After three bounces the amplitude is 0.1423=0.0029 of the first. Compare the critical value ccrit=2km=5060 N s/m. With this c the damping ratio is c/ccrit=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 c 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.1 H, a resistor R=20Ω and a capacitor C=100μF are in series. The charge q on the capacitor satisfies Lq′′+Rq′+q/C=0, that is q′′+200q′+105q=0. The characteristic roots are −100±300i (check: (−100)2−105=−90000, whose square root is 300i). So q(t)=e−100t(Acos300t+Bsin300t). The charge rings at 300/(2π)=47.7 Hz and dies away with a time constant 1001=10 ms: after 23 ms the amplitude has fallen to a tenth. The roles are the mass-spring ones with L↔m, R↔c, 1/C↔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=cost 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+kerL. The dimension 2 belongs to kerL, 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 as et(cost+21sint). A root α±iβ gives eαtcosβt and eαtsinβt. For ±i, α=0, so the solutions are cost and sint with no exponential. Also, the two functions are separate basis elements, not one function with a fixed ratio 21 between its parts.
Watch out· A repeated root gives t times the exponential, not the exponential twice
For roots 1,1,2 the solution c1et+c2et+c3e2t 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)et the derivative is c2et+(c1+c2t)et, not c2et. Substituting t=0 in y′ then needs both terms. It is also easy to write y′(0)=c2 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) because the coefficients are numbers. With a variable coefficient, D(ty)=y+ty′ but tDy=ty′, so D∘t=t∘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,1 has three solutions et,tet,t2et even though there is one root. The multiplicities add to n.
Problems
checkMATH 376 worksheet 20 #1 to #4
Find the characteristic roots and the general solution of: (a) y′′−3y′+2y=0; (b) y′′+y′−6y=0; (c) y′′−4y′+4y=0; (d) y′′−7y′+10y=0.
For each, say whether the solution set is a vector space and, if yes, its dimension: (a) y′′−y=0; (b) y′′−y=et; (c) y′′′+y′=0; (d) y′=y2.
Solution
(a) Yes, dimension 2. (b) No: the zero function is not a solution (0=et); it is yp+ (a 2-dimensional space), with yp=2tet. (c) Yes, dimension 3. (d) No. The equation is not linear. y=1−t1 is a solution but 2y=1−t2 is not: (2y)′=(1−t)22 while (2y)2=(1−t)24. So the set is not closed under scaling.
checkMATH 376 worksheet 20 #8
True or false: (a) If 2 is a double root, c1e2x+c2xe2x is the general solution of the associated part. (b) If the roots are 1,1,2 the general solution is c1ex+c2ex+c3e2x. (c) If the roots are −1,2,3 the general solution is c1e−x+c2e2x+c3e3x.
Solution
(a) True. (b) False: it is c1ex+c2xex+c3e2x. (c) True.
checkMATH 376 worksheet 21 #9
The solutions y1,y2 of a second-order homogeneous equation satisfy y1(0)=1, y1′(0)=2, y2(0)=0, y2′(0)=3. Are they a basis of the solution space?
Solution
Yes. Their starting vectors (1,2) and (0,3) are independent in R2 (determinant 3=0); μ is an isomorphism, so y1,y2 are independent, and two independent solutions of an order-2 equation form a basis.
useMATH 376 worksheet 28 #1; homework 8 #3
Solve y′′−3y′+2y=0 with y(0)=2, y′(0)=1; and give the general solution of y′′−7y′+10y=0.
Solve y′′−2y′+5y=0 with y(0)=1, y′(0)=0. Then give the general solution of y′′−4y′+13y=0.
Solution
Roots 1±2i. y=et(C1cos2t+C2sin2t). y(0)=C1=1. y′=et[(C1+2C2)cos2t+(C2−2C1)sin2t], so y′(0)=C1+2C2=0 gives C2=−21. y=et(cos2t−21sin2t). For the second equation, t2−4t+13=0 gives t=2±3i, so y=e2t(C1cos3t+C2sin3t) (worksheet 23 #2).
use
Find a real basis for the solutions of y(5)−2y(4)+y′′′=0 and for y′′′+4y′=0.
A mass-spring system obeys 2x′′+12x′+50x=0. Find the roots, the frequency of the oscillation and the time for the amplitude to halve.
Solution
Divide by 2: x′′+6x′+25x=0, roots −3±4i. Angular frequency 4 rad/s (0.64 Hz). The amplitude is multiplied by e−3t; halving when e−3t=21, t=3ln2=0.231 s.
proveMATH 376 worksheet 19 #4
Prove that S={y∈C2(I):y′′+p(t)y′+q(t)y=0} is a vector space.
Solution
Plan. Show S is a subspace of C2(I): contains zero, closed under sum and scalar multiple.
0′′+p0′+q0=0, so 0∈S. If y1,y2∈S then (y1+y2)′′+p(y1+y2)′+q(y1+y2)=(y1′′+py1′+qy1)+(y2′′+py2′+qy2)=0. If y∈S and c is a number, (cy)′′+p(cy)′+q(cy)=c(y′′+py′+qy)=0. By the subspace test, S is a subspace of the vector space C2(I), hence a vector space. ■
proveMATH 376 worksheet 19 #5
Let g≡0 be continuous. Prove that Sg={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+S.
L[0]=0=g since g≡0, so 0∈/Sg and Sg is not a subspace. (Also if y1,y2∈Sg then L[y1+y2]=2g=g.) If yp∈Sg, then for y∈Sg we have L[y−yp]=g−g=0, so y−yp∈S; conversely L[yp+h]=g for h∈S. Hence Sg=yp+S. ■
proveMATH 376 homework 8 #1(3)
Prove that et1t,…,etrt are linearly independent on any interval when t1,…,tr 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 on an interval. This is the case of the claim ”∑pjerjt=0 with rj distinct implies all pj=0” in which each pj=cj is a constant polynomial. The claim, proved by induction on the number of exponentials, says cj=0 for all j. (Alternative: the Wronskian of the functions is e(t1+⋯+tr)t times a Vandermonde determinant ∏i<j(tj−ti)=0; see 7.3.) ■
prove
Prove that A and B commute when A=D2+3D+2 and B=D−5 by computing AB and BA on a function f.
Solution
Plan. Expand both orders and compare.
ABf=(D2+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′−10f. They agree, and both equal (D3−2D2−13D−10)f, with characteristic polynomial (t2+3t+2)(t−5)=t3−2t2−13t−10. ■
proveTechnau, March 25
Prove that the characteristic polynomial det(λI−A) of the companion matrix of y′′+by′+cy=0 equals λ2+bλ+c. Then explain why ert is a solution of the equation exactly when r is an eigenvalue of the companion matrix.
Solution
Plan. Compute the 2×2 determinant; then find the eigenvectors.
A=[0−c1−b], so λI−A=[λc−1λ+b] and det=λ(λ+b)+c=λ2+bλ+c. For the second part: if ert solves the equation then x=(y,y′)=ert(1,r) solves x′=Ax, so A(1,r)=r(1,r), and r is an eigenvalue with eigenvector (1,r). Conversely, if Av=rv then ertv solves x′=Ax and its first coordinate solves the equation. (In general the characteristic polynomial of the companion matrix of an order-n equation is λn+an−1λn−1+⋯+a0, by induction on n expanding along the first column.) ■
proveMATH 376 practice final 4(b); new generalisation
Show that for r∈R and j∈{0,…,m−1}, tjert solves (D−r)my=0, and that these m functions are independent.
Solution
Plan. Use the shifting fact; then divide by the exponential.
(D−r)(pert)=p′ert for a polynomial p (product rule). Applying this j+1 times to p=tj gives dtj+1dj+1tj⋅ert=0, and m≥j+1 gives (D−r)mtjert=0. If ∑j<mcjtjert=0, divide by ert>0: the polynomial ∑cjtj has infinitely many roots, so it is zero and all cj=0. ■
stretch
The equation y′′+p(t)y′+q(t)y=0 on (0,∞) with p=1/t, q=−1/t2 is t2y′′+ty′−y=0 (an Euler equation), whose coefficients are not constant. Try y=ts and find two independent solutions. Why does the dimension theorem say that is all of them?
Solution
y=ts gives t2s(s−1)ts−2+tsts−1−ts=(s2−1)ts, which is zero when s=±1. So t and t−1 are solutions. They are independent (neither is a multiple of the other) on (0,∞). The coefficients p=1/t and q=−1/t2 are continuous on (0,∞), so the solution space has dimension 2 by the dimension theorem; two independent solutions are a basis, and the general solution is c1t+c2/t. (Rewrite with t=es to reduce an Euler equation to constant coefficients.)
stretch
Show that every real solution of y′′+ω2y=0 (ω>0) can be written y=Acos(ωt−φ) with A≥0, and find A and φ for y=3cos2t+4sin2t.
Solution
The general real solution is y=c1cosωt+c2sinωt. Put A=c12+c22 and choose φ with cosφ=c1/A, sinφ=c2/A. Then Acos(ωt−φ)=Acosωtcosφ+Asinωtsinφ=c1cosωt+c2sinωt. For 3cos2t+4sin2t: A=5, cosφ=53, sinφ=54, so φ=arctan34=0.9273 radians. So y=5cos(2t−0.9273): an oscillation of amplitude 5 and frequency 2 rad/s. ■
Summary
A linear differential equation of order n is Ly=R with L=Dn+an−1Dn−1+⋯+a0. L is a linear map, so the solutions of the homogeneous equation Ly=0 are its null space, a vector space.
The solutions of an inhomogeneous equation (R=0) are NOT a vector space: they are yp+kerL, a translate of the null space. Subtract two solutions and the right-hand sides cancel.
The map “solution ↦(y(t0),…,y(n−1)(t0))” is linear, onto by existence and one-to-one by uniqueness (7.1, via the companion matrix). So dimkerL=n, and the general solution is y=yp+c1b1+⋯+cnbn.
With constant coefficients L=P(D) and operators multiply like polynomials, so they commute. A real root r of multiplicity m gives ert,tert,…,tm−1ert, because (D−r) lowers the degree of a polynomial factor by one.
A complex pair α±iβ gives tjeαtcosβt and tjeαtsinβt (real and imaginary parts of tjert). No exponential factor appears when α=0.
The recipe: factor P, list n functions, take an arbitrary real combination; with starting values, differentiate with the product rule and solve an n×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 has no exponential, and a repeated root needs the factor t.
Watch and read
The same ideas explained by someone else. Use these when an explanation here does not land.
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.