Hey, I am doing a homework exercise and I think im getting the wrong answer. I have to work out a marginal distribution from a joint distribution. So I use the definition of marginal distribution for the continous case.

. When I evalute my integral it gives me infinite, could this be right? Are the other ways to do it? At first the problem gave me to random variables X and Y, with density functions when 0<=x<=3 and Y distributed uniformly between half of X and two times X. To find the joint distribution I used the following formula

Where when x is choosen and .

The integral im evaluating to get the marginal distribution is

Your help is greatly apreciated.