a = DSolve[(x^2 + 1) y''[x] - 6 y[x] == 0, y[x], x]

b = DSolve[{(x^2 + 1) y''[x] - 6 y[x] == 0, y[0]==0}, y[x], x]

y[x] = (x+(x^3)) c

Simplify[(x^2 + 1) D[y[x], {x, 2}] - 6 y[x]]