Skip to main content

A projection algorithm on the set of polynomials with two bounds


The motivation of this work stems from the numerical approximation of bounded functions by polynomials satisfying the same bounds. The present contribution makes use of the recent algebraic characterization found in Després (Numer. Algorithms 76(3), 829–859, 2017) and Després and Herda (Numer. Algorithms 77(1), 309–311, 2018) where an interpretation of monovariate polynomials with two bounds is provided in terms of a quaternion algebra and the Euler four-squares formulas. Thanks to this structure, we generate a new nonlinear projection algorithm onto the set of polynomials with two bounds. The numerical analysis of the method provides theoretical error estimates showing stability and continuity of the projection. Some numerical tests illustrate this novel algorithm for constrained polynomial approximation.

This is a preview of subscription content, access via your institution.

Fig. 1
Fig. 2
Fig. 3
Fig. 4


  1. Abramowitz, M., Stegun, I.A.: Handbook of mathematical functions with formulas, graphs, and mathematical tables, volume 55 of National Bureau of Standards Applied Mathematics Series. For sale by the Superintendent of Documents, U.S. Government Printing Office, Washington, D.C. (1964)

  2. Campos-Pinto, M., Charles, F., Després, B.: Algorithms for positive polynomial approximation. SIAM J. Numer. Anal. 57(1), 148–172 (2019)

    MathSciNet  Article  Google Scholar 

  3. Despres, B., Herda, M.: Correction to: Polynomials with bounds and numerical approximation [MR3715896]. Numer. Algorithms 77(1), 309–311 (2018)

    MathSciNet  Article  Google Scholar 

  4. Després, B.: Polynomials with bounds and numerical approximation. Numer. Algorithms, 76(3), 829–859 (2017)

    MathSciNet  Article  Google Scholar 

  5. Després, B., Herda, M.: Computation of sum of squares polynomials from data points. arXiv:1812.02444 (2019)

  6. Euler, L.: Demonstratio theorematis fermatiani omnem numerum sive integrum sive fractum esse summam quatuor pauciorumve quadratorum. Novi commentarii academiae scientiarum Petropolitanae, pp. 13–58 (1760)

  7. Nocedal, J., Wright, S.J.: Numerical Optimization. Springer Series in Operations Research and Financial Engineering, 2nd edn. Springer, New York (2006)

    Google Scholar 

  8. Platte, R.B., Trefethen, L.N.: Chebfun: a new kind of numerical computing. In: Progress in Industrial Mathematics at ECMI 2008, pp 69–87. Springer, Berlin (2010)

  9. Szegő, G.: Orthogonal Polynomials, 4th edn., vol. XXIII. American Mathematical Society, Providence (1975). American Mathematical Society, Colloquium Publications

    Google Scholar 

Download references


MH acknowledgesfinancial support by the Labex CEMPI (ANR-11-LABX-0007-01) and the Labex SMP (ANR-10-LABX-0098).

Author information

Authors and Affiliations


Corresponding author

Correspondence to M. Herda.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix: An algorithm for positive polynomial approximation

Appendix: An algorithm for positive polynomial approximation

Here, we briefly describe the method used in the numerical tests to compute the positive (or nonnegative) polynomial approximations in Lukacs form. The problem is to find two polynomials aPn and bPn− 1 defining a positive polynomial p0(x) = a(x)2 + b(x)2w(x) such that given some data \((x_{r}, y_{r})_{r = 1,\dots ,R}\) (in general with \(R = \dim (P_{2n}) = 2n+1\)) the images (p0(xr))r are a good approximation of (yr)r.

Our algorithm consists in a least-square minimization where a and b are “oscillating polynomials” parametrized by their roots. This parametrization is motivated by the method of [2] where a similar technique has been developed and analyzed for positive interpolation.

Mathematically, the method relies on the following optimization problem. Find

$$ (\alpha^{*}, {\upbeta}^{*})\ \in\ \text{argmin}_{\alpha\in{\mathbb{R}}^{n+1},\upbeta\in{\mathbb{R}}^{n}}J_{t}(\alpha,\upbeta) $$

where the objective function is

$$ J(\alpha,\upbeta)\ =\ \sum\limits_{r = 1}^{R}|a[\alpha](x_{r})^{2} + b[\upbeta](x_{r})^{2}w(x_{r}) - y_{r}|^{2} , $$

with a and b parametrized as follows,

$$ a[\alpha](x)\ =\ 2^{n-1} \alpha_{0} \prod\limits_{i=1}^{n} (x-\alpha_{i}) ,\qquad b[\upbeta](x)\ =\ 2^{n-1} {\upbeta}_{0} \prod\limits_{i=1}^{n-1} (x-{\upbeta}_{i}) . $$

The factor 2n− 1 is taken so that α0 and β0 are of the same order as the other components of α and β. Then, the approximation polynomial p is defined by

$$ p_{0}(x) = a[\alpha^{*}](x)^{2} + b[{\upbeta}^{*}](x)^{2}w(x) $$

The optimization problem is nonlinear and non-convex. However, it can be solved efficiently in practice. Indeed, one can compute explicitly both the gradient and hessian of the functional J. In the numerical tests of Section 5, we used a Newton conjugate gradient trust-region algorithm. The initial couple (α,β ) is taken to be appropriate roots of Chebychev polynomials. In this way, the initial polynomials a[α] and b[β] are proportional to Tn and Un, yielding a[α]2(x) + b[β]2(x)w(x) being some constant polynomial. In all the cases of Section 5, n = 5 and the algorithm converges after around 30 iterations.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Campos Pinto, M., Charles, F., Després, B. et al. A projection algorithm on the set of polynomials with two bounds. Numer Algor 85, 1475–1498 (2020).

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI:


  • Positive polynomials
  • Chebyshev polynomials
  • Quadratic programming
  • Quaternions

Mathematics Subject Classification (2010)

  • 65D15
  • 41A29
  • 90C20