4.30.47 \(x^2 y''(x)-x^2 y'(x)-2 x^2 y(x)=2 x^2 \log (x)+x+1\)

ODE
\[ x^2 y''(x)-x^2 y'(x)-2 x^2 y(x)=2 x^2 \log (x)+x+1 \] ODE Classification

[[_2nd_order, _linear, _nonhomogeneous]]

Book solution method
TO DO

Mathematica
cpu = 0.0361264 (sec), leaf count = 26

\[\left \{\left \{y(x)\to c_1 e^{-x}+c_2 e^{2 x}-\log (x)\right \}\right \}\]

Maple
cpu = 0.036 (sec), leaf count = 21

\[ \left \{ y \left ( x \right ) ={{\rm e}^{-x}}{\it \_C2}+{{\rm e}^{2\,x}}{\it \_C1}-\ln \left ( x \right ) \right \} \] Mathematica raw input

DSolve[-2*x^2*y[x] - x^2*y'[x] + x^2*y''[x] == 1 + x + 2*x^2*Log[x],y[x],x]

Mathematica raw output

{{y[x] -> C[1]/E^x + E^(2*x)*C[2] - Log[x]}}

Maple raw input

dsolve(x^2*diff(diff(y(x),x),x)-x^2*diff(y(x),x)-2*x^2*y(x) = 1+x+2*x^2*ln(x), y(x),'implicit')

Maple raw output

y(x) = exp(-x)*_C2+exp(2*x)*_C1-ln(x)