I am supposed to show that X and Y are independent. I have my suspicions that maybe I should use some sort of ecpectations rule, but I am honestly unsure.
This is as far as I have gotten: $f_{X,Y}({x,y})=\{_{0\ \ \ o.w.}^{1 \ \ \ if \ \ 0<x<1 and 0<y<1}$
I wrote out the the marginal pdfs like so. ( I believe this is correct )
$f_X(x)=\int_{-\infty}^{\infty}f_{X,Y}(x,y)dy$
and
$f_Y(y)=\int_{-\infty}^{\infty}f_{X,Y}(x,y)dx$
I will also include a screenshot of the original question for more context.
We know the joint PDF of $[X,Y]$, so in this case we can calculate the marginal distributions with the formulas you have given above. (Perhaps there are some exceptions, but those are irrelevant now.)
The PDF of $X$ is $$f_{X}\left(x\right)=\begin{cases} 1 & \text{if}\;x\in\left[0,1\right]\\ 0 & \text{otherwise} \end{cases},$$
and the PDF of Y is: $$f_{Y}\left(y\right)=\begin{cases} 1 & \text{if}\;y\in\left[0,1\right]\\ 0 & \text{otherwise} \end{cases}.$$
While $$f_{X,Y}\left(x,y\right)=f_{X}\left(x\right)\cdot f_{Y}\left(y\right),$$ therefore $X$ and $Y$ are independent. (We can say $X$ and $Y$ are independent if their joint PDF can be calculated with the products of the two marginal PDF.)