Answer
$y = 1+C~e^{-x}$
Work Step by Step
A first-order linear differential equation is one that can be put into the form:
$\frac{dy}{dx} + P(x)~y = Q(x)$
We can consider the given equation:
$y'+y = 1$
Let $P(x) = 1$
Let $Q(x) = 1$
We can find the integrating factor:
$I(x) = e^{\int 1 ~dx} = e^x$
We can multiply by the integrating factor:
$e^x~y'+e^x~y = e^x$
$\frac{d}{dx}(e^x~y) = e^x$
We can integrate both sides of the equation:
$e^x~y = \int e^x~dx$
$e^x~y = e^x+C$
$y = 1+C~e^{-x}$