Use the weighted inner product
Multiply the equation for by , subtract the complex conjugate equation for times , and integrate. Since the eigenvalues are real,
The boundary term vanishes as before. Thus eigenfunctions with distinct eigenvalues are orthogonal. The full disk inner product differs only by the angular factor .
Use the ordinary real inner product on the domain of functions obeying the two separated boundary conditions. Integration by parts gives the Lagrange identity for a Sturm-Liouville operator
At , the two boundary-value vectors and satisfy the same homogeneous linear relation. If , both function values vanish; if , their derivatives are the same constant multiple of their values. Either way . The same argument applies at . Hence
This proves symmetry, and the regular separated Sturm-Liouville problem has the same adjoint domain, so is self-adjoint. To see the domain point, require the boundary form to vanish against every admissible : the independently variable endpoint data force an adjoint-domain function to obey those same endpoint relations.
As usual, each endpoint pair and must be nonzero, and the coefficients must have the regularity needed for these operations. An identically zero pair would impose no condition at that endpoint and would not give the claimed self-adjoint operator. The related operator is self-adjoint in the weighted inner product .
The adjoint operator , when it exists, is defined by
for all vectors in the relevant domains. This convention takes the inner product to be conjugate-linear in its first argument. Nondegeneracy makes the adjoint unique.
For the standard complex inner product , the equality becomes for every , so
Thus the matrix adjoint is the Hermitian conjugate, not merely the transpose unless the entries are real. In a basis with positive Hermitian Gram matrix , the same definition instead gives , making the dependence on the chosen inner product explicit.
Let be a Hermitian matrix and with . The scalar equals its own complex conjugate, because
Since and the squared norm is positive, .
Now take and . The inner product satisfies
Subtracting gives . Thus distinct eigenvalues imply , proving orthogonality of the corresponding eigenvectors. Within a degenerate eigenspace, an orthonormal basis may be chosen, but arbitrary distinct vectors in that same eigenspace need not be orthogonal.
A complex square matrix is a unitary matrix if . Equivalently, it preserves the complex inner product and hence the norm. If with , then
Division by the positive squared norm gives . Thus every eigenvalue lies on the unit circle.
Two integrations by parts give the boundary form of the Sturm-Liouville operator:
The interior terms cancel because are real. Thus the required endpoint condition is
For a regular interval, a standard self-adjoint domain is specified by one real homogeneous Robin boundary condition at each endpoint:
where neither pair of real constants is identically zero. At each end, these conditions force the two boundary data vectors of to be proportional, making the displayed form zero. Dirichlet boundary conditions and Neumann boundary conditions are the cases and . Coupled conditions also work, for example and , whose two endpoint contributions cancel. Self-adjointness uses the maximal common domain with these conditions, not an arbitrary smaller symmetric restriction.
The weighted inner product must be nondegenerate. The usual interpretation is almost everywhere, allowing isolated endpoint zeros as in part (b), with the operator defined on its appropriate weighted domain. Merely allowing a weight that is zero on an entire interval would not by itself define the stated operator or a positive-definite inner product on ordinary functions.
Project the initial condition onto the orthogonal spatial eigenfunctions. Their squared norms in the ordinary inner product are
The latter follows from the integrals of and being , with the sine-cosine cross term zero. Therefore
For square-integrable data the expansion converges to the data in the L2 norm at ; for the decaying high modes are smoothed. Initial data with zero projection have no growing term.
Apply separation of variables with and temporal factor . The spatial eigenvalue equation is
The nontrivial solutions of these Dirichlet boundary conditions are sine eigenfunctions. Normalizing in the usual inner product on gives
with . The superposition principle and the Fourier sine series then give
The constants are the initial-data coefficients . Here physical diffusion means .
For sufficiently smooth functions satisfying the same boundary conditions, integration by parts gives the boundary form
The stated endpoint relation annihilates this expression. This proves the required self-adjoint differential operator identity; for the usual regular Sturm-Liouville problem, separated real boundary conditions give a self-adjoint realization on its domain.
In this problem the transformed diffusive flux is . Thus the physical boundary conditions are
equivalently when the endpoint values of are positive. In particular at the endpoints, which makes the boundary form vanish directly. The inner product used here is the ordinary integral; the weight enters the generalized eigenvalue problem, not this boundary-form calculation.
Multiplication by gives the Sturm-Liouville form
so the weight is . Use the weighted inner product and the Sturm-Liouville operator . Integration by parts gives its boundary form:
The upper endpoint term vanishes by the Dirichlet boundary conditions, and the lower one vanishes for the regular solutions. More precisely, the radial Dirichlet spectrum in three dimensions identifies under the unitary transformation with on with zero endpoint values; this specifies the self-adjoint realization at the singular endpoint as well as proving the formal identity.
For eigenfunctions with different eigenvalues, the same identity gives . Taking real eigenfunctions proves the required orthogonality of Sturm-Liouville eigenfunctions.
The norm induced by the specified inner product is the L2 norm
A polynomial is a best polynomial least-squares approximation when
Minimizing this norm is equivalent to minimizing its square, the integrated squared error. Continuity ensures that a function with zero squared norm is identically zero: a nonzero value would give a neighbourhood on which the square has a positive integral.
Projection onto the constant polynomials requires the residual to be orthogonal to . For the original inner product,
For the weighted inner product the corresponding normal equation is
Hence
It increases monotonically towards one. Although the weight vanishes at zero, it is positive elsewhere, and a nonzero continuous function is nonzero on an interval of positive weight. Thus the weighted expression really is an inner product and the constant minimizer is unique.
The normalized weight has total mass one and assigns mass to for each . Its mass therefore concentrates near and , where . This explains why the weighted best constant tends to one rather than to the unweighted spatial average. It is endpoint concentration in weighted constant approximation.
The orthonormal columns satisfy and . By part (i), . A product of orthogonal matrices is an orthogonal matrix, since . Consequently
The last expression is the first coordinate of the transformed second column. Thus the first row is
The one in the first entry uses the nonnegative retained-coordinate convention. A different consistent sign convention could give instead; the second entry must still be zero by preservation of the inner product.
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 power iteration starts from , normally scaled to unit Euclidean norm, and repeats
Normalization prevents the rapidly growing or decaying magnitudes of from obscuring its direction. The iteration requires .
Because is a diagonalizable matrix, choose an eigenbasis , with corresponding eigenvalues , and expand . First suppose the dominant eigenvalue is simple and . Then
For
the sum in parentheses after is in Big O notation. Consequently the power iteration direction error is : the iterates approach the line spanned by . For a real matrix, a uniquely dominant eigenvalue is real, since otherwise its complex conjugate would have the same modulus. If , approaches one unit eigenvector; if , successive alternate signs. In either case,
This is the sign and phase in power iteration qualification. Also, the necessary assumption is a nonzero coefficient in the eigenbasis, rather than merely a nonzero ordinary inner product with : those tests can differ for a nonsymmetric matrix. If , the method cannot generate the missing component.
If the dominant value has a higher-dimensional eigenspace, the same argument replaces by the nonzero sum of all starting components in that eigenspace. The limiting direction is then that of this sum, which is still an eigenvector for . The usual algorithm assumes ; a strict dominance gap guarantees this whenever another eigenvalue is present.
An estimate retaining the sign of is the Rayleigh quotient
Continuity of this quotient at a nonzero eigenvector proves the limit even when is a nonsymmetric matrix. Alternatively, for a coordinate whose limiting eigenvector component is nonzero. The scaling factor alone tends only to .
The Gauss-Seidel method updates coordinates successively using the newest available entries:
It is well-defined for every initial vector exactly when every , equivalently when the triangular matrix is invertible. Nonsingularity of alone does not ensure this. The matrix form is
If the iterates converge to , passing to the limit gives , hence . Nonsingularity identifies as the unique solution .
Now assume is a symmetric positive-definite matrix. Testing with the coordinate vector gives , so is positive definite. The form is an inner product: bilinearity and symmetry are immediate and positivity is the hypothesis. Its Cauchy-Schwarz inequality gives
proving the triangle inequality; definiteness and absolute homogeneity are immediate. Thus is the energy norm.
Subtract the iteration from the exact equation to obtain . Hence
Using the preceding iteration also gives and therefore for , as required.
Put . Expanding the two quadratic forms and using the first identity gives the exact Gauss-Seidel energy decrease identity:
Here . If , then , so . Otherwise . Thus unless the exact solution has already been reached.
Let and , and define the scaled forward difference operator, backward difference operator and second-order central difference by
The two finite difference methods are the nonlinear systems
with the prescribed Dirichlet boundary conditions and . These equations determine the interior nodal values.
For clarity distinguish the interior and edge inner products and their norms:
The bracketed norm includes the last edge . Let , so , and put for . Direct telescoping gives discrete summation by parts:
Subtract the two nonlinear systems, multiply each equation by and sum. The resulting discrete energy identity is
The nonlinear summands are nonnegative by the factorization in (a). Using Young's inequality for products at every node gives
This also proves uniqueness of each discrete solution. Existence can be seen by minimizing, with the endpoints fixed, the strictly convex energy functional
It is a coercive function of its finitely many interior values, so it attains a minimum. Its first derivatives are ; thus its minimizer solves the scheme. The same argument applies to .
For any in the polynomial trial space, and is in that same space. The assumed orthogonality therefore gives the Pythagorean identity
Thus is the best approximation; equality is possible only when because the inner product is positive-definite.
Write the linear polynomial as . Orthogonality of to and in the weighted inner product gives
Solving yields
The weighted squared error is , providing an additional exact check. The weight's zero value at one endpoint does not destroy positive definiteness on continuous functions: a nonzero continuous function is nonzero on an interval of positive weight.
The form is symmetric and bilinear by the corresponding properties of finite real sums. Its squared norm is . Equality means vanishes at all distinct nodes. A nonzero polynomial of degree at most has at most roots, so equality forces . Thus this is an inner product on .
On it is only positive semidefinite: the nonzero node polynomial satisfies . Hence it is not an inner product on . The finite-evaluation inner product on polynomials works exactly when the evaluation map is injective on the chosen space.
Finally, if , positivity applied to and the choice give
Rearranging proves Cauchy-Schwarz inequality in its required form:
If both sides of the asserted inequality are zero. Equality holds exactly when are linearly dependent, since in the nonzero case the minimizing must have zero norm.
For any , write . The stated orthogonality makes the two summands perpendicular in the given inner product, because . The Pythagorean theorem for inner product spaces therefore gives
Equality is attained at , and positive definiteness makes it unique. Thus is the orthogonal projection of onto the polynomial subspace.
For the weighted example set . Orthogonality against the basis gives
Odd terms vanish on the symmetric interval, so and . Consequently
The weight vanishes only at one point; its integral against is positive for every nonzero continuous , so it really does define an inner product. For an optional error check, the squared minimum error is .