7.3 The Wronskian, variation of parameters and undetermined coefficients
The Wronskian is a determinant of functions and their derivatives. A non-zero value proves independence; for solutions of one linear equation it is either zero everywhere or non-zero everywhere. The same determinant solves the inhomogeneous equation (variation of parameters), and for special right-hand sides a short guess does it faster (undetermined coefficients, annihilators).
Taught in 375/376Apostol, not taughtBeyond the courseApostol 6.11 to 6.14Technau, MATH 376 lectures of April 8, 10 and 13MATH 376 worksheets 21 to 23 and 28, homework 8 and 9MATH 376 final 4(b) and 7, practice final 6
Two questions were left open in 7.2. How do we know that n solutions we found are independent, so that they are really a basis? And how do we find one particular solution of the inhomogeneous equation Ly=R? One determinant answers both. Its value tests independence; its inverse gives the particular solution by a formula. For the simplest right-hand sides there is a shorter route, a guess with unknown coefficients, and we prove why the guess works.
t⋅2t−t2⋅1=2t2−t2=t2. A determinant is the product of the diagonal minus the product of the other diagonal.Review: the determinant
Quick checkSolve p+q=0, p+2q=1. What is q?
Subtract the first equation from the second: q=1, then p=−1. By Cramer's rule q=det[1112]det[1101]=11. This exact system appears in variation of parameters.Review: Cramer's rule
Quick checkWhat is the dimension of the solution space of y′′′+5y′−2y=0?
The dimension of the solution space of a homogeneous linear equation of order n is n, here 3, whatever the coefficients are. The roots decide the basis, not the dimension.Review: the dimension theorem
The picture
Take two functions f1,f2 and draw the curve γ(t)=(f1(t),f2(t)) in the plane. Its velocity is γ′(t)=(f1′(t),f2′(t)). The WronskianW=f1f2′−f1′f2 is the signed area of the parallelogram spanned by γ and γ′ (Technau drew exactly this in the lecture of April 8). Choose a pair and slide t.
Three things to see. First, for cost,sint the area is the same everywhere: 1. Second, for t,2t the curve lies on a line through the origin and every parallelogram is flat: W=0, and f2=2f1 is exactly the dependence. Third, for t2,t∣t∣ every parallelogram is also flat, yet the two functions are independent: the curve goes up the line y=x for t>0 and up the line y=−x for t<0. A zero Wronskian says the curve is tangent to its radius at each point; dependence says it stays on a single line. For arbitrary functions these differ. For solutions of one linear equation they do not, and that is the main theorem of this chapter.
Where this came from· Wroński, Muir, and Lagrange's variation of parameters
The determinant was introduced by the Polish mathematician Józef Hoene-Wroński in 1812. Thomas Muir gave it the name “Wronskian” in his 1882 treatise on determinants. The method of variation of parameters grew out of celestial mechanics. Euler sketched an early version in 1748, studying how Jupiter and Saturn disturb each other’s orbits. Lagrange developed it in memoirs of the 1770s and 1780s (accounts differ on the first use, between 1766 and 1774), for the motion of planets and for finding a comet’s orbit from three observations; he gave it its final form in papers of 1808 to 1810. The idea was to treat the constants of a solution of the undisturbed problem (the orbital elements of an ellipse) as slowly varying functions when a small force is added. That is exactly the step y=u1b1+u2b2 below, with the constants ci replaced by functions ui(t).
The idea, in words
Why· Independence test, and why the same determinant solves the equation
To test whether f1,…,fn are independent, suppose c1f1+⋯+cnfn=0. Differentiating n−1 times gives n equations (the function and its derivatives) that the constants ci must satisfy at every t. They form a linear system whose matrix is the Wronskian matrix. If its determinant is not zero at even one t, the only solution is c=0. That is the test. For the inhomogeneous equation we do the reverse: we look for a particular solution y=u1b1+⋯+unbn, where the bi are a basis of the homogeneous solutions and the “constants” ui are now functions. Demanding that y′,y′′,… look as if the ui were constant (apart from the last step) gives a system with the SAME matrix for the unknowns ui′. Since the determinant is not zero, we can solve for the ui′ and integrate.
Definitions and theorems
The Wronskian and independence
Definition T
Wronskian
Let f1,…,fn be functions on an interval J that are n−1 times differentiable. Their Wronskian matrix is
and their Wronskian is the function W(f1,…,fn)(t)=detW(t). For two functions, W=f1f2′−f1′f2. Column i is the function fi and its derivatives, one per row. (Technau’s notes number the rows by derivative order, as here.)
In one lineFor n functions with n−1 derivatives, the determinant of the n×n matrix whose rows are the functions and their successive derivatives: W=det(fi(j)).
Why it existsIt is the determinant of the linear system that the constants of a dependence relation must satisfy. A non-zero value proves the system has only the zero solution.
Worked example Technau, April 8 (Example 7.22); MATH 376 worksheets 21 #7, #8, 22 #2, #5; practice final 6
Compute the Wronskian of: t and t²; cos x and sin x; e^x and x e^x; cos 2x and sin 2x; e^x and e^(−x); t, t², t³ at t = 1.
Solution.
t,t2.W=t⋅2t−1⋅t2=t2. Write the two rows (f1,f2) and (f1′,f2′) and take the determinant.
cosx,sinx.W=cosx⋅cosx−(−sinx)sinx=cos2x+sin2x=1. The area picture: a unit square.
ex,xex.W=ex(ex+xex)−ex⋅xex=e2x. The xe2x terms cancel; this is the double-root pair.
cos2x,sin2x.W=cos2x⋅2cos2x−(−2sin2x)sin2x=2. The factor 2 comes from the chain rule.
ex,e−x.W=ex(−e−x)−exe−x=−2. Be careful with the sign: the answer is negative. This sign matters in variation of parameters.
t,t2,t3 at t=1.W(t)=dett10t22t2t33t26t, so W(1)=det110122136=1(12−6)−1(6−0)+1(2−0)=2. Expand along the first row (2.7). In general W=2t3.
Answer.t2; 1; e2x; 2; −2; W(1)=2.
Your answerWhat is W(e−t,e−2t) at t=1? (Three decimals.)
Differentiate each function, form the 2×2 determinant, then put t=1.
W=e−t⋅(−2e−2t)−(−e−t)e−2t=−2e−3t+e−3t=−e−3t. At t=1 this is −e−3=−0.0498.
Theorem TMATH 376 homework 8 #1; Apostol 6.12
A non-zero Wronskian proves independence
Let f1,…,fn be n−1 times differentiable on J. If detW(t0)=0 for some t0∈J, then c1f1+⋯+cnfn=0 on J forces c1=⋯=cn=0.
In one lineIf W(f1,…,fn)(t0)=0 at even one point t0 of J, then f1,…,fn are linearly independent on J.
Why it is trueA dependence relation, differentiated n−1 times, says that the Wronskian matrix at every point sends the coefficient vector to zero. An invertible matrix sends only the zero vector there.
ProofMATH 376 homework 8 #1
The idea: Suppose a combination vanishes everywhere. Differentiate it n-1 times. At t0 you get the matrix equation W(t0)c = 0, and the matrix is invertible.
Suppose c1f1+⋯+cnfn=0 on J, for some numbers ci.
Linear independence is the statement that a vanishing combination has all coefficients zero (2.2).
Differentiating k times: c1f1(k)+⋯+cnfn(k)=0 on J, for k=0,1,…,n−1.
The derivative of the zero function is zero, and the derivative of a combination is the combination of derivatives, for each order k≤n−1.
At t=t0 these n equations are the single matrix equation W(t0)c=O.
Row k of W(t) times the column c is ∑icifi(k)(t).
Since detW(t0)=0, c=O. ■
A square matrix with non-zero determinant is invertible (2.7); multiply by the inverse.
Look at the picture again. A non-zero area at any one time means the curve and its velocity are not parallel there, so the curve cannot lie on one line through the origin. The converse is false for arbitrary functions.
Worked example MATH 376 homework 8 #1(2), homework 9 #3, Piazza post 18
Find two functions with Wronskian zero everywhere that are linearly independent; show a case where the Wronskian is zero at a point only.
Solution.
Choose the pair.f1(t)=t2 and f2(t)=t∣t∣ on R. For t>0, f2=t2, and for t<0, f2=−t2. Piazza post 18: when the problem asks for an example, you must show the example has the property.
They are differentiable.f2′=2∣t∣ everywhere (at t=0 the derivative is 0 from both sides). The Wronskian needs one derivative of each.
Compute the Wronskian.W=f1f2′−f1′f2=t2⋅2∣t∣−2t⋅t∣t∣=2t2∣t∣−2t2∣t∣=0 for every t. Directly from the definition.
Show they are independent. Suppose at2+bt∣t∣=0 for all t. For t>0 this reads (a+b)t2=0, so a+b=0. For t<0 it reads (a−b)t2=0, so a−b=0. Hence a=b=0. Use two values of t, one on each side of 0.
A zero at a single point.W(t,t2)=t2 vanishes at t=0 only, yet t,t2 are independent (take t0=1 in the theorem). The theorem needs one non-zero value, not all values.
A larger family.W(t,t2,…,tr)=Ctr with C=0, which is zero only at t=0 (homework 9 #3, proved in the problems). Independent functions can have a Wronskian that vanishes at isolated points.
Answer.t2 and t∣t∣: W≡0 but independent. The converse of the theorem fails for general functions.
Quick checkf(t)=t2 and g(t)=t∣t∣ have Wronskian identically 0. What does that tell you?
A zero Wronskian never proves dependence by itself. For at2+bt∣t∣=0 the cases t>0 and t<0 give a+b=0 and a−b=0, so a=b=0. They are independent, yet W=0 everywhere.
Where does the converse hold? When the functions are solutions of one linear equation, or when they are analytic. Here is the first case.
Theorem TTechnau, April 8 (Lemma 7.23); Apostol 6.12 (Theorem 6.12)
Wronskian of solutions of a linear equation
Let b1,…,bn be solutions of the homogeneous linear equation Ly=0 of order n on J (continuous coefficients). Then: (i) b1,…,bn are linearly independent; (ii) W(b1,…,bn)(t)=0 for every t∈J; (iii) W(b1,…,bn)(t0)=0 for some t0∈J. These are equivalent. In particular a Wronskian of solutions has no isolated zeros.
In one lineFor n solutions of Ly=0 the following are equivalent: they are linearly independent; W(t)=0 for every t; W(t0)=0 for some t0. So W is either zero everywhere or non-zero everywhere.
Why it is trueThe map from a solution to its starting numbers at t is an isomorphism for each t, and the columns of the Wronskian matrix at t are exactly the starting numbers of the n solutions.
Why· The picture behind the proof
In the picture, a pair of solutions of one equation such as y′′+y=0 gives a curve γ(t)=(b1,b2) that is never tangent to its own radius. The reason is the starting-number isomorphism of 7.2: the column (bi(t),bi′(t),…) is the starting vector of bi at time t, and two independent solutions have independent starting vectors at EVERY time, not only at one. The pair t,t2 cannot be solutions of a linear equation with continuous coefficients near 0: its Wronskian t2 has an isolated zero. (They solve t2y′′−2ty′+2y=0, whose leading coefficient t2 vanishes at 0, so the equation is not of the form the theorem needs.)
ProofTechnau, April 8; Apostol 6.12
The idea: The columns of the Wronskian matrix at t are the starting numbers of the b_i at time t. The starting-number map is an isomorphism for each fixed t, so independent solutions have independent columns, at every t.
For every t∈J, μt is an isomorphism.
Fix t∈J and define μt:kerL→Rn, μt(y)=(y(t),y′(t),…,y(n−1)(t)). The proof of the dimension theorem in 7.2 works for every choice of base point.
So W(t)=[μt(b1)⋯μt(bn)].
The i-th column of W(t) is (bi(t),bi′(t),…,bi(n−1)(t))=μt(bi).
(i) ⇒ (ii): if the bi are independent, the columns of W(t) are independent for every t, so detW(t)=0.
An isomorphism sends independent vectors to independent vectors, and a square matrix has non-zero determinant exactly when its columns are independent.
(ii) ⇒ (iii).
Trivial: if it holds for all t it holds for one.
(iii) ⇒ (i). ■
The previous theorem (non-zero Wronskian at a point proves independence).
Theorem AApostol 6.12 (Theorem 6.12); Abel
Abel's formula
Let b1,…,bn solve Ly=0 with L=Dn+an−1Dn−1+⋯+a0 on J. Then W′+an−1W=0 on J, and for t0∈J: W(t)=W(t0)exp(−∫t0tan−1(s)ds). If an−1≡0, W is constant.
In one lineIf b1,…,bn solve y(n)+an−1y(n−1)+⋯=0, their Wronskian satisfies W′=−an−1W, so W(t)=W(t0)exp(−∫t0tan−1).
Why it is trueOnly the last row of the Wronskian matrix is not already a derivative of the row above it. Differentiating the determinant differentiates that row, and the equation turns the new row into −an−1 times the old last row plus lower rows.
ProofApostol 6.12
The idea: Differentiate the determinant row by row: all terms but one have two equal rows. Replace the last row's derivative by the equation, and subtract multiples of the lower rows.
W′=det of the matrix with the last row replaced by (b1(n),…,bn(n)); the other terms vanish.
The derivative of a determinant is the sum of determinants in which one row at a time is differentiated (product rule for the permutation formula, 2.7). Differentiating row k<n−1 gives the row b(k+1), which is already the next row, so the determinant has two equal rows and is 0.
So the new last row is −an−1⋅(old last row)−an−2⋅(row n−1)−⋯−a0⋅(row 1).
Each bi satisfies bi(n)=−an−1bi(n−1)−⋯−a0bi.
W′=−an−1W.
Adding a multiple of one row to another does not change a determinant. The terms with the rows 1,…,n−1 are removed, leaving −an−1 times the last row.
So W(t)=W(t0)exp(−∫t0tan−1). ■
The linear equation W′=−an−1W is solved by the integrating factor (7.2): (We∫an−1)′=0.
Abel’s formula gives the equivalence theorem a second proof, and a number. For y′′+3y′+2y=0 the solutions e−t and e−2t have W=−e−3t, and Abel’s formula with a1=3 says W(t)=W(0)e−3t with W(0)=−1. The two agree.
Fact TMATH 376 homework 8 #1(3)
Wronskian of exponentials
Let r1,…,rn be distinct. Then W(er1t,…,ernt)(t)=e(r1+⋯+rn)tdet(rij)i=1..n,j=0..n−1, and the determinant is non-zero.
In one lineFor distinct numbers r1,…,rn, W(er1t,…,ernt)=e(r1+⋯+rn)t⋅V with V=det(rij) non-zero, so the exponentials are independent.
Why it is trueFactor erit out of each column. What remains is a Vandermonde matrix, which is invertible when the ri are distinct.
ProofMATH 376 homework 8 #1(3)
The idea: Differentiating e^{rt} j times gives r^j e^{rt}, so column i of the Wronskian matrix is e^{r_i t} times (1, r_i, r_i^2, ...). Then show the Vandermonde matrix has independent rows by a polynomial with too many roots.
Entry (j,i) of W is rijerit for j=0,…,n−1.
(erit)(j)=rijerit.
So W=e(r1+⋯+rn)tdet(rij).
A common factor of a whole column comes out of a determinant (2.7).
Suppose detV=0.
Suppose the Vandermonde matrix V is singular. Then some non-zero c=(c0,…,cn−1) has ∑jcjrij=0 for every i, that is, p(x)=∑jcjxj has the n distinct roots r1,…,rn.
That is impossible, so detV=0. ■
A non-zero polynomial of degree at most n−1 has at most n−1 roots (0.6). So p=0 and c=O, contradicting c=O.
Theorem TMATH 376 final 7
Wronskian test for power series
Let f,g:(−1,1)→R be given by power series with radius of convergence 1 (1.6). Then f,g are linearly independent if and only if their Wronskian W=fg′−f′g is not identically zero on (−1,1). You may use the fact: a non-zero power series h has only finitely many zeros in (−1+ε,1−ε), for each ε>0.
In one lineIf f and g are power series with radius of convergence 1, then f,g are linearly independent on (−1,1) if and only if W(f,g) is not identically zero.
Why it is trueDependent functions always have W≡0 (easy direction). For power series the converse holds because a power series that vanishes on an interval vanishes everywhere.
ProofMATH 376 final 7
The idea: Prove the contrapositive of each direction: dependent implies W is zero (differentiate the relation), and W zero implies dependent (divide by g where g is not zero, get f over g constant on an interval, then the identity theorem spreads the relation to all of (-1, 1)).
(⇒, contrapositive) Suppose f,g are dependent: af+bg=0 on (−1,1) with (a,b)=(0,0).
If f,g are dependent there are a,b, not both 0, with af+bg=0. This is the definition of linear dependence.
Then also af′+bg′=0.
Power series can be differentiated term by term inside the radius (1.6), so f,g are differentiable; differentiate the relation.
So W(t)=fg′−f′g=0 for all t.
These two equations say [ff′gg′][ab]=O at every t, with a non-zero vector. So the matrix is singular at every t.
If one of them is the zero function, they are dependent. So assume neither is.
(⇐, contrapositive) Suppose W≡0. If f≡0 then 1⋅f+0⋅g=0 is a non-trivial relation, and the same if g≡0.
Fix ε>0. There is a non-empty open interval I⊆(−1+ε,1−ε) on which g=0.
g≡0 is a non-zero power series, so it has finitely many zeros in (−1+ε,1−ε) (the fact you may use). A finite set has gaps: some open interval I inside has no zero of g.
On I: (gf)′=g2f′g−fg′=−g2W=0.
Quotient rule, then W=fg′−f′g=0.
So f/g=c on I for some constant c, that is, f−cg=0 on I.
A function with zero derivative on an interval is constant (1.4).
h=f−cg is a power series vanishing on I, hence h≡0 on (−1,1).
The difference of two power series centred at 0 is a power series with radius at least 1. It has infinitely many zeros in (−1+ε,1−ε) (all points of I), so by the fact it is the zero series.
So f,g are dependent. ■
f=cg on all of (−1,1) is the non-trivial relation 1⋅f−c⋅g=0.
Proof workshopRebuild the proof of the Wronskian test for power seriesMATH 376 final 7
Tap the lines in the order a proof would write them. Each line can only use what is already above it.
Power series can be differentiated term by term inside their radius of convergence.
A matrix with a non-zero vector in its null space has determinant zero.
This needs both equations from the line before.
A non-zero power series has only finitely many zeros in each interval (−1+ε,1−ε).
This direction starts only after the first direction is finished.
Quotient rule, then a function with zero derivative on an interval is constant.
You need an interval where g=0 before you can divide.
A non-zero power series cannot have infinitely many zeros in (−1+ε,1−ε).
You need f=cg on I first, to know that h vanishes there.
The relation f−cg=0 is a non-trivial combination equal to zero.
This is the conclusion; it comes last.
Watch out· What the grader wanted on the final's Problem 7
On the 376 final (Problem 7, 5 points) you wrote the definition of independence, “Let’s say otherwise,” and stopped. The rubric gave 1 of 5. It would have given 2 more points for the easy direction alone (dependent implies W≡0) and 3 for the hard direction. The lesson for any “if and only if” proof: write the easy direction completely first, in the first five minutes. Then the structure of the hard direction is the three sentences above (divide where g=0, the quotient is constant, spread by the identity theorem).
Your answerPractice final 6: what is the Wronskian of t,t2,t3 at t=1?
Write the three rows: the functions, their first derivatives, their second derivatives. Expand the determinant along the first column or the first row.
W(t)=dett10t22t2t33t26t=2t3. At t=1 it equals 2.
Variation of parameters
Now the particular solution. Take a second-order equation y′′+a1(t)y′+a0(t)y=R(t) whose homogeneous solutions b1,b2 we know. The general solution of the homogeneous equation is c1b1+c2b2 with constants. Lagrange’s idea: let the constants vary.
Definition T
Variation of parameters
Variation of parameters finds a particular solution of Ly=R in the form yp=∑iuibi with ui functions of t, subject to the conditions ∑iui′bi(j)=0 for j=0,…,n−2 (and the equation itself gives the last condition ∑iui′bi(n−1)=R).
In one lineLook for a particular solution y=u1(t)b1(t)+⋯+un(t)bn(t), where the bi are a basis of the homogeneous solutions and the coefficients ui are unknown functions; impose n−1 extra conditions that make the derivatives clean.
Why it existsThe constants of the homogeneous solution become functions. We get n unknown functions and only one equation, so we are free to choose n−1 more equations, and we choose them to simplify the derivatives.
Here is the derivation for n=2, which Technau did on April 8 and worksheet 22 #3 asks for.
Worked example Technau, April 8; MATH 376 worksheet 22 #3
Derive the formulas u1' = −b2 R / W and u2' = b1 R / W for y'' + a1 y' + a0 y = R.
Solution.
Set the form.y=u1b1+u2b2 where b1,b2 are independent solutions of y′′+a1y′+a0y=0. If u1,u2 were constants this would be a homogeneous solution. We let them vary.
Differentiate once.y′=u1′b1+u1b1′+u2′b2+u2b2′. Product rule on each term.
Impose the first condition. We choose u1′b1+u2′b2=0, so y′=u1b1′+u2b2′. We have two unknown functions and one equation, so we may impose one more condition. This one makes y′ look like the constants case, and avoids u′′ terms later.
Differentiate again.y′′=u1′b1′+u1b1′′+u2′b2′+u2b2′′. Product rule once more.
Substitute into the equation.y′′+a1y′+a0y=u1′b1′+u2′b2′+u1(b1′′+a1b1′+a0b1)+u2(b2′′+a1b2′+a0b2). Collect the terms with u1 and with u2 separately.
Use that b1,b2 are homogeneous solutions. Both brackets are 0, so the equation becomes u1′b1′+u2′b2′=R. This is the second condition: the only place the right-hand side enters.
Solve the system.[b1b1′b2b2′][u1′u2′]=[0R]. The matrix is the Wronskian matrix, with determinant W=b1b2′−b1′b2=0. By Cramer’s rule, u1′=Wdet[0Rb2b2′]=−Wb2R and u2′=Wdet[b1b1′0R]=Wb1R. W=0 because b1,b2 are independent solutions, by the equivalence theorem above.
Answer.u1′=−Wb2R, u2′=Wb1R. Integrate to get u1,u2 and set yp=u1b1+u2b2.
The same idea works for any order, and there is a clean proof.
Theorem TTechnau, April 8 and 10 (Proposition 7.24); Apostol 6.11
Variation of parameters formula
Let L=Dn+an−1Dn−1+⋯+a0 with continuous coefficients and R continuous on J. Let b1,…,bn be a basis of kerL and W(t) its Wronskian matrix (invertible for all t). Let t0∈J and define u(t)=∫t0tW(s)−1(0,…,0,R(s))Tds (coordinate by coordinate). Then yp(t)=∑iui(t)bi(t) satisfies Lyp=R.
In one lineIf b1,…,bn is a basis of kerL with Wronskian matrix W, and u′=W−1(0,…,0,R)T, then yp=u1b1+⋯+unbn solves Ly=R.
Why it is trueThe equation Wu′=(0,…,0,R) says the first n−1 derivatives of yp look like those of a homogeneous solution, and the n-th differs from it by exactly R.
ProofTechnau, April 10
The idea: Differentiating y_p, the extra terms u'·b^(j) vanish for j up to n-2, so y_p^(j) = u·b^(j) for j below n. The n-th derivative picks up u'·b^(n-1) = R. Put it into L and use that each b_i solves Ly = 0.
u′(t)=W(t)−1(0,…,0,R)T, that is, Wu′=(0,…,0,R)T.
Fundamental theorem of calculus, coordinate by coordinate. Multiply by W.
So ∑iui′bi(j)=0 for j=0,…,n−2 and ∑iui′bi(n−1)=R.
Row j of Wu′ is ∑iui′bi(j). The vector (0,…,0,R) has 0 in rows 0,…,n−2 and R in row n−1.
Hence yp(j)=u⋅b(j) for j=0,1,…,n−1, by induction on j.
Product rule. Write u⋅b(j)=∑iuibi(j). Then (u⋅b(j))′=u′⋅b(j)+u⋅b(j+1), and the first term is 0 for j≤n−2.
yp(n)=u′⋅b(n−1)+u⋅b(n)=R+u⋅b(n).
One more derivative: the first term is now u′⋅b(n−1)=R.
Each bi solves Lbi=0, so the bracket is the zero vector.
Proof workshopRebuild: variation of parameters gives a particular solutionTechnau, April 10
Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.
Let u′=W−1(0,…,0,R)T, so that ∑iui′bi(j)=0 for j≤n−2 and =R for j=n−1.
Then yp(j)=∑iuibi(j) for j≤n−1.
Then yp(n)=R+∑iuibi(n).
So Lyp=R+∑iui(Lbi)=R.
Watch out· Normalise first: the leading coefficient must be 1
The formulas u1′=−b2R/W and u2′=b1R/W and the vector (0,…,0,R) assume the equation is written y(n)+⋯=R, with coefficient 1 in front of y(n). For x2y′′+xy′−y=x3 you divide first: the R to use is x.
Worked example MATH 376 worksheets 22 #4, #5, #6 and 23 #3, #4
Variation of parameters, order 2: y'' + y = tan x; y'' − y = e^x; y'' − 2y' + y = e^x/(1 + x²); y'' + 4y = sec 2x.
Solution.
First equation: basis and Wronskian.y′′+y=0 has b1=cosx, b2=sinx, W=1. The roots are ±i.
The u′.u1′=−sinxtanx=−cosxsin2x=−(secx−cosx) and u2′=cosxtanx=sinx. The formulas with R=tanx, W=1. And sin2x=1−cos2x.
Integrate.u1=−ln∣secx+tanx∣+sinx and u2=−cosx. ∫secxdx=ln∣secx+tanx∣; constants of integration are dropped since they only add homogeneous solutions.
Assemble.yp=u1cosx+u2sinx=−cosxln∣secx+tanx∣+sinxcosx−cosxsinx=−cosxln∣secx+tanx∣. The two sinxcosx terms cancel.
Second equation.y′′−y=ex: b1=ex, b2=e−x, W=−2. u1′=−−2e−xex=21 and u2′=−2exex=−2e2x. So u1=2x, u2=−4e2x and yp=2xex−41ex. The term −41ex is a homogeneous solution and may be dropped: yp=2xex. Remember the sign of W, and integrate u1′: it is a constant 21, not a final answer.
Third equation.b1=ex, b2=xex, W=e2x. u1′=−e2xxex⋅ex/(1+x2)=−1+x2x and u2′=e2xex⋅ex/(1+x2)=1+x21. So u1=−21ln(1+x2), u2=arctanx, and yp=−21exln(1+x2)+xexarctanx. Exponentials cancel against W here.
Fourth equation.b1=cos2x, b2=sin2x, W=2. u1′=−2sin2xsec2x=−2tan2x and u2′=2cos2xsec2x=21. So u1=41ln∣cos2x∣, u2=2x, and yp=41cos2xln∣cos2x∣+2xsin2x. ∫tan2xdx=−21ln∣cos2x∣.
Answer. The general solutions are c1cosx+c2sinx−cosxln∣secx+tanx∣; c1ex+c2e−x+2xex; c1ex+c2xex−21exln(1+x2)+xexarctanx; c1cos2x+c2sin2x+41cos2xln∣cos2x∣+2xsin2x.
Worked example MATH 376 final 4(b)
Finish what the final started: find the general solution of y'' + 2y' + y = t by variation of parameters.
Solution.
Solve the homogeneous equation.t2+2t+1=(t+1)2, a double root −1. So b1=e−t, b2=te−t. The double-root basis of 7.2.
Wronskian.W=e−t(e−t−te−t)−(−e−t)(te−t)=e−2t. The te−2t terms cancel.
The u′ with R=t.u1′=−e−2tte−t⋅t=−t2et and u2′=e−2te−t⋅t=tet. This is where your final stopped: the system for u1′,u2′ was never solved.
Integrate by parts.∫t2etdt=et(t2−2t+2) and ∫tetdt=et(t−1). So u1=−et(t2−2t+2) and u2=et(t−1). Differentiate to check: (et(t−1))′=tet.
Assemble.yp=u1b1+u2b2=−(t2−2t+2)+t(t−1)=t−2. Everything with et cancels against e−t, as it should for a polynomial right-hand side.
Write the general solution.y=(C1+C2t)e−t+t−2. Homogeneous plus particular.
Check.yp=t−2 has yp′=1 and yp′′=0, so yp′′+2yp′+yp=0+2+t−2=t. Substituting the particular solution back is the fastest check.
Answer.y=(C1+C2t)e−t+t−2. (The next section does this in two lines.)
Worked example MATH 376 worksheet 23 #5; Technau, April 13 (Example 7.26)
Order 3: y''' = e^x with the basis 1, x, x²; and the 376 lecture's example y''' + 3y'' + 2y' = e^(−2t).
Solution.
Set up for y′′′=ex. The homogeneous solutions are b=(1,x,x2). We need u1′,u2′,u3′ with u1′+xu2′+x2u3′=0, u2′+2xu3′=0, 2u3′=ex. The conditions are the Wronskian system Wu′=(0,0,R) written out row by row.
Solve from the bottom.u3′=2ex; u2′=−2xu3′=−xex; u1′=−xu2′−x2u3′=x2ex−2x2ex=2x2ex. The system is triangular, so back-substitution works.
Integrate and assemble.u3=2ex, u2=(1−x)ex, u1=21ex(x2−2x+2). So yp=u1+xu2+x2u3=ex[2x2−x+1+x−x2+2x2]=ex. (ex)′′′=ex, so the answer could have been guessed. The method finds it without guessing.
The lecture’s example. For y′′′+3y′′+2y′=e−2t the roots of t3+3t2+2t=t(t+1)(t+2) are 0,−1,−2, so b=(1,e−t,e−2t). The Wronskian matrix is 100e−t−e−te−te−2t−2e−2t4e−2t with determinant −2e−3t. Expand along the first column; the minor is −4e−3t+2e−3t.
Cramer’s rule with the last-row cofactors. The cofactors of the entries (3,1),(3,2),(3,3) are −e−3t, 2e−2t, −e−t, so u′=−2e−3tR(−e−3t,2e−2t,−e−t)=R(21,−et,21e2t). With R=e−2t: u′=(21e−2t,−e−t,21). The solution of Wu′=(0,0,R) uses the third column of W−1, which is the cofactors of the third row divided by detW.
Integrate and assemble.u=(−41e−2t,e−t,2t), so yp=−41e−2t+e−2t+2te−2t=(43+2t)e−2t. The part 43e−2t is a homogeneous solution; the new information is 2te−2t.
The question of the lecture: is there a solution with ∣y′′′∣≤2 on t≥0? The general solution is y=2te−2t+c1+c2e−t+c3e−2t, with y′′′=(6−4t)e−2t−c2e−t−8c3e−2t. Take c2=0, c3=43: y′′′=−4te−2t, whose largest size on t≥0 is e2=0.74 at t=21. The function 2te−2t alone has y′′′=6 at t=0, so the choice of the constants matters. The notes’ claim ‘max is 3/2 at t = 0’ is a computational slip; the conclusion that a solution exists is still true.
Answer.y=c1+c2x+c3x2+ex; and yp=(43+2t)e−2t, with ∣y′′′∣≤2 achieved for y=(43+2t)e−2t.
Why· The Green's function: variation of parameters as a response to a kick
For n=2 the formula gives yp(t)=∫t0tW(s)b1(s)b2(t)−b1(t)b2(s)R(s)ds. The kernel G(t,s)=W(s)b1(s)b2(t)−b1(t)b2(s) is the solution in t that starts at time s with value 0 and speed 1. The picture: the forcing R is a sequence of tiny kicks, each kick at time s of size R(s)ds launches its own homogeneous solution G(t,s), and yp is the sum of all of them. This is the Duhamel principle, and the same formula in 7.4 will read e(t−s)A.
Undetermined coefficients and the annihilator method
When the right-hand side is a polynomial, an exponential, a sine or a cosine (or sums and products of these), a guess with unknown coefficients is faster than any integral. The theory is the annihilator method of Apostol 6.14, which we prove, so that we know when the guess works.
Definition A
Annihilating operator
A constant-coefficient operator B is an annihilating operator (an annihilator) of f if Bf=0. The functions that have annihilators are exactly the solutions of constant-coefficient homogeneous equations: sums of tjeαtcosβt and tjeαtsinβt (7.2).
In one lineA constant-coefficient operator B with Bf=0: it sends the function f to zero. Example: D−r annihilates ert, (D−r)m annihilates tm−1ert.
Why it existsIf B kills the right-hand side of Ly=R, then applying B to the equation gives a homogeneous equation BLy=0 that we can solve.
Function
Annihilator
tm−1
Dm
eat
D−a
tm−1eat
(D−a)m
cosβt or sinβt
D2+β2
tm−1cosβt or tm−1sinβt
(D2+β2)m
eαtcosβt or eαtsinβt
D2−2αD+α2+β2
tm−1eαtcosβt or tm−1eαtsinβt
(D2−2αD+α2+β2)m
(Apostol’s Table 6.1. The last operator has roots α±iβ.)
Definition T
Undetermined coefficients
Undetermined coefficients is the method: for Ly=R with L of constant coefficients and R annihilated by a constant-coefficient operator B, every solution satisfies BLy=0. So yp lies in a space we can write down (the kernel of BL, from 7.2), and we find the constants by substituting into Ly=R.
In one lineGuess a particular solution of the form dictated by the right-hand side, with unknown constants, substitute, and match coefficients.
Why it existsIt replaces integration by algebra, and the annihilator method tells us exactly which form to guess.
Theorem AApostol 6.14; standard
Shape of a particular solution
Let L=PL(D) have constant coefficients and let R(t)=q(t)ert with q a polynomial of degree d (real or complex coefficients, r complex). Let s be the multiplicity of r as a root of PL. Then there is a polynomial h of degree at most d such that yp=tsh(t)ert satisfies Lyp=R.
In one lineIf R=q(t)ert with q a polynomial of degree d and r is a root of PL of multiplicity s (s=0 if r is not a root), then Ly=R has a particular solution yp=tsh(t)ert with h a polynomial of degree at most d.
Why it is trueMultiplying a solution by ert shifts D to D+r, so the equation becomes a polynomial in D acting on h. The root of multiplicity s means the lowest power of D present is Ds, which needs s extra integrations: that is the factor ts.
ProofApostol 6.14; standard
The idea: Shift: L(e^{rt}h) = e^{rt}P_L(D + r)h. The polynomial P_L(D + r) has a zero of order s at D = 0, so it is D^s times an invertible polynomial in D on polynomials. Solve the invertible part, then integrate s times.
The identity D(erth)=ert(D+r)h holds for any differentiable h, and by induction Dk(erth)=ert(D+r)kh.
Product rule: D(erth)=ert(Dh+rh)=ert(D+r)h.
So L(erth)=ertPL(D+r)h.
Add up the powers with the coefficients of PL.
Hence PL(D+r)=DsQ(D) with Q(0)=0.
PL(t+r) is a polynomial in t whose root at t=0 has multiplicity s (the multiplicity of r in PL). So PL(t+r)=tsQ(t) with Q(0)=0.
There is a polynomial w of degree at most d with Q(D)w=q.
On polynomials of degree at most d, Q(D)=Q(0)+Q1D+… acts by a triangular matrix with the non-zero number Q(0) on the diagonal (the operator D lowers the degree). So it is invertible there.
Choose a polynomial H with DsH=w and no terms below ts.
Integrate ws times, choosing the constants of integration to be 0; the result is a polynomial H of degree d+s with lowest power ts, so H=tsh with degh≤d.
When R is a sine or cosine, write it as the real or imaginary part of eiωt and use the theorem with r=iω (the equation has real coefficients, so the real part of a complex solution is a solution). In real form: if R=cosωt or sinωt and iω is not a root, try Acosωt+Bsinωt, with both terms. If iω is a root of multiplicity s (resonance), multiply by ts.
Worked example MATH 376 final 4(b); homework 9 #2
Finish final 4(b) in two lines: y'' + 2y' + y = t; and HW9 #2: q'' + 5q' + 4q = 10 sin 2t.
Solution.
First equation: choose the guess. The right-hand side is t=te0t, with r=0 and d=1. The number 0 is not a root of t2+2t+1, so s=0 and we try yp=at+b. The theorem: a polynomial of the same degree.
Substitute.yp′=a, yp′′=0, so 0+2a+at+b=t. Matching coefficients: a=1 and 2a+b=0, so b=−2. Equate the coefficient of t and the constant term.
Write the general solution.y=(C1+C2t)e−t+t−2. The same answer as variation of parameters, without a single integral.
Second equation: homogeneous part.t2+5t+4=(t+1)(t+4), so qh=C1e−t+C2e−4t. Two distinct real roots.
Guess. The right-hand side is 10sin2t; 2i is not a root. Try qp=Asin2t+Bcos2t. The derivative of a sine is a cosine, so both appear. Trying only Asin2t fails.
Substitute.qp′=2Acos2t−2Bsin2t and qp′′=−4Asin2t−4Bcos2t. The sin2t coefficient of qp′′+5qp′+4qp is −4A−10B+4A=−10B and the cos2t coefficient is −4B+10A+4B=10A. Match with 10sin2t: −10B=10, 10A=0. Collect separately the terms in sin2t and in cos2t.
Solve.B=−1, A=0, so qp=−cos2t and q=C1e−t+C2e−4t−cos2t. Check: qp′′+5qp′+4qp=4cos2t+10sin2t−4cos2t=10sin2t.
Answer.y=(C1+C2t)e−t+t−2 and q=C1e−t+C2e−4t−cos2t.
Worked example MATH 376 final 6(b); Apostol 6.14 style
Resonance: y'' + y = cos t (final 6(b)); and y'' − 3y' + 2y = t e^t.
Solution.
Test the obvious guess. The forcing cost has r=i, and t2+1 has the root i with multiplicity s=1. So the guess Acost+Bsint is itself a homogeneous solution, and cannot work (it gives 0 on the left). When the forcing matches a natural frequency, the response is not at that frequency. This is resonance.
Multiply by ts=t. Try yp=t(Acost+Bsint). Then yp′=Acost+Bsint+t(−Asint+Bcost) and yp′′=−2Asint+2Bcost−t(Acost+Bsint). Product rule twice.
Substitute.yp′′+yp=−2Asint+2Bcost. Matching with cost: A=0, B=21. The terms in t cancel because t(Acost+Bsint) already solves the homogeneous part.
Conclude.yp=2tsint, and the solutions are 2tsint+acost+bsint. The amplitude of 2tsint grows linearly without bound. This is what makes a swing go high when pushed at its natural period.
Second equation.t2−3t+2=(t−1)(t−2), so r=1 is a simple root (s=1), and R=tet has d=1. Try yp=t(At+B)et. The theorem: degree d=1 times ts=t.
Solve. Substituting and matching coefficients of t2et, tet gives A=−21, B=−1, so yp=−(2t2+t)et. The computation is routine; check by substituting numerically at one point.
Answer.2tsint; and −(2t2+t)et.
Worked example Apostol 6.14, Examples 1 and 2
Annihilator method (Apostol): find a particular solution of (D⁴ − 16)y = t⁴ + t + 1, and of y'' − 5y' + 6y = t e^t.
Solution.
Annihilate the right side.t4+t+1 is annihilated by D5 (table: tm−1 with m=5). Five derivatives of a polynomial of degree 4 give 0.
Apply D5 to the equation. Every solution satisfies D5(D4−16)y=0. The roots of t5(t4−16) are 0 (five times), 2,−2,2i,−2i. The kernel of BL is known from 7.2.
Keep only what is not homogeneous. The terms e2t,e−2t,cos2t,sin2t solve (D4−16)y=0, so we try the polynomial part yp=at4+bt3+ct2+dt+e. The other four functions are killed by L and contribute nothing to the right-hand side.
Substitute.yp(4)=24a, so (D4−16)yp=24a−16(at4+bt3+ct2+dt+e). Matching with t4+t+1: −16a=1, b=c=0, −16d=1, 24a−16e=1. So a=−161, d=−161, e=−325. Compare coefficients of t4,t3,t2,t,1.
Second problem.tet is annihilated by (D−1)2. The roots of (t−1)2(t−2)(t−3) give the form aet+btet+(terms e2t,e3t that solve the homogeneous part). Substituting yp=aet+btet: (2a−3b)et+2btet=tet, so b=21, a=43. Matching the coefficients of et and tet.
Answer.yp=−16t4−16t−325 and yp=43et+21tet.
Worked example MATH 376 worksheet 28 #3; Apostol 6.13
Another route (Apostol 6.13): factor the operator and solve two first-order equations. Do y'' − 3y' + 2y = e^t.
Solution.
Factor.y′′−3y′+2y=(D−1)(D−2)y. Roots 1,2.
Name the inner part. Let v=(D−2)y. The equation is (D−1)v=et, that is, v′−v=et. A first-order linear equation for v.
Solve for v.(e−tv)′=1, so v=tet+C1et. Integrating factor e−t.
Solve (D−2)y=v.y′−2y=tet+C1et, so (e−2ty)′=(t+C1)e−t, and e−2ty=−(t+1)e−t−C1e−t+C2. ∫te−tdt=−(t+1)e−t.
Read off.y=−(t+1)et−C1et+C2e2t. Absorbing −C1et−et into one constant: y=c1et+c2e2t−tet. Compare worksheet 28 #3 (variation of parameters gives −tet−et and the second term is a homogeneous solution).
Answer.y=c1et+c2e2t−tet.
Quick checkWhich method fits y′′+y=tanx?
The functions with annihilators are the solutions of constant-coefficient equations: polynomials times exponentials times sines and cosines. tanx is not one of them (its derivatives never close up into a finite-dimensional space), so a guess cannot work. Apostol says so: if R is like ex2, logx or tanx you need variation of parameters.
Quick checkFor y′′−4y=e2t, what is the right guess?
The roots of t2−4 are ±2, and r=2 is one of them with multiplicity 1, so the guess Ae2t is a homogeneous solution and gives 0. Multiply by t: Ate2t. Substituting, (Ate2t)′′−4Ate2t=4Ae2t, so A=41.
Your answerThe particular solution of y′′+2y′+y=t found above is yp=t−2. A student's general solution has y(0)=3 and y′(0)=0. What is y(1)? (Three decimals.)
Use the two starting values to find C1 and then C2. Differentiate with the product rule.
y=(C1+C2t)e−t+t−2. y(0)=C1−2=3 gives C1=5. y′=C2e−t−(C1+C2t)e−t+1, so y′(0)=C2−C1+1=0 gives C2=4. Then y(1)=9e−1−1=3.3109−1=2.3109.
Where it is used
Used inside maths· Inside maths: Liouville's formula, Green's functions and the geometry of volume
Abel’s formula is the scalar case of Liouville’s formula for systems: if Φ(t) is a matrix whose columns solve x′=A(t)x, then detΦ(t)=detΦ(t0)exp∫t0ttrA(s)ds (for the companion matrix the trace is −an−1). Read geometrically: detΦ is the volume of the parallelepiped spanned by n solutions, and the trace says the flow expands or shrinks volume at the rate trA. In 7.4 it becomes detetA=ettrA. Variation of parameters is also where Green’s functions come from, and from there the solution formulas of Poisson’s equation and the wave equation.
Used in the real world· Electronics: tuning a radio is resonance
A series RLC circuit driven by a source Vcosωt has the charge equation Lq′′+Rq′+q/C=Vcosωt. The natural frequency is ω0=1/LC. Take a coil L=250μH and a variable capacitor set to C=100 pF: ω0=1/2.5×10−14=6.32×106 rad/s, that is f0=1.0066 MHz. With no resistance the charge response to a forcing at exactly ω0 is 2Lω0Vtsinω0t: the amplitude grows linearly, the resonance case of undetermined coefficients above. With resistance R=10Ω the growth stops and the amplitude of the capacitor voltage reaches Q=ω0L/R=6.32×106×2.5×10−4/10=158 times the source voltage. A station at 1.0066 MHz is amplified 158-fold, while a station at 1.1 MHz is far off resonance and barely affects the circuit. Turning the dial changes C and so moves ω0.
Traps
Watch out· Do not stop halfway through variation of parameters
On the 376 final (4(b)) you set up variation of parameters correctly: the homogeneous basis e−t,te−t, the substitution y=v1e−t+v2te−t, and the extra condition v1′e−t+v2′te−t=0. The page ends there, with no equations for v1′,v2′, no particular solution, no general solution. For a polynomial right-hand side use undetermined coefficients (yp=at+b, two lines), and keep variation of parameters for forcing such as tanx or 1+x21. If time runs out, write the plan: ‘the Wronskian is e−2t, u1′=−t2et, u2′=tet, integrate, yp=u1b1+u2b2’. The exam cover sheet says a plan earns partial credit.
Watch out· Zero Wronskian does not mean dependent, and a zero at one point does not either
t2 and t∣t∣ have W≡0 and are independent. And t,t2 have W(0)=0 but are independent. What IS true: one non-zero value proves independence; for solutions of one linear equation W is either identically zero (dependent) or never zero (independent); for analytic functions W≡0 implies dependence (final 7).
Watch out· Sign and normalisation in the u' formulas
u1′=−b2R/W (with the minus) and u2′=+b1R/W. For ex,e−x the Wronskian is −2, not 2. The equation must have coefficient 1 in front of y(n). And u1′,u2′ must be integrated: in worksheet 22 #5 the answer u1′=21 gives u1=2x.
Watch out· Terms of a particular solution that solve the homogeneous equation can be dropped
In yp=2xex−41ex the term −41ex is a homogeneous solution; it is absorbed into the constant c1 of the general solution. You do not need it. But the term 2xex is not a homogeneous solution; it must stay.
Watch out· Sine forcing needs both sine and cosine in the guess
For q′′+5q′+4q=10sin2t the guess Asin2t alone cannot work: the first-derivative term produces cos2t. Use Asin2t+Bcos2t (homework 9 #2). And when the guess is already a homogeneous solution (resonance), multiply by t.
Watch out· Operators on a product: the first derivative of u1 b1 + u2 b2 has extra terms
Without the condition u1′b1+u2′b2=0 the formula for y′ has four terms, and y′′ has u′′ terms. The condition is not an assumption about the solution; it is a free choice that we are allowed to make because we have two unknown functions and only one equation.
Problems
checkMATH 376 worksheet 21 #7 to #9, worksheet 22 #2
Compute the Wronskian: (a) W(cosx,sinx); (b) W(ex,xex); (c) W(cos2x,sin2x); (d) W(ex,e−x). Which pairs are bases of solutions of which equation?
Solution
(a) 1: basis of y′′+y=0. (b) e2x: basis of (D−1)2y=0. (c) 2: basis of y′′+4y=0. (d) −2: basis of y′′−y=0. All are non-zero, so each pair is independent, and two independent solutions of a second-order equation form a basis.
checkMATH 376 practice final 6
Compute W(t,t2,t3) as a function of t, and say where it vanishes. Can t,t2,t3 be solutions of a third-order linear homogeneous equation with continuous coefficients on (−1,1)?
Solution
W(t)=2t3. It vanishes at t=0 only. On an interval containing 0 the answer is no: the Wronskian of three independent solutions of such an equation never vanishes. (They are independent, but they would need coefficients with a singularity at 0.)
check
True or false: (a) If W(f,g)(1)=0 then f,g are independent. (b) If f,g are independent then W(f,g)(1)=0. (c) If f,g solve y′′+3y′+y=0 and W(f,g)(1)=0 then f,g are dependent.
Solution
(a) True (non-zero Wronskian at a point). (b) False: t,t2 are independent and W(0)=0, so independence does not give a non-zero Wronskian at every point; and for t2,t∣t∣ the Wronskian is zero at every point. (c) True: for solutions of one linear equation W is zero everywhere or nowhere.
checkApostol 6.14
Write an annihilating operator for each: (a) 5t2+1; (b) e−3t; (c) tcos2t; (d) etsin3t.
For y′′+2y′+y=1+x21, find the homogeneous solutions, the Wronskian, and u1,u2 as integrals (you need not evaluate them).
Solution
t2+2t+1=(t+1)2, so b1=e−x, b2=xe−x. W=e−x(e−x−xe−x)−(−e−x)(xe−x)=e−2x. With R=1+x21: u1′=−Wb2R=−(1+x2)e−2xxe−x=−1+x2xex and u2′=Wb1R=1+x2ex. So u1=−∫1+x2xexdx and u2=∫1+x2exdx, and yp=u1e−x+u2xe−x. These integrals have no elementary closed form, which is why the worksheet stops here.
useMATH 376 worksheet 23 #6
Solve y′′′′=ex by variation of parameters with the basis 1,x,x2,x3.
Solution
The Wronskian system Wu′=(0,0,0,ex)T reads u1′+xu2′+x2u3′+x3u4′=0, u2′+2xu3′+3x2u4′=0, 2u3′+6xu4′=0, 6u4′=ex. Solve from the bottom: u4′=6ex, u3′=−3xu4′=−2xex, u2′=−2xu3′−3x2u4′=x2ex−2x2ex=2x2ex, u1′=−xu2′−x2u3′−x3u4′=−2x3ex+2x3ex−6x3ex=−6x3ex. Integrating (constants dropped): u4=6ex, u3=−2(x−1)ex, u2=2(x2−2x+2)ex, u1=−6(x3−3x2+6x−6)ex. Then yp=u1+xu2+x2u3+x3u4=ex[−6x3−3x2+6x−6+2x3−2x2+2x−2x3−x2+6x3]=ex. The general solution is y=c1+c2x+c3x2+c4x3+ex, as one sees directly since (ex)′′′′=ex.
(a) −cos2t. (b) r=1 is a root, so try Atet: 2Aet=et, yp=2tet. (c) 2i is a root of t2+4: try t(Acos2t+Bsin2t); yp′′+4yp=−4Asin2t+4Bcos2t, so A=0, B=41: yp=4tsin2t. (d) Try at+b: 2a+5at+5b=5t+7, so a=1, b=1: yp=t+1.
useMATH 376 worksheet 23 #5; worksheet 26 style
Solve y′′′−y′=2 by undetermined coefficients, and give the general solution.
Solution
Homogeneous: t3−t=t(t−1)(t+1), so yh=c1+c2et+c3e−t. The right-hand side 2 has r=0, a simple root of t3−t, so s=1 and we try yp=at. Then yp′′′−yp′=−a=2, so a=−2. General solution: y=c1+c2et+c3e−t−2t.
proveMATH 376 homework 8 #1(1)
Prove that if W(f1,…,fn)(t0)=0 for some t0, the functions are linearly independent.
Solution
Plan. Suppose a combination vanishes, differentiate, and evaluate at t0. See the proof of the theorem in this chapter: ∑cifi(k)(t0)=0 for k=0,…,n−1 says W(t0)c=O with W(t0) invertible, so c=O. ■
proveMATH 376 homework 9 #3
Prove that W(t,t2,…,tr)=Ctr with a constant C=0.
Solution
Plan. Pull the powers of t out of the rows and columns, and show the remaining constant matrix is invertible.
The entry in row j+1 and column i of the Wronskian matrix is dtjdjti=i(i−1)⋯(i−j+1)ti−j. Factor ti from column i and t−j from row j+1: the total power is ∑i=1ri−∑j=0r−1j=2r(r+1)−2r(r−1)=r. The remaining matrix has entries (i)j:=i(i−1)⋯(i−j+1) (a falling factorial), which do not depend on t. Its determinant C is non-zero: if ∑j=0r−1cj(x)j (a polynomial in x of degree at most r−1, because (x)j has degree j) vanishes at x=1,…,r, it has r roots, so it is the zero polynomial; the (x)j have distinct degrees, so all cj=0. Hence the rows of the constant matrix are independent and C=0. (Indeed C=0!1!⋯(r−1)!: 1,2,12 for r=2,3,4.) ■
proveMATH 376 worksheet 22 #3; new for order 3
Derive the system for u1′,u2′,u3′ in variation of parameters for y′′′+a2y′′+a1y′+a0y=R with homogeneous solutions b1,b2,b3.
Solution
Plan. Differentiate y=∑uibi and impose zero extra terms twice.
y′=∑ui′bi+∑uibi′. Impose ∑ui′bi=0: y′=∑uibi′. Then y′′=∑ui′bi′+∑uibi′′. Impose ∑ui′bi′=0: y′′=∑uibi′′. Then y′′′=∑ui′bi′′+∑uibi′′′. Substituting in the equation and using bi′′′+a2bi′′+a1bi′+a0bi=0, we obtain ∑ui′bi′′=R. The system is ∑ui′bi=0, ∑ui′bi′=0, ∑ui′bi′′=R, whose matrix is the Wronskian matrix. (Worksheet 23 #5 with b=(1,x,x2) and R=ex is a case.) ■
proveMATH 376 final 7
Let f(t)=∑kaktk and g(t)=∑kbktk have radius of convergence 1. Show: if f and g are linearly dependent then W(f,g)≡0 on (−1,1); and prove the converse using the fact that a non-zero power series has finitely many zeros in (−1+ε,1−ε).
Solution
Plan. Easy direction by differentiating the relation; hard direction by dividing where g=0, then the identity theorem.
See the proof of the power-series Wronskian test above: (⇒) af+bg=0 and af′+bg′=0 with (a,b)=O give det[ff′gg′]=0. (⇐) If neither is the zero function, choose an interval I where g=0; (f/g)′=−W/g2=0 so f=cg on I; f−cg is a power series with infinitely many zeros in I, hence zero. ■ Note where analyticity is used: the contrast t2 versus t∣t∣ shows the converse fails for C1 functions.
stretchApostol 6.12
Use Abel’s formula to find W(b1,b2) for solutions of y′′+t1y′+(1−t21)y=0 (Bessel’s equation of order 1) on (0,∞), up to a constant. Then, given b1=J1, show how the second solution can be obtained.
Solution
Here a1=t1, so Abel gives W(t)=W(t0)exp(−∫t0ts1ds)=tC. If b1 is known and non-zero on an interval, then W=b1b2′−b1′b2=b12(b1b2)′, so (b1b2)′=tb1(t)2C and b2=b1∫tb12Cdt. This is reduction of order: Abel’s formula turns the second-order equation into a quadrature. ■
stretch
Find the response of y′′+y=f(t), y(0)=y′(0)=0 in the form y(t)=∫0tG(t−s)f(s)ds and compute it for f(t)=t.
Solution
Here b1=cost, b2=sint, W=1, so G(t,s)=cosssint−costsins=sin(t−s), which depends only on t−s. So y(t)=∫0tsin(t−s)f(s)ds. For f(s)=s: integrate by parts, ∫0tssin(t−s)ds=[scos(t−s)]0t−∫0tcos(t−s)ds=t−sint. Check: y=t−sint has y′′+y=sint+t−sint=t, y(0)=0, y′(0)=1−1=0. ■
Summary
The WronskianW(f1,…,fn)=det(fi(j)) is the determinant of the functions and their first n−1 derivatives. For two functions it is the area between the curve (f1,f2) and its tangent vector.
Test.W(t0)=0 at one point proves independence. The converse fails for general functions (t2 and t∣t∣: W≡0, independent), and W can vanish at isolated points of independent functions (t,t2).
For solutions of one linear equation the Wronskian is zero everywhere or nowhere, because the starting-number map is an isomorphism at every time. Abel’s formula: W(t)=W(t0)exp(−∫an−1). For power series, W≡0 is equivalent to independence (final 7).
Variation of parameters: write yp=∑uibi, impose ∑ui′bi(j)=0 for j<n−1, and the equation gives ∑ui′bi(n−1)=R. So Wu′=(0,…,0,R). For n=2: u1′=−b2R/W, u2′=b1R/W. The equation must have leading coefficient 1; constants of integration and homogeneous terms in yp can be dropped.
Undetermined coefficients: for R=q(t)ert try yp=tsh(t)ert with degh=degq and s the multiplicity of r as a characteristic root (resonance when s>0). For sines and cosines use both. It fails for tanx, logx, ex2, where variation of parameters is needed.
Your 376 misses: finish variation of parameters or choose undetermined coefficients for a polynomial right side (final 4(b)); write the easy direction of an iff first (final 7); a zero Wronskian is not a proof of dependence.
Watch and read
The same ideas explained by someone else. Use these when an explanation here does not land.
MATH 376: Final 7 (5 points): for two power series, independent if and only if the Wronskian is not identically zero. Final 4(b) (4 points): the general solution of y'' + 2y' + y = t. Practice final 6: the Wronskian of t, t^2, t^3 at t = 1. Worksheets 21 to 23 and 28 are all Wronskians and variation of parameters.
MATH 340 / PHYSICS: The kernel of variation of parameters is the Green's function: the response of the system at time t to a unit kick at time s. Convolving it with a forcing term gives the response to any forcing.
EE: Resonance in an RLC circuit is the failure of the 'obvious guess' in undetermined coefficients when the forcing frequency equals a natural frequency. A radio tunes to a station by arranging exactly this.