9.23 problem 1878

Internal problem ID [9453]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 8, system of first order odes
Problem number: 1878.
ODE order: 1.
ODE degree: 1.

Solve \begin {align*} x^{\prime }\left (t \right )&=-\frac {2 x \left (t \right )}{t}+1\\ y^{\prime }\left (t \right )&=x \left (t \right )+y \left (t \right )+\frac {2 x \left (t \right )}{t}-1 \end {align*}

Solution by Maple

Time used: 0.234 (sec). Leaf size: 31

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

\[ x \left (t \right ) = \frac {t}{3}-\frac {c_{2}}{t^{2}} \] \[ y \left (t \right ) = \frac {c_{2}}{t^{2}}+c_{1} {\mathrm e}^{t}-\frac {t}{3} \]

Solution by Mathematica

Time used: 0.029 (sec). Leaf size: 39

DSolve[{t*x'[t]+2*x[t]==t,t*y'[t]-(t+2)*x[t]-t*y[t]==-t},{x[t],y[t]},t,IncludeSingularSolutions -> True]
 

\begin{align*} x(t)\to \frac {t}{3}+\frac {c_1}{t^2} \\ y(t)\to -\frac {c_1}{t^2}-\frac {t}{3}+c_2 e^t \\ \end{align*}