80.7.16 problem B 8

Internal problem ID [21335]
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 8
Date solved : Thursday, October 02, 2025 at 07:28:32 PM
CAS classification : system_of_ODEs

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