Show that if $n ∈ \mathbb{N}$ and $a_1,...,a_n$ are nonnegative real numbers, then $(a_1+···+a_n)^2 ≤ n(a^2_1+···+a^2_n).$
What I have tried:
Set $t = a_1+ ...+ a_{n-1}$
Then square the LHS as so $$(t+a_n)^2 =t^2+2ta_n+a^2_n$$ $$=t^2+ta_n+ta_n+a^2_n$$ $$=t(t+a_n)+a_n(t+a_n)$$ $$=(t+a_n)(t+a_n)$$ $$\implies (t+a_n)(t+a_n) \le n(t^2+a_n^2)$$ $$\implies(t+a_n)\le n(t+a_n)$$
Which would imply that for all $n \in \mathbb{N}$ the equality holds. Does my proof work?