Let $G_\delta$ denote the collection of all intersections of countably many sets in $G$.
Show that if $f$ is Lebesgue measurable, then there is a $G_\delta$ set $G$ with $m(G)=0$ so that $f \chi_{G^c}$ is Borel measurable.
Hint: Write $f$ as a linear combination of positive functions. If $f\geq0$, let $\{ r_n : n \geq 1\}$ be dense in $[0, \infty)$ and consider $f^{-1}([0,r_n))$. Remove a set of measure $0$ from each to get an $F_\sigma$ set, then find. a $G_{\delta}$ set G with $m(G)=0$ containing all of them.
I'm confused about the linear combination part of the hint. I know that every simple function can be written as a linear combination of characteristic functions. But not sure why a Lebesgue measurable function can also do so. From my understanding, we know that for each $n\in \mathbb{N}$, the set $f^{-1}([0, r_n ))$ is Lebesgue measurable. So we're taking the union of each $F_\sigma$ to get the $G_\delta$ set?
Thank you in advance