The question is: Let f be Lebesgue measurable on $R$ and $E\subset R$ be measurable so that $0<A=\int _E f(x)dx < \infty$. Show that for every $t\in (0,1)$ there exists a measurable set $E_t \subset E$ so that $\int_{E_t} f(x) dx = t A$.
My thoughts to solve this question and my question is in step 3:
Since $f$ is Lebesgue measurable on $R$, so $f$ can be approximated by simple functions. So if I can show the result is true for $f(x) = \chi _{B}(x)$ where $\chi _{B}(x)$ is a simple function. Then the result is true for Lebesgue measurable $f$.
Now $\int _{E} \chi _{B}(x) dx = m(E\cap B)= A$ ($m$ is Lebesgue measure). Now I have to show that there exists a measurable set $E_t \subset E$ such that $m(E_t\cap B)=t \cdot m(E\cap B)= tA$.
To show that $m(E_t\cap B)=t \cdot m(E\cap B)= tA$, here is the trouble for me if the above steps are correct. After searching posts here, I think I can define a $g(x) = m(E\cap B\cap (-\infty, x))$. I need to show $g(x)$ is continuous and then that could lead to the conclusion that there will be $t_0$ such that $0<g(t_0) = t \cdot m(E\cap B)<m(E\cap B)$.
I would like to hear about your comments about the above steps and see if there is any error. Thanks!
For your statement to make sense, $f$ must be assumed to be not only measurable but integrable (but $f$ is not necessarily of constant sign, and its integral $A\in\Bbb R$ does not need to be $>0$). Assume moreover wlog that $f$ is $0$ outside $E.$
Your last sentence in step 1 is unproved, and useless. Instead, consider the function $$g:s\mapsto\int_{-\infty}^sf(x)\,dx.$$ The continuity of $g$ is a standard result, quite easy to prove.
Since $\lim_{-\infty}g=0$ and $\lim_{+\infty}g=A,$ by the intermediate value theorem $$\forall t\in(0,1)\quad\exists s\in\Bbb R\quad g(s)=tA,$$ and $E_t:=(-\infty,s)\cap E$ is then a solution.