Could I get some help showing the following properties to be true:
a) $f: X \to [0,\infty) $ is measurable and $\int f d\mu < \infty$
$\forall a > 0$, let $X_a = \{x \in X :f(x) >a\}$, show $\mu(X_a) \leq \frac{1}{a} \int f d\mu$.
b) Suppose $g:\mathbb{R} \to [0,\infty)$ vanishes outside a bounded interval and $\int g^2 d\lambda < \infty$
Show that $\int g d\lambda < \infty$
Thank you for your help
a) $\int f d\mu = \int_{X_a} f d\mu + \int_{(X_a)^c} f d\mu $. But $\int_{X_a} f d\mu > a\mu(X_a)$ and since $f$ is positive $\int_{(X_a)^c} f d\mu>0$. Therefore $\int f d\mu > a\mu(X_a)$ which gives what you want.
b)You have the Cauchy Schwarz inequality which says for every $f$, $g$ in $L^2(\mu)$
$$\int |fg| < \left(\int |f|^2 \right)^{1/2}\left(\int |g|^2 \right)^{1/2}$$
Placing $f=1$ you get that
$$\int |g| < (\int |g|^2)^{1/2}$$
In your case since $g>0$ you can replace $|g|$ by $g$.