DiffEq Home

Introduction to Systems of Linear ODEs

    


Suppose x1,x2,,xn are n functions of t. Consider the following system of n linear ODEs: x1=a11(t)x1+a12(t)x2++a1n(t)xn+g1(t)x2=a21(t)x1+a22(t)x2++a2n(t)xn+g2(t)xn=am1(t)x1+am2(t)x2++amn(t)xn+gn(t). It can be simply written in the following matrix form: x=Ax+g,(50) where A=[a11a12a1na21a22a2nan1an2ann],x=[x1x2xn], and g=[g1g2gn]. A is called the coefficient matrix of (50). When g=0, (50) is a homogeneous system. Similarly when g0, (50) is a nonhomogeneous system


Example. A multiple mass-spring system can have the following equations of motion: m1x1=k1x1+k2(x2x1)+F1(t)m2x2=k2(x2x1)+F2(t).
Example. Write the following system in matrix form. x1=x1+x2+etx2=4x12x2+t2 Solution. [x1x2]=[x1+x2+et4x12x2+t2]=[1142][x1x2]+[ett2] i.e., x=Ax+g, where A=[1142],x=[x1x2], and g=[ett2].


Example. Write the following IVP in matrix form. x1=4x13x2x2=8x16x2x1(0)=5,x2(0)=6. Solution. x=[4386]x, where x(0)=[56] and x=[x1x2].


We can transform nth order linear ODE y(n)=F(t,y,y,,y(n1)) to the following system of n variables x1=y,x2=y,,xn=y(n1): x1=x2x2=x3xn1=xnxn=F(t,x1,x2,,xn).
Example. Convert the following third order linear ODE to a system of linear ODEs and write its matrix form. y=etyty+costy5t. Solution. Let x1=y,x2=y,x3=y. Then x1=x2x2=x3x3=etx3tx2+costx15t. Its matrix form is x=[010001costtet]x+[005t], where x=[x1,x2,x3]T.


Last edited 04/18/2022 19:41:49