$\Lambda$ be a linear functional on $C([0,1])$ defined by $$ \Lambda(f) = \int_0^1 xf(x)dx \;\;\; \text{ for } f \in C([0,1]). $$ and use $\|f\|_{sup} = \sup_{x \in [0,1]} |f(x)| $ for $f \in C([0,1])$.
I'm trying to find all $f \in C([0,1])$ with $\|\Lambda (f) \| = \|\Lambda\| \|f\|$.
I already solve a similar problem about the norm of bounded linear functional, but I still don't know how to calculate the norm in general case. Is there any way to calculate norm of bounded linear functional?
Since for every $f\in C[0,1]$ we have $|\Lambda f|\leq\frac{1}{2}\|f\|$, and there is equality if $f$ is the constant function $1$, the norm of $\Lambda$ is $\frac{1}{2}$. Let $f\in C[0,1]$ be such that $\|f\|=1$, and such that $\Lambda f=\frac{1}{2}$. Put $$A=\{x\in [0,1]| f(x)\geq 0 \}$$ Then $$\frac{1}{2}=\int_0^1 xf(x)\,dx=\int_A xf(x)\,dx + \int_{[0,1]\backslash A}xf(x)\,dx\leq \int_A xf(x)\,dx\leq \frac{1}{2}$$ Hence $f$ must be non-negative almost everywhere, and since it is continuous, it must be non-negative everywhere. Now, if there is a certain value of $0\leq x\leq 1$ for which $0\leq f(x)<1$, then by continuity there is some interval where $0\leq f(x)<1$, and so $$\int_0^1 xf(x)\,dx < \int_0^1x\,dx=\frac{1}{2}$$ Conclusion: the only norm-$1$ continuous function for which $\Lambda f=\frac{1}{2}$ is the constant function $1$. As a result, the functions satisfying $\|\Lambda f\|=\|\Lambda\|\|f\|$ are precisely the constant functions, and this is the answer to your question.