Library/Algebra/Complex numbers/Algebraic equations in C. Extraction of roots

Algebraic equations in C. Extraction of roots

Overview
Important

Algebraic equations can have solutions (roots) that are complex numbers. For example, the equation zn=wz^n = w (where zz and ww are complex numbers and nn is a positive integer) can be solved using polar form and De Moivre's Theorem. Every nonzero complex number ww has exactly nn distinct nn-th roots in the complex plane.

Important properties

  • A quadratic equation with real coefficients may have complex roots if the discriminant is negative.

  • Any polynomial equation of degree nn has exactly nn complex roots (counting multiplicities), according to the Fundamental Theorem of Algebra.

  • To extract nn-th roots of a complex number w=reiθw = re^{i\theta}, use zk=r1/nei(θ+2πk)/nz_k = r^{1/n} e^{i(\theta + 2\pi k)/n} for k=0,1,...,n1k = 0, 1, ..., n-1.

  • The nn-th roots of unity are the solutions to zn=1z^n = 1 and are evenly spaced around the unit circle.