Let $f:[0,1] \to \mathbb R$ be a continuous function and the sequences $(a_n)_n,(b_n)_n$ s.t. $$\lim_{n\to \infty} \int_0^1 |f(x)-a_nx-b_n| dx=0.$$ Prove that $(a_n)_n,(b_n)_n$ are convergent.
I know that $$\left|\int_0^1f(x)dx\right| \le \int_0^1|f(x)|dx.$$ Can somebody help me, please?
We have $|\int_0^1 (f(x)-a_nx-b_n) dx| \le \int_0^1 |f(x)-a_nx-b_n| dx.$
Hence $\int_0^1 (f(x)-a_nx-b_n) dx \to 0$.
Since $\int_0^1 (f(x)-a_nx-b_n) dx = \int_0^1 f(x) dx-\frac{1}{2}a_n-b_n$, we see:
$\frac{1}{2}a_n+b_n \to \int_0^1 f(x) dx$.
Can you proceed ?