The Lax-Milgram theorem states that a bounded bilinear form on a real Hilbert space , satisfying for some , has for each a unique with for all . Moreover .
For a compact operator on a Hilbert space, the Fredholm alternative says that has closed range, finite-dimensional kernel and cokernel of equal dimension, and
Thus a zero kernel gives unique solvability for every right-hand side; a nonzero kernel gives solvability exactly under the adjoint orthogonality conditions, and then all solutions differ by a kernel vector.
Take . Gårding's inequality supplies constants , with . Therefore for the shifted form is coercive. It is bounded for every fixed , and is bounded on . Lax-Milgram gives unique weak solvability for , with . The inequality itself follows, for example, by absorbing the drift cross-term using Young's inequality and allowing a lower correction for .
For the compact inverse and adjoint of a coercive elliptic operator, under the additional zero-shift coercivity assumption, define by for all , and let be this solution viewed in . The solution operator is linear and bounded into , and the Rellich-Kondrachov compact embedding makes compact. Rewriting the weak equation as gives
Conversely an solution of this operator equation lies in , because it equals , and satisfies the weak differential equation.
For constant drift coefficients and zero Dirichlet traces, integration by parts gives . Symmetry of the principal coefficients therefore makes the unshifted weak form of the displayed formal adjoint. The shifted adjoint equation requires
The spectral shift in an adjoint weak formulation is essential: the printed sentence omitting it is false for nonzero . For instance take a smooth ball, , any nonzero and . The printed unshifted identity holds, but whenever . This counterexample also meets zero-shift coercivity and constant-drift assumptions. The corrected identity above is used for the remainder of the argument.
Let solve , which exists by Lax-Milgram because the diagonal coercivity is unchanged. For ,
Thus , viewed as an operator, is exactly . Applying this inverse to the corrected shifted adjoint equation gives
and the converse follows from its range lying in , just as before.
Finally let the original homogeneous equation have a nonzero solution. Its parameter is nonzero, since the unshifted problem is coercive. Fredholm gives solvability precisely when for every . Such a satisfies , so . Hence the necessary and sufficient condition is
When this holds, the solutions are an affine translate of the original finite-dimensional homogeneous solution space. The compatibility space is the adjoint kernel; a drift term does not generally permit replacing it by the original kernel.
A Givens rotation acts as the identity matrix outside two selected coordinates , and has the following block on those coordinates:
The convention with the opposite signs of the sines is equivalent after replacing by . A Householder reflection with nonzero normal vector is
It reverses the component parallel to and fixes the perpendicular hyperplane. Both are orthogonal matrices, so their transposes are their inverses and they preserve the Euclidean norm.
Write . The allowed orthogonal projection characterization, applied to the basis , gives the normal equations
Explicitly if is odd and if it is even. These equations can also be derived by differentiating with respect to each coefficient.
The Gram matrix is a symmetric positive-definite matrix. For any nonzero real coefficient vector ,
The polynomial inside the square is nonzero, so its square is positive on some interval. Hence has zero kernel and is invertible. Thus the normal equations have exactly one solution, giving exactly one best least-squares polynomial. This proves both existence and uniqueness. For completeness, if the residual is orthogonal to , then for every the Pythagorean theorem gives , directly verifying minimality and uniqueness.
A real square matrix is an orthogonal matrix when , equivalently its columns form an orthonormal basis. Here is the transpose and the identity matrix. For every vector ,
Taking nonnegative square roots proves
Thus an orthogonal matrix preserves the Euclidean norm.
Choose the following consistent sign convention. The Givens rotation equals the identity matrix except for the block on coordinates :
Thus it changes only the th and th coordinates of a vector. Write , . Its two-coordinate block satisfies
All remaining coordinates are unchanged, so . Hence every such Givens rotation is an orthogonal matrix. With this convention the two-coordinate rotation matrix rotates through angle .
Apply the product from right to left, choosing every Givens rotation from the current first column. First replaces by . Next combines that retained entry with and sets the third entry to zero. Inductively, after eliminating coordinates , the first coordinate is
and coordinates are zero. Later Givens rotations involve only coordinate one and a new coordinate, so those zeros remain zero. Therefore
where is the first standard basis vector. The zero vector is included by choosing the identity matrix for every zero pair. The nonnegative sign follows from the convention fixed in part (c)(ii). This is the first-column stage of QR decomposition by Givens rotations.
Gaussian elimination uses elementary row operations to remove entries below successive pivot elements, reducing a linear system to one with an upper triangular matrix. Back substitution then solves that system. It also computes a reusable matrix factorization, so additional right-hand sides can be handled by forward substitution and back substitution without repeating the elimination.
For elimination without row exchanges, let . At step , provided the pivot element is nonzero, form the elimination multipliers
and perform , applying the same operation to the right-hand side. More explicitly the resulting entries satisfy for , .
Let , where are the standard basis vectors. Then
The matrix is a unit lower triangular matrix storing the elimination multipliers, while is an upper triangular matrix:
Solving becomes followed by . If a required pivot element vanishes, an unpermuted LU decomposition can fail even for an invertible matrix. Row exchanges, typically selected by partial pivoting, instead produce with a permutation matrix ; then solve , .
Since every , the diagonal matrix is invertible. Set
The division is by the diagonal entry of row . Thus is an upper triangular matrix with diagonal entries one and .
To use symmetry without assuming the conclusion, multiply by the matrix inverse of and its transpose:
The matrix is symmetric because is a symmetric matrix. It is also an upper triangular matrix, since every factor on the right is an upper triangular matrix. A symmetric upper triangular matrix is diagonal. Its diagonal is exactly , because and have diagonal entries one. Hence , giving
This is the LDL decomposition.
Take the positive square roots of the diagonal entries:
The matrix is a lower triangular matrix with positive diagonal, and
This is a Cholesky decomposition. For a nonzero vector , the vector is nonzero because is invertible. Therefore
Here is the Euclidean norm. Thus is a positive-definite matrix.
Write for the vector space of polynomials of polynomial degree at most , and put . As the question calls the weighted integral an inner product, its finiteness is implicit; for example, a positive integrable weight suffices for all the continuous functions involved here.
For every , differentiating the squared weighted norm at its minimum gives the orthogonality equations
In particular, the requested linear system is
Its Gram matrix is a symmetric positive-definite matrix: for any nonzero vector ,
Indeed a nonzero polynomial is nonzero on some open interval, and the weight is positive. Therefore is an invertible matrix, proving uniqueness. Conversely, if these equations hold, the Pythagorean theorem in an inner-product space gives, for every ,
so the solution really is the unique best approximation.
The Euclidean norm is invariant under an orthogonal matrix, so the full singular value decomposition gives
The second term is independent of ; the first attains its unique minimum zero because is an invertible matrix. The linear least squares solution is therefore
Here is the Moore-Penrose inverse, and the fitted vector is the orthogonal projection onto the image of a linear map defined by .
With the singular value decomposition supplied, forming costs arithmetic operations, diagonal scaling costs , and multiplication by costs . Since ,
One need not form , or to calculate . Computing the needed thin singular value decomposition first has standard dense cost ; explicitly forming an entire orthogonal completion can require additional work when is much larger than .
The spectral theorem for real symmetric matrices gives with an orthogonal matrix . Positive definiteness makes every eigenvalue positive. Define the matrix square root
It is symmetric, its square is , and for any nonzero vector ,
Thus it is also positive-definite, and its matrix inverse is .
For , the coefficient is positive. Moreover
is a positive-definite matrix: for a nonzero vector , put ; then . Hence every eigenvalue of is strictly below one. Part (d) also gives , so these eigenvalues are nonnegative. Therefore
The energy-norm proof of convergence of SOR thus makes the iteration a strict contraction mapping in this norm. Its forward error satisfies , so it converges geometrically to zero.
Nonzero vectors are conjugate directions with respect to when for . They are linearly independent: if , multiplication by gives , hence by positive definiteness. There are consequently at most such directions.
The finite termination of conjugate directions follows from the residual orthogonality maintained by the exact line minimizations. At step ,
For , conjugacy gives . By mathematical induction, is orthogonal to every . After nonzero conjugate directions they form a basis of , forcing . Thus the method reaches in at most steps, and positive definiteness makes that solution unique. The claim is in exact arithmetic; rounding errors need not preserve exact conjugacy.
Since , an A-conjugate direction must satisfy . One nonzero choice is
Direct matrix multiplication gives , and . All nonzero scalar multiples of this vector also qualify.
For every vector , splitting the rows gives
Both summands are nonnegative. Taking the supremum over unit vectors in the definition of the spectral norm proves
The claim is true, with
It is a symmetric positive-definite matrix: for every nonzero vector , the fact that is an invertible matrix gives . Since , every candidate satisfies
The generalized minimal residual method therefore minimizes precisely this weighted norm of the error over the linear span of . The same matrix works for every and does not depend on .
For the small QR decomposition, each of the Givens rotations eliminates one subdiagonal entry of the upper Hessenberg matrix. At column , apply the rotation to two rows in columns , costing arithmetic operations. Summing gives , and applying the rotations to the right-hand side costs . Backward substitution in a triangular system costs .
Computing costs and the final dense matrix multiplication costs . Thus the total, with the Arnoldi decomposition already supplied, is
Here , since has orthonormal columns in . In the standard dense arithmetic model, forming the general matrix–vector product gives the sharp cost. The pair above records that two-parameter bound; looser bounds such as are also possible because . Treating as an unstructured dense matrix would unnecessarily replace its factorization by an computation.
For any nonzero vector , orthonormality gives . Since is a symmetric positive-definite matrix,
The preceding part already gives symmetry, so is a symmetric positive-definite matrix. In fact the spectral theorem gives the useful bounds
which place its eigenvalues between the smallest and largest eigenvalues of .
The directional derivative in the specified vector direction is
The equality follows from the total-derivative remainder estimate; for the zero direction the result is zero. The convention keeps the supplied vector and does not replace it by a unit vector.
The total derivative is a linear map such that
It is unique: the difference of two such linear maps, evaluated on , must vanish on every fixed vector after division by and passage to the limit.