I have a simple optimization problem; I already know the answer but I don't know how to prove it! Assuming we have a series of positive real numbers, $$ x_1, x_2, x_3, ..., x_n, $$ we want to find a series $$ y_1, y_2, y_3, ..., y_n $$ that minimizes the goal function $$ \sum_{i=1}^{n} \frac{x_i^2}{y_i}$$ while ensuring $$ \sum_{i=1}^{n} y_i = 1 .$$
I already know the answer is $$ y_i = \cfrac{x_i}{ \displaystyle \sum_{j=1}^{n} x_j} ,$$
but I don't know the way to reach the answer. Any help would be appreciated.