I must derive the following relation using the Cauchy Schwarz inequality for any collection of $N$ real numbers $a_1,a_2,...,a_N$:
$$\left(\frac{a_1+a_2+\cdots+a_N}{N}\right)^2\leq\frac{a^2_1+a^2_2+\cdots+a^2_N}{N}.$$
This says that the square of the average is less or equal than the average of the squares.
I must consider $v \in\mathbb{R}^N$ with components given by the numbers $a_1,a_2,...,a_N$ and find a suitable $w \in\mathbb{R}^N$ such that $v \cdot w=\dfrac{a_1+a_2+\cdots+a_N}{N}$
Some guidance and direction would be greatly appreciated.