4.3.46 \(x y'(x)+y(x)+x=0\)

ODE
\[ x y'(x)+y(x)+x=0 \] ODE Classification

[_linear]

Book solution method
Linear ODE

Mathematica
cpu = 0.153887 (sec), leaf count = 17

\[\left \{\left \{y(x)\to -\frac {x}{2}+\frac {c_1}{x}\right \}\right \}\]

Maple
cpu = 0.005 (sec), leaf count = 13

\[\left [y \left (x \right ) = -\frac {x}{2}+\frac {\textit {\_C1}}{x}\right ]\] Mathematica raw input

DSolve[x + y[x] + x*y'[x] == 0,y[x],x]

Mathematica raw output

{{y[x] -> -1/2*x + C[1]/x}}

Maple raw input

dsolve(x*diff(y(x),x)+x+y(x) = 0, y(x))

Maple raw output

[y(x) = -1/2*x+1/x*_C1]