Survey of Mathematics

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 nn 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=RLy = 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.

Before you start

You need determinants and Cramer’s rule, and the solution-space picture of 7.2. Three quick checks:

Quick checkWhat is det⁡[tt212t]\det\begin{bmatrix} t & t^2\\ 1 & 2t\end{bmatrix}?
Quick checkSolve p+q=0p + q = 0, p+2q=1p + 2q = 1. What is qq?
Quick checkWhat is the dimension of the solution space of y′′′+5y′−2y=0y''' + 5y' - 2y = 0?

The picture

Take two functions f1,f2f_1, f_2 and draw the curve γ(t)=(f1(t),f2(t))\gamma(t) = (f_1(t), f_2(t)) in the plane. Its velocity is γ′(t)=(f1′(t),f2′(t))\gamma'(t) = (f_1'(t), f_2'(t)). The Wronskian W=f1f2′−f1′f2W = f_1f_2' - f_1'f_2 is the signed area of the parallelogram spanned by γ\gamma and γ′\gamma' (Technau drew exactly this in the lecture of April 8). Choose a pair and slide tt.

Three things to see. First, for cos⁡t,sin⁡t\cos t, \sin t the area is the same everywhere: 11. Second, for t,2tt, 2t the curve lies on a line through the origin and every parallelogram is flat: W=0W = 0, and f2=2f1f_2 = 2f_1 is exactly the dependence. Third, for t2,t∣t∣t^2, t|t| every parallelogram is also flat, yet the two functions are independent: the curve goes up the line y=xy = x for t>0t > 0 and up the line y=−xy = -x for t<0t < 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+u2b2y = u_1b_1 + u_2b_2 below, with the constants cic_i replaced by functions ui(t)u_i(t).

The idea, in words

Why· Independence test, and why the same determinant solves the equation

To test whether f1,…,fnf_1, \dots, f_n are independent, suppose c1f1+⋯+cnfn=0c_1f_1 + \dots + c_nf_n = 0. Differentiating n−1n - 1 times gives nn equations (the function and its derivatives) that the constants cic_i must satisfy at every tt. They form a linear system whose matrix is the Wronskian matrix. If its determinant is not zero at even one tt, the only solution is c=0c = 0. That is the test. For the inhomogeneous equation we do the reverse: we look for a particular solution y=u1b1+⋯+unbny = u_1b_1 + \dots + u_nb_n, where the bib_i are a basis of the homogeneous solutions and the “constants” uiu_i are now functions. Demanding that y′,y′′,…y', y'', \dots look as if the uiu_i were constant (apart from the last step) gives a system with the SAME matrix for the unknowns ui′u_i'. Since the determinant is not zero, we can solve for the ui′u_i' and integrate.

Definitions and theorems

The Wronskian and independence

Definition T

Wronskian

Let f1,…,fnf_1, \dots, f_n be functions on an interval JJ that are n−1n - 1 times differentiable. Their Wronskian matrix is

W(t)=[f1(t)f2(t)⋯fn(t)f1′(t)f2′(t)⋯fn′(t)⋮⋮f1(n−1)(t)f2(n−1)(t)⋯fn(n−1)(t)]\mathcal W(t) = \begin{bmatrix} f_1(t) & f_2(t) & \cdots & f_n(t)\\ f_1'(t) & f_2'(t) & \cdots & f_n'(t)\\ \vdots & & & \vdots\\ f_1^{(n-1)}(t) & f_2^{(n-1)}(t) & \cdots & f_n^{(n-1)}(t)\end{bmatrix}

and their Wronskian is the function W(f1,…,fn)(t)=det⁡W(t)W(f_1, \dots, f_n)(t) = \det \mathcal W(t). For two functions, W=f1f2′−f1′f2W = f_1f_2' - f_1'f_2. Column ii is the function fif_i and its derivatives, one per row. (Technau’s notes number the rows by derivative order, as here.)

In one lineFor nn functions with n−1n - 1 derivatives, the determinant of the n×nn \times n matrix whose rows are the functions and their successive derivatives: W=det⁡(fi(j))W = \det\big(f_i^{(j)}\big).

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.

  1. t,t2t, t^2. W=t⋅2t−1⋅t2=t2W = t \cdot 2t - 1 \cdot t^2 = t^2. Write the two rows (f1,f2)(f_1, f_2) and (f1′,f2′)(f_1', f_2') and take the determinant.
  2. cos⁡x,sin⁡x\cos x, \sin x. W=cos⁡x⋅cos⁡x−(−sin⁡x)sin⁡x=cos⁡2x+sin⁡2x=1W = \cos x\cdot\cos x - (-\sin x)\sin x = \cos^2x + \sin^2x = 1. The area picture: a unit square.
  3. ex,xexe^x, xe^x. W=ex(ex+xex)−ex⋅xex=e2xW = e^x(e^x + xe^x) - e^x\cdot xe^x = e^{2x}. The xe2xxe^{2x} terms cancel; this is the double-root pair.
  4. cos⁡2x,sin⁡2x\cos2x, \sin2x. W=cos⁡2x⋅2cos⁡2x−(−2sin⁡2x)sin⁡2x=2W = \cos2x\cdot2\cos2x - (-2\sin2x)\sin2x = 2. The factor 22 comes from the chain rule.
  5. ex,e−xe^x, e^{-x}. W=ex(−e−x)−ex e−x=−2W = e^x(-e^{-x}) - e^x\,e^{-x} = -2. Be careful with the sign: the answer is negative. This sign matters in variation of parameters.
  6. t,t2,t3t, t^2, t^3 at t=1t = 1. W(t)=det⁡[tt2t312t3t2026t]W(t) = \det\begin{bmatrix} t & t^2 & t^3\\ 1 & 2t & 3t^2\\ 0 & 2 & 6t\end{bmatrix}, so W(1)=det⁡[111123026]=1(12−6)−1(6−0)+1(2−0)=2W(1) = \det\begin{bmatrix}1 & 1 & 1\\1 & 2 & 3\\0 & 2 & 6\end{bmatrix} = 1(12 - 6) - 1(6 - 0) + 1(2 - 0) = 2. Expand along the first row (2.7). In general W=2t3W = 2t^3.

Answer. t2t^2; 11; e2xe^{2x}; 22; −2-2; W(1)=2W(1) = 2.

Your answerWhat is W(e−t,e−2t)W(e^{-t}, e^{-2t}) at t=1t = 1? (Three decimals.)
Theorem T MATH 376 homework 8 #1; Apostol 6.12

A non-zero Wronskian proves independence

Let f1,…,fnf_1, \dots, f_n be n−1n - 1 times differentiable on JJ. If det⁡W(t0)≠0\det\mathcal W(t_0) \ne 0 for some t0∈Jt_0 \in J, then c1f1+⋯+cnfn=0c_1f_1 + \dots + c_nf_n = 0 on JJ forces c1=⋯=cn=0c_1 = \dots = c_n = 0.

In one lineIf W(f1,…,fn)(t0)≠0W(f_1, \dots, f_n)(t_0) \ne 0 at even one point t0t_0 of JJ, then f1,…,fnf_1, \dots, f_n are linearly independent on JJ.

Why it is trueA dependence relation, differentiated n−1n - 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=0c_1f_1 + \dots + c_nf_n = 0 on JJ, for some numbers cic_i.
Linear independence is the statement that a vanishing combination has all coefficients zero (2.2).
Differentiating kk times: c1f1(k)+⋯+cnfn(k)=0c_1f_1^{(k)} + \dots + c_nf_n^{(k)} = 0 on JJ, for k=0,1,…,n−1k = 0, 1, \dots, 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−1k \le n - 1.
At t=t0t = t_0 these nn equations are the single matrix equation W(t0) c=O\mathcal W(t_0)\,c = O.
Row kk of W(t)\mathcal W(t) times the column cc is ∑icifi(k)(t)\sum_ic_if_i^{(k)}(t).
Since det⁡W(t0)≠0\det\mathcal W(t_0) \ne 0, c=Oc = O. ■\blacksquare
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.

  1. Choose the pair. f1(t)=t2f_1(t) = t^2 and f2(t)=t∣t∣f_2(t) = t|t| on R\mathbb R. For t>0t > 0, f2=t2f_2 = t^2, and for t<0t < 0, f2=−t2f_2 = -t^2. Piazza post 18: when the problem asks for an example, you must show the example has the property.
  2. They are differentiable. f2′=2∣t∣f_2' = 2|t| everywhere (at t=0t = 0 the derivative is 00 from both sides). The Wronskian needs one derivative of each.
  3. Compute the Wronskian. W=f1f2′−f1′f2=t2⋅2∣t∣−2t⋅t∣t∣=2t2∣t∣−2t2∣t∣=0W = f_1f_2' - f_1'f_2 = t^2\cdot2|t| - 2t\cdot t|t| = 2t^2|t| - 2t^2|t| = 0 for every tt. Directly from the definition.
  4. Show they are independent. Suppose at2+bt∣t∣=0at^2 + bt|t| = 0 for all tt. For t>0t > 0 this reads (a+b)t2=0(a + b)t^2 = 0, so a+b=0a + b = 0. For t<0t < 0 it reads (a−b)t2=0(a - b)t^2 = 0, so a−b=0a - b = 0. Hence a=b=0a = b = 0. Use two values of tt, one on each side of 00.
  5. A zero at a single point. W(t,t2)=t2W(t, t^2) = t^2 vanishes at t=0t = 0 only, yet t,t2t, t^2 are independent (take t0=1t_0 = 1 in the theorem). The theorem needs one non-zero value, not all values.
  6. A larger family. W(t,t2,…,tr)=CtrW(t, t^2, \dots, t^r) = Ct^r with C≠0C \ne 0, which is zero only at t=0t = 0 (homework 9 #3, proved in the problems). Independent functions can have a Wronskian that vanishes at isolated points.

Answer. t2t^2 and t∣t∣t|t|: W≡0W \equiv 0 but independent. The converse of the theorem fails for general functions.

Quick checkf(t)=t2f(t) = t^2 and g(t)=t∣t∣g(t) = t|t| have Wronskian identically 00. What does that tell you?

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 T Technau, April 8 (Lemma 7.23); Apostol 6.12 (Theorem 6.12)

Wronskian of solutions of a linear equation

Let b1,…,bnb_1, \dots, b_n be solutions of the homogeneous linear equation Ly=0Ly = 0 of order nn on JJ (continuous coefficients). Then: (i) b1,…,bnb_1, \dots, b_n are linearly independent; (ii) W(b1,…,bn)(t)≠0W(b_1, \dots, b_n)(t) \ne 0 for every t∈Jt \in J; (iii) W(b1,…,bn)(t0)≠0W(b_1, \dots, b_n)(t_0) \ne 0 for some t0∈Jt_0 \in J. These are equivalent. In particular a Wronskian of solutions has no isolated zeros.

In one lineFor nn solutions of Ly=0Ly = 0 the following are equivalent: they are linearly independent; W(t)≠0W(t) \ne 0 for every tt; W(t0)≠0W(t_0) \ne 0 for some t0t_0. So WW is either zero everywhere or non-zero everywhere.

Why it is trueThe map from a solution to its starting numbers at tt is an isomorphism for each tt, and the columns of the Wronskian matrix at tt are exactly the starting numbers of the nn solutions.

Why· The picture behind the proof

In the picture, a pair of solutions of one equation such as y′′+y=0y'' + y = 0 gives a curve γ(t)=(b1,b2)\gamma(t) = (b_1, b_2) that is never tangent to its own radius. The reason is the starting-number isomorphism of 7.2: the column (bi(t),bi′(t),… )(b_i(t), b_i'(t), \dots) is the starting vector of bib_i at time tt, and two independent solutions have independent starting vectors at EVERY time, not only at one. The pair t,t2t, t^2 cannot be solutions of a linear equation with continuous coefficients near 00: its Wronskian t2t^2 has an isolated zero. (They solve t2y′′−2ty′+2y=0t^2y'' - 2ty' + 2y = 0, whose leading coefficient t2t^2 vanishes at 00, 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∈Jt \in J, μt\mu_t is an isomorphism.
Fix t∈Jt \in J and define μt:ker⁡L→Rn\mu_t : \ker L \to \mathbb R^n, μt(y)=(y(t),y′(t),…,y(n−1)(t))\mu_t(y) = (y(t), y'(t), \dots, 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)]\mathcal W(t) = \big[\mu_t(b_1)\ \cdots\ \mu_t(b_n)\big].
The ii-th column of W(t)\mathcal W(t) is (bi(t),bi′(t),…,bi(n−1)(t))=μt(bi)(b_i(t), b_i'(t), \dots, b_i^{(n-1)}(t)) = \mu_t(b_i).
(i) ⇒\Rightarrow (ii): if the bib_i are independent, the columns of W(t)\mathcal W(t) are independent for every tt, so det⁡W(t)≠0\det\mathcal W(t) \ne 0.
An isomorphism sends independent vectors to independent vectors, and a square matrix has non-zero determinant exactly when its columns are independent.
(ii) ⇒\Rightarrow (iii).
Trivial: if it holds for all tt it holds for one.
(iii) ⇒\Rightarrow (i). ■\blacksquare
The previous theorem (non-zero Wronskian at a point proves independence).
Theorem A Apostol 6.12 (Theorem 6.12); Abel

Abel's formula

Let b1,…,bnb_1, \dots, b_n solve Ly=0Ly = 0 with L=Dn+an−1Dn−1+⋯+a0L = D^n + a_{n-1}D^{n-1} + \dots + a_0 on JJ. Then W′+an−1W=0W' + a_{n-1}W = 0 on JJ, and for t0∈Jt_0 \in J: W(t)=W(t0)exp⁡ ⁣(−∫t0tan−1(s) ds)W(t) = W(t_0)\exp\!\Big(-\displaystyle\int_{t_0}^{t}a_{n-1}(s)\,ds\Big). If an−1≡0a_{n-1} \equiv 0, WW is constant.

In one lineIf b1,…,bnb_1, \dots, b_n solve y(n)+an−1y(n−1)+⋯=0y^{(n)} + a_{n-1}y^{(n-1)} + \dots = 0, their Wronskian satisfies W′=−an−1WW' = -a_{n-1}W, so W(t)=W(t0)exp⁡ ⁣(−∫t0tan−1)W(t) = W(t_0)\exp\!\big(-\int_{t_0}^{t}a_{n-1}\big).

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-a_{n-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⁡W' = \det of the matrix with the last row replaced by (b1(n),…,bn(n))(b_1^{(n)}, \dots, b_n^{(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−1k < n - 1 gives the row b(k+1)b^{(k+1)}, which is already the next row, so the determinant has two equal rows and is 00.
So the new last row is −an−1⋅(old last row)−an−2⋅(row n−1)−⋯−a0⋅(row 1)-a_{n-1}\cdot(\text{old last row}) - a_{n-2}\cdot(\text{row } n-1) - \dots - a_0\cdot(\text{row }1).
Each bib_i satisfies bi(n)=−an−1bi(n−1)−⋯−a0bib_i^{(n)} = -a_{n-1}b_i^{(n-1)} - \dots - a_0b_i.
W′=−an−1WW' = -a_{n-1}W.
Adding a multiple of one row to another does not change a determinant. The terms with the rows 1,…,n−11, \dots, n - 1 are removed, leaving −an−1-a_{n-1} times the last row.
So W(t)=W(t0)exp⁡(−∫t0tan−1)W(t) = W(t_0)\exp\big(-\int_{t_0}^{t}a_{n-1}\big). ■\blacksquare
The linear equation W′=−an−1WW' = -a_{n-1}W is solved by the integrating factor (7.2): (We∫an−1)′=0\big(We^{\int a_{n-1}}\big)' = 0.

Abel’s formula gives the equivalence theorem a second proof, and a number. For y′′+3y′+2y=0y'' + 3y' + 2y = 0 the solutions e−te^{-t} and e−2te^{-2t} have W=−e−3tW = -e^{-3t}, and Abel’s formula with a1=3a_1 = 3 says W(t)=W(0)e−3tW(t) = W(0)e^{-3t} with W(0)=−1W(0) = -1. The two agree.

Fact T MATH 376 homework 8 #1(3)

Wronskian of exponentials

Let r1,…,rnr_1, \dots, r_n be distinct. Then W(er1t,…,ernt)(t)=e(r1+⋯+rn)tdet⁡(ri j)i=1..n, j=0..n−1W(e^{r_1t}, \dots, e^{r_nt})(t) = e^{(r_1 + \dots + r_n)t}\det\big(r_i^{\,j}\big)_{i = 1..n,\ j = 0..n-1}, and the determinant is non-zero.

In one lineFor distinct numbers r1,…,rnr_1, \dots, r_n, W(er1t,…,ernt)=e(r1+⋯+rn)t⋅VW(e^{r_1t}, \dots, e^{r_nt}) = e^{(r_1 + \dots + r_n)t}\cdot V with V=det⁡(ri j)V = \det(r_i^{\,j}) non-zero, so the exponentials are independent.

Why it is trueFactor erite^{r_it} out of each column. What remains is a Vandermonde matrix, which is invertible when the rir_i 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)(j, i) of W\mathcal W is rijeritr_i^je^{r_it} for j=0,…,n−1j = 0, \dots, n - 1.
(erit)(j)=rijerit(e^{r_it})^{(j)} = r_i^je^{r_it}.
So W=e(r1+⋯+rn)tdet⁡(ri j)W = e^{(r_1 + \dots + r_n)t}\det\big(r_i^{\,j}\big).
A common factor of a whole column comes out of a determinant (2.7).
Suppose det⁡V=0\det V = 0.
Suppose the Vandermonde matrix VV is singular. Then some non-zero c=(c0,…,cn−1)c = (c_0, \dots, c_{n-1}) has ∑jcjrij=0\sum_jc_jr_i^j = 0 for every ii, that is, p(x)=∑jcjxjp(x) = \sum_jc_jx^j has the nn distinct roots r1,…,rnr_1, \dots, r_n.
That is impossible, so det⁡V≠0\det V \ne 0. ■\blacksquare
A non-zero polynomial of degree at most n−1n - 1 has at most n−1n - 1 roots (0.6). So p=0p = 0 and c=Oc = O, contradicting c≠Oc \ne O.
Theorem T MATH 376 final 7

Wronskian test for power series

Let f,g:(−1,1)→Rf, g : (-1, 1) \to \mathbb R be given by power series with radius of convergence 11 (1.6). Then f,gf, g are linearly independent if and only if their Wronskian W=fg′−f′gW = fg' - f'g is not identically zero on (−1,1)(-1, 1). You may use the fact: a non-zero power series hh has only finitely many zeros in (−1+ε,1−ε)(-1 + \varepsilon, 1 - \varepsilon), for each ε>0\varepsilon > 0.

In one lineIf ff and gg are power series with radius of convergence 11, then f,gf, g are linearly independent on (−1,1)(-1, 1) if and only if W(f,g)W(f, g) is not identically zero.

Why it is trueDependent functions always have W≡0W \equiv 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)).
(⇒\Rightarrow, contrapositive) Suppose f,gf, g are dependent: af+bg=0af + bg = 0 on (−1,1)(-1, 1) with (a,b)≠(0,0)(a, b) \ne (0, 0).
If f,gf, g are dependent there are a,ba, b, not both 00, with af+bg=0af + bg = 0. This is the definition of linear dependence.
Then also af′+bg′=0af' + bg' = 0.
Power series can be differentiated term by term inside the radius (1.6), so f,gf, g are differentiable; differentiate the relation.
So W(t)=fg′−f′g=0W(t) = fg' - f'g = 0 for all tt.
These two equations say [fgf′g′][ab]=O\begin{bmatrix}f & g\\f' & g'\end{bmatrix}\begin{bmatrix}a\\b\end{bmatrix} = O at every tt, with a non-zero vector. So the matrix is singular at every tt.
If one of them is the zero function, they are dependent. So assume neither is.
(⇐\Leftarrow, contrapositive) Suppose W≡0W \equiv 0. If f≡0f \equiv 0 then 1⋅f+0⋅g=01\cdot f + 0\cdot g = 0 is a non-trivial relation, and the same if g≡0g \equiv 0.
Fix ε>0\varepsilon > 0. There is a non-empty open interval I⊆(−1+ε,1−ε)I \subseteq (-1 + \varepsilon, 1 - \varepsilon) on which g≠0g \ne 0.
g≢0g \not\equiv 0 is a non-zero power series, so it has finitely many zeros in (−1+ε,1−ε)(-1 + \varepsilon, 1 - \varepsilon) (the fact you may use). A finite set has gaps: some open interval II inside has no zero of gg.
On II: (fg)′=f′g−fg′g2=−Wg2=0\left(\dfrac fg\right)' = \dfrac{f'g - fg'}{g^2} = -\dfrac{W}{g^2} = 0.
Quotient rule, then W=fg′−f′g=0W = fg' - f'g = 0.
So f/g=cf/g = c on II for some constant cc, that is, f−cg=0f - cg = 0 on II.
A function with zero derivative on an interval is constant (1.4).
h=f−cgh = f - cg is a power series vanishing on II, hence h≡0h \equiv 0 on (−1,1)(-1, 1).
The difference of two power series centred at 00 is a power series with radius at least 11. It has infinitely many zeros in (−1+ε,1−ε)(-1 + \varepsilon, 1 - \varepsilon) (all points of II), so by the fact it is the zero series.
So f,gf, g are dependent. ■\blacksquare
f=cgf = cg on all of (−1,1)(-1, 1) is the non-trivial relation 1⋅f−c⋅g=01\cdot f - c\cdot 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.

    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 11 of 55. It would have given 22 more points for the easy direction alone (dependent implies W≡0W \equiv 0) and 33 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≠0g \ne 0, the quotient is constant, spread by the identity theorem).

    Your answerPractice final 6: what is the Wronskian of t,t2,t3t, t^2, t^3 at t=1t = 1?

    Variation of parameters

    Now the particular solution. Take a second-order equation y′′+a1(t)y′+a0(t)y=R(t)y'' + a_1(t)y' + a_0(t)y = R(t) whose homogeneous solutions b1,b2b_1, b_2 we know. The general solution of the homogeneous equation is c1b1+c2b2c_1b_1 + c_2b_2 with constants. Lagrange’s idea: let the constants vary.

    Definition T

    Variation of parameters

    Variation of parameters finds a particular solution of Ly=RLy = R in the form yp=∑iuibiy_p = \sum_iu_ib_i with uiu_i functions of tt, subject to the conditions ∑iui′bi(j)=0\sum_iu_i'b_i^{(j)} = 0 for j=0,…,n−2j = 0, \dots, n - 2 (and the equation itself gives the last condition ∑iui′bi(n−1)=R\sum_iu_i'b_i^{(n-1)} = R).

    In one lineLook for a particular solution y=u1(t)b1(t)+⋯+un(t)bn(t)y = u_1(t)b_1(t) + \dots + u_n(t)b_n(t), where the bib_i are a basis of the homogeneous solutions and the coefficients uiu_i are unknown functions; impose n−1n - 1 extra conditions that make the derivatives clean.

    Why it existsThe constants of the homogeneous solution become functions. We get nn unknown functions and only one equation, so we are free to choose n−1n - 1 more equations, and we choose them to simplify the derivatives.

    Here is the derivation for n=2n = 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.

    1. Set the form. y=u1b1+u2b2y = u_1b_1 + u_2b_2 where b1,b2b_1, b_2 are independent solutions of y′′+a1y′+a0y=0y'' + a_1y' + a_0y = 0. If u1,u2u_1, u_2 were constants this would be a homogeneous solution. We let them vary.
    2. Differentiate once. y′=u1′b1+u1b1′+u2′b2+u2b2′y' = u_1'b_1 + u_1b_1' + u_2'b_2 + u_2b_2'. Product rule on each term.
    3. Impose the first condition. We choose u1′b1+u2′b2=0u_1'b_1 + u_2'b_2 = 0, so y′=u1b1′+u2b2′y' = u_1b_1' + u_2b_2'. We have two unknown functions and one equation, so we may impose one more condition. This one makes y′y' look like the constants case, and avoids u′′u'' terms later.
    4. Differentiate again. y′′=u1′b1′+u1b1′′+u2′b2′+u2b2′′y'' = u_1'b_1' + u_1b_1'' + u_2'b_2' + u_2b_2''. Product rule once more.
    5. Substitute into the equation. y′′+a1y′+a0y=u1′b1′+u2′b2′+u1(b1′′+a1b1′+a0b1)+u2(b2′′+a1b2′+a0b2)y'' + a_1y' + a_0y = u_1'b_1' + u_2'b_2' + u_1(b_1'' + a_1b_1' + a_0b_1) + u_2(b_2'' + a_1b_2' + a_0b_2). Collect the terms with u1u_1 and with u2u_2 separately.
    6. Use that b1,b2b_1, b_2 are homogeneous solutions. Both brackets are 00, so the equation becomes u1′b1′+u2′b2′=Ru_1'b_1' + u_2'b_2' = R. This is the second condition: the only place the right-hand side enters.
    7. Solve the system. [b1b2b1′b2′][u1′u2′]=[0R]\begin{bmatrix}b_1 & b_2\\b_1' & b_2'\end{bmatrix}\begin{bmatrix}u_1'\\u_2'\end{bmatrix} = \begin{bmatrix}0\\R\end{bmatrix}. The matrix is the Wronskian matrix, with determinant W=b1b2′−b1′b2≠0W = b_1b_2' - b_1'b_2 \ne 0. By Cramer’s rule, u1′=det⁡[0b2Rb2′]W=−b2RWu_1' = \dfrac{\det\begin{bmatrix}0 & b_2\\R & b_2'\end{bmatrix}}{W} = -\dfrac{b_2R}{W} and u2′=det⁡[b10b1′R]W=b1RWu_2' = \dfrac{\det\begin{bmatrix}b_1 & 0\\b_1' & R\end{bmatrix}}{W} = \dfrac{b_1R}{W}. W≠0W \ne 0 because b1,b2b_1, b_2 are independent solutions, by the equivalence theorem above.

    Answer. u1′=−b2RWu_1' = -\dfrac{b_2R}{W}, u2′=b1RWu_2' = \dfrac{b_1R}{W}. Integrate to get u1,u2u_1, u_2 and set yp=u1b1+u2b2y_p = u_1b_1 + u_2b_2.

    The same idea works for any order, and there is a clean proof.

    Theorem T Technau, April 8 and 10 (Proposition 7.24); Apostol 6.11

    Variation of parameters formula

    Let L=Dn+an−1Dn−1+⋯+a0L = D^n + a_{n-1}D^{n-1} + \dots + a_0 with continuous coefficients and RR continuous on JJ. Let b1,…,bnb_1, \dots, b_n be a basis of ker⁡L\ker L and W(t)\mathcal W(t) its Wronskian matrix (invertible for all tt). Let t0∈Jt_0 \in J and define u(t)=∫t0tW(s)−1 (0,…,0,R(s))T dsu(t) = \int_{t_0}^{t}\mathcal W(s)^{-1}\,(0, \dots, 0, R(s))^{\mathsf T}\,ds (coordinate by coordinate). Then yp(t)=∑iui(t) bi(t)y_p(t) = \sum_{i}u_i(t)\,b_i(t) satisfies Lyp=RLy_p = R.

    In one lineIf b1,…,bnb_1, \dots, b_n is a basis of ker⁡L\ker L with Wronskian matrix W\mathcal W, and u′=W−1(0,…,0,R)Tu' = \mathcal W^{-1}(0, \dots, 0, R)^{\mathsf T}, then yp=u1b1+⋯+unbny_p = u_1b_1 + \dots + u_nb_n solves Ly=RLy = R.

    Why it is trueThe equation Wu′=(0,…,0,R)\mathcal Wu' = (0, \dots, 0, R) says the first n−1n - 1 derivatives of ypy_p look like those of a homogeneous solution, and the nn-th differs from it by exactly RR.

    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)Tu'(t) = \mathcal W(t)^{-1}(0, \dots, 0, R)^{\mathsf T}, that is, Wu′=(0,…,0,R)T\mathcal W u' = (0, \dots, 0, R)^{\mathsf T}.
    Fundamental theorem of calculus, coordinate by coordinate. Multiply by W\mathcal W.
    So ∑iui′bi(j)=0\sum_iu_i'b_i^{(j)} = 0 for j=0,…,n−2j = 0, \dots, n - 2 and ∑iui′bi(n−1)=R\sum_iu_i'b_i^{(n-1)} = R.
    Row jj of Wu′\mathcal Wu' is ∑iui′bi(j)\sum_iu_i'b_i^{(j)}. The vector (0,…,0,R)(0, \dots, 0, R) has 00 in rows 0,…,n−20, \dots, n-2 and RR in row n−1n - 1.
    Hence yp(j)=u⋅b(j)y_p^{(j)} = u \cdot b^{(j)} for j=0,1,…,n−1j = 0, 1, \dots, n - 1, by induction on jj.
    Product rule. Write u⋅b(j)=∑iuibi(j)u \cdot b^{(j)} = \sum_iu_ib_i^{(j)}. Then (u⋅b(j))′=u′⋅b(j)+u⋅b(j+1)(u \cdot b^{(j)})' = u'\cdot b^{(j)} + u \cdot b^{(j+1)}, and the first term is 00 for j≤n−2j \le n - 2.
    yp(n)=u′⋅b(n−1)+u⋅b(n)=R+u⋅b(n)y_p^{(n)} = u' \cdot b^{(n-1)} + u\cdot b^{(n)} = R + u\cdot b^{(n)}.
    One more derivative: the first term is now u′⋅b(n−1)=Ru'\cdot b^{(n-1)} = R.
    Substitute into LL.
    Linearity: Lyp=yp(n)+∑jajyp(j)=R+u⋅(b(n)+∑jajb(j))Ly_p = y_p^{(n)} + \sum_ja_jy_p^{(j)} = R + u\cdot\big(b^{(n)} + \sum_ja_jb^{(j)}\big).
    So Lyp=RLy_p = R. ■\blacksquare
    Each bib_i solves Lbi=0Lb_i = 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.

    1. Let u′=W−1(0,…,0,R)Tu' = \mathcal W^{-1}(0, \dots, 0, R)^{\mathsf T}, so that ∑iui′bi(j)=0\sum_iu_i'b_i^{(j)} = 0 for j≤n−2j \le n - 2 and =R= R for j=n−1j = n - 1.
    2. Then yp(j)=∑iuibi(j)y_p^{(j)} = \sum_iu_ib_i^{(j)} for j≤n−1j \le n - 1.
    3. Then yp(n)=R+∑iuibi(n)y_p^{(n)} = R + \sum_iu_ib_i^{(n)}.
    4. So Lyp=R+∑iui (Lbi)=RLy_p = R + \sum_iu_i\,(Lb_i) = R.
    Watch out· Normalise first: the leading coefficient must be 1

    The formulas u1′=−b2R/Wu_1' = -b_2R/W and u2′=b1R/Wu_2' = b_1R/W and the vector (0,…,0,R)(0, \dots, 0, R) assume the equation is written y(n)+⋯=Ry^{(n)} + \dots = R, with coefficient 11 in front of y(n)y^{(n)}. For x2y′′+xy′−y=x3x^2y'' + xy' - y = x^3 you divide first: the RR to use is xx.

    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.

    1. First equation: basis and Wronskian. y′′+y=0y'' + y = 0 has b1=cos⁡xb_1 = \cos x, b2=sin⁡xb_2 = \sin x, W=1W = 1. The roots are ±i\pm i.
    2. The u′u'. u1′=−sin⁡xtan⁡x=−sin⁡2xcos⁡x=−(sec⁡x−cos⁡x)u_1' = -\sin x\tan x = -\dfrac{\sin^2x}{\cos x} = -(\sec x - \cos x) and u2′=cos⁡xtan⁡x=sin⁡xu_2' = \cos x\tan x = \sin x. The formulas with R=tan⁡xR = \tan x, W=1W = 1. And sin⁡2x=1−cos⁡2x\sin^2x = 1 - \cos^2x.
    3. Integrate. u1=−ln⁡∣sec⁡x+tan⁡x∣+sin⁡xu_1 = -\ln|\sec x + \tan x| + \sin x and u2=−cos⁡xu_2 = -\cos x. ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣\int\sec x\,dx = \ln|\sec x + \tan x|; constants of integration are dropped since they only add homogeneous solutions.
    4. Assemble. yp=u1cos⁡x+u2sin⁡x=−cos⁡xln⁡∣sec⁡x+tan⁡x∣+sin⁡xcos⁡x−cos⁡xsin⁡x=−cos⁡xln⁡∣sec⁡x+tan⁡x∣y_p = u_1\cos x + u_2\sin x = -\cos x\ln|\sec x + \tan x| + \sin x\cos x - \cos x\sin x = -\cos x\ln|\sec x + \tan x|. The two sin⁡xcos⁡x\sin x\cos x terms cancel.
    5. Second equation. y′′−y=exy'' - y = e^x: b1=exb_1 = e^x, b2=e−xb_2 = e^{-x}, W=−2W = -2. u1′=−e−xex−2=12u_1' = -\dfrac{e^{-x}e^x}{-2} = \dfrac12 and u2′=exex−2=−e2x2u_2' = \dfrac{e^xe^x}{-2} = -\dfrac{e^{2x}}{2}. So u1=x2u_1 = \frac x2, u2=−e2x4u_2 = -\frac{e^{2x}}{4} and yp=x2ex−14exy_p = \frac x2e^x - \frac14e^x. The term −14ex-\frac14e^x is a homogeneous solution and may be dropped: yp=x2exy_p = \frac x2e^x. Remember the sign of WW, and integrate u1′u_1': it is a constant 12\frac12, not a final answer.
    6. Third equation. b1=exb_1 = e^x, b2=xexb_2 = xe^x, W=e2xW = e^{2x}. u1′=−xex⋅ex/(1+x2)e2x=−x1+x2u_1' = -\dfrac{xe^x\cdot e^x/(1 + x^2)}{e^{2x}} = -\dfrac{x}{1 + x^2} and u2′=ex⋅ex/(1+x2)e2x=11+x2u_2' = \dfrac{e^x\cdot e^x/(1 + x^2)}{e^{2x}} = \dfrac{1}{1 + x^2}. So u1=−12ln⁡(1+x2)u_1 = -\frac12\ln(1 + x^2), u2=arctan⁡xu_2 = \arctan x, and yp=−12exln⁡(1+x2)+xexarctan⁡xy_p = -\frac12e^x\ln(1 + x^2) + xe^x\arctan x. Exponentials cancel against WW here.
    7. Fourth equation. b1=cos⁡2xb_1 = \cos2x, b2=sin⁡2xb_2 = \sin2x, W=2W = 2. u1′=−sin⁡2xsec⁡2x2=−tan⁡2x2u_1' = -\dfrac{\sin2x\sec2x}{2} = -\dfrac{\tan2x}{2} and u2′=cos⁡2xsec⁡2x2=12u_2' = \dfrac{\cos2x\sec2x}{2} = \dfrac12. So u1=14ln⁡∣cos⁡2x∣u_1 = \frac14\ln|\cos2x|, u2=x2u_2 = \frac x2, and yp=14cos⁡2xln⁡∣cos⁡2x∣+x2sin⁡2xy_p = \frac14\cos2x\ln|\cos2x| + \frac x2\sin2x. ∫tan⁡2x dx=−12ln⁡∣cos⁡2x∣\int\tan2x\,dx = -\frac12\ln|\cos2x|.

    Answer. The general solutions are c1cos⁡x+c2sin⁡x−cos⁡xln⁡∣sec⁡x+tan⁡x∣c_1\cos x + c_2\sin x - \cos x\ln|\sec x + \tan x|; c1ex+c2e−x+x2exc_1e^x + c_2e^{-x} + \frac x2e^x; c1ex+c2xex−12exln⁡(1+x2)+xexarctan⁡xc_1e^x + c_2xe^x - \frac12e^x\ln(1 + x^2) + xe^x\arctan x; c1cos⁡2x+c2sin⁡2x+14cos⁡2xln⁡∣cos⁡2x∣+x2sin⁡2xc_1\cos2x + c_2\sin2x + \frac14\cos2x\ln|\cos2x| + \frac x2\sin2x.

    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.

    1. Solve the homogeneous equation. t2+2t+1=(t+1)2t^2 + 2t + 1 = (t + 1)^2, a double root −1-1. So b1=e−tb_1 = e^{-t}, b2=te−tb_2 = te^{-t}. The double-root basis of 7.2.
    2. Wronskian. W=e−t(e−t−te−t)−(−e−t)(te−t)=e−2tW = e^{-t}(e^{-t} - te^{-t}) - (-e^{-t})(te^{-t}) = e^{-2t}. The te−2tte^{-2t} terms cancel.
    3. The u′u' with R=tR = t. u1′=−te−t⋅te−2t=−t2etu_1' = -\dfrac{te^{-t}\cdot t}{e^{-2t}} = -t^2e^t and u2′=e−t⋅te−2t=tetu_2' = \dfrac{e^{-t}\cdot t}{e^{-2t}} = te^t. This is where your final stopped: the system for u1′,u2′u_1', u_2' was never solved.
    4. Integrate by parts. ∫t2et dt=et(t2−2t+2)\int t^2e^t\,dt = e^t(t^2 - 2t + 2) and ∫tet dt=et(t−1)\int te^t\,dt = e^t(t - 1). So u1=−et(t2−2t+2)u_1 = -e^t(t^2 - 2t + 2) and u2=et(t−1)u_2 = e^t(t - 1). Differentiate to check: (et(t−1))′=tet\big(e^t(t - 1)\big)' = te^t.
    5. Assemble. yp=u1b1+u2b2=−(t2−2t+2)+t(t−1)=t−2y_p = u_1b_1 + u_2b_2 = -(t^2 - 2t + 2) + t(t - 1) = t - 2. Everything with ete^t cancels against e−te^{-t}, as it should for a polynomial right-hand side.
    6. Write the general solution. y=(C1+C2t)e−t+t−2y = (C_1 + C_2t)e^{-t} + t - 2. Homogeneous plus particular.
    7. Check. yp=t−2y_p = t - 2 has yp′=1y_p' = 1 and yp′′=0y_p'' = 0, so yp′′+2yp′+yp=0+2+t−2=ty_p'' + 2y_p' + y_p = 0 + 2 + t - 2 = t. Substituting the particular solution back is the fastest check.

    Answer. y=(C1+C2t)e−t+t−2y = (C_1 + C_2t)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.

    1. Set up for y′′′=exy''' = e^x. The homogeneous solutions are b=(1,x,x2)b = (1, x, x^2). We need u1′,u2′,u3′u_1', u_2', u_3' with u1′+xu2′+x2u3′=0u_1' + xu_2' + x^2u_3' = 0, u2′+2xu3′=0u_2' + 2xu_3' = 0, 2u3′=ex2u_3' = e^x. The conditions are the Wronskian system Wu′=(0,0,R)\mathcal Wu' = (0, 0, R) written out row by row.
    2. Solve from the bottom. u3′=ex2u_3' = \frac{e^x}{2}; u2′=−2xu3′=−xexu_2' = -2xu_3' = -xe^x; u1′=−xu2′−x2u3′=x2ex−x22ex=x2ex2u_1' = -xu_2' - x^2u_3' = x^2e^x - \frac{x^2}{2}e^x = \frac{x^2e^x}{2}. The system is triangular, so back-substitution works.
    3. Integrate and assemble. u3=ex2u_3 = \frac{e^x}{2}, u2=(1−x)exu_2 = (1 - x)e^x, u1=12ex(x2−2x+2)u_1 = \frac12e^x(x^2 - 2x + 2). So yp=u1+xu2+x2u3=ex[x22−x+1+x−x2+x22]=exy_p = u_1 + xu_2 + x^2u_3 = e^x\big[\frac{x^2}2 - x + 1 + x - x^2 + \frac{x^2}2\big] = e^x. (ex)′′′=ex(e^x)''' = e^x, so the answer could have been guessed. The method finds it without guessing.
    4. The lecture’s example. For y′′′+3y′′+2y′=e−2ty''' + 3y'' + 2y' = e^{-2t} the roots of t3+3t2+2t=t(t+1)(t+2)t^3 + 3t^2 + 2t = t(t + 1)(t + 2) are 0,−1,−20, -1, -2, so b=(1,e−t,e−2t)b = (1, e^{-t}, e^{-2t}). The Wronskian matrix is [1e−te−2t0−e−t−2e−2t0e−t4e−2t]\begin{bmatrix}1 & e^{-t} & e^{-2t}\\0 & -e^{-t} & -2e^{-2t}\\0 & e^{-t} & 4e^{-2t}\end{bmatrix} with determinant −2e−3t-2e^{-3t}. Expand along the first column; the minor is −4e−3t+2e−3t-4e^{-3t} + 2e^{-3t}.
    5. Cramer’s rule with the last-row cofactors. The cofactors of the entries (3,1),(3,2),(3,3)(3, 1), (3, 2), (3, 3) are −e−3t-e^{-3t}, 2e−2t2e^{-2t}, −e−t-e^{-t}, so u′=R−2e−3t(−e−3t,2e−2t,−e−t)=R(12,−et,12e2t)u' = \dfrac{R}{-2e^{-3t}}\big(-e^{-3t}, 2e^{-2t}, -e^{-t}\big) = R\big(\tfrac12, -e^{t}, \tfrac12e^{2t}\big). With R=e−2tR = e^{-2t}: u′=(12e−2t,−e−t,12)u' = \big(\frac12e^{-2t}, -e^{-t}, \frac12\big). The solution of Wu′=(0,0,R)\mathcal Wu' = (0, 0, R) uses the third column of W−1\mathcal W^{-1}, which is the cofactors of the third row divided by det⁡W\det\mathcal W.
    6. Integrate and assemble. u=(−14e−2t,e−t,t2)u = \big(-\frac14e^{-2t}, e^{-t}, \frac t2\big), so yp=−14e−2t+e−2t+t2e−2t=(34+t2)e−2ty_p = -\frac14e^{-2t} + e^{-2t} + \frac t2e^{-2t} = \big(\frac34 + \frac t2\big)e^{-2t}. The part 34e−2t\frac34e^{-2t} is a homogeneous solution; the new information is t2e−2t\frac t2e^{-2t}.
    7. The question of the lecture: is there a solution with ∣y′′′∣≤2\lvert y'''\rvert \le 2 on t≥0t \ge 0? The general solution is y=t2e−2t+c1+c2e−t+c3e−2ty = \frac t2e^{-2t} + c_1 + c_2e^{-t} + c_3e^{-2t}, with y′′′=(6−4t)e−2t−c2e−t−8c3e−2ty''' = (6 - 4t)e^{-2t} - c_2e^{-t} - 8c_3e^{-2t}. Take c2=0c_2 = 0, c3=34c_3 = \frac34: y′′′=−4te−2ty''' = -4te^{-2t}, whose largest size on t≥0t \ge 0 is 2e=0.74\frac2e = 0.74 at t=12t = \frac12. The function t2e−2t\frac t2e^{-2t} alone has y′′′=6y''' = 6 at t=0t = 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+exy = c_1 + c_2x + c_3x^2 + e^x; and yp=(34+t2)e−2ty_p = \big(\frac34 + \frac t2\big)e^{-2t}, with ∣y′′′∣≤2\lvert y'''\rvert \le 2 achieved for y=(34+t2)e−2ty = \big(\frac34 + \frac t2\big)e^{-2t}.

    Why· The Green's function: variation of parameters as a response to a kick

    For n=2n = 2 the formula gives yp(t)=∫t0tb1(s)b2(t)−b1(t)b2(s)W(s) R(s) dsy_p(t) = \int_{t_0}^{t}\frac{b_1(s)b_2(t) - b_1(t)b_2(s)}{W(s)}\,R(s)\,ds. The kernel G(t,s)=b1(s)b2(t)−b1(t)b2(s)W(s)G(t, s) = \frac{b_1(s)b_2(t) - b_1(t)b_2(s)}{W(s)} is the solution in tt that starts at time ss with value 00 and speed 11. The picture: the forcing RR is a sequence of tiny kicks, each kick at time ss of size R(s) dsR(s)\,ds launches its own homogeneous solution G(t,s)G(t, s), and ypy_p is the sum of all of them. This is the Duhamel principle, and the same formula in 7.4 will read e(t−s)Ae^{(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 BB is an annihilating operator (an annihilator) of ff if Bf=0Bf = 0. The functions that have annihilators are exactly the solutions of constant-coefficient homogeneous equations: sums of tjeαtcos⁡βtt^je^{\alpha t}\cos\beta t and tjeαtsin⁡βtt^je^{\alpha t}\sin\beta t (7.2).

    In one lineA constant-coefficient operator BB with Bf=0Bf = 0: it sends the function ff to zero. Example: D−rD - r annihilates erte^{rt}, (D−r)m(D - r)^m annihilates tm−1ertt^{m-1}e^{rt}.

    Why it existsIf BB kills the right-hand side of Ly=RLy = R, then applying BB to the equation gives a homogeneous equation BLy=0BLy = 0 that we can solve.

    FunctionAnnihilator
    tm−1t^{m-1}DmD^m
    eate^{at}D−aD - a
    tm−1eatt^{m-1}e^{at}(D−a)m(D - a)^m
    cos⁡βt\cos\beta t or sin⁡βt\sin\beta tD2+β2D^2 + \beta^2
    tm−1cos⁡βtt^{m-1}\cos\beta t or tm−1sin⁡βtt^{m-1}\sin\beta t(D2+β2)m(D^2 + \beta^2)^m
    eαtcos⁡βte^{\alpha t}\cos\beta t or eαtsin⁡βte^{\alpha t}\sin\beta tD2−2αD+α2+β2D^2 - 2\alpha D + \alpha^2 + \beta^2
    tm−1eαtcos⁡βtt^{m-1}e^{\alpha t}\cos\beta t or tm−1eαtsin⁡βtt^{m-1}e^{\alpha t}\sin\beta t(D2−2αD+α2+β2)m\big(D^2 - 2\alpha D + \alpha^2 + \beta^2\big)^m

    (Apostol’s Table 6.1. The last operator has roots α±iβ\alpha \pm i\beta.)

    Definition T

    Undetermined coefficients

    Undetermined coefficients is the method: for Ly=RLy = R with LL of constant coefficients and RR annihilated by a constant-coefficient operator BB, every solution satisfies BLy=0BLy = 0. So ypy_p lies in a space we can write down (the kernel of BLBL, from 7.2), and we find the constants by substituting into Ly=RLy = 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 A Apostol 6.14; standard

    Shape of a particular solution

    Let L=PL(D)L = P_L(D) have constant coefficients and let R(t)=q(t)ertR(t) = q(t)e^{rt} with qq a polynomial of degree dd (real or complex coefficients, rr complex). Let ss be the multiplicity of rr as a root of PLP_L. Then there is a polynomial hh of degree at most dd such that yp=tsh(t)erty_p = t^sh(t)e^{rt} satisfies Lyp=RLy_p = R.

    In one lineIf R=q(t)ertR = q(t)e^{rt} with qq a polynomial of degree dd and rr is a root of PLP_L of multiplicity ss (s=0s = 0 if rr is not a root), then Ly=RLy = R has a particular solution yp=ts h(t) erty_p = t^s\,h(t)\,e^{rt} with hh a polynomial of degree at most dd.

    Why it is trueMultiplying a solution by erte^{rt} shifts DD to D+rD + r, so the equation becomes a polynomial in DD acting on hh. The root of multiplicity ss means the lowest power of DD present is DsD^s, which needs ss extra integrations: that is the factor tst^s.

    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)hD(e^{rt}h) = e^{rt}(D + r)h holds for any differentiable hh, and by induction Dk(erth)=ert(D+r)khD^k(e^{rt}h) = e^{rt}(D + r)^kh.
    Product rule: D(erth)=ert(Dh+rh)=ert(D+r)hD(e^{rt}h) = e^{rt}(Dh + rh) = e^{rt}(D + r)h.
    So L(erth)=ert PL(D+r)hL(e^{rt}h) = e^{rt}\,P_L(D + r)h.
    Add up the powers with the coefficients of PLP_L.
    Hence PL(D+r)=DsQ(D)P_L(D + r) = D^sQ(D) with Q(0)≠0Q(0) \ne 0.
    PL(t+r)P_L(t + r) is a polynomial in tt whose root at t=0t = 0 has multiplicity ss (the multiplicity of rr in PLP_L). So PL(t+r)=tsQ(t)P_L(t + r) = t^sQ(t) with Q(0)≠0Q(0) \ne 0.
    There is a polynomial ww of degree at most dd with Q(D)w=qQ(D)w = q.
    On polynomials of degree at most dd, Q(D)=Q(0)+Q1D+…Q(D) = Q(0) + Q_1D + \dots acts by a triangular matrix with the non-zero number Q(0)Q(0) on the diagonal (the operator DD lowers the degree). So it is invertible there.
    Choose a polynomial HH with DsH=wD^sH = w and no terms below tst^s.
    Integrate ww ss times, choosing the constants of integration to be 00; the result is a polynomial HH of degree d+sd + s with lowest power tst^s, so H=tshH = t^sh with deg⁡h≤d\deg h \le d.
    So yp=ertH=tsh(t)erty_p = e^{rt}H = t^sh(t)e^{rt} solves Ly=RLy = R. ■\blacksquare
    Combine: L(ertH)=ertDsQ(D)H=ertQ(D)DsH=ertQ(D)w=ertq=RL(e^{rt}H) = e^{rt}D^sQ(D)H = e^{rt}Q(D)D^sH = e^{rt}Q(D)w = e^{rt}q = R. Constant-coefficient operators commute.

    When RR is a sine or cosine, write it as the real or imaginary part of eiωte^{i\omega t} and use the theorem with r=iωr = i\omega (the equation has real coefficients, so the real part of a complex solution is a solution). In real form: if R=cos⁡ωtR = \cos\omega t or sin⁡ωt\sin\omega t and iωi\omega is not a root, try Acos⁡ωt+Bsin⁡ωtA\cos\omega t + B\sin\omega t, with both terms. If iωi\omega is a root of multiplicity ss (resonance), multiply by tst^s.

    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.

    1. First equation: choose the guess. The right-hand side is t=te0tt = te^{0t}, with r=0r = 0 and d=1d = 1. The number 00 is not a root of t2+2t+1t^2 + 2t + 1, so s=0s = 0 and we try yp=at+by_p = at + b. The theorem: a polynomial of the same degree.
    2. Substitute. yp′=ay_p' = a, yp′′=0y_p'' = 0, so 0+2a+at+b=t0 + 2a + at + b = t. Matching coefficients: a=1a = 1 and 2a+b=02a + b = 0, so b=−2b = -2. Equate the coefficient of tt and the constant term.
    3. Write the general solution. y=(C1+C2t)e−t+t−2y = (C_1 + C_2t)e^{-t} + t - 2. The same answer as variation of parameters, without a single integral.
    4. Second equation: homogeneous part. t2+5t+4=(t+1)(t+4)t^2 + 5t + 4 = (t + 1)(t + 4), so qh=C1e−t+C2e−4tq_h = C_1e^{-t} + C_2e^{-4t}. Two distinct real roots.
    5. Guess. The right-hand side is 10sin⁡2t10\sin2t; 2i2i is not a root. Try qp=Asin⁡2t+Bcos⁡2tq_p = A\sin2t + B\cos2t. The derivative of a sine is a cosine, so both appear. Trying only Asin⁡2tA\sin2t fails.
    6. Substitute. qp′=2Acos⁡2t−2Bsin⁡2tq_p' = 2A\cos2t - 2B\sin2t and qp′′=−4Asin⁡2t−4Bcos⁡2tq_p'' = -4A\sin2t - 4B\cos2t. The sin⁡2t\sin2t coefficient of qp′′+5qp′+4qpq_p'' + 5q_p' + 4q_p is −4A−10B+4A=−10B-4A - 10B + 4A = -10B and the cos⁡2t\cos2t coefficient is −4B+10A+4B=10A-4B + 10A + 4B = 10A. Match with 10sin⁡2t10\sin2t: −10B=10-10B = 10, 10A=010A = 0. Collect separately the terms in sin⁡2t\sin2t and in cos⁡2t\cos2t.
    7. Solve. B=−1B = -1, A=0A = 0, so qp=−cos⁡2tq_p = -\cos2t and q=C1e−t+C2e−4t−cos⁡2tq = C_1e^{-t} + C_2e^{-4t} - \cos2t. Check: qp′′+5qp′+4qp=4cos⁡2t+10sin⁡2t−4cos⁡2t=10sin⁡2tq_p'' + 5q_p' + 4q_p = 4\cos2t + 10\sin2t - 4\cos2t = 10\sin2t.

    Answer. y=(C1+C2t)e−t+t−2y = (C_1 + C_2t)e^{-t} + t - 2 and q=C1e−t+C2e−4t−cos⁡2tq = C_1e^{-t} + C_2e^{-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.

    1. Test the obvious guess. The forcing cos⁡t\cos t has r=ir = i, and t2+1t^2 + 1 has the root ii with multiplicity s=1s = 1. So the guess Acos⁡t+Bsin⁡tA\cos t + B\sin t is itself a homogeneous solution, and cannot work (it gives 00 on the left). When the forcing matches a natural frequency, the response is not at that frequency. This is resonance.
    2. Multiply by ts=tt^s = t. Try yp=t(Acos⁡t+Bsin⁡t)y_p = t(A\cos t + B\sin t). Then yp′=Acos⁡t+Bsin⁡t+t(−Asin⁡t+Bcos⁡t)y_p' = A\cos t + B\sin t + t(-A\sin t + B\cos t) and yp′′=−2Asin⁡t+2Bcos⁡t−t(Acos⁡t+Bsin⁡t)y_p'' = -2A\sin t + 2B\cos t - t(A\cos t + B\sin t). Product rule twice.
    3. Substitute. yp′′+yp=−2Asin⁡t+2Bcos⁡ty_p'' + y_p = -2A\sin t + 2B\cos t. Matching with cos⁡t\cos t: A=0A = 0, B=12B = \frac12. The terms in tt cancel because t(Acos⁡t+Bsin⁡t)t(A\cos t + B\sin t) already solves the homogeneous part.
    4. Conclude. yp=t2sin⁡ty_p = \frac t2\sin t, and the solutions are t2sin⁡t+acos⁡t+bsin⁡t\frac t2\sin t + a\cos t + b\sin t. The amplitude of t2sin⁡t\frac t2\sin t grows linearly without bound. This is what makes a swing go high when pushed at its natural period.
    5. Second equation. t2−3t+2=(t−1)(t−2)t^2 - 3t + 2 = (t - 1)(t - 2), so r=1r = 1 is a simple root (s=1s = 1), and R=tetR = te^t has d=1d = 1. Try yp=t(At+B)ety_p = t(At + B)e^t. The theorem: degree d=1d = 1 times ts=tt^s = t.
    6. Solve. Substituting and matching coefficients of t2ett^2e^t, tette^t gives A=−12A = -\frac12, B=−1B = -1, so yp=−(t22+t)ety_p = -\big(\frac{t^2}2 + t\big)e^t. The computation is routine; check by substituting numerically at one point.

    Answer. t2sin⁡t\frac t2\sin t; and −(t22+t)et-\big(\frac{t^2}{2} + t\big)e^t.

    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.

    1. Annihilate the right side. t4+t+1t^4 + t + 1 is annihilated by D5D^5 (table: tm−1t^{m-1} with m=5m = 5). Five derivatives of a polynomial of degree 44 give 00.
    2. Apply D5D^5 to the equation. Every solution satisfies D5(D4−16)y=0D^5(D^4 - 16)y = 0. The roots of t5(t4−16)t^5(t^4 - 16) are 00 (five times), 2,−2,2i,−2i2, -2, 2i, -2i. The kernel of BLBL is known from 7.2.
    3. Keep only what is not homogeneous. The terms e2t,e−2t,cos⁡2t,sin⁡2te^{2t}, e^{-2t}, \cos2t, \sin2t solve (D4−16)y=0(D^4 - 16)y = 0, so we try the polynomial part yp=at4+bt3+ct2+dt+ey_p = a t^4 + bt^3 + ct^2 + dt + e. The other four functions are killed by LL and contribute nothing to the right-hand side.
    4. Substitute. yp(4)=24ay_p^{(4)} = 24a, so (D4−16)yp=24a−16(at4+bt3+ct2+dt+e)(D^4 - 16)y_p = 24a - 16(at^4 + bt^3 + ct^2 + dt + e). Matching with t4+t+1t^4 + t + 1: −16a=1-16a = 1, b=c=0b = c = 0, −16d=1-16d = 1, 24a−16e=124a - 16e = 1. So a=−116a = -\frac1{16}, d=−116d = -\frac1{16}, e=−532e = -\frac{5}{32}. Compare coefficients of t4,t3,t2,t,1t^4, t^3, t^2, t, 1.
    5. Second problem. tette^t is annihilated by (D−1)2(D - 1)^2. The roots of (t−1)2(t−2)(t−3)(t - 1)^2(t - 2)(t - 3) give the form aet+btet+(terms e2t,e3t that solve the homogeneous part)ae^t + bte^t + (\text{terms } e^{2t}, e^{3t}\text{ that solve the homogeneous part}). Substituting yp=aet+btety_p = ae^t + bte^t: (2a−3b)et+2btet=tet(2a - 3b)e^t + 2bte^t = te^t, so b=12b = \frac12, a=34a = \frac34. Matching the coefficients of ete^t and tette^t.

    Answer. yp=−t416−t16−532y_p = -\frac{t^4}{16} - \frac t{16} - \frac5{32} and yp=34et+12tety_p = \frac34e^t + \frac12te^t.

    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.

    1. Factor. y′′−3y′+2y=(D−1)(D−2)yy'' - 3y' + 2y = (D - 1)(D - 2)y. Roots 1,21, 2.
    2. Name the inner part. Let v=(D−2)yv = (D - 2)y. The equation is (D−1)v=et(D - 1)v = e^t, that is, v′−v=etv' - v = e^t. A first-order linear equation for vv.
    3. Solve for vv. (e−tv)′=1(e^{-t}v)' = 1, so v=tet+C1etv = te^t + C_1e^t. Integrating factor e−te^{-t}.
    4. Solve (D−2)y=v(D - 2)y = v. y′−2y=tet+C1ety' - 2y = te^t + C_1e^t, so (e−2ty)′=(t+C1)e−t(e^{-2t}y)' = (t + C_1)e^{-t}, and e−2ty=−(t+1)e−t−C1e−t+C2e^{-2t}y = -(t + 1)e^{-t} - C_1e^{-t} + C_2. ∫te−t dt=−(t+1)e−t\int te^{-t}\,dt = -(t + 1)e^{-t}.
    5. Read off. y=−(t+1)et−C1et+C2e2ty = -(t + 1)e^t - C_1e^t + C_2e^{2t}. Absorbing −C1et−et-C_1e^t - e^t into one constant: y=c1et+c2e2t−tety = c_1e^t + c_2e^{2t} - te^t. Compare worksheet 28 #3 (variation of parameters gives −tet−et-te^t - e^t and the second term is a homogeneous solution).

    Answer. y=c1et+c2e2t−tety = c_1e^t + c_2e^{2t} - te^t.

    Quick checkWhich method fits y′′+y=tan⁡xy'' + y = \tan x?
    Quick checkFor y′′−4y=e2ty'' - 4y = e^{2t}, what is the right guess?
    Your answerThe particular solution of y′′+2y′+y=ty'' + 2y' + y = t found above is yp=t−2y_p = t - 2. A student's general solution has y(0)=3y(0) = 3 and y′(0)=0y'(0) = 0. What is y(1)y(1)? (Three decimals.)

    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)\Phi(t) is a matrix whose columns solve x′=A(t)xx' = A(t)x, then det⁡Φ(t)=det⁡Φ(t0)exp⁡∫t0ttr⁡A(s) ds\det\Phi(t) = \det\Phi(t_0)\exp\int_{t_0}^{t}\operatorname{tr}A(s)\,ds (for the companion matrix the trace is −an−1-a_{n-1}). Read geometrically: det⁡Φ\det\Phi is the volume of the parallelepiped spanned by nn solutions, and the trace says the flow expands or shrinks volume at the rate tr⁡A\operatorname{tr}A. In 7.4 it becomes det⁡etA=ettr⁡A\det e^{tA} = e^{t\operatorname{tr}A}. 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⁡ωtV\cos\omega t has the charge equation Lq′′+Rq′+q/C=Vcos⁡ωtLq'' + Rq' + q/C = V\cos\omega t. The natural frequency is ω0=1/LC\omega_0 = 1/\sqrt{LC}. Take a coil L=250 μL = 250\ \muH and a variable capacitor set to C=100C = 100 pF: ω0=1/2.5×10−14=6.32×106\omega_0 = 1/\sqrt{2.5\times10^{-14}} = 6.32\times10^{6} rad/s, that is f0=1.0066f_0 = 1.0066 MHz. With no resistance the charge response to a forcing at exactly ω0\omega_0 is V2Lω0 tsin⁡ω0t\frac{V}{2L\omega_0}\,t\sin\omega_0t: the amplitude grows linearly, the resonance case of undetermined coefficients above. With resistance R=10 ΩR = 10\ \Omega the growth stops and the amplitude of the capacitor voltage reaches Q=ω0L/R=6.32×106×2.5×10−4/10=158Q = \omega_0L/R = 6.32\times10^6\times2.5\times10^{-4}/10 = 158 times the source voltage. A station at 1.00661.0066 MHz is amplified 158158-fold, while a station at 1.11.1 MHz is far off resonance and barely affects the circuit. Turning the dial changes CC and so moves ω0\omega_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−te^{-t}, te^{-t}, the substitution y=v1e−t+v2te−ty = v_1e^{-t} + v_2te^{-t}, and the extra condition v1′e−t+v2′te−t=0v_1'e^{-t} + v_2'te^{-t} = 0. The page ends there, with no equations for v1′,v2′v_1', v_2', no particular solution, no general solution. For a polynomial right-hand side use undetermined coefficients (yp=at+by_p = at + b, two lines), and keep variation of parameters for forcing such as tan⁡x\tan x or 11+x2\frac{1}{1 + x^2}. If time runs out, write the plan: ‘the Wronskian is e−2te^{-2t}, u1′=−t2etu_1' = -t^2e^t, u2′=tetu_2' = te^t, integrate, yp=u1b1+u2b2y_p = u_1b_1 + u_2b_2’. 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

    t2t^2 and t∣t∣t|t| have W≡0W \equiv 0 and are independent. And t,t2t, t^2 have W(0)=0W(0) = 0 but are independent. What IS true: one non-zero value proves independence; for solutions of one linear equation WW is either identically zero (dependent) or never zero (independent); for analytic functions W≡0W \equiv 0 implies dependence (final 7).

    Watch out· Sign and normalisation in the u' formulas

    u1′=−b2R/Wu_1' = -b_2R/W (with the minus) and u2′=+b1R/Wu_2' = +b_1R/W. For ex,e−xe^x, e^{-x} the Wronskian is −2-2, not 22. The equation must have coefficient 11 in front of y(n)y^{(n)}. And u1′,u2′u_1', u_2' must be integrated: in worksheet 22 #5 the answer u1′=12u_1' = \frac12 gives u1=x2u_1 = \frac x2.

    Watch out· Terms of a particular solution that solve the homogeneous equation can be dropped

    In yp=x2ex−14exy_p = \frac x2e^x - \frac14e^x the term −14ex-\frac14e^x is a homogeneous solution; it is absorbed into the constant c1c_1 of the general solution. You do not need it. But the term x2ex\frac x2e^x is not a homogeneous solution; it must stay.

    Watch out· Sine forcing needs both sine and cosine in the guess

    For q′′+5q′+4q=10sin⁡2tq'' + 5q' + 4q = 10\sin2t the guess Asin⁡2tA\sin2t alone cannot work: the first-derivative term produces cos⁡2t\cos2t. Use Asin⁡2t+Bcos⁡2tA\sin2t + B\cos2t (homework 9 #2). And when the guess is already a homogeneous solution (resonance), multiply by tt.

    Watch out· Operators on a product: the first derivative of u1 b1 + u2 b2 has extra terms

    Without the condition u1′b1+u2′b2=0u_1'b_1 + u_2'b_2 = 0 the formula for y′y' has four terms, and y′′y'' has u′′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(cos⁡x,sin⁡x)W(\cos x, \sin x); (b) W(ex,xex)W(e^x, xe^x); (c) W(cos⁡2x,sin⁡2x)W(\cos2x, \sin2x); (d) W(ex,e−x)W(e^x, e^{-x}). Which pairs are bases of solutions of which equation?

    Solution

    (a) 11: basis of y′′+y=0y'' + y = 0. (b) e2xe^{2x}: basis of (D−1)2y=0(D - 1)^2y = 0. (c) 22: basis of y′′+4y=0y'' + 4y = 0. (d) −2-2: basis of y′′−y=0y'' - 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)W(t, t^2, t^3) as a function of tt, and say where it vanishes. Can t,t2,t3t, t^2, t^3 be solutions of a third-order linear homogeneous equation with continuous coefficients on (−1,1)(-1, 1)?

    Solution

    W(t)=2t3W(t) = 2t^3. It vanishes at t=0t = 0 only. On an interval containing 00 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 00.)

    check

    True or false: (a) If W(f,g)(1)≠0W(f, g)(1) \ne 0 then f,gf, g are independent. (b) If f,gf, g are independent then W(f,g)(1)≠0W(f, g)(1) \ne 0. (c) If f,gf, g solve y′′+3y′+y=0y'' + 3y' + y = 0 and W(f,g)(1)=0W(f, g)(1) = 0 then f,gf, g are dependent.

    Solution

    (a) True (non-zero Wronskian at a point). (b) False: t,t2t, t^2 are independent and W(0)=0W(0) = 0, so independence does not give a non-zero Wronskian at every point; and for t2,t∣t∣t^2, t|t| the Wronskian is zero at every point. (c) True: for solutions of one linear equation WW is zero everywhere or nowhere.

    checkApostol 6.14

    Write an annihilating operator for each: (a) 5t2+15t^2 + 1; (b) e−3te^{-3t}; (c) tcos⁡2tt\cos2t; (d) etsin⁡3te^t\sin3t.

    Solution

    (a) D3D^3. (b) D+3D + 3. (c) (D2+4)2(D^2 + 4)^2. (d) D2−2D+10D^2 - 2D + 10 (roots 1±3i1 \pm 3i).

    useMATH 376 worksheet 22 #4 and worksheet 23 #4

    By variation of parameters, find a particular solution of y′′+y=tan⁡xy'' + y = \tan x on (−π2,π2)(-\frac\pi2, \frac\pi2).

    Solution

    b1=cos⁡xb_1 = \cos x, b2=sin⁡xb_2 = \sin x, W=1W = 1. u1′=−sin⁡xtan⁡x=−(sec⁡x−cos⁡x)u_1' = -\sin x\tan x = -(\sec x - \cos x), u2′=sin⁡xu_2' = \sin x. u1=−ln⁡∣sec⁡x+tan⁡x∣+sin⁡xu_1 = -\ln|\sec x + \tan x| + \sin x, u2=−cos⁡xu_2 = -\cos x. yp=−cos⁡xln⁡∣sec⁡x+tan⁡x∣y_p = -\cos x\ln|\sec x + \tan x|. Check by differentiating twice: yp′′+yp=tan⁡xy_p'' + y_p = \tan x.

    useMATH 376 worksheet 22 #6

    Find the general solution of y′′+4y=sec⁡2xy'' + 4y = \sec2x on (−π4,π4)(-\frac\pi4, \frac\pi4).

    Solution

    b1=cos⁡2xb_1 = \cos2x, b2=sin⁡2xb_2 = \sin2x, W=2W = 2. u1′=−12tan⁡2xu_1' = -\frac12\tan2x, u2′=12u_2' = \frac12. u1=14ln⁡∣cos⁡2x∣u_1 = \frac14\ln|\cos2x|, u2=x2u_2 = \frac x2. y=c1cos⁡2x+c2sin⁡2x+14cos⁡2xln⁡∣cos⁡2x∣+x2sin⁡2xy = c_1\cos2x + c_2\sin2x + \frac14\cos2x\ln|\cos2x| + \frac x2\sin2x.

    useMATH 376 worksheet 22 #7

    For y′′+2y′+y=11+x2y'' + 2y' + y = \dfrac{1}{1 + x^2}, find the homogeneous solutions, the Wronskian, and u1,u2u_1, u_2 as integrals (you need not evaluate them).

    Solution

    t2+2t+1=(t+1)2t^2 + 2t + 1 = (t+1)^2, so b1=e−xb_1 = e^{-x}, b2=xe−xb_2 = xe^{-x}. W=e−x(e−x−xe−x)−(−e−x)(xe−x)=e−2xW = e^{-x}(e^{-x} - xe^{-x}) - (-e^{-x})(xe^{-x}) = e^{-2x}. With R=11+x2R = \frac{1}{1 + x^2}: u1′=−b2RW=−xe−x(1+x2)e−2x=−xex1+x2u_1' = -\dfrac{b_2R}{W} = -\dfrac{xe^{-x}}{(1 + x^2)e^{-2x}} = -\dfrac{xe^{x}}{1 + x^2} and u2′=b1RW=ex1+x2u_2' = \dfrac{b_1R}{W} = \dfrac{e^{x}}{1 + x^2}. So u1=−∫xex1+x2 dxu_1 = -\int\frac{xe^x}{1 + x^2}\,dx and u2=∫ex1+x2 dxu_2 = \int\frac{e^x}{1 + x^2}\,dx, and yp=u1e−x+u2xe−xy_p = u_1e^{-x} + u_2xe^{-x}. These integrals have no elementary closed form, which is why the worksheet stops here.

    useMATH 376 worksheet 23 #6

    Solve y′′′′=exy'''' = e^x by variation of parameters with the basis 1,x,x2,x31, x, x^2, x^3.

    Solution

    The Wronskian system Wu′=(0,0,0,ex)T\mathcal Wu' = (0, 0, 0, e^x)^{\mathsf T} reads u1′+xu2′+x2u3′+x3u4′=0u_1' + xu_2' + x^2u_3' + x^3u_4' = 0, u2′+2xu3′+3x2u4′=0u_2' + 2xu_3' + 3x^2u_4' = 0, 2u3′+6xu4′=02u_3' + 6xu_4' = 0, 6u4′=ex6u_4' = e^x. Solve from the bottom: u4′=ex6u_4' = \frac{e^x}{6}, u3′=−3xu4′=−xex2u_3' = -3xu_4' = -\frac{xe^x}{2}, u2′=−2xu3′−3x2u4′=x2ex−x2ex2=x2ex2u_2' = -2xu_3' - 3x^2u_4' = x^2e^x - \frac{x^2e^x}{2} = \frac{x^2e^x}{2}, u1′=−xu2′−x2u3′−x3u4′=−x3ex2+x3ex2−x3ex6=−x3ex6u_1' = -xu_2' - x^2u_3' - x^3u_4' = -\frac{x^3e^x}{2} + \frac{x^3e^x}{2} - \frac{x^3e^x}{6} = -\frac{x^3e^x}{6}. Integrating (constants dropped): u4=ex6u_4 = \frac{e^x}{6}, u3=−(x−1)ex2u_3 = -\frac{(x - 1)e^x}{2}, u2=(x2−2x+2)ex2u_2 = \frac{(x^2 - 2x + 2)e^x}{2}, u1=−(x3−3x2+6x−6)ex6u_1 = -\frac{(x^3 - 3x^2 + 6x - 6)e^x}{6}. Then yp=u1+xu2+x2u3+x3u4=ex[−x3−3x2+6x−66+x3−2x2+2x2−x3−x22+x36]=exy_p = u_1 + xu_2 + x^2u_3 + x^3u_4 = e^x\Big[-\frac{x^3 - 3x^2 + 6x - 6}{6} + \frac{x^3 - 2x^2 + 2x}{2} - \frac{x^3 - x^2}{2} + \frac{x^3}{6}\Big] = e^x. The general solution is y=c1+c2x+c3x2+c4x3+exy = c_1 + c_2x + c_3x^2 + c_4x^3 + e^x, as one sees directly since (ex)′′′′=ex(e^x)'''' = e^x.

    useMATH 376 homework 9 #2; new

    Find particular solutions of: (a) y′′+5y′+4y=10sin⁡2ty'' + 5y' + 4y = 10\sin2t; (b) y′′−y=ety'' - y = e^t; (c) y′′+4y=cos⁡2ty'' + 4y = \cos2t; (d) y′′+2y′+5y=5t+7y'' + 2y' + 5y = 5t + 7.

    Solution

    (a) −cos⁡2t-\cos2t. (b) r=1r = 1 is a root, so try AtetAte^t: 2Aet=et2Ae^t = e^t, yp=t2ety_p = \frac t2e^t. (c) 2i2i is a root of t2+4t^2 + 4: try t(Acos⁡2t+Bsin⁡2t)t(A\cos2t + B\sin2t); yp′′+4yp=−4Asin⁡2t+4Bcos⁡2ty_p'' + 4y_p = -4A\sin2t + 4B\cos2t, so A=0A = 0, B=14B = \frac14: yp=t4sin⁡2ty_p = \frac t4\sin2t. (d) Try at+bat + b: 2a+5at+5b=5t+72a + 5at + 5b = 5t + 7, so a=1a = 1, b=1b = 1: yp=t+1y_p = t + 1.

    useMATH 376 worksheet 23 #5; worksheet 26 style

    Solve y′′′−y′=2y''' - y' = 2 by undetermined coefficients, and give the general solution.

    Solution

    Homogeneous: t3−t=t(t−1)(t+1)t^3 - t = t(t - 1)(t + 1), so yh=c1+c2et+c3e−ty_h = c_1 + c_2e^t + c_3e^{-t}. The right-hand side 22 has r=0r = 0, a simple root of t3−tt^3 - t, so s=1s = 1 and we try yp=aty_p = at. Then yp′′′−yp′=−a=2y_p''' - y_p' = -a = 2, so a=−2a = -2. General solution: y=c1+c2et+c3e−t−2ty = c_1 + c_2e^t + c_3e^{-t} - 2t.

    proveMATH 376 homework 8 #1(1)

    Prove that if W(f1,…,fn)(t0)≠0W(f_1, \dots, f_n)(t_0) \ne 0 for some t0t_0, the functions are linearly independent.

    Solution

    Plan. Suppose a combination vanishes, differentiate, and evaluate at t0t_0. See the proof of the theorem in this chapter: ∑cifi(k)(t0)=0\sum c_if_i^{(k)}(t_0) = 0 for k=0,…,n−1k = 0, \dots, n - 1 says W(t0)c=O\mathcal W(t_0)c = O with W(t0)\mathcal W(t_0) invertible, so c=Oc = O. ■\blacksquare

    proveMATH 376 homework 9 #3

    Prove that W(t,t2,…,tr)=C trW(t, t^2, \dots, t^r) = C\,t^r with a constant C≠0C \ne 0.

    Solution

    Plan. Pull the powers of tt out of the rows and columns, and show the remaining constant matrix is invertible.

    The entry in row j+1j + 1 and column ii of the Wronskian matrix is djdtjti=i(i−1)⋯(i−j+1) ti−j\frac{d^j}{dt^j}t^i = i(i - 1)\cdots(i - j + 1)\,t^{i - j}. Factor tit^i from column ii and t−jt^{-j} from row j+1j + 1: the total power is ∑i=1ri−∑j=0r−1j=r(r+1)2−r(r−1)2=r\sum_{i=1}^{r}i - \sum_{j=0}^{r-1}j = \frac{r(r+1)}2 - \frac{r(r-1)}2 = r. The remaining matrix has entries (i)j:=i(i−1)⋯(i−j+1)(i)_j := i(i - 1)\cdots(i - j + 1) (a falling factorial), which do not depend on tt. Its determinant CC is non-zero: if ∑j=0r−1cj(x)j\sum_{j=0}^{r-1}c_j(x)_j (a polynomial in xx of degree at most r−1r - 1, because (x)j(x)_j has degree jj) vanishes at x=1,…,rx = 1, \dots, r, it has rr roots, so it is the zero polynomial; the (x)j(x)_j have distinct degrees, so all cj=0c_j = 0. Hence the rows of the constant matrix are independent and C≠0C \ne 0. (Indeed C=0! 1!⋯(r−1)!C = 0!\,1!\cdots(r - 1)!: 1,2,121, 2, 12 for r=2,3,4r = 2, 3, 4.) ■\blacksquare

    proveMATH 376 worksheet 22 #3; new for order 3

    Derive the system for u1′,u2′,u3′u_1', u_2', u_3' in variation of parameters for y′′′+a2y′′+a1y′+a0y=Ry''' + a_2y'' + a_1y' + a_0y = R with homogeneous solutions b1,b2,b3b_1, b_2, b_3.

    Solution

    Plan. Differentiate y=∑uibiy = \sum u_ib_i and impose zero extra terms twice.

    y′=∑ui′bi+∑uibi′y' = \sum u_i'b_i + \sum u_ib_i'. Impose ∑ui′bi=0\sum u_i'b_i = 0: y′=∑uibi′y' = \sum u_ib_i'. Then y′′=∑ui′bi′+∑uibi′′y'' = \sum u_i'b_i' + \sum u_ib_i''. Impose ∑ui′bi′=0\sum u_i'b_i' = 0: y′′=∑uibi′′y'' = \sum u_ib_i''. Then y′′′=∑ui′bi′′+∑uibi′′′y''' = \sum u_i'b_i'' + \sum u_ib_i'''. Substituting in the equation and using bi′′′+a2bi′′+a1bi′+a0bi=0b_i''' + a_2b_i'' + a_1b_i' + a_0b_i = 0, we obtain ∑ui′bi′′=R\sum u_i'b_i'' = R. The system is ∑ui′bi=0\sum u_i'b_i = 0, ∑ui′bi′=0\sum u_i'b_i' = 0, ∑ui′bi′′=R\sum u_i'b_i'' = R, whose matrix is the Wronskian matrix. (Worksheet 23 #5 with b=(1,x,x2)b = (1, x, x^2) and R=exR = e^x is a case.) ■\blacksquare

    proveMATH 376 final 7

    Let f(t)=∑kaktkf(t) = \sum_k a_kt^k and g(t)=∑kbktkg(t) = \sum_kb_kt^k have radius of convergence 11. Show: if ff and gg are linearly dependent then W(f,g)≡0W(f, g) \equiv 0 on (−1,1)(-1, 1); and prove the converse using the fact that a non-zero power series has finitely many zeros in (−1+ε,1−ε)(-1 + \varepsilon, 1 - \varepsilon).

    Solution

    Plan. Easy direction by differentiating the relation; hard direction by dividing where g≠0g \ne 0, then the identity theorem.

    See the proof of the power-series Wronskian test above: (⇒\Rightarrow) af+bg=0af + bg = 0 and af′+bg′=0af' + bg' = 0 with (a,b)≠O(a, b) \ne O give det⁡[fgf′g′]=0\det\begin{bmatrix}f & g\\f' & g'\end{bmatrix} = 0. (⇐\Leftarrow) If neither is the zero function, choose an interval II where g≠0g \ne 0; (f/g)′=−W/g2=0(f/g)' = -W/g^2 = 0 so f=cgf = cg on II; f−cgf - cg is a power series with infinitely many zeros in II, hence zero. ■\blacksquare Note where analyticity is used: the contrast t2t^2 versus t∣t∣t|t| shows the converse fails for C1C^1 functions.

    stretchApostol 6.12

    Use Abel’s formula to find W(b1,b2)W(b_1, b_2) for solutions of y′′+1ty′+(1−1t2)y=0y'' + \frac1ty' + \left(1 - \frac1{t^2}\right)y = 0 (Bessel’s equation of order 11) on (0,∞)(0, \infty), up to a constant. Then, given b1=J1b_1 = J_1, show how the second solution can be obtained.

    Solution

    Here a1=1ta_1 = \frac1t, so Abel gives W(t)=W(t0)exp⁡(−∫t0t1s ds)=CtW(t) = W(t_0)\exp\left(-\int_{t_0}^{t}\frac1s\,ds\right) = \frac{C}{t}. If b1b_1 is known and non-zero on an interval, then W=b1b2′−b1′b2=b12(b2b1)′W = b_1b_2' - b_1'b_2 = b_1^2\left(\frac{b_2}{b_1}\right)', so (b2b1)′=Ct b1(t)2\left(\frac{b_2}{b_1}\right)' = \frac{C}{t\,b_1(t)^2} and b2=b1∫Ct b12 dtb_2 = b_1\int\frac{C}{t\,b_1^2}\,dt. This is reduction of order: Abel’s formula turns the second-order equation into a quadrature. ■\blacksquare

    stretch

    Find the response of y′′+y=f(t)y'' + y = f(t), y(0)=y′(0)=0y(0) = y'(0) = 0 in the form y(t)=∫0tG(t−s)f(s) dsy(t) = \int_0^tG(t - s)f(s)\,ds and compute it for f(t)=tf(t) = t.

    Solution

    Here b1=cos⁡tb_1 = \cos t, b2=sin⁡tb_2 = \sin t, W=1W = 1, so G(t,s)=cos⁡ssin⁡t−cos⁡tsin⁡s=sin⁡(t−s)G(t, s) = \cos s\sin t - \cos t\sin s = \sin(t - s), which depends only on t−st - s. So y(t)=∫0tsin⁡(t−s)f(s) dsy(t) = \int_0^t\sin(t - s)f(s)\,ds. For f(s)=sf(s) = s: integrate by parts, ∫0tssin⁡(t−s) ds=[scos⁡(t−s)]0t−∫0tcos⁡(t−s) ds=t−sin⁡t\int_0^ts\sin(t - s)\,ds = \left[s\cos(t - s)\right]_0^t - \int_0^t\cos(t - s)\,ds = t - \sin t. Check: y=t−sin⁡ty = t - \sin t has y′′+y=sin⁡t+t−sin⁡t=ty'' + y = \sin t + t - \sin t = t, y(0)=0y(0) = 0, y′(0)=1−1=0y'(0) = 1 - 1 = 0. ■\blacksquare

    Summary

    • The Wronskian W(f1,…,fn)=det⁡(fi(j))W(f_1, \dots, f_n) = \det\big(f_i^{(j)}\big) is the determinant of the functions and their first n−1n - 1 derivatives. For two functions it is the area between the curve (f1,f2)(f_1, f_2) and its tangent vector.
    • Test. W(t0)≠0W(t_0) \ne 0 at one point proves independence. The converse fails for general functions (t2t^2 and t∣t∣t|t|: W≡0W \equiv 0, independent), and WW can vanish at isolated points of independent functions (t,t2t, t^2).
    • 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)W(t) = W(t_0)\exp\left(-\int a_{n-1}\right). For power series, W≢0W \not\equiv 0 is equivalent to independence (final 7).
    • Variation of parameters: write yp=∑uibiy_p = \sum u_ib_i, impose ∑ui′bi(j)=0\sum u_i'b_i^{(j)} = 0 for j<n−1j < n - 1, and the equation gives ∑ui′bi(n−1)=R\sum u_i'b_i^{(n-1)} = R. So Wu′=(0,…,0,R)\mathcal Wu' = (0, \dots, 0, R). For n=2n = 2: u1′=−b2R/Wu_1' = -b_2R/W, u2′=b1R/Wu_2' = b_1R/W. The equation must have leading coefficient 11; constants of integration and homogeneous terms in ypy_p can be dropped.
    • Undetermined coefficients: for R=q(t)ertR = q(t)e^{rt} try yp=tsh(t)erty_p = t^sh(t)e^{rt} with deg⁡h=deg⁡q\deg h = \deg q and ss the multiplicity of rr as a characteristic root (resonance when s>0s > 0). For sines and cosines use both. It fails for tan⁡x\tan x, log⁡x\log x, ex2e^{x^2}, 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.

    Where this sits

    Comes from
    7.2 Linear differential equations
    2.7 Determinants
    1.6 Series, power series, and uniform convergence
    Leads to
    7.4 Systems of equations and the matrix exponential
    Same idea elsewhere
    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.