I am trying to do the following exercise:
Let $f\in C([0,1])$ and define a functional on $C([0,1])$ by $$ \phi(g)=\int_{0}^{1}fg $$
Prove that $\phi$ is is linear and bounded and find functions $\{g_{n}\}$ s.t $$ ||g_{n}||=1,\,|\phi(g_{n})|\to||\phi|| $$
I have managed to prove that $\phi$ is linear and bounded by $||f||=\int_{0}^{1}|f|$.
Can someone please help me with finding the $g_{n}$'s ?