Let the roots of the equation

be

,

,

. The coefficients

,

,

are trivially related to the symmetric polynomials of

,

,

:
A similar expression holds for the monic polynomial with roots

,

,

:
The monic polynomial with roots

,

,

:
Use
ChebyshevT to convert to a symmetric system of polynomials:
Solve is able to solve the equations in the variables

:
Convert to a system of equations of symmetric polynomials

:
Solving for the variables

in terms of the symmetric polynomials

is also quick: