80.7.12 problem B 4

Internal problem ID [21331]
Book : A Textbook on Ordinary Differential Equations by Shair Ahmad and Antonio Ambrosetti. Second edition. ISBN 978-3-319-16407-6. Springer 2015
Section : Chapter 7. System of first order equations. Excercise 7.6 at page 162
Problem number : B 4
Date solved : Thursday, October 02, 2025 at 07:28:29 PM
CAS classification : system_of_ODEs

\begin{align*} x^{\prime }&=2 x+6 y \left (t \right )\\ y^{\prime }\left (t \right )&=x+3 y \left (t \right ) \end{align*}
Maple. Time used: 0.047 (sec). Leaf size: 26
ode:=[diff(x(t),t) = 2*x(t)+6*y(t), diff(y(t),t) = x(t)+3*y(t)]; 
dsolve(ode);
 
\begin{align*} x \left (t \right ) &= c_1 +c_2 \,{\mathrm e}^{5 t} \\ y \left (t \right ) &= \frac {c_2 \,{\mathrm e}^{5 t}}{2}-\frac {c_1}{3} \\ \end{align*}
Mathematica. Time used: 0.005 (sec). Leaf size: 63
ode={D[x[t],t]==2*x[t]+6*y[t],D[y[t],t]==x[t]+3*y[t]}; 
ic={}; 
DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
 
\begin{align*} x(t)&\to \frac {1}{5} \left (c_1 \left (2 e^{5 t}+3\right )+6 c_2 \left (e^{5 t}-1\right )\right )\\ y(t)&\to \frac {1}{5} \left (c_1 \left (e^{5 t}-1\right )+c_2 \left (3 e^{5 t}+2\right )\right ) \end{align*}
Sympy. Time used: 0.041 (sec). Leaf size: 24
from sympy import * 
t = symbols("t") 
x = Function("x") 
y = Function("y") 
ode=[Eq(-2*x(t) - 6*y(t) + Derivative(x(t), t),0),Eq(-x(t) - 3*y(t) + Derivative(y(t), t),0)] 
ics = {} 
dsolve(ode,func=[x(t),y(t)],ics=ics)
 
\[ \left [ x{\left (t \right )} = - 3 C_{1} + 2 C_{2} e^{5 t}, \ y{\left (t \right )} = C_{1} + C_{2} e^{5 t}\right ] \]