Consider the following old exam question on measure theory:
Let $a \in \mathbb{R}$ and define $f:[0,1] \times [0,1] \to \mathbb{R}$ by $$f(x,y) := \begin{cases} (x - 1/2)^{-3} \quad 0 < y < |x - 1/2|^a\\ 0 \qquad \qquad \>\>\>\text{else}\end{cases}$$ For which values of $a$ is $f$ Lebesgue integrable?
Those exercises are mostly based on an application of Fubini. For this we first consider $|f|$, and then if we apply Fubini, we find for example $a > 2$. My question is, in this particular example how do I see that $f$ is measurable?