9.23 problem 1878

Internal problem ID [10201]

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 )&=y \left (t \right )+x \left (t \right )+\frac {2 x \left (t \right )}{t}-1 \end {align*}

Solution by Maple

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

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

\begin{align*} x \left (t \right ) &= \frac {t}{3}+\frac {c_{2}}{t^{2}} \\ y \left (t \right ) &= \frac {3 c_{1} {\mathrm e}^{t} t^{2}-t^{3}-3 c_{2}}{3 t^{2}} \\ \end{align*}

Solution by Mathematica

Time used: 0.045 (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*}