The joint density of random variable X and Y is $f_{XY}(x,y)=\begin{cases}2x & \text{for } 0<x<1, x<y<x+1 \\ 0 & \text{otherwise}\end{cases}$ then marginal of Y is
Show Hint
When the bounds of one variable depend on another, always sketch the region or use the $\max/\min$ logic to split your integral into cases. Marginal densities in such cases are often piecewise functions.