CDF of a gamma distribution ($X \sim \mathcal{G}(n, \lambda)$) looks like
$$F(x) = \frac{\Gamma_x(n)}{\Gamma(n)}$$
Where $\Gamma_x(n) = \int_0^x t^{n-1} e^{-t} \, dt$ the incomplete gamma function. Ok so far?
But how do I differentiate such an expression?
$$\frac{d}{dx} \frac{\int_0^x t^{n-1} e^{-t} \, dt}{\int_0^\infty t^{n-1} e^{-t} \, dt}$$
UPDATE
With help from @MhenniBenghorbal, I have gotten:
$$\frac{d}{dx} \frac{\int_0^x t^{n-1} e^{-t} \, dt}{\int_0^\infty t^{n-1} e^{-t} \, dt} = \frac{1}{\Gamma(n)} x^{n-1}e^{-\lambda t}$$
but then its missing the $\lambda^n$ term of the original PDF of a gamma distribution. How do I get that back? I must have overlooked something? But I can see where …
Best Answer
Here is how you apply it
Note: In your case you the fundamental theorem of calculus is enough