Composition of convex and continuous function Let $f: [0,1] \rightarrow \mathbb{R}$ be continuous non-negative function and let $g$ be convex function on $[0,\infty)$. Show that $(g \, o \, f )$ is Riemann Integrable on $[0,1]$.
 A: We have that every convex function is continuous. And we know that the composition of continuous functions is continuous. Continuity is sufficient for Riemann integrability.
A: The function $g\circ f$ need not be Riemann-integrable.
To see this, take a closed set $C\subset [0,1]$ which has empty interior but non-zero Lebesgue measure. Let $f:[0,1]\to \mathbb R$ be a continuous function which is identically $0$ on $C$ and (strictly) positive on $[0,1]\setminus C$. for example, one can take $f(x):=dist(x,C)\, .$
Now, define $g:[0,\infty)\to\mathbb R\,$ by $g(0)=1$ and $g(u)=0$ on $(0,\infty)\,$. This function is convex. 
By the definitions of $f$ and $g$ we have $g\circ f(x)=1$ if $x\in C$ and $g\circ f(x)=0$ if $x\not\in C$. In other words, $g\circ f$ is the indicator function $\mathbf 1_C$ of $C$. This function is discontinuous at all points $x\in\partial C$, the boundary of $C$, i.e. at all points of $C$ since $C$ is closed and has empty interior. Since $C$ has non-zero Lebesgue measure, it follows that $g\circ f$ is not Riemann-integrable (by Lebesgue's criterion for Riemann-integrability).
