Chebyshev polynomial Created 2026-09-24 Updated 2026-10-18
The first-kind Chebyshev polynomial converts a multiple-angle cosine into a polynomial:The cosine addition formula gives the recurrence relationThis constructs polynomials valid for every real , including outside , where the real-angle description is unavailable. For example,For , has polynomial degree and leading coefficient . On its uniform norm is one, even as its oscillations become more numerous.[ref]
https://dlmf.nist.gov/18.5#i. T. H. Koornwinder and collaborators, NIST Digital Library of Mathematical Functions, §18.5(i), equation 18.5.1: trigonometric representation
[ref]https://dlmf.nist.gov/18.9#i. Koornwinder and collaborators, NIST DLMF, §18.9(i), Table 18.9.1: recurrence coefficients
The polynomial roots of are especially simple:They correspond to equally spaced angles, but their locations in cluster near and . For , the polynomial roots are . For , the positive polynomial roots are approximately , with their negatives completing the set. The distance from the right endpoint to the nearest polynomial root is ; central neighboring polynomial roots are separated on the larger scale . The small change of cosine near angles zero and explains the clustering.
Analytical illustration of the eight roots of T8: equally spaced angles on a semicircle project to endpoint-clustered interpolation nodes
. Details. These polynomial roots supply interpolation nodes for a polynomial interpolation of polynomial degree at most . They differ from the Chebyshev-Lobatto nodes , which include both endpoints. This choice of polynomial roots has nodal polynomialThe monic Chebyshev extremal polynomial minimizes the uniform norm of this product among monic polynomials of polynomial degree on . Consequently, if has continuous derivatives, the usual polynomial interpolation error gives the useful boundThis optimizes the nodal factor in that bound, not the actual error for every function. Endpoint clustering helps control the large endpoint oscillations of equally spaced interpolation associated with Runge's phenomenon. The two node conventions and their geometric construction are discussed in Trefethen's authored text.[ref]
https://people.maths.ox.ac.uk/trefethen/ATAP/ATAPfirst6chapters.pdf. Lloyd N. Trefethen, Approximation Theory and Approximation Practice, Chapters 2–3 and Exercise 2.4: endpoint clustering, first-kind roots and polynomials
The same cosine substitution for polynomial approximation explains the weighted orthogonality:The endpoint singularities of the weight are integrable. Thus the Chebyshev polynomials are orthogonal polynomials for this weight, making coefficients in a least-squares polynomial in an orthogonal-polynomial basis separate cleanly. Their polynomial roots also give Chebyshev–Gauss quadrature, connecting polynomial interpolation to Gaussian quadrature.[ref]
Accuracy still depends on the target function. The absolute value function has a corner at zero, so the hypothesis requiring continuous derivatives in the displayed polynomial interpolation error bound fails. Endpoint clustering cannot remove that corner. A jump poses a stronger obstruction: polynomials are continuous functions, so they cannot converge in the uniform norm to a discontinuous function on the whole interval. Chebfun's documented examples show persistent overshoot for such jumps; these are a limitation of global polynomial interpolation, not a universal promise of rapid accuracy from Chebyshev polynomials.[ref]
https://www.chebfun.org/docs/guide/guide04.html#4.3. Chebfun development team, Chebfun Guide, §4.3: polynomial interpolation of discontinuous functions
An orthonormal basis of the polynomial space need not be indexed by polynomial degree. Permuting the normalized Legendre polynomials, for example, preserves orthonormality but changes the degrees attached to the labels. Results about the number of polynomial roots of require the extra condition , or that the polynomials arise by applying the Gram-Schmidt process to in that order. Under this degree ordering, is orthogonal to every polynomial of lower polynomial degree because those earlier basis members span .
For a positive integration weight on a nondegenerate interval, this implies that has distinct polynomial roots in the open interval. If fewer than roots change sign there, multiply by the product of their linear factors. The product has constant nonzero sign except at its finitely many zeros, so its weighted integral cannot vanish, contradicting orthogonality to this lower-degree polynomial. The usual Gaussian quadrature construction therefore uses the degree-ordered family; arbitrary relabelling is not enough.
Let be orthonormal polynomials for a positive weight, and let define its -point Gaussian quadrature. Put and . Exactness through polynomial degree gives . Positivity of the quadrature weights makes a square orthogonal matrix, so also. Thus the unweighted row inner products of the evaluation matrix are .
Gauss collocation coefficient construction 2026-10-14
Choose as the polynomial roots of in , and form the Lagrange interpolation polynomials . The Gauss collocation method has and . This gives explicit coefficient formulas after finding polynomial roots: if , these integrals are and . Gaussian quadrature gives order .
Gaussian quadrature Created 2026-09-24 Updated 2026-10-14
Gaussian quadrature is a quadrature rule that chooses both sample locations and coefficients to achieve unusually high polynomial exactness. For a finite interval with , assume the integration weight is integrable and positive almost everywhere. DefineLet be the monic orthogonal polynomial of polynomial degree for the inner product : it satisfies for every polynomial of polynomial degree below . The polynomial roots of are distinct and inside ; take them as the nodes . Integrate the Lagrange cardinal polynomials to obtain . These coefficients are positive, andThe integration weight and the discrete coefficients play different roles: specifies the integral being approximated, while tell us how much each sample contributes.[ref]
https://dlmf.nist.gov/3.5#v. Nico M. Temme, NIST Digital Library of Mathematical Functions, §3.5(v), Gauss quadrature: nodes, coefficients and exactness
A proof outline explains the gain over simply integrating an arbitrary polynomial interpolation. Use polynomial division to write , with and . Orthogonality makes , and sampling at the polynomial roots of makes . The Lagrange cardinal polynomials recover exactly, so both expressions agree. Also , since has polynomial degree . This is the mechanism behind positive weights of Gaussian quadrature.
For a concrete two-node example, set on . The Legendre polynomial has polynomial roots . Its monic polynomial version has zero integral against both and , as required. Symmetry and exactness for the constant polynomial give . Thus the Gauss–Legendre instance of Gaussian quadrature isDirect evaluation on gives , exactly their integrals. For the polynomial , two samples therefore give exactly. But for the rule gives , whereas the integral is : the error is .
Analytical illustration of two-node Gauss–Legendre sampling: exact monomial integrals through degree three and failure at degree four
. Details. The ceiling is sharp for distinct real nodes under the positive-weight assumptions. Their squared nodal polynomial has polynomial degree , is zero at every sample, and has a strictly positive weighted integral. Thus no such quadrature rule integrates every polynomial of polynomial degree exactly. Nor does Gaussian quadrature integrate every nonpolynomial function exactly: the same two-node example gives , while .
Gaussian quadrature is useful when evaluations are costly and a modest polynomial captures the integrand well. More precisely, for a continuous function and any polynomial of polynomial degree at most , positivity and constant exactness giveThe uniform norm on measures the approximation between samples. This bound connects quadrature rule accuracy to uniform approximation, rather than promising an error from sample count alone. Corners, sharp unresolved features and roundoff error require their own assessment; the absolute value function example already shows why polynomial exactness is a qualified guarantee.
Numerical integration Created 2026-10-03 Updated 2026-10-18
Numerical integration approximates a definite integral using finitely many sampled function values. For an integrand on a finite interval , , a quadrature rule has the formThe quadrature nodes tell us where to evaluate ; the quadrature weights turn those values into an approximation to the accumulated signed area. The exact definite integral depends on the integrand throughout the interval, whereas the quadrature rule sees only these samples. Integrating a chosen interpolant exactly still generally approximates the original integrand's integral.[ref]
5.6 Numerical integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; Definition 5.6.1 and §5.6.1, equations 5.6.2–5.6.5: weighted samples and integration of an interpolant
The fundamental theorem of calculus evaluates as when an antiderivative is available. Numerical integration is useful when no convenient antiderivative is known, or each evaluation of the integrand requires an expensive computation. The task then becomes choosing informative quadrature nodes and controlling the quadrature error with as few evaluations as possible. Fixed data also permit a quadrature rule, but refinement cannot supply new information between observations.[ref]
5.6 Numerical integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; Opening discussion, Example 5.6.1 and the paragraph following Definition 5.6.1: antiderivatives, numerical evaluation and fixed data
For an exact comparison, take the polynomial on . Its antiderivative gives . On a partition of an interval into equal panels, the composite midpoint quadrature rule uses midpoint samples, each with quadrature weight ; the composite trapezoidal rule uses endpoint samples, with outer quadrature weights and interior quadrature weights . The existing derivations under these two quadrature rules giveIn particular, and already bracket ; two panels give and . The convex function explains the opposite signs. A midpoint rectangle can cross the curve within its panel, so its total signed area, rather than pointwise ordering, determines the underestimate.
One and two panels for numerical integration of : midpoint and endpoint samples with their quadrature weights
. Details. Define the signed approximation error as . In this example the absolute errors are and : doubling reduces each by exactly four. A plot with both axes on a logarithmic scale therefore has slope , expressing order two with respect to panel refinement. This is an exact calculation for this polynomial, including , rather than an observed rate extrapolated from a few computed answers.
Exact absolute errors for midpoint and trapezoidal numerical integration of : slope and a factor-four reduction
. Details. For a general integrand, the composite midpoint quadrature rule and composite trapezoidal rule give second-order quadrature error bounds when has two continuous derivatives on and a known bound on . These hypotheses describe behavior between samples. A formal error formula containing an unknown derivative is not a numerical accuracy certificate or a justified sample count. Finite samples do not certify quadrature accuracy makes the missing information explicit. Errors in the evaluations and roundoff error must also be considered; noise sensitivity of a quadrature rule treats the former.
More elaborate choices exploit other information: Gaussian quadrature obtains high polynomial exactness from carefully chosen quadrature nodes, and Simpson's rule uses a quadratic interpolant. Adaptive numerical integration compares approximations and concentrates samples where they disagree, often saving evaluations. Such a difference is an error estimate, not a certified bound without further assumptions: both approximations can miss the same feature.[ref]
5.7 Adaptive integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; §5.7.1, equation 5.7.4: a difference-based error estimate; §5.7.2: interval bisection; Example 5.7.2 and concluding discussion: requested accuracy is not guaranteed
Orthogonal polynomial Created 2026-09-24 Updated 2026-10-18
An orthogonal polynomial family chooses polynomials that do not overlap under a specified inner product. For real polynomials on an interval , use the weighted inner productAssume , the weight is measurable and positive almost everywhere, and its absolute moments are finite for every integer . These conditions make the integrals finite and give every nonzero polynomial positive squared norm. A sequence is an orthogonal polynomial family when has real coefficients and polynomial degree exactly , and for .[ref]
18 Orthogonal Polynomials. NIST Digital Library of Mathematical Functions; Koornwinder, Wong, Koekoek, Swarttouw and Reinhardt, NIST DLMF Chapter 18, §18.2(i), equations 18.2.1 and 18.2.1_5: interval orthogonality and finite absolute moments
Here and is the Kronecker delta. Orthogonality does not require : an orthonormal set is obtained only after replacing by . Multiplying each member by any nonzero real constant preserves orthogonality, but changes its norm and the corresponding expansion coefficient. The monic orthogonal polynomial convention instead fixes each leading coefficient to one.
The first four Legendre polynomials, named for Adrien-Marie Legendre, use on and the normalization :Their orthogonality and squared norms areThus their Gram matrix has a positive diagonal and zero entries elsewhere, although their function graphs cross and overlap on the page. Orthogonality measures an integral of products, rather than separation of function graphs.[ref]
The first four Legendre polynomials and their exact integral Gram matrix: orthogonal, with unequal squared norms
. Details. For these four polynomials, a short verification expands each product and uses and . For example, and . The same calculation gives the diagonal entries . More generally, apply the Gram-Schmidt process to the monomial basis : at step , subtract projections onto the earlier polynomials. The result retains its leading term, has degree , and has positive norm, proving existence without a differential equation. Different degrees also give linear independence, so form a basis of the polynomials of degree at most .
This basis turns least-squares solutions for functions into independent scalar calculations, as the decoupled coefficients of orthogonal polynomial projections show. In a spectral method, increasing the degree enlarges the approximation space while keeping earlier projection coefficients fixed. Weighted integrals also connect the same orthogonal polynomials to Gaussian quadrature: its nodes are polynomial roots of a member of the family. The projection problem minimizes an integrated squared error; Gaussian quadrature uses the family to choose evaluation points for an integral.
Exactness on constants and linear functions givesWith the nodes just computed, the solution isTo prove cubic exactness rather than merely moment matching, divide a polynomial of degree at most three by the monic :The weighted integral of vanishes by orthogonality, and its two nodal values vanish because the nodes are roots of . The remaining is integrated exactly by the two equations above. This proves Gaussian quadrature exactness through degree three.
Past exam of the mathematics course of the University of Cambridge 2002 ib Paper 3 6B Solution Created 2026-09-24 Updated 2026-10-14
Let be the monic node polynomial. Suppose first that the quadrature is exact through degree . For any polynomial of degree at most , has degree at most , while every sampled value is zero. Exactness givesThus is an orthogonal polynomial of degree , proving necessity in the orthogonal-node criterion for Gaussian quadrature.
Conversely, suppose the nodes are the zeros of such a polynomial. Rescale it to be monic without changing its zeros or orthogonality. For any of degree at most , polynomial division givesOrthogonality makes ; the quadrature of is zero because . The assumed degree- exactness applies to , soHence degree- exactness is equivalent to orthogonal nodes. The given distinct-zero property ensures the node values are independent interpolation data; the degree- exactness fixes the corresponding interpolatory weights. This is the construction of Gaussian quadrature.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 2 9A Solution Created 2026-09-24 Updated 2026-10-14
Use the weighted inner product . A monic quadratic orthogonal polynomial , orthogonal to 1 and , satisfiesThus , , and its two zeros are and . Matching the first two weighted moments givesso and . The two-node Gaussian quadrature with linear weight is thereforeFor completeness, a polynomial of degree at most three can be divided as , where both and have degree at most one. Orthogonality makes the weighted integral of zero, and this term vanishes at both nodes. The two moment equations integrate exactly. Thus the Gaussian quadrature is exact for every cubic polynomial. No two-node rule can integrate every quartic: the square of its nodal polynomial has quadrature value zero and strictly positive weighted integral.
Past exam of the mathematics course of the University of Cambridge 2005 ib Paper 4 8F Solution Created 2026-09-24 Updated 2026-10-14
An -node Gaussian quadrature formula chooses nodes and weights for an integral with a positive weight so that every polynomial of degree at most is integrated exactly. Its nodes are the zeros of the degree- orthogonal polynomial for that weight.
For the even weight , the monic orthogonal quadratic has the form . Orthogonality to follows from oddness; orthogonality to one givesThe nodes are . The equal weights sum to , hence each is . The two-node Gaussian quadrature with quadratic weight is thereforeTo verify cubic exactness, divide any cubic as with . Orthogonality removes from the integral and its nodal values vanish; linear interpolation integrates exactly. This also proves the Gaussian property rather than merely matching two moments.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 3 2F iii Solution Created 2026-09-24 Updated 2026-10-14
Put . For every polynomial of degree at most , has degree at most and vanishes at all nodes; thus . The monic degree- orthogonal polynomial for this integral is unique: the difference of two such monic polynomials has degree below and is orthogonal to itself, hence is zero. Consequently is the monic normalization of the degree- Legendre polynomial, proving the given nodes are exactly its roots. Together the three results characterize this Gaussian quadrature rule.
Past exam of the mathematics course of the University of Cambridge 2006 ib Paper 2 18D a Solution Created 2026-09-24 Updated 2026-10-14
For node , let be the Lagrange interpolation polynomial with . It has degree , so has degree . The Gaussian quadrature with nodes is exact through degree , henceThe integrand is nonnegative. Since is a nonzero polynomial, it is nonzero on some open subinterval; the positive weight has positive integral there. Consequently for every node. This proves the positive weights of Gaussian quadrature property without assuming any coefficient sign beforehand.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 68 1 b Solution Created 2026-10-03 Updated 2026-10-14
Use the Gauss collocation coefficient construction. Find the polynomial roots of the shifted Legendre polynomial in , and formThen setThese are explicit polynomial integrals. For example, if , calculate and . The resulting implicit Gauss collocation method has order ; its Gaussian quadrature nodes integrate polynomials through degree exactly. The one-stage example is the implicit midpoint rule, with and . No search over nonlinear Runge-Kutta order conditions systems is needed.
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 4 8D Solution Created 2026-09-24 Updated 2026-10-14
With , the weighted inner product for the Chebyshev polynomials becomesThe identity and the vanishing of for positive integers give zero when , when , and when . ThusFor Gaussian quadrature, choose the distinct nodes as the zeros of the degree- orthogonal polynomial for the weight, here , and choose the weights as the weighted integrals of their Lagrange interpolation basis functions. If a polynomial has degree at most , divide it as , where both and have degree at most . Orthogonality makes the integral of zero, while its quadrature sum also vanishes; interpolation integrates exactly. This proves degree exactness. It is optimal because the squared nodal polynomial, of degree , has zero quadrature sum and strictly positive integral.
For , , so the nodes are . Their interpolation basis functions areThe weighted zeroth and second moments are and , and the first moment is zero. Integrating these three basis functions gives equal weights , hence the Chebyshev–Gauss quadrature rulewhich is exact for every polynomial of degree at most .
Past exam of the mathematics course of the University of Cambridge 2009 ib Paper 4 8C Solution Created 2026-09-24 Updated 2026-10-14
For distinct Gaussian quadrature nodes, let be the Lagrange interpolation polynomial with . Since has degree , exactness givesThe last inequality follows from on the interval and the nonzero polynomial being nonzero on a subinterval. It does not require prior knowledge of the signs of the weights.
For , the nodes are the roots of the supplied orthogonal polynomial :Indeed exactness for gives , and exactness for gives equality of the weights.
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 1 2F ii Solution Created 2026-09-24 Updated 2026-10-14
Use Gaussian quadrature: choose the nodes as the roots of the degree- Legendre polynomial, which are distinct and inside . Retain the integrated Lagrange interpolation weights. With the standard normalization , they can be writtenThe orthogonality of the Legendre polynomial against all lower-degree polynomials makes this quadrature exact up to degree , twice the arbitrary-node degree apart from the endpoint count. This is the Gauss–Legendre choice of Gaussian quadrature nodes and weights.
Past exam of the mathematics course of the University of Cambridge 2013 ib Paper 1 6C Solution Created 2026-09-24 Updated 2026-10-07
For two-node Gaussian quadrature with linear weight, the monic node polynomial must be orthogonal to and for weight . Indeed, exactness through degree three makes the quadrature of and vanish at its nodes. The moment equations areso and . Thus the Gaussian quadrature nodes, labelled in increasing order, areIntegrating the linear Lagrange interpolation cardinal functions gives the weightsThey are positive, sum to , and reproduce the first moment . Any cubic polynomial has remainder of degree at most one after division by ; orthogonality annihilates the other part both in the integral and at the nodes. This proves degree-three exactness, not merely the two moment conditions for the weights.
Past exam of the mathematics course of the University of Cambridge 2014 ib Paper 4 8C Solution Created 2026-09-24 Updated 2026-10-06
For any distinct nodes, the polynomial has degree , is nonnegative, and vanishes at every node. The quadrature rule sum for is zero, but because the weight is positive and is positive except at finitely many points. Therefore no such rule is exact for all polynomials of degree at most , irrespective of the chosen weights.
For the sine weight, its first four moments are . A monic degree-two orthogonal polynomial issince direct use of these moments gives . Its roots lie in and areThe weights follow by requiring exactness for and : and , and the symmetric nodes imply both weights are one. To prove cubic exactness, divide any cubic as , with of degree at most one. The integral of is zero by orthogonality, and its nodal values vanish; the remaining linear polynomial is integrated exactly. This is the two-node Gaussian quadrature with sine weight; the argument proves its Gaussian quadrature property without assuming a general quadrature theorem.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 2 2I iii Solution Created 2026-09-24 Updated 2026-10-06




