Let $X$ be a continuous random variable whose probability density function is $$ f(x)= \left\{ \begin{array}{lcc} \alpha^2xe^{-\alpha x} & if & x > 0 \\ \\ 0& otherwise \end{array} \right. $$ With $\alpha >0$. Calculate $E(X|X<1)$.
I know that by definition, I have $$ E(X|X<1)=\int_{0}^{\infty}x \cdot P(X|X<1) dx = \int_{0}^{\infty}x \cdot \frac{P(X=x_k \land X<1 )}{P(X<1)}dx $$ Is ok if i change the limits of the integral and put this? $$ E(X|X<1)=\int_{0}^{1}x\cdot \frac{P(X<1 )}{P(X<1)}dx=\frac{1}{2} $$ It confuses me a bit that the condition is on the same random variable. Thanks for the help