87.20.6 problem 6

Internal problem ID [23691]
Book : Ordinary differential equations with modern applications. Ladas, G. E. and Finizio, N. Wadsworth Publishing. California. 1978. ISBN 0-534-00552-7. QA372.F56
Section : Chapter 3. Linear Systems. Exercise at page 161
Problem number : 6
Date solved : Sunday, October 12, 2025 at 05:55:15 AM
CAS classification : system_of_ODEs

\begin{align*} t \left (\frac {d}{d t}x \left (t \right )\right )&=3 x \left (t \right )-2 y \left (t \right )\\ t \left (\frac {d}{d t}y \left (t \right )\right )&=x \left (t \right )+y \left (t \right )-t^{2} \end{align*}
Maple. Time used: 0.062 (sec). Leaf size: 51
ode:=[t*diff(x(t),t) = 3*x(t)-2*y(t), t*diff(y(t),t) = x(t)+y(t)-t^2]; 
dsolve(ode);
 
\begin{align*} x \left (t \right ) &= t^{2} \left (2+\sin \left (\ln \left (t \right )\right ) c_2 +\cos \left (\ln \left (t \right )\right ) c_1 \right ) \\ y \left (t \right ) &= \frac {t^{2} \left (\sin \left (\ln \left (t \right )\right ) c_1 +\sin \left (\ln \left (t \right )\right ) c_2 +\cos \left (\ln \left (t \right )\right ) c_1 -\cos \left (\ln \left (t \right )\right ) c_2 +2\right )}{2} \\ \end{align*}
Mathematica. Time used: 0.155 (sec). Leaf size: 55
ode={t*D[x[t],t]==3*x[t]-2*y[t],t*D[y[t],t]==x[t]+y[t]-t^2}; 
ic={}; 
DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
 
\begin{align*} x(t)&\to t^2 (c_2 \cos (\log (t))+c_1 \sin (\log (t))+2)\\ y(t)&\to \frac {1}{2} t^2 ((c_2-c_1) \cos (\log (t))+(c_1+c_2) \sin (\log (t))+2) \end{align*}
Sympy. Time used: 0.113 (sec). Leaf size: 92
from sympy import * 
t = symbols("t") 
x = Function("x") 
y = Function("y") 
ode=[Eq(t*Derivative(x(t), t) - 3*x(t) + 2*y(t),0),Eq(t**2 + t*Derivative(y(t), t) - x(t) - y(t),0)] 
ics = {} 
dsolve(ode,func=[x(t),y(t)],ics=ics)
 
\[ \left [ x{\left (t \right )} = t^{2} \left (C_{1} - C_{2}\right ) \cos {\left (\log {\left (t \right )} \right )} - t^{2} \left (C_{1} + C_{2}\right ) \sin {\left (\log {\left (t \right )} \right )} + 2 t^{2} \sin ^{2}{\left (\log {\left (t \right )} \right )} + 2 t^{2} \cos ^{2}{\left (\log {\left (t \right )} \right )}, \ y{\left (t \right )} = C_{1} t^{2} \cos {\left (\log {\left (t \right )} \right )} - C_{2} t^{2} \sin {\left (\log {\left (t \right )} \right )} + t^{2} \sin ^{2}{\left (\log {\left (t \right )} \right )} + t^{2} \cos ^{2}{\left (\log {\left (t \right )} \right )}\right ] \]