The steps in this exercise lead to the probability density function of an Erlang random variable $X$ with parameters
$\lambda$ and $r, f(x)=\lambda^{r} x^{r-1} e^{-\lambda x} /(r-1) !, x>0,$ and $r=1,2, \ldots$
(a) Use the Poisson distribution to express $P(X>x)$.
(b) Use the result from part (a) to determine the cumulative distribution function of $X$.
(c) Differentiate the cumulative distribution function in part (b) and simplify to obtain the probability density function of $X$.