Internal problem ID [5023]
Book: Ordinary differential equations and calculus of variations. Makarets and Reshetnyak. Wold
Scientific. Singapore. 1995
Section: Chapter 1. First order differential equations. Section 1.2 Homogeneous equations problems.
page 12
Problem number: 28.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_linear]
Solve \begin {gather*} \boxed {y^{\prime }+\frac {x +2 y}{x}=0} \end {gather*}
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 13
dsolve(diff(y(x),x)+(x+2*y(x))/x=0,y(x), singsol=all)
\[ y \relax (x ) = -\frac {x}{3}+\frac {c_{1}}{x^{2}} \]
✓ Solution by Mathematica
Time used: 0.037 (sec). Leaf size: 17
DSolve[y'[x]+(x+2*y[x])/x==0,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to -\frac {x}{3}+\frac {c_1}{x^2} \\ \end{align*}