For $(\Omega, \Bbb F, \Bbb P)$ a probability space and $X: \Omega \to \Bbb R$ a random variable, the distribution function of $X$ is defined as:
$$F_X(x) = \Bbb P(X^{-1}((-\infty,x]))$$
$X$ is called a continuous random variable if for some $f_X \in L^1(\Bbb R)$, such that $f_X \ge 0$, $F_X (x) = \int_{-\infty}^x f_X(t)dt$ for all $x$. In this case $f_X$ is called the pdf of $X$.
For a Borel set $B$, $\Bbb P(X \in B) := \Bbb P(X^{-1}(B))$.
If $X$ is a continuous random variable with pdf $f_X$, does the following hold for any Borel set $B$? Why?
$$\Bbb P(X \in B) = \int_B f_X(x)dx$$
This claim appears in a proof I am reading, and I don't understand why it holds. Thanks.