×

A comparison of companion matrix methods to find roots of a trigonometric polynomial. (English) Zbl 1349.65156

Summary: A trigonometric polynomial is a truncated Fourier series of the form \(f_{\mathcal{N}}(t)\equiv\sum_{j=0}^{\mathcal{N}}a_j\cos (jt)+\sum_{j=1}^{\mathcal{N}}b_j\sin (jt)\). It has been previously shown by the author that zeros of such a polynomial can be computed as the eigenvalues of a companion matrix with elements which are complex valued combinations of the Fourier coefficients, the ”CCM” method. However, previous work provided no examples, so one goal of this new work is to experimentally test the CCM method. A second goal is introduce a new alternative, the elimination/Chebyshev algorithm, and experimentally compare it with the CCM scheme. The elimination/Chebyshev matrix (ECM) algorithm yields a companion matrix with real-valued elements, albeit at the price of usefulness only for real roots. The new elimination scheme first converts the trigonometric rootfinding problem to a pair of polynomial equations in the variables \((c,s)\) where \(c\equiv\cos(t)\) and \(s\equiv\sin (t)\). The elimination method next reduces the system to a single univariate polynomial \(P(c)\). We show that this same polynomial is the resultant of the system and is also a generator of the Groebner basis with lexicographic ordering for the system.
Both methods give very high numerical accuracy for real-valued roots, typically at least 11 decimal places in Matlab/IEEE 754 16 digit floating point arithmetic. The CCM algorithm is typically one or two decimal places more accurate, though these differences disappear if the roots are “Newton-polished” by a single Newton’s iteration. The complex-valued matrix is accurate for complex-valued roots, too, though accuracy decreases with the magnitude of the imaginary part of the root. The cost of both methods scales as \(O(N^3)\) floating point operations. In spite of intimate connections of the elimination/Chebyshev scheme to two well-established technologies for solving systems of equations, resultants and Groebner bases, and the advantages of using only real-valued arithmetic to obtain a companion matrix with real-valued elements, the ECM algorithm is noticeably inferior to the complex-valued companion matrix in simplicity, ease of programming, and accuracy.

MSC:

65H05 Numerical computation of solutions to single equations
65T40 Numerical methods for trigonometric approximation and interpolation
13P10 Gröbner bases; other bases for ideals and modules (e.g., Janet and border bases)

Software:

Chebfun; Matlab; DLMF
Full Text: DOI

References:

[1] Allgower, E. L.; Georg, K.; Miranda, R., The method of resultants for computing real solutions of polynomial systems, SIAM J. Numer. Anal., 29, 831-844 (1992) · Zbl 0756.65077
[2] Barnett, S., Companion matrix analog for orthogonal polynomials, Linear Algebra Appl., 12, 197-208 (1975) · Zbl 0327.15026
[3] Battles, Z.; Trefethen, L. N., An extension of Matlab to continuous functions and operators, SIAM J. Sci. Comput., 25, 1743-1770 (2004) · Zbl 1057.65003
[4] Boyd, J. P., The envelope of the error for Chebyshev and Fourier interpolation, J. Sci. Comput., 5, 311-363 (1990) · Zbl 0738.41002
[5] Boyd, J. P., A Chebyshev polynomial interval-searching method (“Lanczos economization”) for solving a nonlinear equation with application to the nonlinear eigenvalue problem, J. Comput. Phys., 118, 1-8 (1995) · Zbl 0823.65047
[6] Boyd, J. P., Chebyshev and Fourier Spectral Methods (2001), Dover: Dover Mineola, NY, 665 pp · Zbl 0994.65128
[7] Boyd, J. P., Computing zeros on a real interval through Chebyshev expansion and polynomial rootfinding, SIAM J. Numer. Anal., 40, 1666-1682 (2002) · Zbl 1034.65028
[8] Boyd, J. P., Computing real roots of a polynomial in Chebyshev series form through subdivision, Appl. Numer. Math., 56, 1077-1091 (2006) · Zbl 1119.65033
[9] Boyd, J. P., Computing real roots of a polynomial in Chebyshev series form through subdivision with linear testing and cubic solves, Appl. Math. Comput., 174, 1642-1648 (2006) · Zbl 1090.65052
[10] Boyd, J. P., Computing the zeros, maxima and inflection points of Chebyshev, Legendre and Fourier series: Solving transcendental equations by spectral interpolation and polynomial rootfinding, J. Eng. Math., 56, 203-219 (2006) · Zbl 1110.65037
[11] Boyd, J. P., Computing the zeros of a Fourier series or a Chebyshev series or general orthogonal polynomial series with parity symmetries, Comput. Math. Appl., 54, 336-349 (2007) · Zbl 1132.65039
[12] Boyd, J. P., Large-degree asymptotics exponential asymptotics for Fourier coefficients transforms, Chebyshev and other spectral coefficients, J. Eng. Math., 63, 355-399 (2009) · Zbl 1163.42001
[15] Boyd, J. P.; Gally, D. H., Numerical experiments on the accuracy of the Chebyshev-Frobenius companion matrix method for finding the zeros of a truncated series of Chebyshev polynomials, J. Comput. Appl. Math., 205, 281-295 (2007) · Zbl 1118.65032
[16] Carstensen, C., A note on simultaneous rootfinding for algebraic exponential and trigonometric polynomials, Comput. Math. Appl., 27, 7-14 (1994) · Zbl 0792.65029
[17] Chan, T. F.; Keller, H. B., Arclength methods for computing simple turning points, SIAM J. Sci. Stat. Comput., 3, 173-194 (1982) · Zbl 0497.65028
[18] Cox, D.; Little, J.; O’Shea, D., Using Algebraic Geometry. Using Algebraic Geometry, Graduate Texts in Mathematics, vol. 185 (1998), Springer-Verlag: Springer-Verlag New York · Zbl 0920.13026
[19] Day, D.; Romero, L., Roots of polynomials expressed in terms of orthogonal polynomials, SIAM J. Numer. Anal., 43, 1969-1987 (2005) · Zbl 1101.65048
[20] Gautschi, W., The condition of polynomials in power form, Math. Comput., 33, 343-352 (1979) · Zbl 0399.41002
[21] Good, I. J., The colleague matrix, a Chebyshev analogue of the companion matrix, Quart. J. Math., 12, 61-68 (1961) · Zbl 0103.01003
[22] Heck, A., Introduction to Maple (2003), Springer: Springer New York, 848 p · Zbl 1020.65001
[23] Ichim, I.; Molnar, I., A Bairstow type method for trigonometric polynomials, Numer. Math., 67, 251-259 (1994) · Zbl 0818.65146
[24] Keller, H. B., Numerical Methods for Two-Point Boundary-Value Problems (1992), Dover: Dover New York · Zbl 1409.65001
[25] Khashan, H.; Syam, M. I., QR-algebraic method for approximating zeros of system of polynomials, Int. J. Comput. Math., 88, 110-120 (2011) · Zbl 1211.65058
[26] Makrelov, I. V.; Semerdzhiev, K. I., On the convergence of two methods for the simultaneous find of all roots of exponential equations, IMA J. Numer. Anal., 5, 191-200 (1985) · Zbl 0583.65021
[27] Morgan, A. P., Solving Polynomial Systems Using Continuation for Scientific and Engineering Problems, Classics in Applied Mathematics (2009), SIAM: SIAM Philadelphia, 228 pp · Zbl 1170.65316
[28] (Olver, F. W.J.; Lozier, D. W.; Boisvert, R. F.; Clark, C. W., NIST Handbook of Mathematical Functions (2010), Cambridge University Press: Cambridge University Press New York) · Zbl 1198.00002
[29] Schweikard, A., Real zero isolation for trigonometric polynomials, ACM Trans. Math. Software, 18, 350-359 (1992) · Zbl 0892.65087
[30] Semerdzhiev, K. I.; Tamburov, S. G., A method of determining all the zeros of a generalized polynomial with respect to an arbitrary Tschebyscheff system, USSR Comput. Math. Math. Phys., 27, 9-13 (1987) · Zbl 0648.65043
[31] Seydel, R., Practical Bifurcation and Stability Analysis: From Equilibrium to Chaos (1994), Springer-Verlag: Springer-Verlag Heidelberg, 428 pp · Zbl 0806.34028
[32] Stetter, H. J., Numerical Polynomial Algebra (2004), Society for Industrial and Applied Mathematics: Society for Industrial and Applied Mathematics Philadelphia, Pennsylvania · Zbl 1058.65054
[33] Sylvester, J. J., A method of determining by mere inspection the derivatives from two equations of any degree, Philos. Mag., 16, 132-135 (1840)
[34] Trefethen, L. N., Spectral Methods in Matlab (2000), Society for Industrial and Applied Mathematics: Society for Industrial and Applied Mathematics Philadelphia · Zbl 0953.68643
[35] Weidner, P., The Durand-Kerner method for trigonometric and exponential polynomials, Computing, 40, 175-179 (1988) · Zbl 0631.65045
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.