I'm trying to solve the following question: Given an exponential R.V. X with rate parameter $\lambda > 0$, find the PDF of $V=|X-\lambda|$.
In order to find the PDF, I would like to use the CDF method (i.e. finding the CDF and then taking the derivative to obtain the PDF). I realize this function is not one to one on the range between 0 and $2\lambda$, so the CDF should be broken into three parts: $0>w$, $0<w<2\lambda$ and $2\lambda<w$. For $0<w<2\lambda$, $Pr(|X-\lambda| < w)$ = $Pr(-w+\lambda < x < w+\lambda)$, and then I think I want to do the double integral of $\int_0^\infty\int_{-w+\lambda}^{w+\lambda}\lambda e^{-\lambda x}dx$, with the function being integrated there being the exponential distribution pdf. After getting this, I should be able to take the derivative and get the PDF for $0<w<2\lambda$, right? (For the record, I get $\lambda e^{-\lambda ^2 - \lambda w} - \lambda e^{-\lambda ^2+\lambda w}$ when i try this; its possible i'm wrong though!)
For the last part, I believe the bounds are $2\lambda <w<\infty$, so i want to do this integral: $\int_0^\infty\int_{2\lambda}^{\infty}\lambda e^{-\lambda x}dx$, but i'm not really sure about this at all.
I understand there are probably more efficient ways of solving this, but I'm specifically trying to do it using the CDF method!