TeX source:
\begin{gathered}C(x)=x^{2} \\C\left(e_{i}\right)=\frac{1}{2} e_{i}^{2}, \quad i \in\{1,2\} .\end{gathered}