I have the polynomial $P(x) = x^3+mx^2-3x+1, m\in \mathbb{R}$. I need to find $x_1^3+x_2^3+x_3^3$ as a $m$ function.
I tried to use Viette equations: $x_1+x_2+x_3 = m, x_1x_2+x_1x_3+x_2x_3 = 3, x_1x_2x_3 = 1$ Then I expanded $(x_1+x_2+x_3)^3 = (x_1^3+x_2^3+x_3^3) + 3(x_1^2x_2+x_1^2x_3+x_1x_2^2+x_2^2x_3+x_1x_3^2+x_2x_3^2) + 6x_1x_2x_3$. After that I expanded $(x_1x_2+x_1x_3+x_2x_3)^2 = 2(x_1x_2x_3)+x_1^2x_2^2+x_1^2x_3^2+x_2^2x_3^2$. I don't know if my way of doing it is the right way, and if it is can you help from this point on?