Let $[a,b]$ be a finite closed interval on $\mathbb{R}$, $f$ be a continuous differentible function on $[a,b]$. Prove that $$\max_{x\in [a,b]} |f(x)|\le \Bigg|\frac{1}{b-a} \int_a^b f(x)dx\Bigg|+\int_a^b |f'(x)|dx$$
I think this is similar to Sobolev embedding theorem but have no idea about how to use it. I have also tried to transform the inequality into $$(b-a)\int_a^b (|f(t)|-|f'(x)|)dx\le \Bigg|\int_a^b f(x)dx\Bigg|,$$ where $f(t)$ is the maximum, but still don't know how to proceed. Thanks for any help.
There is a point $c\in (a,b)$ such that
$$f(c) = \frac{1}{b-a}\int_a^b f(x)\, dx$$
Let $x\in [a,b]$. Since
$$f(x) = f(c) + \int_c^x f'(t)\, dt$$
then
$$\lvert f(x)\rvert \le \lvert f(c)\rvert + \int_a^b \lvert f'(t)\rvert\, dt$$
Now finish the argument.