• Solution of simultaneous homogeneous ordinary differential equations (pp.2)
                    
                    
                        
                        
                    
                    
                        {˙x1=x2                                                           (1.A)˙x2=-2x1-3x2+1                                    (1.B)
                    
                    
                        
                            Initial state is
                            x1(0), x2(0)
                            when
                            t=0
                            .
                            
                            
                            Substituting
                            equation (1.A)
                            into
                            equation (1.B)
                            , following equation may be obtained as:
                        
                    
                    
                        ¨x1+3˙x1+2x1=1                                                    (2)
                    
                    
                        
                            The
                            
                                
                                    characteristic polynomial
                                
                            
                            of
                            equation (2)
                            via
                            
                                
                                    Laplace transform
                                
                            
                            is:
                        
                    
                    
                        s2+3s+2=0                                                      (3)
                    
                    
                        
                            eigenvalues of
                            equation (3)
                            are -1, -2,
                            
                                
                                    general solution
                                
                            
                            of homogeneous part of
                            equation (2)
                            is
                            c1e-t+c2e-2t+c3
                            , where
                            c1
                            ,
                            c2
                            and
                            c3
                            are arbitrary constant.
                            
                            One of the
                            
                                
                                    particular solution
                                
                            
                            may be obtained by substituting
                            
                                
                                    general solution
                                
                            
                            into
                            equation (2)
                            as:
                        
                    
                    
                        c1e-t+4c2e-2t+3(-c1e-t-2c2e-2t)+2(c1e-t+c2e-2t+c3)=1                      (4)
                    
                    
                        
                        
                    
                    
                        
                            
                                
                                    Particular solution
                                
                            
                            is
                            x1=c3=12
                            ,
                            
                                
                                    general solution
                                
                            
                            is updated as
                        
                    
                    
                        x1=c1e-t+c2e-2t+12                                           (5)
                    
                    
                        
                            Which may be substituted into
                            equation (1.A)
                            :
                        
                    
                    
                        x2=-c1e-t-2c2e-2t                                           (6)
                    
                    
                        
                            The initial state is derived by setting
                            t=0
                            into
                            equation (5)
                            (6)
                            as:
                        
                    
                    
                        {c1+c2+12=x1(0)-c1-2c2=x2(0)                                     (7)
                    
                    
                        
                            The roots of simultaneous functions
                            equation (7)
                            are
                        
                    
                    
                        {c1=2x1(0)+x2(0)-1c2=-x1(0)-x2(0)+12                                       (8)
                    
                    
                        
                            , which may be substituted into
                            equation (5)
                            (6)
                            and rearranged as:
                        
                    
                    
                        [x1(t)x2(t)]=[2e-t-e-2te-t-e-2t-2e-t+2e-2t-e-t+2e-2t][x1(0)x2(0)]+[-e-t+12e-2t+12e-t-e-2t]                   (9)
                    
                    
                        
                            Some other method see
                            [ref1]
                            . Note
                            equation (1)
                            may be rewitten into
                            
                                
                                    state-space
                                
                            
                            format as:
                        
                    
                    
                        ˙x(t)=[01-2-3]x(t)+[01]⏟regard as input                                            (10)
                    
                    
                        
                        
                    
                    
                        -> Solve by Matlab using dsolve
                        
                            
                                [ref2]
                            
                        
                        :
                    
                    
                            syms x1(t) x2(t) x10 x20
    ode1 = diff(x1) == x2;
    ode2 = diff(x2) == -2*x1 - 3*x2 +1;
    odes = [ode1; ode2]
    cond1 = x1(0) == x10;
    cond2 = x2(0) == x20;
    conds = [cond1; cond2];
    [x1gsol(t),x2gsol(t)] = dsolve(odes)
    [x1sol(t),x2sol(t)] = dsolve(odes,conds)
                    
                    
                        
                            We may find that xgsol is not coincide totally to
                            equation (5)
                            (6)
                            , because
                            
                                
                                    general solution
                                
                            
                            is a set of simultaneous polynomials. Meanwhile xsol is coincide to
                            equation (9)
                            .
                        
                    
                    
                        
                            Using transition matrix for examination
                        
                    
                    
                            syms t
    A = [0,1;-2,-3];
    expm(A*t)*[x10;x20]
                    
                    
                        
                            We may find the result is totally the same with the first term of
                            equation (9)
                            .