← Back to Math 055

8.3 Nonhomogeneous Linear Systems: Class Notes

8.3a

𝐗′=𝐀𝐗+𝐅(t) is a nonhomogeneous system if 𝐅(t)≠0.

Example 1

Use the method of undetermined coefficients to solve the given nonhomogeneous system.

𝐗′=(1−441)𝐗+(4t+9e6t−t+e6t)

Solution

Step 1: Solve 𝐗′=𝐀𝐗.

|1−λ−441−λ|=0⟹(λ−1)2=−16⟹λ=1±4i

For λ=1+4i:

(−4i−44−4i)𝐊=0⟹k1=ik2

Let k2=−i. Then k1=1, so

𝐊=(1−i)=(10)+(0−1)i

By the theorem from 8.2 (with α=1,β=4):

𝐗c=c1et[(10)cos⁡4t−(0−1)sin⁡4t]+c2et[(0−1)cos⁡4t+(10)sin⁡4t]

Step 2: Guess the form of 𝐗p. Split the forcing term:

𝐅(t)=(4−1)t+(91)e6t

This is linear plus exponential, like At+B plus Ce6t for a single equation, so guess vectors of unknown coefficients in the same pattern:

𝐗p=(a3b3)t+(a2b2)+(a1b1)e6t

Step 3: Substitute into 𝐗′=𝐀𝐗+𝐅. First the right side; multiply each row of 𝐀 by 𝐗p written as one column:

𝐀𝐗p=(1−441)(a3t+a2+a1e6tb3t+b2+b1e6t)=(a3t+a2+a1e6t−4b3t−4b2−4b1e6t4a3t+4a2+4a1e6t+b3t+b2+b1e6t)

Group the t terms, constant terms, and exponential terms. The left side is 𝐗p′=(a3b3)+(6a16b1)e6t, so

(a3b3)+(6a16b1)e6t=(a3−4b34a3+b3)t+(a2−4b24a2+b2)+(a1−4b14a1+b1)e6t+(4t+9e6t−t+e6t)

Match coefficients on each side:

Matching coefficients
TermsEquationsSolution
t(00)=(a3−4b3+44a3+b3−1)a3=0,b3=1
constant(a3b3)=(a2−4b24a2+b2)a2=4/17,b2=1/17
exponential(6a16b1)=(a1−4b1+94a1+b1+1)a1=1,b1=1

In the constant row, use a3=0 and b3=1 from the t row. Write 𝐗c as a matrix times (c1c2) and add 𝐗p:

Answer: 𝐗=𝐗c+𝐗p=(etcos⁡4tetsin⁡4tetsin⁡4t−etcos⁡4t)(c1c2)+(01)t+(4/171/17)+(11)e6t

8.3b

Variation of parameters

The complementary solution is 𝐗c(t)=𝚽(t)𝐂. (𝚽 is the Greek letter “phi.”)

Definition: 𝚽(t) is the fundamental matrix of the system.

Its determinant, det(𝚽), is the Wronskian.

For a system with independent solutions, the Wronskian is nonzero, so 𝚽−1 exists. Since 𝚽 is a solution to 𝐗′=𝐀𝐗, we have 𝚽′=𝐀𝚽. Suppose 𝐗p=𝚽(t)𝐔(t), where 𝐔(t) is a column matrix of unknown functions.

Substitute into 𝐗′=𝐀𝐗+𝐅. By the product rule, 𝐗p′=𝚽′𝐔+𝚽𝐔′, so

𝚽′𝐔+𝚽𝐔′=𝐀𝚽𝐔+𝐅𝐀𝚽𝐔+𝚽𝐔′=𝐀𝚽𝐔+𝐅

The 𝐀𝚽𝐔 terms cancel from both sides:

𝚽𝐔′=𝐅⟹𝐔′=𝚽−1𝐅⟹𝐔=∫𝚽−1𝐅(t)dt

Result

𝐗p=𝚽∫𝚽−1𝐅(t)dt

So the general solution is

𝐗(t)=𝚽(t)𝐂+𝚽(t)∫𝚽−1(t)𝐅(t)dt

The first term is 𝐗c and the second is 𝐗p.

8.3c

Example 2

Use variation of parameters to solve the given nonhomogeneous system.

dxdt=2x−ydydt=3x−2y+4t

Solution

𝐗′=(2−13−2)𝐗+(04t)

|2−λ−13−2−λ|=0⟹λ=1,−1⟹𝐊1=(11),𝐊2=(13)

Each solution becomes a column of 𝚽:

𝐗c=c1(11)et+c2(13)e−t=(etet)c1+(e−t3e−t)c2=(ete−tet3e−t)(c1c2)

𝚽=(ete−tet3e−t)

Recall: inverse of a 2 × 2 matrix

𝐀=(abcd)⟹𝐀−1=1ad−bc(d−b−ca)

Swap the main-diagonal entries and negate the other two.

Here det𝚽=3−1=2:

𝚽−1=12(3e−t−e−t−etet)=(32e−t−12e−t−12et12et)

∫𝚽−1𝐅(t)dt=12∫(3e−t−e−t−etet)(04t)dt=12∫(−4te−t4tet)dt=(2te−t+2e−t2tet−2et)

Tip: No constant of integration is needed here: we only need one particular solution, and the constants are already in 𝐗c.

Multiply by 𝚽, row 1 and then row 2 times the column:

𝐗p=𝚽∫𝚽−1𝐅dt=(ete−tet3e−t)(2te−t+2e−t2tet−2et)=(2t+2+2t−22t+2+6t−6)=(4t8t−4)

Write (4t8t−4)=(48)t+(0−4):

Answer: 𝐗=𝐗c+𝐗p=c1(11)et+c2(13)e−t+(48)t+(0−4)

Equivalently, 𝐗=(ete−tet3e−t)𝐂+(4t8t−4).

8.3d

Example 3

Use variation of parameters to solve the given nonhomogeneous system.

𝐗′=(2−142)𝐗+(sin⁡2t2cos⁡2t)e2t

Solution

The plan: eigenvalues λ, then eigenvectors 𝐊, then 𝐗c and 𝚽.

|2−λ−142−λ|=0⟹(2−λ)2=−4⟹λ=2±2i

For λ=2+2i:

(−2i−14−2i)𝐊=0⟹−2ik1=k2

Let k1=1. Then k2=−2i:

𝐊=(1−2i)=(10)+(0−2)i=𝐁1+𝐁2i

Tip: Choosing k1=i instead gives k2=2 and 𝐊=(02)+(10)i. Any nonzero multiple of an eigenvector works; it leads to an equivalent 𝐗c.

𝐗c=c1e2t[(10)cos⁡2t−(0−2)sin⁡2t]+c2e2t[(0−2)cos⁡2t+(10)sin⁡2t]

𝐗c=𝚽𝐂=(e2tcos⁡2te2tsin⁡2t2e2tsin⁡2t−2e2tcos⁡2t)𝐂

The determinant is det𝚽=−2e4tcos2⁡2t−2e4tsin2⁡2t=−2e4t, so

𝚽−1=−12e4t(−2e2tcos⁡2t−e2tsin⁡2t−2e2tsin⁡2te2tcos⁡2t)=e−2t(cos⁡2t12sin⁡2tsin⁡2t−12cos⁡2t)

In 𝚽−1𝐅, the e−2t from 𝚽−1 cancels the e2t from 𝐅:

∫𝚽−1𝐅dt=∫e−2t(cos⁡2t12sin⁡2tsin⁡2t−12cos⁡2t)(sin⁡2t2cos⁡2t)e2tdt=∫(2sin⁡2tcos⁡2tsin2⁡2t−cos2⁡2t)dt=∫(sin⁡4t−cos⁡4t)dt=(−14cos⁡4t−14sin⁡4t)

(The double-angle identities 2sin⁡θcos⁡θ=sin⁡2θ and cos2⁡θ−sin2⁡θ=cos⁡2θ turn the entries into sin⁡4t and −cos⁡4t.)

𝐗p=𝚽∫𝚽−1𝐅dt=e2t(cos⁡2tsin⁡2t2sin⁡2t−2cos⁡2t)(−14cos⁡4t−14sin⁡4t)=e2t(−14(cos⁡2tcos⁡4t+sin⁡2tsin⁡4t)12(−sin⁡2tcos⁡4t+cos⁡2tsin⁡4t))=e2t(−14cos⁡2t12sin⁡2t)

The last step uses the difference formulas: cos⁡4tcos⁡2t+sin⁡4tsin⁡2t=cos⁡(4t−2t) and sin⁡4tcos⁡2t−cos⁡4tsin⁡2t=sin⁡(4t−2t).

Answer: 𝐗(t)=c1(cos⁡2t2sin⁡2t)e2t+c2(sin⁡2t−2cos⁡2t)e2t+(−14cos⁡2t12sin⁡2t)e2t

8.3e

For an initial-value problem of the form 𝐗′=𝐀𝐗+𝐅(t),𝐗(t0)=𝐗0, we have

𝐗=𝚽𝐂+𝚽∫t0t𝚽−1(s)𝐅(s)ds⟹𝐗(t0)=𝚽(t0)𝐂⟹𝐂=𝚽−1(t0)𝐗(t0).

Here s is a dummy variable of integration, so that t can be the upper limit.

Thus,

𝐗(t)=𝚽(t)𝚽−1(t0)𝐗(t0)+𝚽(t)∫t0t𝚽−1(s)𝐅(s)ds

Example 4

Solve the given initial-value problem.

𝐗′=(1−11−1)𝐗+(1/t1/t),𝐗(1)=(2−1)

Solution

|1−λ−11−1−λ|=0⟹λ2=0⟹λ=0(repeated)

(1−11−1)𝐊=0⟹𝐊=(11)

The eigenvalue is repeated, so also solve (𝐀−λ𝐈)𝐏=𝐊:

(1−11−1)𝐏=(11)⟹p1−p2=1

Let p2=0. Then p1=1, so 𝐏=(10). With λ=0, every eλt is 1:

𝐗c=c1(11)+c2[(11)t+(10)]=(1t+11t)𝐂

𝚽=(1t+11t)⟹det𝚽=t−(t+1)=−1

𝚽−1=(−tt+11−1)⟹𝚽−1𝐅=(−tt+11−1)(1/t1/t)=(1/t0)

(Row 1: −1+t+1t=1t. Row 2: 1t−1t=0.) Integrate from t0=1 to t, using the dummy variable s:

∫1t(1/s0)ds=(ln⁡s0)|1t=(ln⁡t0)

𝐗p=𝚽(ln⁡t0)=(1t+11t)(ln⁡t0)=(ln⁡tln⁡t)

For the first term, 𝚽(t)𝚽−1(t0)𝐗(t0), use 𝚽−1(1)=(−121−1):

𝐂=𝚽−1(1)𝐗(1)=(−121−1)(2−1)=(−43)

𝐗(t)=𝚽𝐂+𝐗p=(1t+11t)(−43)+(ln⁡tln⁡t)

Answer: 𝐗(t)=(3t−13t−4)+(ln⁡tln⁡t)