Suppose $E$ subset $R$ ($R $\is real numbers) where $E$ is Lebesgue measurable, and $f:E\to R$ and defined $g: R\to R$ by \begin{equation*} g(x) = \begin{cases} f(x) & x \in E \\ 0 & x \notin E \end{cases} \end{equation*}
Show that $f$ is measurable then so is $g$.
I came to this question in my self study class and was wondering how would you do such a proof. I spoke to my TA and said do not worry about it. We are not going to do such proofs like that. I was still thinking how though. Can someone please give an outline?
Here is some of the things I know from looking at it. The theorem I guess we can use is suppose E subset A subset R where A is measurable then E is measurable and X is measurable.
Would E need boundaries for f(x) and 0 so g(x) can be measurable? Can someone please show this. I would like to know what it would look like as I am a self learning person.
For any $c\geq 1$, $\{x:g(x)>c\}=\{x\in E:f(x)>c\}$ measurable.
For any $c<1$, $\{x:g(x)>c\}=\{x\notin E:g(x)=1\}\cup\{x\in E:f(x)>c\}$ measurable.