I am just wondering if there is something trivial that I have missed regarding this. If I've understood it right, two random variables are called independent if and only if: $f(x_1,x_2)=f_{x_1}(x_1)*f_{x_2}(x_2)$
Where the left hand side denotes the joint density function, and the right hand side denotes the product of the marginal densities.
But when I am asked to determine if two random variables X and Y are independent given the joint density function, I use the definition above. Yet it seems that every exercise regarding this, is followed up by another question where they ask for the marginal densities.
If Im using the definition above I've already calculated the marginal densities, and hence solved the follow-up exercises. So am I doing something wrong, or is the book just confusing me?