If $X$ is random variable that has two density function $f(x)$ with probability $p$ and $g(x)$ with probability $1-p$, and mean and standard deviation of $f(x)$ and $g(x)$ are $\mu_1$, $\sigma_1$, $u_2$, $\sigma_2$. Define an indicator function
$$ I = \begin{cases} 1, & \text{$X$ follows $f(x)$}; \\ 0, & \text{otherwise} \end{cases} $$
Then what is the mean and variance of $X$?
I have tried that pdf(x)=p I(1)+ (1-p) I(0), so the expectation of X is p*mu1+(1-p)*mu2, but what's the variance.