Divide by (1+x2)dx to put the equation in linear form: y′+[1+x2x]y=1+x25x2. The integrating factor is exp(∫1+x2xdx)=1+x2.
Multiplication by this factor gives dxd[y1+x2]=5x2. Integrating, y1+x2=35x3+C. The initial condition y(0)=0 gives C=0.
Thus y(x)=[31+x2]5x3, and y(3)=3⋅25(33)=253.