I found an old exam with the the question to solve this differential:
$$y'(x)-2xy(x)=\sinh(x)\cdot e^{x^2} ~~{\rm with}~~ y(0)=0$$
I know that I should probably solve the homogenous part first and then use the method of the variation of the constants to solve for the inhomogenous part.
I do have to start with saying that the $\sinh(x)$ is throwing me off a little and I'm not even sure what the homogenous part is.
Thanks xx
The homogeneous equation,
$$y'(x)-2xy(x)=0$$
is separable and gives the solution
$$y_h(x)=ce^{x^2}.$$
Now by variation of the constant,
$$y(x)=c(x)e^{x^2}$$
gives
$$c'(x)e^{x^2}+c(x)2xe^{x^2}-2xc(x)e^{x^2}=\sinh(x)e^{x^2}$$
or
$$c'(x)=\sinh(x).$$
The rest is yours.