The series is given by $\sum_{i=1}^{3}\left(3 x_{i}-x_{i}^{2}\right)$, so we need to substitute the values of $x_i$ into the expression.
For $i=1$, we have $3x_1 - x_1^2 = 3(-2) - (-2)^2 = -6 - 4 = -10$.
For $i=2$, we have $3x_2 - x_2^2 = 3(-1) - (-1)^2 = -3 - 1
Show more…