2.5 HW 5

  2.5.1 Problems listing
  2.5.2 Problem 1
  2.5.3 Problem 2
  2.5.4 Problem 3
  2.5.5 Problem 4
  2.5.6 Problem 5
  2.5.7 Problem 6
  2.5.8 Problem 7

2.5.1 Problems listing

PDF

PDF (letter size)

PDF (legal size)

2.5.2 Problem 1

   2.5.2.1 part a
   2.5.2.2 part b
   2.5.2.3 part c

Solve the following Differential Equations

a

yy2y=5e2x

b

y+16y=4cosx

c

y4y+3y=9x2+4,y(0)=6,y(0)=8

Solution

2.5.2.1 part a

yy2y=5e2x This is a nonhomogeneous linear second order ODE with constant coefficients. The general solution is given by (1)y=yh+yp Where yh is the solution to the homogeneous part and yp is a particular solution. The first step is to determine yh which is solution to yy2y=0. The characteristic equation becomes (by assuming the solution to be y=eλx and substituting this into the ODE and simplifying)λ2λ2=0(λ2)(λ+1)=0

The roots are λ1=2,λ2=1. Therefore the basis for yh are {e2x,ex} and yh is linear combination of these basis which is(2)yh=c1e2x+c2ex Looking at RHS of the ODE which is 5e2x shows that the basis function for this is {e2x}. But e2x is also also a basis function for yh. Therefore this is adjusted by multiplying it by x and it becomes {xe2x} which no longer a basis for yh.Therefore the trial solution isyp=Axe2x Henceyp=Ae2x+2Axe2xyp=2Ae2x+2Ae2x+4Axe2x

Substituting the above in the given ode givesypyp2yp=5e2x(2Ae2x+2Ae2x+4Axe2x)(Ae2x+2Axe2x)2(Axe2x)=5e2x

Since e2x0, the above simplifies to2A+2A+4AxA2Ax2Ax=5A(2+21)+x(4A2A2A)=53A=5A=53

Therefore the particular solution is(3)yp=53xe2x Substituting (2,3) into (1) gives the general solution asy(x)=yh+yp=c1e2x+c2ex+53xe2x

2.5.2.2 part b

y+16y=4cosx This is a nonhomogeneous linear second order ODE with constant coefficients. The general solution is given by (1)y=yh+yp Where yh is the solution to the homogeneous part and yp is a particular solution. The first step is to determine yh which is solution to y+16y=0. The characteristic equation isλ2+16=0λ2=16λ=±4i

The roots are λ1=4i,λ2=4i. Therefore the basis for yh are {e4ix,e4ix}. These are converted to trigonometric functions using the Euler relation eix=cos(x)+isin(x) as was done in the last HW and the basis become {cos(4x),sin(4x)}. yh is a linear combination of these basis. (2)yh=c1cos(4x)+c2sin(4x) Looking at RHS of the ode which is 4cosx shows that the basis function for yp is {cosx}. Taking all possible derivatives (and ignoring any sign change and constants that appear), results in the basis for yp as the set {cosx,sinx}. There are no duplications with the basis for yh found above. Hence the trial solution is yp=Acosx+Bsinx Thereforeyp=Asinx+Bcosxyp=AcosxBsinx

Substituting the above in the given ode givesyp+16yp=4cosx(AcosxBsinx)+16(Acosx+Bsinx)=4cosxcos(x)(A+16A)+sin(x)(B+16B)=4cosx

Comparing coefficients givesA+16A=4B+16B=0

OrA=415B=0

Therefore the particular solution is(3)yp=415cosx Substituting (2,3) into (1) gives the general solutiony(x)=yh+yp=c1cos(4x)+c2sin(4x)+415cosx

2.5.2.3 part c

y4y+3y=9x2+4y(0)=6y(0)=8

This is a nonhomogeneous linear second order ODE with constant coefficients. The general solution is given by (1)y=yh+yp Where yh is the solution to the homogeneous part and yp is a particular solution. The first step is to determine yh which is solution to y4y+3y=0. The characteristic equation isλ24λ+3=0(λ3)(λ1)=0

The roots are λ1=3,λ2=1. Therefore the basis for yh are {e3x,ex}. yh is a linear combination of these basis.(2)yh=c1e3x+c2ex Looking at RHS of the ode 9x2+4 shows that the basis functions for this are the set {1,x2}. Taking all possible derivatives (and ignoring any sign change and constant multipliers that appear) results in the set {1,x,x2}.There are no duplications with the basis for yh. Hence the trial solution is linear combination of these basis which isyp=A+Bx+Cx2 Henceyp=B+2Cxyp=2C

Substituting the above in the given ode givesyp4yp+3yp=9x2+4(2C)4(B+2Cx)+3(A+Bx+Cx2)=9x2+4x2(3C)+x(8C+3B)+(2C4B+3A)=9x2+4

Comparing coefficients gives3C=98C+3B=02C4B+3A=4

First equation gives C=3. Substituting in second equation gives 24+3B=0 or B=8. Third equation now becomes2(3)4(8)+3A=4A=10

Therefore the particular solution is(3)yp=10+8x+3x2 Substituting (2,3) into (1) gives the general solutiony(x)=yh+yp(4)=c1e3x+c2ex+10+8x+3x2

Initial conditions are now used to determine c1,c2.  y(0)=6 gives6=c1+c2+10(5)c1+c2=4

Taking derivative of (4)y=3c1e3x+c2ex+8+6x Using y(0)=8 the above becomes8=3c1+c2+8(6)3c1+c2=0

Eq (5,6) are solved for c1,c2. From (5) c1=4c2. Substituting in (6) gives 3(4c2)+c2=0, c2=6. Hence c1=4+6=2. Therefore the solution (4) now becomesy(x)=2e3x6ex+10+8x+3x2

2.5.3 Problem 2

Use the variation of parameters method to find the general solution to the given differential equation.

y+y=tan2(x) Solution

This is a nonhomogeneous linear second order ODE with constant coefficients. The general solution is given by (1)y=yh+yp where yh is the solution to the homogeneous part and yp is a particular solution. The first step is to determine yh which is solution to y+y=0. The characteristic equation isλ2+1=0λ=±i

The roots are λ1=i,λ2=i. Therefore the basis for yh are {eix,eix}. Using Euler relation these become {cosx,sinx}. Hence yh is a linear combination of these basis(2)yh=c1cosx+c2sinx Using variation of parameters, let yp=y1u1+y2u2, where  y1=cosxy2=sinx

Are the basis of yh found above, and u1,u2 are functions yet to be determined. Applying reduction of order as shown in the textbook (not repeated here) gives(3)u1=y2g(x)W(x)dx(4)u2=y1g(x)W(x)dx

Where in the above W(x) is the Wronskian and g(x) is the forcing function which is g(x)=tan2(x) in this case. The first step is to calculate W(x)W(x)=|y1y2y1y2|=|cosxsinxsinxcosx|=cos2x+sin2x=1

Therefore (3) becomesu1=sinxtan2x dx But tan2x=sin2xcos2x=1cos2xcos2x=1cos2x1. Hence the above becomesu1=sinx(1cos2x1) dx=(sinxcos2xsinx) dx=sinxcos2xdx+sinx dx(5)=tanx1cosxdx+sinx dx

To find the first integral in (5), let u=1cosx. Then du=(cosx)2(sinx)dx=sinxcos2xdx. Hence dx=cos2xsinxdu=cosxtanxdu. Therefore the first integral in (5) becomestanx1cosxdx=(tanx)u(cosxtanxdu)=ucosx du

But cosx=1u. The above becomestanx1cosxdx=du=u=1cosx

The second integral in (5) is just sinx dx=cosx. Therefore (5) becomesu1=1cosxcosx=1cos2xcosx=1+cos2xcosx

Now u2 in (4) is found. u2=cosxtan2x dx=cosxsin2xcos2x dx=sin2xcosx dx=1cos2xcosx dx=(1cosxcosx) dx=1cosxdxcosx dx(6)=secxdxcosx dx

To find secx dx, we start by multiplying the integrand by secx+tanxsecx+tanx=1. Hencesecx dx=secx(secx+tanxsecx+tanx)dx(7)=sec2x+secxtanxsecx+tanxdx

Using the substitutionu=secx+tanx Then (7A)dudx=ddxsecx+ddxtanx But ddxsecx=ddx(cosx)=(cosx)2(sinx)=sinxcos2x=sinxsec2x=secxtanx. And ddxtanx=1+tan2x=1+sin2xcos2x=cos2+sin2xcos2x=1cos2x=sec2x

Hence (7A) becomes dudx=secxtanx+sec2x Therefore (7) now becomessecx dx=sec2x+secxtanxudusecxtanx+sec2x=duu=lnu=ln(secx+tanx)

Eq (6) now becomesu2=secxdxcosx dx=ln(secx+tanx)sinx

Now that u1,u2 are found, then yp=y1u1+y2u2 givesyp=cosx(1+cos2xcosx)+sinx(ln(secx+tanx)sinx)=(1+cos2x)+sinx(ln(secx+tanx)sinx)=1cos2x+sinxln(secx+tanx)sin2x=1(cos2x+sin2x)+sinxln(secx+tanx)=2+sinxln(secx+tanx)=2+sinxln(1cosx+sinxcosx)=2+sinxln(1+sinxcosx)

Therefore the general solution isy=yh+yp=c1cosx+c2sinx+sinxln(1+sinxcosx)2

2.5.4 Problem 3

Show that the given vector functions are linearly independent on (,)x1(t)=[tt]x2(t)=[tt2] Solution

The Wronskian of these vectors is W(t)=|tttt2| If the above is nonzero at some point in the interval (,) then x1(t),x2(t) are linearly independent.W(t)=t3t2=t2(t1)

Any point other than t=0,t=1, then W(t)0. For example at t=2, W(2)=40. Hence x1(t),x2(t) are linearly independent .

2.5.5 Problem 4

Show that the given vector functions are linearly independent on (,)x1(t)=[et2et]x2(t)=[4et8e2t] Solution

The Wronskian of these vectors is W(t)=|et4et2et8e2t| If the above is nonzero at some point in the interval (,) then x1(t),x2(t) are linearly independent.W(t)=8e3t6e2t=e2t(8et6)

Choosing say t=0 then the above becomes W(0)=20. Therefore x1(t),x2(t) are linearly independent.

2.5.6 Problem 5

Show that the given functions are solutions of the system x(t)=A(x)x(t) for the given matrix A and hence find the general solution to the system (remember to check linear independence). Then find the particular solution for the given auxiliary conditions.x1(t)=[e4t2e4t]x2(t)=[3etet]A=[2325]x(0)=[21]

Solution

The system to solve is [x1(t)x2(t)]=[2325][x1(t)x2(t)] We need to first find the eigenvalues and eigenvectors of A. The eigenvalues are solution to |AλI|=0 or|2λ325λ|=0(2λ)(5λ)+6=0λ23λ10+6=0λ23λ4=0(λ4)(λ+1)=0

Hence the eigenvalues are λ1=4,λ2=1.

λ1=4[2λ325λ][v1v2]=[00][243254][v1v2]=[00][6321][v1v2]=[00]

R2=R2+13R1[6300][v1v2]=[00] Hence v1 is base variable and v2=t is free variable. First row gives 6v1=3t or v1=12t. The eigenvector is thenvλ1=[v1v1]=[12tt]=t[121]=t[12] Choosing t=1, then vλ1=[12] Therefore the first basis vector solution is given by x1(t)=eλ1tvλ1=e4t[12]=[e4t2e4t]

λ1=1[2λ325λ][v1v2]=[00][2+1325+1][v1v2]=[00][1326][v1v2]=[00]

R2=R22R1[1300][v1v2]=[00] Hence v1 is base variable and v2=t is free variable. First row gives v1=3t or v1=3t. The eigenvector is thenvλ2=[v1v1]=[3tt]=t[31] Choosing t=1, then vλ2=[31] Therefore the second basis vector solution is given by x2(t)=eλ2t vλ2=et[31]=[3etet]

The above result shows that the solution to x(t)=A(x)x(t) is(1)x(t)=c1x1(t)+c2x2(t)=c1[e4t2e4t]+c2[3etet]

Now we check that x1(t),x2(t) are linearly independent (they have to be, since they are eigenvectors of A, but the problem is asking to verify this result). The Wronskian of these vectors is W(t)=|e4t3et2e4tet| If the above is nonzero at some point in the interval (,) then x1(t),x2(t) are linearly independent.W(t)=e3t6e3t=5e3t

Choosing say t=0 then the above becomes W(0)=5. Since we found at least one point where W(t)0 then x1(t),x2(t) are linearly independent and (1) is the general solution to given system of differential equations. This answers the first part of the question by showing that the given functions are solutions of the system x(t)=A(x)x(t).

The final step is to find the particular solution to the given initial conditions x(0)=[21]. At t=0 the solution in (1) becomes[21]=c1[12]+c2[31] Which can be written as(2)[1321][c1c2]=[21] The augmented matrix is[132211] R2=R22R1[132055] Hence (2) becomes(3)[1305][c1c2]=[25] Second row gives 5c2=5 or c2=1. First row gives c1+3c2=2 or c1=23(1)=2+3=1. Hence [c1c2]=[11] Therefore the solution (1) becomesx(t)=[e4t2e4t][3etet] Orx1(t)=e4t3etx2(t)=2e4tet

2.5.7 Problem 6

Solve the initial-value problem x=Ax,x(0)=x0A=[1423]x(0)=[30] Solution

The system is [x1(t)x2(t)]=[1423][x1(t)x2(t)] We need to first find the eigenvalues and eigenvectors of A. The eigenvalues are solutions to |AλI|=0 or|1λ423λ|=0(1λ)(3λ)8=0λ2+4λ+38=0λ2+4λ5=0(λ1)(λ+5)=0

Hence the eigenvalues are λ1=1,λ2=5.

λ1=1[1λ423λ][v1v2]=[00][2424][v1v2]=[00]

R2=R2+R1[2400][v1v2]=[00] v1 is base variables and v2=t is free variable. First row gives 2v1=4t or v1=2t. Hence the first eigenvector is vλ1=[2tt]=t[21] Or for t=1vλ1=[21] The first basis vector solution is thereforex1=eλ1t vλ1=et[21](1)=[2etet]

λ1=5[1λ423λ][v1v2]=[00][4422][v1v2]=[00]

R2=R212R1[4400][v1v2]=[00] v1 is base variables and v2=t is free variable. First row gives 4v1=4t or v1=t. Hence the second eigenvector is vλ2=[tt]=t[11] Or for t=1vλ2=[11] The second basis vector solution is thereforex2=eλ2t vλ2=e5t[11](2)=[e5te5t]

From (1,2), the general solution is linear combination of (1,2) which isx(t)=c1x1(t)+c2x2(t)(3)=c1[2etet]+c2[e5te5t]

Now x1(t),x2(t) are verified to be linearly independent using the Wronskian. W(t)=|2ete5tete5t|=2e4t+e4t=3e4t

At t=0, W(0)=30. Hence x1(t),x2(t) are linearly independent. c1,c2 are now found from initial conditions. At t=0, (3) becomes[30]=c1[21]+c2[11] Which can be written as(4)[2111][c1c2]=[30] The augmented matrix is[213110] R2=2R2R1[213033] Hence (2) becomes[2103][c1c2]=[33] Second row gives c2=1. First row gives 2c1c1=3 or 2c1=31=2. Hence c1=1. [c1c2]=[11] Therefore the solution (3) becomesx(t)=[2etet][e5te5t] Orx1(t)=2et+e5tx2(t)=ete5t

2.5.8 Problem 7

Use the variation of parameters technique to find a particular solution xp to x=Ax+b for the given A,b. Also obtain the general solution to the system of differential equationsA=[2112]b=[04et] Solution

The system to solve is [x1(t)x2(t)]=[2112][x1(t)x2(t)]+[04et] The solution is given by x(t)=xh(t)+xp(t) Where xh(t) is the solution to the homogeneous system x=Ax and xp(t) is a particular solution. First xh(t) is solved for. The eigenvalues and eigenvectors of A are now found. The eigenvalues are solutions to |AλI|=0 or|2λ112λ|=0(2λ)(2λ)1=0λ24λ+41=0λ24λ+3=0(λ3)(λ1)=0

Hence the eigenvalues are λ1=3,λ2=1.

λ1=1[2λ112λ][v1v2]=[00][1111][v1v2]=[00]

R2=R2+R1[1100][v1v2]=[00] v1 is base variables and v2=t is free variable. First row gives v1=t. Hence the first eigenvector is v1=[tt]=t[11] Or for t=1v1=[21] The first basis vector solution is thereforex1(t)=eλ1t v1=et[11](1)=[etet]

λ1=3[2λ112λ][v1v2]=[00][1111][v1v2]=[00]

R2=R2R1[1100][v1v2]=[00] v1 is base variables and v2=t is free variable. First row gives v1=t. Hence the second eigenvector is v2=[tt]=t[11] Or for t=1v2=[11] The second basis vector solution is thereforex2(t)=eλ2t v2=e3t[11](2)=[e3te3t]

From (1,2), the homogeneous isxh(t)=c1x1(t)+c2x2(t)(2A)=c1[etet]+c2[e3te3t]

The Wronskian can be used to show that x1(t),x2(t) are linearly independentW(t)=|ete3tete3t|=e4t+e4t=2e4t Which is not zero at a point, say at t=0. Variation of parameters is now used to find the particular solution xp(t). The fundamental matrix is the matrix whose columns are x1(t),x2(t) Φ=[x1(t)x2(t)]=[ete3tete3t]

Therefore xp(t)=ΦΦ1b(t)dt(3)=[ete3tete3t][ete3tete3t]1[04et]dt

But [ete3tete3t]1=[e3te3tetet]|Φ| And |Φ|=|ete3tete3t|=e4t+e4t=2e4t Therefore[ete3tete3t]1=12[etete3te3t] Substituting the above in (3) givesxp(t)=[ete3tete3t]12[etete3te3t][04et]dt But [etete3te3t][04et]=[44e2t]. Hence the above becomesxp(t)=[ete3tete3t][22e2t]dt Carrying the integration element by element givesxp(t)=[ete3tete3t][2dt2e2tdt]=[ete3tete3t][2te2t](4)=[2tet+et2tetet]

Substituting (2A) and (4) into x(t)=xh(t)+xp(t) gives the final solution asx(t)=c1[etet]+c2[e3te3t]+[2tet+et2tetet]=[c1etc2e3t+2tet+etc1et+c2e3t+2tetet]

Orx1(t)=c1etc2e3t+2tet+etx2(t)=c1et+c2e3t+2tetet