For the random variables X, Y with joint density function
$f(x,y)=cx^2y(1-x)(y-1) \space, \space \space \space 0 \leq x \leq 1,\space \space0 \leq y \leq 1$$
$f(x,y)=0 ,\space \space \space \space otherwise$
(a) For what value of c is this a joint density function?
(b) Using this value of c, compute the density functions of X and Y .
I'm not sure of my answer in part a), I took the double integral as such: $$\int_{0}^{1} \int_{0}^{1} cx^2y(1-x)(y-1)dxdy = 1$$
Am I right by doing it this way?
Also if I understand part b) correctly, am I right to say that I would need to compute the following: $$\int_{0}^{1} \int_{0}^{1} -72x^2y(1-x)(y-1)dxdy $$