A Linear Equation; IVP; Piecewise Defined Funciton

$\displaystyle \frac{dy}{dx}+2xy=f(x)$ such that $\displaystyle y(0)=2$

$\displaystyle f(x)=\left\{\begin{array}{cc} x, &\mbox { if } 0\leq x< 1\\ 0,&\mbox { if } x\geq 1\end{array}\right$

The integrating factor is $\displaystyle e^{\int 2xdx}=e^{x^2}$, so:

$\displaystyle \int\frac{d}{dx}\left[e^{x^2}y\right]dx=\int xe^{x^2}dx$

$\displaystyle e^{x^2}y=\frac{1}{2}e^{x^2}+C_1$

The point $\displaystyle (0,2)$ gives:

$\displaystyle C_1=\frac{3}{2}$

$\displaystyle y=\frac{1}{2}+\frac{3}{2e^{x^2}}$

For $\displaystyle x\geq 1$ the equation is separable.

$\displaystyle \frac{dy}{dx}=-2xy$

$\displaystyle \int \frac{1}{y}\frac{dy}{dx}dx=-\int 2x dx=-x^2+C_2$

$\displaystyle ln\mid y\mid =-x^2+C_3$

$\displaystyle \mid y \mid = C_4e^{-x^2}$

$\displaystyle y=\pm C_4e^{-x^2}$

Problem: The solution in the book gives $\displaystyle \left(\frac{1}{2}e+\frac{3}{2}\right)e^{-x^2}$ for $\displaystyle x \geq 1$ and I don't see how to find C_4 because the point $\displaystyle (0,2)$ isn't on the interval $\displaystyle [1,\infty)$