if I have a pdf $$f_X(x) = \begin{cases} c(1-|x|), & \text{for -1 < x < 1} \\ 0, & \text{otherwise} \end{cases}$$
I have figured out c to be 1 from some calculation
It turns out that $$F_X(x) = \begin{cases} 0, & \text{if x < -1,} \\ \frac{(x+1)^2}{2}, & \text{if -1}\ \leq \text{x < 0,} \\ \frac{1}{2}+x(1-x/2), & \text{if 0}\ \leq \text{x < 1,} \\ 1, & \text{if x} \ \geq 1. \end{cases}$$
couple of questions I have in terms of this is that
why is the $c(1-|x|)$ equation not integerated between -1 and 1, but instead done between -1 to 0, and 0 to 1.
is the value 1 when $x \geq 1$ because $F_X(\infty) = 1$?
to get $\frac{x+1^2}{2}$, why does the integral look like $\int_{-1}^x(1+v)dv$, but the one below looks like $\frac{1}{2}+\int_{0}^{x}(1-v)dv$? where does the half come from and why is is 1 + v for the first but 1 - v for the below?