$$ f_{X}(x) = \frac{3}{8}(x+1)^{2} ,\ -1 < x < 1 $$
$$Y = \begin{cases} 1 - X^{2} & X \leq 0,\\ 1- X, & X > 0.\end{cases}$$
I started with : $$ F_{Y}(y) = 1 - P(Y \leq y) $$ $$ = 1 - [P(-(1-y)^\frac {1}{2} < X < (1-y)] $$
From here, I can get $F_{Y}(y)$, and differentiating it will give me $f_{x}(x)$.
But the answer I am getting for pdf is not the desired answer. Am I doing anything wrong? Thanks for your help.