I have a pdf of two random variables given as if , and 0 otherwise.

I found out the value of K by integrating the pdf equal to 1, that is:

and got k = 1/2

then I found of the marginal pdf of x by:

but when I tried to find the marginal pdf of y by doing:

, I am getting infinity!!

Is that correct or did I make a mistake while finding the marginal pdf of Y??

Thanks.