Special matrix classes encode useful invariants: length preservation, symmetry, projection or positive energy. Recognizing the class changes the method we should use. A symmetric matrix need not be positive definite, and an idempotent matrix need not represent an orthogonal projection. We establish these distinctions and their computational consequences.
1 Orthogonal and permutation matrices
A square real matrix is orthogonal when . This means its columns form an orthonormal basis. The identity gives , since a square matrix with independent columns is invertible. Therefore as well.
It preserves inner products: , hence lengths and angles. Conversely, preserving every length forces inner-product preservation by expanding , giving . Determinants satisfy , so . Determinant alone is not sufficient for orthogonality: changes lengths while keeping determinant 1.
Permutation matrices reorder coordinates and are orthogonal because their columns are reordered standard basis vectors. They encode the row exchanges in pivoted elimination . A plane rotation matrix is orthogonal with determinant 1; reflection across a line is orthogonal with determinant .
2 Symmetric and skew-symmetric parts
A real matrix is symmetric if and skew-symmetric if . Every square real matrix decomposes uniquely as
The displayed terms have the required transpose properties. Uniqueness follows because a matrix both symmetric and skew-symmetric equals its negative, hence is zero over the reals.
For every real , : transposing the scalar gives . Thus the quadratic form depends only on the symmetric part. Symmetric matrices have real orthonormal eigenbases by the earlier spectral theorem. Skew-symmetric matrices need not have real eigenbases; rotates by a right angle and has no nonzero real eigenvector.
A symmetric matrix is positive definite when for , and positive semidefinite when the inequality is nonnegative. Orthogonal diagonalization shows these correspond to all positive or all nonnegative eigenvalues. Symmetry alone imposes neither condition: is symmetric but indefinite.
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.
Finite trace cyclicity and the rank of an idempotent
For a square matrix , define . If is real and is real , finite sums and scalar commutativity give
For invertible square , this proves . If , every vector is , the two terms belonging to image and kernel, whose intersection is zero. The proved finite-basis theorem supplies bases for these two subspaces; concatenating them gives a basis of the whole space. If the image basis has length , the matrix in that basis is . Trace invariance gives . This argument does not assume that an idempotent is symmetric or that the chosen basis is orthonormal.
3 Idempotents and orthogonal projections
A matrix is idempotent when . Every vector decomposes as , with the first part in and the second in . Their intersection is zero: a vector in the image is fixed by , so if also in the kernel it vanishes. Thus an idempotent is a projection along its kernel, but those two subspaces need not be perpendicular.
Theorem. A real idempotent is an orthogonal projection exactly when it is symmetric.
Proof. If , then for and , . Thus image and kernel are orthogonal. Conversely, if it projects orthogonally, choose an orthonormal basis of its image followed by one of its kernel. In that basis the matrix is , symmetric; an orthogonal coordinate change preserves symmetry.
For , , but image is the horizontal axis and kernel is the line , not its orthogonal complement. It is an oblique projection. The eigenvalues of every idempotent are 0 or 1, and the image/kernel decomposition gives an eigenbasis, so its trace equals rank even when it is not symmetric.
Cholesky existence and uniqueness with the induction completed
Let be real symmetric positive definite of size . For , with and the unique lower triangular factor with positive diagonal is . For , write . Positivity on the first coordinate vector gives . For every nonzero the vector is nonzero, so expanding its quadratic form gives
Thus the symmetric Schur complement is positive definite. By induction for a unique lower triangular with positive diagonal. Set
Block multiplication gives the upper-left entry , lower-left block , and lower-right block , so . Its diagonal is positive. Conversely any such factor has upper-left entry satisfying , hence ; its lower first column satisfies , hence . Its trailing block must factor the same , and the inductive uniqueness makes that block . This proves uniqueness for the whole matrix. A lower triangular matrix with nonzero diagonal is invertible by successive substitution, so the converse also follows: is symmetric and for every .
4 Cholesky factorization for positive matrices
A symmetric positive-definite matrix has a unique factorization with lower triangular and positive diagonal. A proof proceeds by induction. Write
Completing the square shows the Schur complement is positive definite: evaluate the original quadratic form at first coordinate . Factor the complement inductively, take and lower first column , and multiply to verify . The entries and positive diagonal are forced sequentially, giving uniqueness.
Worked example. For ,
It gives for nonzero and solves repeated systems by two triangular substitutions. This is a structure-specific factorization, not a claim that every symmetric matrix has Cholesky without pivoting or modification.
5 Graded practice
E1 Foundation. Decompose into symmetric and skew-symmetric parts.
E2 Projection. Show is an orthogonal projection. Find image and kernel.
E3 Positive definiteness. For which real is positive definite?
E4 Factorization. Find the Cholesky factor of .
6 Full solutions
S1. and . Their sum is and their transposes have the required signs.
S2. Direct multiplication gives and . It projects onto and has kernel , perpendicular subspaces.
S3. Complete the square: . It is positive definite exactly when . Equality gives semidefiniteness, and smaller gives an indefinite direction.
S4. The positive first diagonal is 3, the lower-left entry is 1, and the remaining squared diagonal is . Thus , whose product with its transpose is the given matrix.
Summary
Orthogonal matrices preserve geometry; symmetric and skew parts separate quadratic effects from antisymmetric ones. Idempotence gives a projection, while symmetry makes it orthogonal. Positive definiteness supports Cholesky and stable geometric interpretations, but each conclusion depends on the full matrix-class hypotheses.