I am trying to integrate exponent distribution which is defined as: $$ f(x)=\begin{cases}\lambda e^{-\lambda x} & x\ge 0 \\ 0 & x\le 0 \end{cases} $$ Now i remember that integrating improper integral would go something like this ? $$F(x)= \int_{-\infty}^{x}f(s)ds=\lim_{n\rightarrow (-\infty)} \int_{n}^{x}f(s)ds=\lim_{n\rightarrow (-\infty)}\left[\begin{matrix} \end{matrix} F(x)-F(n) \right] $$ I end up with result as following: $$ F(x)= \int_{-\infty}^{x}\lambda e^{-\lambda s}ds=\lim_{n\rightarrow(-\infty)}(-e^{-\lambda x})-(-e^{-\lambda n}) $$ Now the end result should be following:
$$F(x)=\int_{-\infty}^x f(s) \, ds=\begin{cases} 1-e^{-\lambda x}, & x> 0. \\ 0, & x\le 0\end{cases}$$
This hints that $$ \lim_{n \rightarrow (-\infty)}-(-e^{\lambda n})=1 $$ but i cant understand why.
Now if someon could provide some answer to this that would be greatly appreciated.
Thanks,
Tuki
Note that in this case $f(x)$ vanishes for $x<0$, so that
$$ F(x) = \int_{-\infty}^{x}{\rm d}x~f(x) $$
can be evaluated in two steps
$$ \int_{-\infty}^x{\rm d}x~ f(x) = \int_{-\infty}^x{\rm d}x~ 0 = 0 $$
$$ \int_{-\infty}^x{\rm d}x~ f(x) = \int_{0}^x{\rm d}x~ \lambda e^{-\lambda x} = 1 - e^{-\lambda x} $$