Let $X$ be a continuous random variable with a density $f_X(x)$ and let $A\subseteq \mathbb{R}$. Would it be true to claim that:
$E[X | X\in A] = \int_{x\in A} x \cdot f_X(x) \cdot dx$?
My understanding of dependent expectation is that:
$E[X|X\in A] = \int_{x\in\mathbb{R}} x \cdot f_{X|X\in A} (x) \cdot dx$
Are these expressions equivalent? If so, I'm getting a bit confused trying to show that, I'm sure it's likely only definition-based, but having a bit trouble.
I know that: $f_{X|X\in A} (x) = \frac{Something that says both happen}{P(X\in A)}$