How do I calculate Var(x) if I know that $X | Y = y \sim N(y,1)$ and the PDF of Y is given by
$$ f_Y(y) = \begin{cases} 3y^2 \ \ \ \text{for} \ 0 < y < 1 \\ 0 \ \ \ \ \ \ \ \text{othwerwise} \end{cases} $$ I thought about using the law of total variance:
$$ Var(x) = E[Var(X|Y)] + Var(E[X|Y]) = E[1] + Var(Y) $$ Is this correct so far? And how do I calculate $E[1]$?