Prove $\lim\limits_{h\to0}\int_a^b\left|f(x+h)-f(x)\right|\,\mathrm dx=0$ Let $f(x)$ be a Riemann integrable function on any finite interval $I\subset\mathbb{R}$. Supposing $f(x)=0$ for $x\notin[a,b]$, show that $$\lim\limits_{h\to0}\int_a^b\left|f(x+h)-f(x)\right|\,\mathrm{d}x=0.$$
How to prove that if not familiar with the fact that Riemann integrable function is almost everywhere continuous?
Brutal force: Let $\epsilon &gt;0$. Then since $f$ is Riemann integrable, there is a $\delta &gt;0$ so that any partition $P$ of 
$$a-1= x_0&lt;x_1 &lt; x_2 &lt; \cdots x_n= b+1$$
with $x_{i+1} - x_i &lt; \delta$ will have 

$$ U(f, P)- L(f, P)&lt;\epsilon.$$

Now consider the partition 

$$ a &lt; a+ h &lt; a+ 2h &lt; \cdots &lt;a+ kh &lt; b$$

where $a+ (k+1)h \ge b$ and $h &lt; \delta/2$. Then 

\begin{equation}
\begin{split}
\int_a^b |f(x+ h) - f(x)| dx &amp;= \sum_i \int_{a+ ih}^{a+ (i+1)h} |f(x+ h) - f(x)|dx \\
&amp;\le \sum_i h \left( \sup_{x\in [a+ih,a+ (i+2) h]} f(x) -  \inf_{x\in [a+ih,a+ (i+2) h]} f(x)\right) \\
&amp;\le  U(f, \hat P ) - L(f, \hat P) &lt; \epsilon
\end{split}
\end{equation}

where $\hat P$ is the partition

$$ a&lt; a+2h&lt; a+ 4h &lt; \cdots &lt; a +\ell (2h) &lt; b,$$

where $a + (\ell +1) 2h \ge b$. Thus 

$$\int_a^b |f(x+ h) - f(x)| dx &lt; \epsilon$$

whenever $h &lt; \delta/2$ and we are done.
Here is a cleaner argument. We know that $C_c(\mathbb{R})$, namely the continuous functions with compact support are dense in $L^1(\mathbb{R})$. With this, denote $f_h \triangleq f(x+h)$. Take a $g \in C_c(\mathbb{R})$ such that
$$
||f-g||_{L^1(\mathbb{R})}&lt;\frac{\epsilon}{2}.
$$
Now note by triangle inequality that,
$$
||f_h-f||_{L^1(\mathbb{R})} \leq \underbrace{||f_h-g_h||_{L^1(\mathbb{R})}}_{\leq \frac{\epsilon}{2}} + \underbrace{||g_h-g||_{L^1(\mathbb{R})}}_{\to 0,\ \text{as} \ h\to 0} + \underbrace{||g-f||_{L^1(\mathbb{R})}}_{&lt;\frac{\epsilon}{2}}
$$
where the middle convergence follows since, as $|g(x+h)-g(x)|\to 0$ as $h\to0$, due to continuity of $g(\cdot)$ and since $|g(x+h)-g(x)|\leq 2|g(x)|\in L^1$, we have by dominated convergence that $\int |g(x+h)-g(x)|\to 0$.

Hence, for every $\epsilon&gt;0$,
$$
\lim_{h\to 0}||f_h-f||_{L^1(\mathbb{R})} &lt; \epsilon.
$$
Since $\epsilon&gt;0$ is arbitrary, we conclude.