Let $n \in \mathbb { N } ^ { * }$ and $x \in [ 0,1 ]$. We consider the sum
$$S ( x ) = \sum _ { k = 0 } ^ { n } \left| x - \frac { k } { n } \right| \binom { n } { k } x ^ { k } ( 1 - x ) ^ { n - k } .$$
a) Write the Cauchy-Schwarz inequality in the space $\mathbb { R } ^ { n + 1 }$ equipped with its canonical inner product.\\
b) Using question I.A.4, deduce that $S ( x ) \leqslant \frac { 1 } { 2 \sqrt { n } }$.