Eigendecomposition, Eigenvectors and Eigenvalues

Eigendecomposition

Eigendecomposition(pronounced eye-gan) of a matrix is a type of decomposition that involves decomposing a square matrix into a set of eigenvectors and eigenvalues.

Note: Decomposition does NOT result in a compression of the matrix; instead, it breaks it down into constituent parts to make certain operations on the matrix easier to perform.

AA : Parent square matrix QQ : Matrix comprised of the eigenvectors Λ\Lambda: Diagonal matrix comprised of the eigenvalues Q1Q^{-1}: Inverse of the matrix comprised of the eigenvectors

Eigenvectors and Eigenvalues

An eigenvector is a vector whose direction remains unchanged when a linear transformation is applied to it. The factor by which an eigenvector is stretched or squished after a linear transformation is known as eigenvalue.

The eigenvalue lambda tells whether the special vector x is stretched or shrunk or reversed(negative value) or left unchanged.

Eigenvectors (red) do not change direction when a linear transformation is applied to them

Eigenvector of a matrix must satisfy the following equation:

A.v=λ.vMatrixvectormultiplicationVsScalarvectormultiplicationConvertscalarλtoMatrix:λ.I(IdentityMatrix)A.v=(λI).vA.v(λI).v=0(AλI).v=0A . \vec{v} = \lambda . \vec{v} \newline Matrix-vector\hspace{0.1cm}multiplication\hspace{0.2cm}Vs\hspace{0.2cm}Scalar-vector\hspace{0.1cm}multiplication \newline Convert\hspace{0.1cm}scalar \lambda\hspace{0.1cm}to\hspace{0.1cm}Matrix\hspace{0.1cm}: \lambda.I(Identity Matrix) \newline A . \vec{v} = (\lambda I) . \vec{v}\newline A . \vec{v} - (\lambda I) . \vec{v} = \vec{0} \newline (A - \lambda I) . \vec{v} = \vec{0}

AA : Parent square matrix v\vec{v} : Eigenvector of the matrix λ\lambda: Scalar eigenvalue

For eigenvector v\vec{v} to be non-zero, the only possible solution where a matrix(AA-λ\lambdaII) and vector (v\vec{v}) multiplication that results in zero is during squishification. i.e det(matrix) = 0 or det(AλI)=0det(A - \lambda I) = 0

Positive and negative definite matrix

A matrix that has only positive eigenvalues is referred to as a positive definite matrix, whereas if the eigenvalues are all negative, it is referred to as a negative definite matrix.

Calculate an eigendecomposition with NumPy

Confirm a vector is an eigenvector

A.v=λ.vA . \vec{v} = \lambda . \vec{v}

Reconstruct a matrix from eigenvectors and eigenvalues

Link:

Last updated

Was this helpful?