I am working on an exercize and I know how to more bruteforcely solve it through pure algebra in its simplest form, but it's such a massive mess to demonstrate so I would like to see if there is another way to solve this
Let $x^3 + ax^2+bx+c$ be a given polynomial (with $a,b,c\in Z$ being acctual numbers but for here I am curiuos in the general case) and we know that it has the roots $x_1,x_2,x_3$ which are given, now determine the polynomial that has the following roots $x_1^2$, $x_2^2$ and $x_3^2$
There are several more but I am mostly curious at how one would go about this in a more elegant mannar than just applying the cubical solution formula and then use $p(x)=(x-x_1^2)(x-x_2^2)(x-x_3^2)$ simplifying and such, while possible it is such a hazzle. Is there a more elegant manner?
For the sake of an example, let's take the polynomial $x^3-7x^2+6x-3$ and it has the roots $x_1$ etc, how would I find the coefficients for the new polynomial with the roots of the stated polynomials being squared?
Consider $z:=x^2$ and factorize $\;p(z)=p(x^2)=(x^2-x_1^2)(x^2-x_2^2)(x^2-x_3^2)\;$ as a product of $\;(x^3 + ax^2+bx+c)\;$ and the 'conjugate' $\;(x^3-ax^2+bx-c)=(x+x_1)(x+x_2)(x+x_3)\;$ (obtained when the signs of the three $x_i$ are reversed as you may notice by replacing $x$ with $-x$).
The substitution of $x^2$ by $z$ in the result will return the wished polynomial (since the roots of $\;p(z)=0\,$ are indeed $z=x_i^2\,$).
I obtained thus $\;p(z)=z^3+(2b-a^2)\,z^2+(b^2-2ac)\,z-c^2$.
I considered the simple example $\;(x-1)(x-3)(x-5)=x^3-9\,x^2+23\,x-15\;$ and used the previous formula to get following result (as confirmed by Wolfram Alpha) : $$p(x)=x^3-35\,x^2+259\,x-225$$