A polynomial least-squares approximation minimizes the weighted residual norm:
Equivalently it minimizes . This is a best approximation within a finite-dimensional polynomial space, without an interpolation requirement.
If is a minimizer, then for each the quadratic
has a minimum at , so . Conversely, if this orthogonality holds, then for every the Pythagorean theorem in the inner product space gives
Thus the minimizers are exactly the orthogonal projections characterized by
For existence, write . The conditions form the normal equations , with Gram matrix and . For every nonzero coefficient vector ,
Indeed a nonzero polynomial is nonzero on some open interval away from , where the weight is positive. Hence is a positive-definite matrix and is invertible, proving existence and uniqueness of . Uniqueness also follows from the preceding Pythagorean theorem identity. The zero of the weight at one point therefore causes no degeneracy on continuous functions or polynomials.
Define the reflected polynomial . It belongs to . Since is odd, a change of variable and the evenness of the weight give
Thus is another polynomial least-squares approximation. By uniqueness, , so
The conclusion includes the zero polynomial, which is both odd and even.
By part (c), the best polynomial of degree at most is odd, hence has the form . The orthogonal projection condition with gives
The residual is odd, so its weighted inner products with the even polynomials and vanish automatically. Thus all three normal equations hold and
For , the Householder transformation is
Let . Then and , since is the orthogonal projection matrix onto the span of . Hence and
Thus is a symmetric matrix and an orthogonal matrix. Geometrically it reverses the component parallel to and fixes the perpendicular hyperplane.
Let , and choose if and otherwise. Set
This vector is nonzero, because has magnitude . Direct computation gives
so the Householder transformation satisfies
The first entry is nonzero and every other entry is zero. The sign choice also avoids cancellation when forming the first entry of , which is useful in numerical computation.
Apply part (b) to the first column of , using the identity if it is already the zero vector. This gives an orthogonal matrix for which has zeros below its first diagonal entry. At stage , apply a Householder transformation to rows of column , and extend it by the identity on the first coordinates. If that trailing column is zero, again use the identity. The transformation preserves zeros in earlier columns, since their trailing entries already vanish.
After at most stages,
is an upper triangular matrix. Each is symmetric and orthogonal, so with
we have and
No invertibility assumption was used, so the Householder QR decomposition also exists for singular matrices.
Multiply by to get the equivalent triangular system
For nonsingular , compute and use back substitution:
Orthogonal transformations preserve the Euclidean norm, making this a numerically stable reduction. The factors can be applied as stored Householder transformations without explicitly forming .
Since is invertible, is singular exactly when is singular. For an upper triangular matrix,
Thus a singular forces at least one zero diagonal entry in . In that case, ordinary division-based back substitution must be replaced by a consistency/rank analysis: the system may have no solution or infinitely many solutions, and a rank-revealing factorization can identify the free parameters.

Articles by others on the same topic (0)

There are currently no matching articles.