29.11 problem 4(a)

Internal problem ID [5786]

Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 10. Systems of First-Order Equations. Section A. Drill exercises. Page 400
Problem number: 4(a).
ODE order: 1.
ODE degree: 1.

Solve \begin {align*} x^{\prime }\relax (t )&=x \relax (t )+2 y \relax (t )-4 t +1\\ y^{\prime }\relax (t )&=-x \relax (t )+2 y \relax (t )+3 t +4 \end {align*}

Solution by Maple

Time used: 0.094 (sec). Leaf size: 106

dsolve([diff(x(t),t)=x(t)+2*y(t)-4*t+1,diff(y(t),t)=-x(t)+2*y(t)+3*t+4],[x(t), y(t)], singsol=all)
 

\[ x \relax (t ) = \frac {{\mathrm e}^{\frac {3 t}{2}} \sin \left (\frac {\sqrt {7}\, t}{2}\right ) c_{2}}{2}-\frac {{\mathrm e}^{\frac {3 t}{2}} \sqrt {7}\, \cos \left (\frac {\sqrt {7}\, t}{2}\right ) c_{2}}{2}+\frac {{\mathrm e}^{\frac {3 t}{2}} \cos \left (\frac {\sqrt {7}\, t}{2}\right ) c_{1}}{2}+\frac {{\mathrm e}^{\frac {3 t}{2}} \sqrt {7}\, \sin \left (\frac {\sqrt {7}\, t}{2}\right ) c_{1}}{2}+\frac {25}{8}+\frac {7 t}{2} \] \[ y \relax (t ) = {\mathrm e}^{\frac {3 t}{2}} \sin \left (\frac {\sqrt {7}\, t}{2}\right ) c_{2}+{\mathrm e}^{\frac {3 t}{2}} \cos \left (\frac {\sqrt {7}\, t}{2}\right ) c_{1}+\frac {t}{4}-\frac {5}{16} \]

Solution by Mathematica

Time used: 1.215 (sec). Leaf size: 123

DSolve[{x'[t]==x[t]+2*y[t]-4+t+1,y'[t]==-x[t]+2*y[t]+3*t+4},{x[t],y[t]},t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to t+\frac {1}{7} e^{3 t/2} \left (7 c_1 \cos \left (\frac {\sqrt {7} t}{2}\right )-\sqrt {7} (c_1-4 c_2) \sin \left (\frac {\sqrt {7} t}{2}\right )\right )+\frac {9}{2} \\ y(t)\to -t+\frac {1}{7} e^{3 t/2} \left (7 c_2 \cos \left (\frac {\sqrt {7} t}{2}\right )+\sqrt {7} (c_2-2 c_1) \sin \left (\frac {\sqrt {7} t}{2}\right )\right )-\frac {1}{4} \\ \end{align*}