Let $V$ be a real hilbert space (and thus an inner product space), and let $f$ be a continuous linear functional on $V$ . Then $f$ has an associated quadratic function given by$$\varphi(v)=\frac{1}{2}\|v\|^2-f(v$$