20.18.6 problem 6

Internal problem ID [3876]
Book : Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section : Chapter 9, First order linear systems. Section 9.6 (Variation of parameters for linear systems), page 624
Problem number : 6
Date solved : Monday, January 27, 2025 at 08:03:45 AM
CAS classification : system_of_ODEs

\begin{align*} \frac {d}{d t}x_{1} \left (t \right )&=2 x_{1} \left (t \right )+4 x_{2} \left (t \right )+8 \sin \left (2 t \right )\\ \frac {d}{d t}x_{2} \left (t \right )&=-2 x_{1} \left (t \right )-2 x_{2} \left (t \right )+8 \cos \left (2 t \right ) \end{align*}

Solution by Maple

Time used: 2.692 (sec). Leaf size: 95

dsolve([diff(x__1(t),t)=2*x__1(t)+4*x__2(t)+8*sin(2*t),diff(x__2(t),t)=-2*x__1(t)-2*x__2(t)+8*cos(2*t)],singsol=all)
 
\begin{align*} x_{1} \left (t \right ) &= c_{1} \cos \left (2 t \right )-4 t \cos \left (2 t \right )+c_{2} \sin \left (2 t \right )+12 t \sin \left (2 t \right )+6 \cos \left (2 t \right ) \\ x_{2} \left (t \right ) &= -\frac {c_{1} \cos \left (2 t \right )}{2}+\frac {c_{2} \cos \left (2 t \right )}{2}+8 t \cos \left (2 t \right )-\frac {c_{1} \sin \left (2 t \right )}{2}-\frac {c_{2} \sin \left (2 t \right )}{2}-4 t \sin \left (2 t \right )-4 \cos \left (2 t \right )-2 \sin \left (2 t \right ) \\ \end{align*}

Solution by Mathematica

Time used: 0.061 (sec). Leaf size: 64

DSolve[{D[x1[t],t]==2*x1[t]+4*x2[t]+8*Sin[2*t],D[x2[t],t]==-2*x1[t]-2*x2[t]+8*Cos[2*t]},{x1[t],x2[t]},t,IncludeSingularSolutions -> True]
 
\begin{align*} \text {x1}(t)\to (-4 t+1+c_1) \cos (2 t)+(12 t+1+c_1+2 c_2) \sin (2 t) \\ \text {x2}(t)\to (8 t-1+c_2) \cos (2 t)-(4 t+c_1+c_2) \sin (2 t) \\ \end{align*}