The density function of random variable x is f (x) = 1 / 2E ^ - | x |, X belongs to R, find the distribution function of X

The density function of random variable x is f (x) = 1 / 2E ^ - | x |, X belongs to R, find the distribution function of X

F (x) = ∫ f (x) DX (specific integral reference exponential distribution)
x0
F(x)=∫(-∞,0)f(x)dx+∫(0,x)f(x)dx
=1/2+(1/2)(1-e^(-|x|))=1-(1/2)e^(-|x|)