Is there a polynomial function $P(x)$ with real coefficients that has an infinite number of roots? What about if $P(x)$ is the null polynomial, $P(x)=0$ for all x?
-
Only if it has an infinite number of terms.... or none, $P(x) := 0$ – Joffan Feb 07 '15 at 01:19
-
8According to Fundamental Theorem of Algebra, any polynomial function of degree $n$ can have at most $n$ roots. http://en.wikipedia.org/wiki/Fundamental_theorem_of_algebra – Henry Feb 07 '15 at 01:21
-
2Since half my comment has now made it into the question, I'll just add a little to say I don't think that either $P(x) := 0$ or $P(x) := k$ a constant qualify as polynomials in many senses. It's one of those cases when we'll count them as polynomials if it's convenient, then disqualify them when they complicate some process. – Joffan Feb 07 '15 at 01:35
-
26@Joffan: This is rarely helpful. It is like saying that the zero vector is not a vector. – darij grinberg Feb 07 '15 at 01:43
-
@darijgrinberg Similar in some ways; we'll disregard that too when it is convenient, quietly assuming that vectors all have direction. But a constant function has very little "polynomialness" about it, whereas even a zero vector has the framing of vectorhood. – Joffan Feb 07 '15 at 02:42
-
If $c$ is a root of $P(x)$ then $P(x)=(x-c)Q(x)$ for some polynomial $Q(x)$ of lower degree. The degree can't keep getting lower forever. See my answer below. I think this makes the matter as simple as it really is; I sometimes tend to dislike overly long answers. – Michael Hardy Feb 07 '15 at 02:42
-
7@Joffan Constant polynomials are always considered to be polynomials. – Bill Dubuque Feb 07 '15 at 04:03
-
11Here's some trivia: Euler thought of $\sin x$ as a "polynomial" with an infinite number of roots to guess at this correct identity. – Casey Chu Feb 07 '15 at 08:33
-
This is an example of setting in which the answer is non-trivially "yes". – Marcin Łoś Feb 07 '15 at 09:00
-
@Spark: This fact is not the fundamental theorem of algebra (which states that a nonconstant polynomial over complex numbers has a complex root). As others have said in the answers, this is the factor theorem which is much easier to prove than the fundamental theorem. – sdcvvc Feb 08 '15 at 12:07
-
Related: https://math.stackexchange.com/questions/1689061/ – Watson Nov 28 '16 at 21:04
12 Answers
The only polynomial with infinitely many roots is $$P(x)=0.$$ You can prove this without appealing to the fundamental theorem of algebra. In particular, let us prove the following:
A polynomial of degree $n\geq 1$ has at most $n$ roots.
We prove this by induction. In the linear case, we obviously have that $P(x)=mx+b$ has exactly one root at $\frac{-b}m$. Next, suppose $P(x)$ is a polynomial of degree $n$. If it has no roots, it satisfies the hypothesis trivially. Otherwise, let $r$ be a root. One can, by using polynomial long division, determine that there is a degree $n-1$ polynomial $P_2$ such that $$P_2(x)\cdot (x-r)=P(x).$$ You can check that this condition is actually equivalent to saying that $r$ is a root, since, when doing polynomial long division, you'll find that the remainder is exactly $P(r)$.
However, by the zero-product law, this means that $P$ has a root exactly when either $x-r$ or $P_2(x)$ is $0$. By inductive hypothesis, $P_2(x)$ is $0$ for at most $(n-1)$ distinct values of $x$ and clearly $x-r$ is zero only at $r$. Thus, $P(x)$ can have at most $n$ zeros. This completes the proof.
Notice that this, unlike the fundamental theorem of algebra, holds in any field - that is, we only need multiplication, addition, and their inverses to be suitably well behaved.

- 60,888
-
6
-
4@Matthew Correct, which is why this proof only works for fields, which necessarily have no zero divisors (since if $ab=0$ for non-zero $b$, then $a=abb^{-1}=0b^{-1}=0$). It does not extend to the case of rings where it is, for the reason you note, not necessarily true. – Milo Brandt Feb 07 '15 at 01:39
-
16This holds in any integral domain. $:$ One could see that abstractly by embedding in the field of fractions, but it's more direct to just observe that your proof goes through for them. $;;;;$ – Feb 07 '15 at 02:26
-
@MatthewLevy he said that for zero divisors , its trivially true that it has less than n roots which is here is 0 and 0<n? – Orion_Pax May 16 '22 at 18:10
-
1@Orion_Pax: You are commenting on a post that is over 7 years old; addressing a user that hasn't been on the site for over 2 years; and your statement is false. Nobody in this post said that the result is "trivially true" when the ring has zero divisors. In fact, the opposite: it is stated several times that if the ring has zero divisors, then the result is not necessarily true. – Arturo Magidin May 16 '22 at 21:15
-
Oh i wasnt able to comprehend what the zero divisors though , i though it was like meant to say if there is no real roots of the equation which also means no real divisors of form (x-alpha)... Etc , i didnt thought it was related to rings since Matthew levy didnt include "ring " at all @ArturoMagidin – Orion_Pax May 16 '22 at 21:20
No, the fundamental theorem of algebra tells us that there are at most $n$ roots in the complex plane $\Bbb C$ for $\deg(f)=n$. Since $\Bbb R$ is a subset of $\Bbb C$, this means $f$ has at most $n$ real roots. Usually one rules out the case $f\equiv 0$ when talking about such things.
If you want to think about analytic functions as "infinite degree" polynomials, then
$$\sin z:=\sum_{n=0}^{\infty}{\frac {z^{2n+1}}{(2n+1)!}}$$
has infinitely many roots on the real line, and $\sin z \not \equiv 0$.
In fact, in any integral domain $R$, the number of factors of $f\in R[x]$ is at most $\deg(f)$. $0$ is only a factor of the zero polynomial, so let's exclude it.

- 767

- 1,440
-
Thank you for your answer. What about if P(X) is the null polynomial? P(X)=0 for all x – Карпатський Feb 07 '15 at 01:28
-
5No, fundamental theorem of algebra says something quite different. What applies here is the Bezout's theorem, instead (which, along with the fundamental theorem of algebra, implies that a complex polynomial decomposes into linear terms; incidentally, it is much more elementary, for example, I had been told a proof of it in high school classroom, in stark contrast to the fundamental theorem of algebra, whose proper proof I have not seen until second year undergraduate complex analysis and differentiable manifods courses, I think). – tomasz Feb 08 '15 at 02:07
-
You have to do a little bit of work, but yet it does come directly from The FTA. Obviously, there are many roots to the same answer in math and it is all connected. – Matthew Levy Feb 08 '15 at 20:06
Not possible if the coefficients ring is an integral domain.
But it is possible in general, e.g. real algebra of quaternions $\mathbb{H}$. The polynomial $f(x) = x^2+1$ has infinitely many roots in $\mathbb{H}[x]$.

- 10,497
-
Great. The answer of the above question is in general false for arbitrary Rings. Take a Commutative Ring with Trivial multiplication then any element is root of f(x)=x². Cool right? – MathCosmo Dec 25 '21 at 17:58
That can't happen. The number of roots can't exceed the degree which is finite.

- 20,046
-
Thank you for your answer. What about if P(X) is the null polynomial? P(X)=0 for all x – Карпатський Feb 07 '15 at 01:29
-
yes, as Matt mentions in his answer the zero polynomial isnt usually considered. – Tim Raczkowski Feb 07 '15 at 01:35
-
-
1Probably because it fell right into the questioner's "trap" (intended by the questioner or otherwise), and misstated the fundamental theorem of algebra by leaving out the special case. – Steve Jessop Feb 07 '15 at 17:46
-
It CAN happen if P(x) has infinitely many terms. For a finite polynomial of degree n, the number of roots cannot exceed n. – Mr X Dec 24 '23 at 01:44
You don't need to get into noncommutative rings to provide a polynomial with infinite roots, let $R=\mathbb Z[s]/(2s)$ and $p(x)=\overline s(x^2+x)$. Then all integers are roots of $f$.

- 6,061

- 318
- 1
- 6
Hint $\ $ If $\,0\ne f\in \Bbb C[x]\,$ has distinct roots $\,a_1,\ldots\,a_n\,$ then $\,f(x) = (x\!-\!a_1)\cdots (x\!-\!a_n)\, g(x)\,$ for $\,0\ne g\in\Bbb C[x],\,$ by inductively applying the Factor Theorem. Comparing degrees on both sides shows that $\,f\,$ has at most $\,\deg f\,$ roots.
Note $ $ The above proof works for polynomials over any field (or any integral domain, i.e. a commutative ring where $\,ab=0\,\Rightarrow\,a=0\,$ or $\,b=0).\,$ It may fail over more general coefficient rings, e.g. $\rm\,x^2\!-\!1\,$ has $\,4\,$ roots $\,\pm1,\,\pm3\pmod 8.\,$ And nonzero polynomials can have infinitely many roots over noncommutative fields, e.g. $\,x^2+1\,$ over the quaternions.

- 272,048
-
Let $f \in K[x_1,x_2, \cdots, x_n]$ of degree $n$, i.e., multivariate polynomial. Does the same hold for this case as well ? i.e., it can not have infinitely many zeros in the field $K$, ofcourse $K$ is infinte – MAS Feb 19 '23 at 12:53
If $c$ is a root of $P(x)$ then $P(x)=(x-c)Q(x)$ for some polynomial $Q(x)$ of lower degree. The degree can't keep getting lower forever.
[This assumes the degree of $P(x)$ is at least $1$.]
By Gauss's fundamental theorem of algebra a polynomial has number of roots equal to its degree, where roots are counted with multiplicities. So in order to have infinite roots we should consider asymptotically infinite degree polynomial. Let us consider a three term recurrence, $$ P_{n+1}(z) = (z^3-z)P_{n}(z)-P_{n-1}(z).$$ With initial conditions $$P_0(z) = 1 $$ and $$P_1(z) = z^3-z+1.$$ As $$ \lim_{n-> \infty} P_{n+1}(z) $$ will have infinite roots. Note that all the coefficients of this polynomial are real. Asymptotically the roots fall on the projection of the polynomial $$ z^3-z = r $$ on complex plane. Here $$r \in (-2i, 2i)$$ and $z$ is any complex number. We can observe this in case of spectrum of tridiagonal k Toeplitz matrices.

- 52,094

- 54
Let $f(x)$ be a non-constant polynomial and $\deg(f) = n \geq 1$. If $f(x)$ has infinitely many different roots, then $f(x)$ has $n+1$ different roots $a_1, \cdots, a_n, a_{n+1}$. Since $f(a_1) = 0$, $f(x) = (x-a_1) g_1(x)$ for a polynomial $g_1(x)$ whose degree is $n-1$. Since $f(a_2) = 0$ and $a_2 \neq a_1$, $g_1(a_2) = 0$. So, $g_1(x) = (x-a_2) g_2(x)$. So, $f(x) = (x-a_1)(x-a_2)g_2(x)$. If we continue like this, finally we have $f(x) = (x-a_1) \cdots (x-a_n) g_n(x)$. Since $\deg(f) = n$, $\deg(g_n) = 0$. This means $g_n(x)$ is non-zero constant $b$. So, $f(x) = b (x-a_1) \cdots (x-a_n)$. Since $a_{n+1} \neq a_i$ for $i \in \{1, \cdots, n\}$, $f(a_{n+1}) \neq 0$. This is a contradiction.

- 8,690
As comments have noted above, on a field a non-constant polynomial of degree $n$ has at most $n$ distinct roots. The quaternions, which are not a field, provide what you're looking for. For example, there are infinitely many square roots of $-1$. If $z=bi+cj+dk$ is a quaternion with $b,c,d$ real so that $b^2+c^2+d^2=1$, then $z^2+1=0$.

- 115,835
A non zero polynomial can also have all its base set as roots!
Have a look at Math Counterexamples.

- 70,018