Finding the conditional distribution of the uniform distribution 
Let $U$ denote a random variable uniformly distributed over $(0,1)$. Compute the conditional distribution of $U$ given that 
  $$(a)\,\,\,U>a\\
(b)\,\,U<a$$
  where $0<a<1.$

For $(a)$ I tried the following,
$$f_{U\mid U>a}(u\mid u>a)=\frac{f(u,u>a)}{f_{U>a}(u>a)}=\frac{{\displaystyle \frac{1}{1-a}}}{{\displaystyle \int_a^1\frac{du}{1-a}}}=\frac1{1-a}$$
and for $(b)$
$$f_{U\mid U<a}(u\mid u<a)=\frac{f(u,u<a)}{f_{U<a}(u<a)}=\frac{{\displaystyle \frac{1}{a}}}{{\displaystyle \int_0^a\frac{du}{a}}}=\frac1{a}$$
would this process be correct? Because I feel as if $f_{U>a}(u>a)$ should be equal to $\int_0^1\frac{du}{1-a}$ because we are integrating with respect to $U$ and not $U>a$ and the interval of definition of $U$ is $(0,1)$, or am I wrong?

Here I just used the definiton given by the book which is 
$$f_{X\mid Y}(x\mid y)=\frac{f(x,y)}{f_Y(y)}=\frac{f(x,y)}{\int_{-\infty}^\infty f(x,y)\,dx}$$

$\begin{align}f_{U\mid U>a}(u)&=\dfrac{f_U(u)~\mathbf 1_{u>a}}{F_U(a)}\\[1ex]&=\dfrac{\mathbf 1_{0<a<u<1}}{1-a} \end{align}$
