What an orthogonal diagonalization means
A symmetric matrix may contain off-diagonal entries because the current coordinate axes are not its natural axes. An orthogonal change of coordinates separates its quadratic form into independent squared coordinates while preserving lengths and angles. Throughout this unit the scalar field is real, , and . No distinct-eigenvalue assumption is imposed.
Definition
Orthogonality, eigenvectors and spectrum
For , orthogonality means . A list is an orthonormal basis if , where is one when and zero otherwise. A square real matrix is orthogonal when . It is then invertible with inverse , so also .
An eigenvector is a nonzero vector satisfying . Its eigenvalue is , and the spectrum is the set of eigenvalues. A diagonal matrix may list an eigenvalue repeatedly. If the columns of are an orthonormal eigenbasis, then and consequently
Conversely, these identities with orthogonal say exactly that its columns form such an eigenbasis. Orthogonality concerns the columns and their lengths; it does not require .
Writing gives and . Thus the spectral theorem describes both the linear map and its quadratic form. The proof below uses compactness of the unit sphere, the regular norm constraint, Gram–Schmidt and induction; it does not assume the desired eigenbasis in advance. Distinct eigenvalues force orthogonal eigenspaces. Within a repeated eigenspace, one must still choose an orthonormal basis.
4.3 Symmetry gives orthogonal eigenvectors
For real symmetric and real vectors , if , , then
Distinct eigenvalues therefore have orthogonal eigenspaces. The stronger spectral theorem states that every real symmetric matrix, where , has an orthonormal eigenbasis, hence with and real diagonal .
Here is a proof using earlier chapters. The continuous function attains a maximum on the unit sphere, which is closed and bounded. At a maximizing unit vector , the regular constraint has nonzero gradient . The multiplier condition gives , so is a real unit eigenvector. Its perpendicular subspace is invariant: if , then . Restrict to that -dimensional subspace in an orthonormal basis; the restriction remains symmetric. Induction, beginning with dimension one, supplies an orthonormal eigenbasis there. Together with , it proves the theorem. An orthonormal basis for the perpendicular subspace is constructed by the Gram–Schmidt method.
Real inner products, their norms and the needed inequalities
An inner product on a real vector space is a map that is symmetric, linear in each argument, and positive definite: for . Linearity gives . Define . It is zero exactly at zero and satisfies . The standard example on is . Vectors are orthogonal when their inner product is zero, and a list is orthonormal when distinct members are orthogonal and each member has norm one.
If , insert into the nonnegative square . Expanding by bilinearity gives , hence . If the same inequality holds directly. Equality for means , equivalently ; the zero-vector cases also give equality. Finally expand and apply the bound to its cross term to obtain . Both sides to be square-rooted are nonnegative, so the triangle inequality follows. Thus this is a norm, and normalization of any nonzero vector divides by a positive real number. No complex bilinear convention is being used.
Finite basis existence and extension, without a counting assumption
Let be a real vector space supplied with a finite spanning list . First prove that every independent list has length at most . After insertions, maintain a spanning list consisting of and surviving old vectors. Expand in this list. Some coefficient on a surviving old vector is nonzero; otherwise would be in the span of the earlier , contradicting independence. Solve for that old vector and replace it by . The new list spans the same space and keeps every earlier insertion. If , after steps the first independent vectors already span , contradicting independence of . This proves the bound, including .
Every subspace has a finite basis. Start with the empty independent list. If its current span is not , choose one vector of outside that span. A relation with nonzero coefficient on the new vector would express it in the old span, so the enlarged list remains independent. The proved bound permits at most additions; therefore the process stops with an independent spanning list for . If , it stops immediately with the empty basis. Starting instead with any given independent list in proves that list extends to a basis of . Only a bounded finite selection is used. Finally, if two bases have sizes , use each as the finite spanning list in the bound to obtain and . Thus basis size, called dimension, is well-defined. This supplies the existence, extension and dimension facts used in rank–nullity.
Orthonormal bases and extension while retaining prescribed vectors
Suppose in addition that has a real positive-definite inner product. On an independent list , define successively
Inductively the previous are orthonormal. For , taking the inner product with gives . If , then lies in the previous span, a contradiction. Division by its positive norm is therefore legal. The displayed formula and its rearrangement show that the first old and new vectors span the same space, completing the induction. Apply this to a basis to obtain an orthonormal basis, also for a subspace. To extend a prescribed orthonormal list, first extend it to an ordinary basis by the proved theorem and then apply this construction in that order. On the prescribed first vectors no component is subtracted and the norm is one, so every prescribed vector is retained exactly. Empty lists and the zero subspace require no division. This proves the orthonormal extension used in SVD and projection existence.
Fix an integer and the Euclidean norm on . A set is bounded if it lies in some finite-radius ball, closed if its complement is open, and compact if every cover by open subsets of has a finite subcover. We use real completeness, including the nested closed interval property.
Heine–Borel in finite-dimensional Euclidean space
Theorem. A set is compact if and only if it is closed and bounded. The empty set satisfies all three properties.
Compact implies bounded. The open balls , an integer, cover . A finite subcover puts inside the largest of these balls.
Compact implies closed. Suppose and . The balls , , cover . Choose a finite subcover with centers and set . If lies in the ball centered at , the triangle inequality gives . Hence misses , so the complement is open.
Closed and bounded implies compact. Let nonempty be closed and bounded. Enclose it in a closed cube with . Suppose an open cover of has no finite subcover. Divide each coordinate interval into two closed halves. The resulting closed subcubes cover . At least one subcube has intersection with that is not finitely coverable by the given family; otherwise the finite union of the finite subcovers would cover . Select such a subcube and repeat. This produces nested closed cubes with side length and not finitely coverable, hence nonempty.
For each coordinate, the nested interval property gives a common coordinate value. Together these give . Every pair of points in has distance at most , so the intersection contains only . Choose . Then . A closed set contains such a limit: if were in its open complement, a ball around would eventually contain outside , a contradiction. Thus .
One member of the cover contains , and openness gives for some . For sufficiently large , every point of is within of , so alone covers . This contradicts the selection of . Therefore every open cover has a finite subcover. The number is finite; replacing it by infinitely many subpieces would invalidate this argument.
Continuous images and extreme values
Theorem. If is compact and is continuous relative to , then is compact. In particular, a continuous on nonempty compact is bounded and attains its maximum and minimum.
Proof. An open cover of pulls back to relatively open sets , with open in . These cover , so finitely many suffice. Their corresponding cover , proving compactness. For scalar , the image is nonempty, closed and bounded by the theorem already proved in dimension one. Let . For each , the definition of supremum supplies with . Then , and closedness places in the image. Thus the maximum is attained. Applying the same argument to gives the minimum. This proves existence, not a formula for the maximizing input.
A direct algebraic proof of the real symmetric spectral theorem
Let be a finite integer and . Use the standard real inner product. A list spans a space when every vector is a linear combination of its members; it is independent when a zero linear combination forces every coefficient to be zero. A basis has both properties. A subspace contains zero and is closed under addition and real scalar multiplication. The coordinate vectors form a basis of , as is seen by reading each coordinate. The preceding finite-basis and orthonormal-extension proofs therefore apply to this space and every one of its subspaces.
The triangle inequality in the preceding inner-product proof, applied in both directions, gives . Thus the norm is continuous. The unit sphere is nonempty because it contains when , and it is bounded because each of its points has norm one. It is closed: if , the ball of radius about misses the sphere, by the reverse triangle inequality. The proved finite-dimensional Heine–Borel theorem therefore makes the sphere compact. Since is a continuous polynomial, the proved extreme-value theorem supplies a maximum there. Choose a maximizing unit vector and put . For any with , set , and . For every real , the vector is a unit vector. Maximality and symmetry give
If , put and choose . Then
because . This contradiction proves for every . In particular, take . It is perpendicular to , and . Thus and . This establishes the first real eigenvector directly from maximality.
For , symmetry gives , so is invariant. Extend to an orthonormal basis by the preceding proved extension construction. Every vector has a unique expansion in this basis, and its coefficient on is its inner product with . Hence form an orthonormal basis of , including the empty basis when .
Induct on . Dimension one is immediate for a real scalar matrix. If , the matrix of the restriction to has entries for . These entries are real and . The induction hypothesis gives an orthonormal eigenbasis of this real symmetric matrix. Replacing each coordinate vector of that basis by preserves inner products, by bilinearity and . The definition of and invariance of show that these are eigenvectors of in . Together with they form an orthonormal eigenbasis of .
Writing this basis as , every satisfies and . Coordinatewise this is , where has columns and . Orthonormality gives , and the expansion of gives . No distinct-eigenvalue assumption is used. The argument uses real completeness through compactness, finite-dimensional basis extension and inner-product algebra; it uses no multiplier or implicit-function theorem.
A complete two-by-two diagonalization
Worked example
Finding and checking every factor
Take . Its characteristic equation is . For , solving gives the line spanned by ; for , it gives the line spanned by . Normalize these vectors:
Both columns have length one and their dot product is zero. Explicitly,
Finally check the reconstruction, rather than stopping at the eigenvalues:
Here , which is permitted. In coordinates , the quadratic form is ; the off-diagonal term has been absorbed into the choice of axes. Changing a column's sign or reordering both the columns and their corresponding diagonal entries gives another valid factorization.
Exercise S01: Rayleigh bounds and equality
For real symmetric with , let and be its smallest and largest eigenvalues. Prove that for every ,
and characterize both equality cases, allowing repeated eigenvalues.
Solution · S01: expand in an orthonormal eigenbasis
Write in the eigenbasis just proved to exist. Then and . The quotient is a weighted average of the eigenvalues with nonnegative weights summing to one; this proves both inequalities. For the upper equality,
Each summand is nonnegative, so whenever . Thus equality holds exactly for nonzero vectors in the entire eigenspace, not just a chosen eigenvector. Replacing the differences by proves the lower equality characterization. If all eigenvalues coincide, both equalities hold for every nonzero vector. The quotient is undefined at , though the corresponding unnormalized inequalities hold there with equality.
Exercise S02: read definiteness from the spectrum
A real symmetric matrix is positive semidefinite if for every real , and positive definite if for every . Prove that these properties are equivalent, respectively, to all eigenvalues being nonnegative and all eigenvalues being strictly positive. Explain the role of a zero eigenvalue.
Solution · S02: prove necessity and sufficiency
If is a unit eigenvector, . Testing these vectors proves the required sign of every eigenvalue under either definiteness assumption. Conversely, in orthogonal coordinates,
If every , this is nonnegative for every . If every and , at least one is nonzero, so the sum is strictly positive. If a zero eigenvalue occurs, its nonzero eigenvector has quadratic value zero, excluding positive definiteness. When all other eigenvalues are nonnegative, the matrix remains positive semidefinite; its zero-value vectors are exactly its kernel, since a sum of nonnegative terms vanishes precisely when every coordinate belonging to a positive eigenvalue vanishes. No corresponding sign criterion is asserted here for a nonsymmetric matrix using its eigenvalues alone.
Exercise S03: choose a basis inside a repeated eigenspace
For , find an orthonormal eigenbasis containing . Give the associated factorization and all unit vectors attaining the maximum Rayleigh quotient. Are two arbitrary eigenvectors with eigenvalue two necessarily orthogonal?
Solution · S03: repeated eigenvalues leave a choice
The eigenspace for two is ; the eigenspace for minus one is the third coordinate axis. Choose
Its columns have unit length and pairwise zero dot products, so . The first two columns are eigenvectors with eigenvalue two and the third has eigenvalue minus one. Therefore and . On the unit sphere,
The maximum is two, attained exactly when and . Arbitrary vectors in the repeated eigenspace need not be orthogonal: and have dot product one. The spectral theorem guarantees a choice of orthonormal eigenbasis, not orthogonality of every possible list of eigenvectors.