Apart from the necessity in the calculation of roots of cubic polynomials,
there is another, more fundamental role complex numbers play in polynomial equations,
which was only beginning to be appreciated in the 17th century.
This role is expressed through the fundamental theorem of algebra,
which says that any nonconstant polynomial equation has at least one root, if we allow complex numbers to be roots.
That is, if $a_0,a_1,\ldots,a_n$ are real numbers such that at least one of $a_1,a_2,\ldots,a_n$ is nonzero,
then the equation
\begin{equation}\label{e:polynomial-x-0}
p(x) = a_nx^n + a_{n-1}x^{n-1} + \ldots + a_1x + a_0 = 0 ,
\end{equation}
has a solution, provided $x$ may have complex values.
If $a_1=a_2=\ldots=a_n=0$, then the equation $p(x)=0$ becomes $a_0=0$,
which does not have any (complex) solution when $a_0\neq0$.
So the condition that at least one of $a_1,a_2,\ldots,a_n$ is nonzero
(i.e., $p(x)$ is nonconstant) is simply to rule out this trivial case.
The fundamental theorem of algebra is miraculous because complex numbers are designed to solve any quadratic equation,
and it is a priori conceivable that we need to introduce a new kind of "number" every time we increase the degree of a polynomial equation.
The first formulation of the fundamental theorem of algebra was given by Albert Girard (1595-1632) in 1629,
although he did not attempt a proof.
Indeed, rigorous proofs of this theorem did not appear until the early 19th century,
which incidentally marks the beginning of an era when the existence and usefulness of complex numbers were widely accepted.
Any doubts on the existence and importance of complex numbers were completely disposed of after the development of complex analysis,
which is also known as function theory.
The initial motivation for studying functions of a complex variable was to use them to compute (or simplify) real definite integrals,
and the pioneering works in this direction were done by Euler and Joseph-Louis Lagrange (1736-1813)
around 1760-1780.
Their research was taken up later in the 1810's by Augustin Louis Cauchy (1789-1857),
who realized by 1821 that complex functions have a rich theory of their own.
Gauss reached the same understanding as early as 1811, and played a major role in popularizing complex numbers,
but he did not directly contribute to the development of complex analysis.
Thus roughly between 1820-1850, Cauchy singlehandedly developed all the basic results of complex analysis, perhaps with the exception of Laurent series,
which first appeared in a paper submitted by Pierre Alphonse Laurent (1813-1854) in 1843.