In general, when doing a trigonometric substitution to solve a polynomial, there are usually two approaches:
x = tan θ (which permits x to be any real number as parameter θ varies)
x = kcos θ or x = ksin θ (which constrains the roots to be between -k and k, so the choice of k is important)...