Apply the least-squares normal equations to the transformed matrix and vector:
or equivalently
Here . A unique minimizing vector exists when the weighted design matrix has full column rank; the equations themselves remain valid without that assumption.
Place observations in rows of the data matrix . Since the coordinate sample means are zero, the Gram matrix of its columns is
The sample covariance matrix is ; using divisor three instead changes eigenvalues by a common factor and leaves principal component loadings unchanged. For , the characteristic polynomial is
For the larger eigenvalue , the eigenvector equation gives , so . Normalize to unit Euclidean norm and choose . An orthogonal unit eigenvector for is . Therefore
The sample variances of these principal components are and , respectively. Their principal component scores for observations are
Either eigenvector may be multiplied by without changing its principal component direction or its variance. No coordinate standardization is applied here: that would instead be principal component analysis on a correlation matrix.
For centred data, classical multidimensional scaling from Euclidean distances constructs the observation Gram matrix
where . By part (i), its nonzero eigenvalues agree with those of , the matrix used for principal component analysis before dividing by a covariance normalization.
If is the unit observation-space eigenvector, the corresponding classical multidimensional scaling coordinate column is
That is exactly the column of principal component scores. Consequently classical multidimensional scaling of Euclidean pairwise distances recovers the same reduced coordinates as principal component analysis, up to signs and arbitrary orthogonal transformations within equal-eigenvalue subspaces. Distances alone cannot fix translation or orientation. The equivalence presumes centred data and Euclidean distances; general dissimilarities need not yield a positive semidefinite Gram matrix or a corresponding data covariance matrix.
The premise contains a wording error: must be a nonzero eigenvalue, rather than a nonzero eigenvector. Let satisfy
Then , since otherwise would force . Multiplying by gives
Thus , with eigenvector . Conversely, applying maps an eigenvector of with nonzero eigenvalue to one of .
These maps are inverses up to the factor on the corresponding eigenspaces, so the nonzero eigenvalues have equal multiplicities. Their zero eigenvalues need not have the same multiplicity because the two matrices can have different sizes. For a unit eigenvector and real , the normalized partner is , since .
A cyclic rotation moves the first character to the end without changing the cyclic order of the remaining characters. Starting with the specified terminator-first row and repeatedly rotating left gives the following matrix; its row order is only a construction order, not a sorting order:
Under lexicographic order, compare characters from left to right, using . The sorted cyclic rotation matrix is therefore
The Burrows-Wheeler transform is the last column, read downwards, so the transformed string is
To invert the Burrows-Wheeler transform, begin with six empty rows. At every iteration prepend the supplied last-column characters in their fixed row order, then sort the resulting rows in lexicographic order. After iterations the rows contain the length- prefixes of the sorted cyclic rotations. For example, the first two iterations give
Each iteration works because sorting the preceding character together with the already reconstructed prefix restores the ordering of the next-longer prefixes. Six iterations give the completed matrix
The original linear string is the unique row ending in the terminator, hence
As a check, the reconstructed matrix's final column is precisely the supplied Burrows-Wheeler transform.
Build an FM-index: store the Burrows-Wheeler transform, cumulative character counts , and a structure supporting fast rank queries for . Then each step of backward search uses two rank queries instead of rescanning the last column. A wavelet tree or suitably checkpointed counts can supply these queries while keeping memory manageable. The counting cost is proportional to query length times the rank query cost, rather than repeatedly scanning the whole genome.[ref]
To recover genomic positions, store a sampled suffix array and follow the last-to-first mapping to a sampled position, adding the number of steps taken. More samples trade storage for faster position recovery. Index character counts and sample positions, rather than storing the quadratic-size full cyclic rotation matrix.
Scaling the whole matrix scales all rows. The multilinearity of the determinant therefore gives
This includes for .
For an integer , repeated multiplicativity of the determinant, with the inverse identity for negative powers, gives
For an arbitrary real , an invertible real matrix does not by itself define a unique real matrix power. For example, the scalar matrix has no real square root. If a matrix logarithm has been chosen with and is defined as , the matrix exponential determinant identity gives the precise formula
This cannot always be replaced by an independently chosen scalar branch of . For instance, has the complex square root , whose determinant is , while the principal scalar square root of is . For a positive-definite symmetric matrix with its usual positive spectral power, all eigenvalues are positive and the familiar formula holds for every real .
The equations are an eigenvalue problem for the matrix
A nonzero solution requires . Expanding gives
Row reduction gives the complete eigenspaces:
For the solutions form the plane through the origin; for they form a line through the origin. Exclude the zero vector when requiring a nontrivial solution. The repeated eigenvalue has a two-dimensional eigenspace; there are three independent eigenvectors in total. This matrix is not symmetric, so its different eigenspaces need not be mutually orthogonal.
Choose the linear relation
Then the displayed tensor contraction is , precisely the th vector component of by the vector triple product identity. The matrix need not be a symmetric matrix.
Write the matrix trace in Einstein summation convention:
The entries are scalars, so their multiplication commutes, and the two summed indices may be relabelled. The argument works for square matrices of any finite size, and also for rectangular of compatible opposite shapes.
The characteristic polynomial factors as . Thus in algebraic multiplicity. An orthonormal basis of corresponding eigenvectors is
Direct multiplication verifies , , . Their mutual Hermitian inner products vanish and each has norm one, which proves linear independence. For the repeated eigenvalue, Gaussian elimination gives
Hence . The second equality follows from the rank-nullity theorem and agrees with the two-dimensional eigenspace. A repeated eigenvalue alone would not imply a two-dimensional eigenspace for an arbitrary matrix; here the Hermitian matrix is diagonalizable.
The linear system of differential equations has matrix
The columns of are eigenvectors of . The change of basis therefore gives , , with independent first-order linear differential equations
The initial velocity gives , . Transforming back, , yields the real velocity vector components
These also cover . Complex coordinates have decoupled a real rotation without making the physical velocity complex.
For a finite matrix, the series defining the matrix exponential converges absolutely in any matrix norm, because . Thus the Hermitian adjoint may be taken term by term. Since ,
Therefore the matrix exponential of a Hermitian matrix is Hermitian.
If is a diagonal matrix, then . Summing each entry separately gives
For the Hermitian matrix case each is real. The diagonal entry formula itself remains valid for complex diagonal entries.
The upper-triangular matrix has distinct eigenvalues , with respective eigenvectors and . Thus
The defining power series shows that the matrix exponential respects similarity. Applying solution to the diagonal factor gives
As a direct series check, for ; summing this entry divided by gives the same off-diagonal expression.
If is an matrix, the product is defined in ordinary matrix multiplication only when . Hence the defining equation of an idempotent matrix already requires equal row and column counts:
Equivalently, an idempotent linear map is an endomorphism, so the same vector space is both its domain and codomain.
Write . The two off-diagonal entries of give
or . If both vanish, is diagonal; if either is nonzero, the trace must be one. Thus the trace criterion for a two-by-two idempotent is
For the diagonal case, idempotence further forces . The stated alternative is only necessary: has trace one but its square is , so it is not idempotent. Among two-by-two matrices of trace one, the additional condition is sufficient by the Cayley-Hamilton theorem, which gives .
The linear system has the matrix form
The first equation gives . Substitute it into the second to obtain . Substitution into the third gives . Consequently
It follows that
Substitution verifies all three equations. Also , so this solution of a linear system is unique.