8.2 Nonhomogeneous Linear Systems

In Section 5.5 we exhibited two techniques for finding a single particular solution of a single nonhomogeneous nth-order linear differential equation—the method of undetermined coefficients and the method of variation of parameters. Each of these may be generalized to nonhomogeneous linear systems. In a linear system modeling a physical situation, nonhomogeneous terms typically correspond to external influences, such as the inflow of liquid to a cascade of brine tanks or an external force acting on a mass-and-spring system.

Given the nonhomogeneous first-order linear system

x'=Ax+f(t)
(1)

where A is an n×n constant matrix and the “nonhomogeneous term” f(t) is a given continuous vector-valued function, we know from Theorem 4 of Section 7.2 that a general solution of Eq. (1) has the form

x(t)=xc(t)+xp(t),
(2)

where

  • xc(t)=c1x1(t)+c2x2(t)++cnxn(t) is a general solution of the associated homogeneous system x'=Ax, and

  • xp(t) is a single particular solution of the original nonhomogeneous system in (1).

Preceding sections have dealt with xc(t), so our task now is to find xp(t).

Undetermined Coefficients

First we suppose that the nonhomogeneous term f(t) in (1) is a linear combination (with constant vector coefficients) of products of polynomials, exponential functions, and sines and cosines. Then the method of undetermined coefficients for systems is essentially the same as for a single linear differential equation. We make an intelligent guess as to the general form of a particular solution xp, then attempt to determine the coefficients in xp by substitution in Eq. (1). Moreover, the choice of this general form is essentially the same as in the case of a single equation (discussed in Section 5.5); we modify it only by using undetermined vector coefficients rather than undetermined scalars. We will therefore confine the present discussion to illustrative examples.

Example 1

Find a particular solution of the nonhomogeneous system

x'=[3725] x+[32t].
(3)

Solution

The nonhomogeneous term f=[32t]T is linear, so it is reasonable to select a linear trial particular solution of the form

xp(t)=at+b=[a1a2] t+[b1b2].
(4)

Upon substitution of x=xp in Eq. (3), we get

[a1a2]==[3725] [a1t+b2a2t+b2]+[32t][3a1+2a27a1+5a2+2] t+[3b1+2b2+37b1+5b2].

We equate the coefficients of t and the constant terms (in both x1- and x2-components) and thereby obtain the equations

3a1+2a27a1+5a2+23b1+2b2+37b1+5b2====0,0,a1,a2,
(5)

We solve the first two equations in (5) for a1=4 and a2=6. With these values we can then solve the last two equations in (5) for b1=17 and b2=25. Substitution of these coefficients in Eq. (4) gives the particular solution x=[x1x2]T of (3) described in scalar form by

x1(t)x2(t)==4t+17,6t25.

Example 2

Cascading brine tanks Figure 8.2.1 shows the system of three brine tanks investigated in Example 2 of Section 7.3. The volumes of the three tanks are V1=20,=V2=40, and V3=50(gal), and the common flow rate is r=10 (gal/min). Suppose that all three tanks contain fresh water initially, but that the inflow to tank 1 is brine containing 2 pounds of salt per gallon, so that 20 pounds of salt flow into tank 1 per minute. Referring to Eq. (18) in Section 7.3, we see that the vector x(t)=[x1(t)x2(t)x3(t)]T of amounts of salt (in pounds) in the three tanks at time t satisfies the nonhomogeneous initial value problem

dxdt=0.50.5000.250.25000.2 x+2000x(0)=000.
(6)

FIGURE 8.2.1.

The three brine tanks of Example 2.

The nonhomogeneous term f=[2000]T here corresponds to the 20 lb/min inflow of salt to tank 1, with no (external) inflow of salt into tanks 2 and 3.

Because the nonhomogeneous term is constant, we naturally select a constant trial function xp=[a1a2a3]T, for which x'p0. Then substitution of x=xp in (6) yields the system

000=0.50.5000.250.25000.2 a1a2a3+2000

that we readily solve for a1=40, a2=80, and a3=100 in turn. Thus our particular solution is xp(t)=[4080100]T.

In Example 2 of Section 7.3 we found the general solution

xc(t)=c1 365 et/2+c2015 et/4+c3001 et/5

of the associated homogeneous system, so a general solution x=xc+xp of the nonhomogeneous system in (6) is given by

x(t)=c1365 et/2+c2 015 et/4+c3 001 et/5+4080100.
(7)

When we apply the zero initial conditions in (6), we get the scalar equations

3c16c15c1+c25c2+c3+++4080100===0,0,0

that are readily solved for c1=403, c2=160, and c3=25003. Substituting these coefficients in Eq. (7), we find that the amounts of salt in the three tanks at time t are given by

x1(t)x2(t)x3(t)===4040et/2,80+80et/2160et/4100+1003(2et/2+24et/425et/5).
(8)

As illustrated in Fig. 8.2.2, we see the salt in each of the three tanks approaching, as t+, a uniform density of 2 lb/gal—the same as the salt density in the inflow to tank 1.

FIGURE 8.2.2.

Solution curves for the amount of salt defined in (8).

In the case of duplicate expressions in the complementary function and the nonhomogeneous terms, there is one difference between the method of undetermined coefficients for systems and for single equations (Rule 2 in Section 5.5). For a system, the usual first choice for a trial solution must be multiplied not only by the smallest integral power of t that will eliminate duplication, but also by all lower (nonnegative integral) powers of t as well, and all the resulting terms must be included in the trial solution.

Example 3

Consider the nonhomogeneous system

x'=[4321] x[154] te2t.
(9)

In Example 1 of Section 7.3 we found the solution

xc(t)=c1 [13] e2t+c2 [21] e5t
(10)

of the associated homogeneous system. A preliminary trial solution xp(t)=ate2t+be2t exhibits duplication with the complementary function in (10). We would therefore select

xp(t)=at2e2t+bte2t+ce2t

as our trial solution, and we would then have six scalar coefficients to determine. It is simpler to use the method of variation of parameters, our next topic.

Variation of Parameters

Recall from Section 5.5 that the method of variation of parameters may be applied to a linear differential equation with variable coefficients and is not restricted to nonhomogeneous terms involving only polynomials, exponentials, and sinusoidal functions. The method of variation of parameters for systems enjoys the same flexibility and has a concise matrix formulation that is convenient for both practical and theoretical purposes.

We want to find a particular solution xp of the nonhomogeneous linear system

x'=P(t)x+f(t),
(11)

given that we have already found a general solution

xc(t)=c1x1(t)+c2x2(t)++cnxn(t)
(12)

of the associated homogeneous system

x'=P(t)x.
(13)

We first use the fundamental matrix Φ(t) with column vectors x1, x2, , xn to rewrite the complementary function in (12) as

xc(t)=Φ(t)c,
(14)

where c denotes the column vector whose entries are the coefficients c1,c2,,cn. Our idea is to replace the vector “parameter” c with a variable vector u(t). Thus we seek a particular solution of the form

xp(t)=Φ(t)u(t).
(15)

We must determine u(t) so that xp does, indeed, satisfy Eq. (11).

The derivative of xp(t) is (by the product rule)

x'p(t)=Φ'(t)u(t)+Φ(t)u'(t).
(16)

Hence substitution of Eqs. (15) and (16) in (11) yields

Φ'(t)u(t)+Φ(t)u'(t)=P(t)Φ(t)u(t)+f(t).
(17)

But

Φ'(t)=P(t)Φ(t)
(18)

because each column vector of Φ(t) satisfies Eq. (13). Therefore, Eq. (17) reduces to

Φ(t)u'(t)=f(t).
(19)

Thus it suffices to choose u(t) so that

u'(t)=Φ(t)1f(t);
(20)

that is, so that

u(t)=Φ(t)1f(t) dt.
(21)

Upon substitution of (21) in (15), we finally obtain the desired particular solution, as stated in the following theorem.

This is the variation of parameters formula for first-order linear systems. If we add this particular solution and the complementary function in (14), we get the general solution

x(t)=Φ(t)c+Φ(t) Φ(t)1f(t) dt
(23)

of the nonhomogeneous system in (11).

The choice of the constant of integration in Eq. (22) is immaterial, for we need only a single particular solution. In solving initial value problems it often is convenient to choose the constant of integration so that xp(a)=0, and thus integrate from a to t:

xp(t)=Φ(t) taΦ(s)1f(s) ds.
(24)

If we add the particular solution of the nonhomogeneous problem

x'=P(t)x+f(t),x(a)=0

in (24) to the solution xc(t)=Φ(t)Φ(a)1xa of the associated homogeneous problem x'=P(t)x, x(a)=xa, we get the solution

x(t)=Φ(t)Φ(a)1xa+Φ(t) taΦ(s)1f(s) ds
(25)

of the nonhomogeneous initial value problem

x'=P(t)x+f(t),x(a)=xa.
(26)

Equations (22) and (25) hold for any fundamental matrix Φ(t) of the homogeneous system x'=P(t)x. In the constant-coefficient case P(t)A we can use for Φ(t) the exponential matrix eAt—that is, the particular fundamental matrix such that Φ(0)=I. Then, because (eAt)1=eAt, substitution of Φ(t)=eAt in (22) yields the particular solution

xp(t)=eAt eAtf(t) dt
(27)

of the nonhomogeneous system x'=P(t)x+f(t). Similarly, substitution of Φ(t)=eAt in Eq. (25) with a=0 yields the solution

x(t)=eAtx0+eAt toeAtf(t) dt
(28)

of the initial value problem

x'=P(t)x+f(t),x(0)=x0.
(29)

Remark

If we retain t as the independent variable but use s for the variable of integration, then the solutions in (27) and (28) can be rewritten in the forms

xp(t)=eA(st)f(s) dsandx(t)=eAtx0+t0eA(st)f(s) ds.

Example 4

Solve the initial value problem

x'=[4321] x[154] te2t,x(0)=[73].
(30)

Solution

The solution of the associated homogeneous system is displayed in Eq. (10). It gives the fundamental matrix

Φ(t)=[e2t3e2t2e5te5t]withΦ(0)1=17[1321].

It follows by Eq. (28) in Section 8.1 that the matrix exponential for the coefficient matrix A in (30) is

eAt=Φ(t)Φ(0)1==[e2t3e2t2e5te5t]17[1321]17[e2t+6e5t3e2t+3e5t2e2t+2e5t6e2t+e5t].

Then the variation of parameters formula in Eq. (28) gives

eAtx(t)====x0+t0eAsf(s) ds[73]+t017[e2s+6e5s32s+3e5s2e2s+2e5s6e2s+e5s][15se2s4se2s] ds[73]+t0[s14se7s3s7se7s] ds[73]+114[47t2+4e7t+28te7t2+21t2+2e7t+14te7t].

Therefore,

eAtx(t)=114[947t2+4e7t+28te7t40+21t2+2e7t+14te7t].

Upon multiplication of the right-hand side here by eAt, we find that the solution of the initial value problem in (30) is given by

x(t)==17[e2t+6e5t3e2t+3e5t2e2t+2e5t6e2t+e5t]114[947t2+4e7t+28te7t40+21t2+2e7t+14te7t]114[(6+28t7t2)e2t+92e5t(4+14t+21t2)e2t+46e5t].

In conclusion, let us investigate how the variation of parameters formula in (22) “reconciles” with the variation of parameters formula in Theorem 1 of Section 5.5 for the second-order linear differential equation

y′′+Py'+Qy=f(t).
(31)

If we write y=x1, y'=x'1=x2, y''=x′′1=x'2, then the single equation in (31) is equivalent to the linear system x'1=x2, x'2=Qx1Px2+f(t), that is,

x'=P(t)x+f(t),
(32)

where

x=[x1x2]=[yy'],P(t)=[0Q1P],andf(t)=[0f(t)].

Now two linearly independent solutions y1 and y2 of the homogeneous system y''+Py'+Qy=0 associated with (31) provide two linearly independent solutions

x1=[y1y'1]andx2=[y2y'2]

of the homogeneous system x'=P(t)x associated with (32). Observe that the determinant of the fundamental matrix Φ=[x1x2] is simply the Wronskian

W=y1y'1y2y'2

of the solutions y1 and y2, so the inverse fundamental matrix is

Φ1=1Wy'2y'1y2y1.

Therefore the variation of parameters formula xp=ΦΦ1f dt in (22) yields

[ypy'p]==[y1y'1y2y'2]1W[y'2y'1y2y1][0f]dt[y1y'1y2y'2]1W[y2fy1f]dt.

The first component of this column vector is

yp=[y1y2]1W[y2fy1f]dt=y1y2fWdt+y2y1fW dt.

If, finally, we supply the independent variable t throughout, the final result on the right-hand side here is simply the variation of parameters formula in Eq. (33) of Section 5.5 (where, however, the independent variable is denoted by x).

8.2 Problems

Apply the method of undetermined coefficients to find a particular solution of each of the systems in Problems 1 through 14. If initial conditions are given, find the particular solution that satisfies these conditions. Primes denote derivatives with respect to t.

  1. x'=x+2y+3, y'=2x+y2

     

  2. x'=2x+3y+5, y'=2x+y2t

     

  3. x'=3x+4y, y'=3x+2y+t2;x(0)=y(0)=0

     

  4. x'=4x+y+et, y'=6xyet;x(0)=y(0)=1

     

  5. x'=6x7y+10, y'=x2y2et

     

  6. x'=9x+y+2et, y'=8x2y+tet

     

  7. x'=3x+4y+sin t, y'=6x5y;x(0)=1, y(0)=0

     

  8. x'=x5y+2sin t, y'=xy3cos t

     

  9. x'=x5y+cos 2t, y'=xy

     

  10. x'=x2y, y'=2xy+et sin t

     

  11. x'=2x+4y+2, y'=x+2y+3;x(0)=1, y(0)=1

     

  12. x'=x+y+2t, y'=x+y2t

     

  13. x'=2x+y+2et, y'=x+2y3et

     

  14. x'=2x+y+1, y'=4x+2y+e4t

Two Brine Tanks

Problems 15 and 16 are similar to Example 2, but with two brine tanks (having volumes V1 and V2 gallons as in Fig. 8.2.1) instead of three tanks. Each tank initially contains fresh water, and the inflow to tank 1 at the rate of r gallons per minute has a salt concentration of c0 pounds per gallon. (a) Find the amounts x1(t) and x2(t) of salt in the two tanks after t minutes. (b) Find the limiting (long-term) amount of salt in each tank. (c) Find how long it takes for each tank to reach a salt concentration of 1 lb/gal.

  1. V1=100, V2=200, r=10, c0=2

     

  2. V1=200, V2=100, r=10, c0=3

In Problems 17 through 34, use the method of variation of parameters (and perhaps a computer algebra system) to solve the initial value problem

x'=Ax+f(t),x(a)=xa.

In each problem we provide the matrix exponential eAt as provided by a computer algebra system.

  1. A=[6172], f(t)=[6090], x(0)=[00],eAt=16[et+7e5tet+e5t7et7e5t7ete5t]

     

  2. Repeat Problem 17, but with f(t) replaced with [100t50t].

     

  3. A=[1222], f(t)=[180t90], x(0)=[00],eAt=15[e3t2e3t++4e2t2e2t2e3t+2e2t4e3t+e2t] 

     

  4. Repeat Problem 19, but with f(t) replaced with [75e2t0].

     

  5. A=[4512], f(t)=[18e2t30e2t], x(0)=[00],eAt=14[et+5e3t5et+5e5tete3t5ete3t]

     

  6. Repeat Problem 21, but with f(t) replaced with [28et20e3t].

     

  7. A=[3913],f(t)=[75], x(0)=[35],eAt=[1+3t9tt13t]

     

  8. Repeat Problem 23, but with f(t)=[0t2] and x(1)=[37].

  9. A=[2152],f(t)=[4t1], x(0)=[00],eAt=[cos t+2 sin tsin t5 sin tcos2 sin t]

     

  10. Repeat Problem 25, but with f(t)=[4 cos t6 sin t] and x(0)=[35].

  11. A=[2142], f(t)=[36t26t], x(0)=[00],eAt=[1+2tt4t12t]

     

  12. Repeat Problem 27, but with f(t)=[4ln tt1] and x(1)=[11].

     

  13. A=[0110], f(t)=[sec t0], x(0)=[00],eAt=[cos tsin tsin tcos t]

     

  14. A=[0220], f(t)=[t cos 2tt sin 2t], x(0)=[00],eAt=[cos 2tsin 2tsin 2tcos 2t]

     

  15. A=100210321, f(t)=006et, x(0)=000,eAt=et002tetet0(3t+2t2)et2tetet

     

  16. A=100310432, f(t)=002e2t, x(0)=000,eAt=et003tetet0(139t)et+13e2t3et+3e2te2t

     

  17. A=0000400033000840, f(t)=30 tttt, x(0)=0000,eAt=10004t1008t+6t23t1032t2+8t28t+6t24t1

     

  18. A=0000400080200842, f(t)=06t0e2t, x(0)=4221,eAt=10004t1004(1+e2t)0e2t016t(1+e2t)4(1+e2t)4te2te2t

8.2 Application Automated Variation of Parameters

The application of the variation of parameters formula in Eq. (28) encourages so mechanical an approach as to encourage especially the use of a computer algebra system. The following Mathematica commands were used to check the results in Example 4 of this section.


A = {{4,2}, {3,−1}};
x0 = {{7}, {3}};
f[t_] := {{−15 t Exp[−2t]},{−4 t Exp[−2t]}};
exp[A_] := MatrixExp[A]
x = exp[A∗t].(x0 + Integrate[exp[−A∗s].f[s], {s,0,t}])

The matrix exponential commands illustrated in the Section 5.6 application provide the basis for analogous Maple and Matlab computations. You can then check routinely the answers for Problems 17 through 34 of this section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.66.185