.
The pdf function is f(x) = on the interval [-1,1].
The cdf function is antiderivative F(x) of f(x) such that F(-1) = 0.
So, the antiderivative is F(x) = = - + , (1)
where C is the constant such that F(-1) = 0.
From this condition, you have this equation, substituting x= -1 into the formula (1)
- + = 0, or
= 0, or
= 0,
which gives
C = .
So, your antiderivative, or cdf function is
F(x) = - + .
Thus I complete calculating the needed cdf function.
Now my short COMMENT regarding your solution.
Your solution was INCORRECT.
You incorrectly found the cdf function,
because in integrating process you forgot about the constant term "C"
and forgot to satisfy the condition F(-1) = 0 for your cdf function.
I stop at this point leaving to complete the part 2 of the problem to you.