The integrating factor for the differential equation

$\frac{dy}{dx}-\frac{y}{1+x}=\left ( 1+x \right )$ is

1. $\frac{1}{1+x}$
2. $(1+x)$
3. $x(1+x)$
4. $\frac{x}{1+x}$