Backward Error Measures for Roots of Polynomials
Abstract
We analyze different measures for the backward error of a set of numerical approximations for the roots of a polynomial. We focus mainly on the element-wise mixed backward error introduced by Mastronardi and Van Dooren, and the tropical backward error introduced by Tisseur and Van Barel. We show that these measures are equivalent under suitable assumptions. We also show relations between these measures and the classical element-wise and norm-wise backward error measures.
1 Introduction
In this article we analyze the problem of measuring the backward error for a set of approximations for the roots of a polynomial with complex coefficients. For a general introduction to the notion of backward error analysis, the reader can consult for instance [Hig02, Section 1.5]. Consider a set of approximate solutions of a polynomial equation with nonzero coefficients
with solutions . The backward error of is a measure for the ‘distance’ of to the polynomial
whose roots are exactly the points in . How to measure this distance turns out to be a surprisingly subtle problem. A first and natural measure is the 2-norm distance between the coefficients of and . The norm-wise backward error (NBE) of is
where . In [AMVW15], an algorithm is proposed that computes a set of approximate solutions satisfying , where is the unit round-off. Such an algorithm is called norm-wise backward stable. However, it turns out that this type of stability is too ‘weak’ in a sense we explain by means of an example. Consider the polynomial . The set of approximate solutions would satisfy . Indeed,
and . This means that we would allow a relative error of size on the coefficient vector . However, computing the roots of with using the Julia package PolynomialRoots (using the command roots) we get
julia> abs.((c - chat)./c) 3-element Array{Float64,1}: 2.7755575615628914e-16 0.0 0.0
which shows that we can obtain better element-wise accuracy on the coefficient vector. This suggests another, more ‘strict’, measure for the backward error. The element-wise backward error (EBE) of is
Unfortunately, this measure turns out to be too strict. In [MVD15], Mastronardi and Van Dooren show that no algorithm for finding the roots of a general quadratic polynomial is element-wise backward stable, meaning that it computes such that . As an alternative measure, the authors of [MVD15] propose the following definition in the case where . The element-wise mixed backward error (EMBE) of , denoted , is the smallest number such that there exists some and
such that
Note that the second set of inequalities is equivalent to . In the same paper, the authors also show the implication in the case where . The implication is obvious from the definition.
The advantage of EMBE as a measure for the backward error is that it results in a notion of stability, i.e. element-wise mixed backward stability, which is stronger than norm-wise backward stability and can provably be obtained for quadratic polynomials [MVD15]. A drawback of this measure is that it is hard to compute for a given set of approximate solutions because of the rather abstract definition. In [TVB20], Tisseur and Van Barel define the min-max element-wise backward error of as
where are constants that can be computed in linear time from the coefficients of . The depend only on the tropical roots of , which is why we will refer to this error measure as the tropical backward error (TBE). We will give a definition of the numbers in Section 3. The authors of [TVB20] also provide an algorithm that, under some assumptions on the numerical behavior of a modified QZ-algorithm (see [TVB20, Section 5, Assumption 1]), computes a set of approximate roots satisfying .
In this paper, we investigate the relations between the TBE and the EMBE. In particular, we show that these error measures are equivalent under suitable assumptions. Here’s a simplified version of our first main theorem.
Theorem 1.1.
Assume that the tropical roots of are of the same order of magnitude as the corresponding classical roots and are of the same order of magnitude as . Then we have that implies .
The strategy for proving Theorem 1.1 will also allow us to prove that, under the assumptions of the theorem, implies . This was proved in [MVD15] for the case where . Under some stronger assumptions, we also prove the reverse implication.
Theorem 1.2.
Assume that the tropical roots of are of the same order of magnitude as the corresponding classical roots and are of the same order of magnitude as . Moreover, assume that for each , there are two terms and of such that
Then we have that implies .
We will give numerical evidence that Theorem 1.2 holds without the extra assumption on the polynomial . In summary, we have the following diagram, where the arrows are implications.
(1) |
Here, the black arrows are implications which are obvious from the definitions. The blue arrows are implications that we prove under the assumptions of Theorem 1.1. The dashed arrow represents Theorem 1.2, which uses stronger assumptions.
This article is organized as follows. In the next section we prove the equivalence of the tropical and element-wise mixed backward error measures in the case where . This can be seen as an extension of the analysis in [MVD15], and it is instructive for the general case. The proofs for general are given in Section 3. In Section 4 we show some computational experiments and give numerical evidence that Theorem 1.2 holds under weaker assumptions.
2 Backward Error for Quadratic Polynomials
In this section, we prove that the element-wise mixed backward error (EMBE) as introduced by Mastronardi and Van Dooren [MVD15] and the tropical backward error (TBE) from [TVB20] are equivalent backward error measures for the roots of a quadratic polynomial
For simplicity, we assume that . For the approximate roots of , is the smallest number such that there exists with
In analogy with [TVB20], we define the to be the smallest number such that
where . The definition of will be clarified in Section 3. For the approximate roots and in these definitions, we will assume that the order of magnitude of and is the same as the order of magnitude of (that is, we allow relative errors of size at most 1). Note that by the definition of EMBE, it is sufficient that this is satisfied for .
We will now relate these two error measures. Let . We observe
Since , we have and it follows
For the coefficient , we find in an analogous way that
(2) |
If the solutions and have different orders of magnitude, there does not occur any cancellation in the denominator of the right hand side of (2) and this implies . However, if the order of magnitude of both solutions is the same, the factor standing with may be significantly larger than 1 due to cancellation. We will now make this precise and relate this to the number . We define . By the assumption that is of the same order of magnitude as , (2) can be written as
(3) |
with a small constant. We assume, without loss of generality, that . Note that we have for the inequality
(4) |
which follows from applied to . Assume that
In this case, we have
(5) |
Now, assume
In this case
(6) |
Also,
(7) |
which gives
where . This is illustrated in Figure 1.
It follows immediately from this observation and (3) that
Figure 2 illustrates the values of and as a function of in the unit disk.


This shows that element-wise mixed backward stability implies tropical backward stability. The converse also holds, as we will now show. Let for the computed roots . If then we can take and such that . Suppose now that and without loss of generality assume . implies that there exists with such that
Let and . Then we have
Note that
We also have
from which we get
We conclude that tropical backward stability implies element-wise mixed backward stability.
Remark 1.
We assumed in this discussion. If , we are solving a linear equation and there is nothing to prove. If , the root can be deflated and we are again left with a linear equation. If , a similar derivation can be made. We omit the details but give a brief outline. We replace the conditions on and in the definitions of and respectively by and where (note that in this case ). One derives bounds in a similar way for the implication . For the other implication, there is again nothing to prove when . When we observe that we can write with and we set .
We arrive at the following statement.
Proposition 2.1.
Let be a set of approximations for the roots of a quadratic polynomial , where . Under the assumption that has the same order of magnitude as , , we have that
3 Backward Error for Polynomials of General Degree
We now generalize the results of the previous section to polynomials of arbitrary degree . In the following let , , be a polynomial of degree with roots and let be the approximate roots. Without loss of generality we assume that the roots are labeled such that .
We first formally generalize the notion of the element-wise mixed backward error due to Mastronardi and Van Dooren [MVD15] from quadratic polynomials to general polynomials of degree .
Definition 3.1 (Element-wise mixed backward error).
The element-wise mixed backward error of , denoted , is the smallest number such that there exist points satisfying , , and
for all , where the are the coefficients of
Before we can state the generalization of the tropical backward error for degree polynomials we need to introduce some definitions and concepts. We define the tropical polynomial associated to as
(8) |
where . The number is the valuation of under the valuation map . Any base for the logarithm can be used in theory. We want to think of the image under the valuation map as the ‘order of magnitude’ of the modulus of a complex number. In this paper, when we state that we mean that is of order 1. In tropical geometry the map is referred to as an Archimedean valuation. For a general introduction to tropical geometry we refer to [Sha11, MS15].

The Newton polytope of is the line segment . The convex hull of the points is called the lifted Newton polytope. We will consider the upper hull of the lifted Newton polytope. For a specific example, this is shown as a solid black line in Figure 3. The vertices of this upper hull are the points , , with
We call the set the subdivision induced by the coefficients , or the induced subdivision for short. We say that a point is a root of if the maximum in (8) is attained at least twice. A root of is called a tropical root of . The multiplicity of a root of is the number where and are the largest, respectively the smallest value of for which is maximal. Counted with multiplicity, has roots and we can give a closed formula for them. For we have
where is the multiplicity. In particular, the definition implies
Tropical roots of polynomials are used for scaling (matrix) polynomial eigenvalue problems, see for instance [BNS13, GS09, NST15].
Furthermore, for we define the constants
Geometrically, if then is the distance of to the upper convex hull of the lifted Newton polytope. Figure 3 illustrates these concepts. Note that , , is the negative slope of the line connecting and . We note that the complexity of computing the tropical roots of is linear in the degree , see e.g. [Sha11, Proposition 2.2.1].
Definition 3.2 (Tropical backward error).
The tropical backward error of , denoted , is the smallest number such that for all
where the are the coefficients of
In the following we show that an element-wise mixed backward error of order machine precision also implies a tropical backward error of order machine precision and that the converse holds, under suitable assumptions, as well. As in Section 2 for the quadratic case, we assume in the following that , and have the same order of magnitude for .
3.1 Element-wise Mixed Backward Stability implies Tropical Backward Stability
We start by showing that an implies . The coefficients of the polynomial can be considered as functions of the roots . Let
be the -th elementary symmetric polynomial. We have the identity
Lemma 3.1.
If , then the coefficients of
satisfy
and | |||||
Proof.
Suppose . We have
This implies
where . Note that the second inequality and the equality both use . We now observe
where the ‘higher order terms’ contain at least two of the . This, together with the triangle inequality, shows
The case is completely analogous. ∎
It is well known that the values are related to the modulus of the classical roots , see for instance [Sha11]. In what follows, we will make the assumption that the order of magnitude of is equal to that of (and, by our previous assumption, also to and ). Under this assumption, we have for that
with a not too large constant and
the binomial coefficient. This can be seen as follows. The important terms in the expansion of are those containing large roots. By the ordering of the roots by their modulus, these terms have the order of magnitude of . We can assume that each of these terms contains the largest roots. For the remaining factors, we can choose roots among .
By our assumption that , we have
with a not too large constant. Taking valuations on both sides of this equality, we get
(9) |
where and is a not too large positive number. Equation (9) is the assumption we will use in the next theorem.
Theorem 3.1.
If and the order of magnitude of is equal to that of and , and (9) holds, then the coefficients of
satisfy
and | ||||
In particular, .
Proof.
In [MVD15], Mastronardi and Van Dooren show that, for , implies , where is the norm-wise backward error as defined in the introduction. Theorem 3.1 allows us to prove this statement for general degrees.
Proposition 3.1.
If and the assumptions of Theorem 3.1 are satisfied, we have that
Proof.
Suppose that . We have
Since , we have that Combining this with Theorem 3.1, we have that
Hence, we obtain the bound
Analogously, when we obtain
It follows that
where the last inequality follows from
because for . ∎
We note that the proof of Proposition 3.1 can be summarized as
3.2 Tropical Backward Stability implies Element-wise Backward Stability?
We now show that a tropical backward error of order also implies a mixed element-wise backward error of the same magnitude under some assumptions. For this, consider the perturbed polynomials
and | ||||
(10) |
where and are parameters. We assume that is not too large, i.e. , such that is a ‘small’ perturbation. Observe that for the roots of we have
(11) |
From this we conclude that is a root of the polynomial
Similarly, for the roots of we have that is a root of the polynomial
To show that tropical backward stability implies element-wise mixed backward stability we need three assumptions. Each tropical root should attain the maximum in (8) exactly twice, and the other terms should be significantly smaller. Also, the tropical root should be of the same order of magnitude as .
Lemma 3.2.
If for the tropical root of we have
-
1.
with ,
-
2.
,
-
3.
,
then for
Here ‘’ can be replaced by ‘’ for .
Proof.
We have that . We distinguish three different cases.
-
1.
(). In this case
with . Since and by assumption , we have that
Then
with . The lemma now follows from taking valuations.
-
2.
(). The lemma follows from the observation that in this case
with .
-
3.
(). In this case
Note that if , the third case is not possible because . ∎
Lemma 3.3.
Proof.
We have
with , which proves the first statement. The second statement is proven by a completely analogous argument. The third statement follows from
with . The fourth statement is analogous. The fifth statement follows from
and Lemma 3.2. The sixth statement follows again from an analogous argument. ∎
It follows from Lemma 3.3 that we can bound the lifted Newton polytopes of the polynomials from above. An example is shown in Figure 4.
The expansion (11) is used to approximate as
(12) |
It is clear that this is an approximation for the smallest root of , which corresponds to the smallest tropical root of which is bounded by (see Figure 4)
(13) |
Analogously, we have for the smallest tropical root of that . We will also make our usual assumption that the tropical roots give an indication for the order of magnitude of the classical roots, i.e.
(14) |
We conclude that the assumptions of Lemma 3.2 implies that and have a relative forward error of size . This implies that (take ), which gives the following result.
Theorem 3.2.
Under the assumptions of Lemma 3.2, if and the order of magnitude of is equal to that of and , then .
In fact, the assumptions of Lemma 3.2 imply that the roots of are well-conditioned. Consider the first order approximation
for a perturbation on causing a perturbation on . Here is used to measure the residual with a relative criterion. The condition of a root can be measured by
Using Lemma 3.2, we find that this number is of order 1.
In what follows, we will give a constructive proof for Theorem 3.2. That is, in the proof of Theorem 3.3 (which implies Theorem 3.2) we will give values for in (10) which realize a small EMBE. It uses the following lemma.
Lemma 3.4.
Under the assumptions of Lemma 3.2, we have that
Proof.
It follows from that
The valuation of the first neglected term in the approximation (12) is
where we used Lemma 3.2, Lemma 3.3 and (14). For the term corresponding to , we have
For the terms corresponding to higher values of , we get in the same way a valuation of . The reasoning for is completely analogous. ∎
Theorem 3.3.
Under the assumptions of Lemma 3.2, there are choices of the parameters , with such that .
Proof.
By Lemma 3.4 we have and . Hence it suffices to show that the valuation of
is bounded by . We have
We now specify the parameters , . For , we choose , such that . Note that . For the other , we set . We get
Since by assumption , the dominant terms in the sum are those with , where . Therefore
with . The valuation of one of the terms in the sum is
which is equal to . Note that this is independent of , and hence we get
Using Lemma 3.2 we get
∎
4 Computational Experiments
In Subsection 3.2 we proved that a tropical backward error of order also implies a mixed element-wise backward error of the same magnitude under some assumptions.
Unfortunately, we were not able to prove this result in general.
However, based on several numerical experiments that we performed, we are convinced that a small TBE implies a small EMBS also in general.
To support this conjecture, the following numerical experiment was performed.
Numerical Experiment 1
Take 1000 polynomials of degree with coefficients whose modulus is chosen as with uniformly randomly chosen
between and and whose argument is uniformly randomly chosen between and .
These polynomials will not always satisfy the necessary assumptions for Theorem 3.2.
The zeros of these polynomials are approximated by applying an eigenvalue method from the Julia package Polynomials resulting in the computed zeros . For these approximate roots the TBE is computed. To compute an upper bound
for the EMBE, the roots are separately refined using Newton’s method in extended precision based on the original polynomial.
The correspondence between the TBE and EMBE is shown in Figure 5 and clearly indicates that a small TBE implies a small EMBE.

In several of our statements, we assumed that the tropical roots of are of the same order of magnitude as the corresponding classical roots. To check if this is a reasonable assumption in practice, we performed the following numerical experiment.

Numerical Experiment 2 Ten thousand polynomials of degree are taken with coefficients whose modulus is chosen as with uniformly randomly chosen between and and whose argument is uniformly randomly chosen between and . For each of these polynomials the tropical roots are compared to the roots computed in high precision. Figure 6 gives a histogram of the measured ratios . The results show that for the vast majority of roots the magnitude differs by at most 10 percent.
5 Conclusion
We have shown the relations (1) between different measures for the backward error of an approximate set of roots of a polynomial. Under some assumptions the tropical backward error measure of [TVB20], which is easy to compute, is shown to be equivalent to the element-wise mixed backward error measure defined in [MVD15] for . We have given numerical evidence that the equivalence holds more generally.
References
- [AMVW15] Jared L Aurentz, Thomas Mach, Raf Vandebril, and David S Watkins. Fast and backward stable computation of roots of polynomials. SIAM Journal on Matrix Analysis and Applications, 36(3):942–973, 2015.
- [BNS13] Dario A Bini, Vanni Noferini, and Meisam Sharify. Locating the eigenvalues of matrix polynomials. SIAM Journal on Matrix Analysis and Applications, 34(4):1708–1727, 2013.
- [GS09] Stéphane Gaubert and Meisam Sharify. Tropical scaling of polynomial matrices. In Positive systems, volume 389 of Lecture Notes in Control and Information Sciences, pages 291–303. Springer, 2009.
- [Hig02] Nicholas J Higham. Accuracy and stability of numerical algorithms, volume 80. Siam, 2002.
- [MS15] Diane Maclagan and Bernd Sturmfels. Introduction to tropical geometry, volume 161. American Mathematical Soc., 2015.
- [MVD15] Nicola Mastronardi and Paul Van Dooren. Revisiting the stability of computing the roots of a quadratic polynomial. Electronic Transactions on Numerical Analysis, 44:73–82, 2015.
- [NST15] Vanni Noferini, Meisam Sharify, and Francoise Tisseur. Tropical roots as approximations to eigenvalues of matrix polynomials. SIAM Journal on Matrix Analysis and Applications, 36(1):138–157, 2015.
- [Sha11] Meisam Sharify. Scaling Algorithms and Tropical Methods in Numerical Matrix Analysis: Application to the Optimal Assignment Problem and to the Accurate Computation of Eigenvalues. PhD thesis, 2011.
- [TVB20] Françoise Tisseur and Marc Van Barel. Min-max elementwise backward error for roots of polynomials and a corresponding backward stable root finder. arXiv:2001.05281, 2020.