In the book Statistical inference by Casella and Berger, given that the pdf of X is $f_X(x) = \frac{2}{9}(x+1)$ for $-1 \le x \le 2$, we want to find the pdf of $Y=X^2$. But it says we are not able to directly use the theorem 2.1.8 which is
Theorem 2.1.8 Let $X$ have pdf $f_X(x)$ and let $Y=g(X)$. Suppose there exists a partition, $A_0, A_1, \dots A_k$ of $\cal{X}$ such that $P(X \in A_0)=0$ and $f_X(x)$ is continuous on each $A_i$. Further, suppose there exist functions $g_1(x), ..., g_k(x)$ defined on $A_1, ..., A_k$ respectively, satisfying
i. $g(x) = g_i(x)$ for $x\in A_i$
ii. $g_i(x)$ is monotone on $A_i$
iii. the set $\cal{Y} = \{y: y=g_i(x) \mathrm{\ for\ some\ } x \in A_i \}$ is the same for each $i=1, ..., k$
iv. $g_i^{-1}(y)$ has a continuous derivative on $\cal{Y}$ for each $i=1,...,k$.
Then, for $y \in \cal{Y}$, $$f_Y(y) = \sum^k_{i=1} f_X(g_i^{-1}(y)) \left|{d \over dy} g_i^{-1}(y) \right|$$
The $f_X(x)$ in question seems to satisfy all conditions: $f_X(x)$ is a monotonically increasing function, so we can create partitions so that $-1 \le x \le 0$ is $A_1$, $0 < x \le 2$ be $A_2$ and the rest $A_0$. Why can't we directly apply this theorem?
EDIT: it seems like the third condition does not hold. But can we find a partition that meets the third condition? Is there a way to know that whether such partition exists?
EDIT 2: By simply doing what @Dilip suggested me, I get
\begin{align} F_Y(y) &= P(Y \le y) \\ &= P(X^2 \le y) \\ &= P(-\sqrt{y} \le X \le \sqrt{y}) \\ &= P(-\sqrt{y} < X \le \sqrt{y}) \\ &= F_X(\sqrt{y}) - F_X(-\sqrt{y}) \\ f_Y(y) &= { d \over dy} F_Y(y) \\ &= {1 \over 2\sqrt{y}}f_x(\sqrt{y}) + {1 \over 2\sqrt{y}} f_X(-\sqrt{y}) \end{align} If I plug in $f_X(x)$, I get ${2 \over 9\sqrt{y}}$ which is correct only when $y \le 1$. How do I know that I need to separate the range into two subsets?