MATH52809/21/18
        
In this mini-lab, we'll investigate the method of variation of constants for solving inhomogeneous ODEs of the form (§2.10)
| (1) | 
One of the objectives of this mini-lab is to show how combined active-reading, hand-computation, structured writing, scratch notes, and symbolic computation come together to enable deeper understanding of topics within mathematical physics.
Seek solution of (1) as , with the general solution of the homogeneous ODE
| (2) | 
and a particular solution of the inhomogeneous ODE (1).
             
                  In[22]:= 
                 
                   
                    rhs[y_,x_,p_,q_] := D[y,{x,2}] + p[x] D[y,x] + q[x] y;
                   
                    rhsODE = rhs[u[x] Subscript[y,1][x] + v[x]
                    Subscript[y,2][x],x,p,q]
                  
              
          
                 
            
            
             
                  In[24]:= 
                 
                   
                    Simplify[rhsODE /. {Subscript[y,1]”[x] -> - p[x]
                    Subscript[y,1]'[x] - q[x]
                    Subscript[y,1][x],Subscript[y,2]”[x] -> - p[x]
                    Subscript[y,2]'[x] - q[x] Subscript[y,2][x]}]
                  
              
          
                 
            
            
             
                  In[18]:= 
                 
                   
                    rhs[u[x] y1[x] + v[x] y2[x],x,p,q]
                  
              
          
                 
            
            
             
                  In[19]:=