A set $E \subseteq \mathbb{R}$ is measurable if for any subset $A\subset\mathbb{R}$, $$\mu(A)=\mu(A\cap E)+\mu(A\cap E^c).$$ where $\mu$ is the Lebesgue outer measure.
A function $\varphi : \mathbb{R} \to \mathbb{R}$ is measurable if for any $\alpha\in\mathbb{R}$ the set $E_\alpha:=\{x\in\mathbb{R} : \varphi(x)>\alpha\}$ is measurable.
Let $\varphi : \mathbb{R} \to \mathbb{R}$ be a measurable function, and let $\ \ f:\mathbb{R}\rightarrow\mathbb{R}$ be a continuous function.
For two such functions we know that the composite fonction $f\circ\varphi$ is measurable because of a result that say $\varphi^{-1}(A)$ is measurable for any borelian set $A$ (our borelian here is $f^{-1}(]\alpha,\infty[)$).
Now I would like to know why for two functions $\ f$ and $\varphi$ like above $\varphi\circ f$ is not necessarily a measurable function.
Edit: The first answer of this question gives an example of such a pair of functions.
I believe my answer was incorrect. I'm leaving it here instead of deleting it as a warning: the reason it's wrong points out a peculiar aspect of the terminology. See the last paragraph.
(For a correct answer see the previous question that Carl Mummert found: While this queston is not really a duplicate of that question, it happens that the top-rated answer to that question also answers this one.)
Seems to me that there is no such example.
Fix $\alpha$, and let $E=\{x:\phi(x)>\alpha\}$. Then $$\{\phi\circ f>\alpha\}=f^{-1}(E),$$which is measurable since $f$ and $E$ are measurable.
No, that's not right. In the context of pure measure theory a function is measurable if the inverse image of any measurable set is measurable. But here "Lebesgue measurable" means just that the inverse image of any Borel-measurable set is Lebesgue measurable, not the inverse image of any Lebesgue measurable set.
This is not the first time this has tripped me: In the pure measure theory context it's trivial that the composition of two measurable functions is measurable, as above. Regardless the composition of two Lebesgue measurable functions need not be Lebesgue measurable... (doesn't contradict that theorem because "Lebesgue measurable" does not mean "Lebesgue-to-Lebesgue measurable".)