If X is a random variable with the density function $f(x)=\frac{e^{-|x|}}{2}$, what is the CDF of X?
My first inclination is to take $\int_0^\infty \mathrm{e}^{x}/2\,\mathrm{d}x$ and $\int_{-\infty}^0 \mathrm{e}^{-x}/2\,\mathrm{d}x$.
Is this all?
If X is a random variable with the density function $f(x)=\frac{e^{-|x|}}{2}$, what is the CDF of X?
My first inclination is to take $\int_0^\infty \mathrm{e}^{x}/2\,\mathrm{d}x$ and $\int_{-\infty}^0 \mathrm{e}^{-x}/2\,\mathrm{d}x$.
Is this all?
Assuming that $$f(x)=\frac{e^{-|x|}}{2}$$ which is the Laplace distribution, your idea of splitting the function is correct! But, the cdf is itself a function not a single number! That means that your integration limits should depend on x. Therefore, you have to disriminate cases according to the value of x: