Vectors and matrices

A−1A^{-1} Inverse

The matrix inverse, A⁻¹A = I; for a function, its inverse function; for a number, 1/x.

In ML papers

For a square matrix, A−1A^{-1} is the matrix that undoes AA: A−1A=AA−1=IA^{-1}A = AA^{-1} = I. It exists only when AA is invertible (non-zero determinant). Gaussian densities and closed-form least squares, (X⊤X)−1X⊤y(X^\top X)^{-1}X^\top \mathbf{y}, use it. For a number, x−1=1/xx^{-1} = 1/x; for a function, f−1f^{-1} is the inverse function, not 1/f1/f.

How to type it

LaTeXShows
A^{-1}A−1A^{-1}

A worked example

(2004)−1=(0.5000.25)\begin{pmatrix} 2 & 0 \\ 0 & 4 \end{pmatrix}^{-1} = \begin{pmatrix} 0.5 & 0 \\ 0 & 0.25 \end{pmatrix}

A diagonal matrix inverts entry by entry.

Common confusions

Equations that use it

Related

In\mathbf{I}_nIdentity matrixx⊤y\mathbf{x}^\top \mathbf{y}Transposedet⁡(A)\det(A)Determinantx2,  βt,  WQx^2,\; \beta^t,\; W^QSuperscript (power or label)

Decode this example →