Find the continuous solution satisfying $(1+x^2)y'+2xy=f(x),f(x)=\left\{\begin{matrix} x& 0\leq x < 1\\ -x& x\geq 1 \end{matrix}\right.$
with y(0)=0
My attempt:
$(1+x^2)y'+2xy=f(x)\Rightarrow ((1+x^2)y)'=f(x)$
$(1+x^2)y=\int f(x)dx=\int ^1_0 x dx-\int^\infty_1 x dx$
i get $\infty$ R.H.S is this process is right