29.5.26 problem 143

Internal problem ID [4743]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 5
Problem number : 143
Date solved : Monday, January 27, 2025 at 09:36:09 AM
CAS classification : [_linear]

\begin{align*} x y^{\prime }+x +y&=0 \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 13

dsolve(x*diff(y(x),x)+x+y(x) = 0,y(x), singsol=all)
 
\[ y \left (x \right ) = -\frac {x}{2}+\frac {c_{1}}{x} \]

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 17

DSolve[x D[y[x],x]+x + y[x]==0,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to -\frac {x}{2}+\frac {c_1}{x} \]