What is the norm of the linear functional $f$ defined on the normed space $C[a, b]$ of all functions defined and continuous on the closed interval $[a,b]$ with the norm defined as $$\Vert x \Vert \colon= \max_{t\in[a,b]} \vert x(t) \vert \; \; \; \forall x \in C[a,b]?$$
Let $$ f(x) \colon= \int_a^{\frac{a+b}{2}} x(t) dt - \int_{\frac{a+b}{2}}^b x(t) dt \; \; \; \forall x \in C[a,b].$$
I know that $f$ is linear and bounded because for all $x \in C[a,b]$, we have $$\vert f(x) \vert = \left\vert \int_a^{\frac{a+b}{2}} x(t) dt - \int_{\frac{a+b}{2}}^b x(t) dt \right\vert \leq \left\vert \int_a^{\frac{a+b}{2}} x(t) dt \right\vert + \left\vert \int_{\frac{a+b}{2}}^b x(t) dt \right\vert \\ \leq \int_a^{\frac{a+b}{2}} \vert x(t) \vert dt + \int_{\frac{a+b}{2}}^b \vert x(t) \vert dt \leq \int_a^{\frac{a+b}{2}} \max_{\tau\in[a,b]} \vert x(\tau) \vert dt + \int_{\frac{a+b}{2}}^b \max_{\tau\in[a,b]} \vert x(\tau) \vert dt \\ = \int_a^b \max_{\tau\in[a,b]} \vert x(\tau \vert dt = (b-a)\Vert x \Vert_{C[a,b]},$$ which shows that $f$ is bounded and that $$\Vert f \Vert \leq b-a.$$
What next? How to arrive at the reverse inequality?
We need to show that $||f||\geq b-a$. To do this take a sequence of continuous functions, which is monotone and converges to the step function \begin{align*} x(t):=\begin{cases}1,& a\leq t\leq\frac{a+b}{2} \\ -1,& \frac{a+b}{2}<t\leq b\end{cases}. \end{align*} As an example we can use piecewise linear functions such that \begin{align*} x_n(t)&=1,\quad t\in\left[a,\frac{a+b}{2}-\frac{1}{n}\right], \\ x_n(t)&=-1,\quad t\in\left[\frac{a+b}{2},b\right]. \end{align*} Then $||x_n||=1$, and using the monotone convergence theorem (or the dominated convergence theorem) we obtain \begin{align*} \lim_{n\to\infty}f(x_n)=f\left(\lim_{n\to\infty}x_n\right)=f(x)=b-a. \end{align*} This shows the desired result.