I need help in finding the variance of a joint probability function. The probability density function in this case is $f(x)$ which is created by $$\frac{125x^2}{18},\; 0\le x\le 0.6,\;\frac{9}{10x^2},\; (0.6\le x\le 0.9), \text{ and } 0 \text{ elsewhere}.$$ I know how to find the variance for a single probability function, however not when they consist of two functions.
Help will be appreciated. Thanks.