I have the following function
$$f(x,y)=\begin{cases} e^{-(x+y)} &, x,y > 0 \\ 0 &, \text{otherwise} \end{cases}$$
I want to compute the following conditional:
$$P(X>Y\mid Y<1)$$
I'm trying to solve this using the following :
$$f(x\mid y) = \frac{f(x,y)}{f_2(y)}$$
$$f_2(y) = \int_0^{\infty} f(x,y) \,dx = e^{-y}\int_0^{\infty}e^{-x}\,dx = e^{-y}$$
So the conditional probability should be like:
$$\int_y^{\infty}\int_0^1\frac{e^{-(x+y)}}{e^{-y}}dy\,dx$$
I would like to know if this is a good approach.

$X>Y, Y<1$ is equivalent to $Y <X\wedge 1$. Hence the required probability is $$\frac {\int_0^{1} \int_0^{x} e^{-(x+y)}dydx +\int_1^{\infty} \int_0^{1} e^{-(x+y)} } { \int_0^{\infty} \int_0^{1} e^{-(x+y)} dydx}.$$ I will let you carry out the integrations.