In mathematics, and in particular, algebra, a generalized inverse (or, g-inverse) of an element "x" is an element "y" that has some properties of an inverse element but not necessarily all of them. The purpose of constructing a generalized inverse of a matrix is to obtain a matrix that can serve as an inverse in some sense for a wider class of matrices than invertible matrices. Generalized inverses can be defined in any mathematical structure that involves associative multiplication, that is, in a semigroup. This article describes generalized inverses of a matrix formula_1. A matrix formula_2 is a generalized inverse of a matrix formula_3 if formula_4 A generalized inverse exists for an arbitrary matrix, and when a matrix has a regular inverse, this inverse is its unique generalized inverse. Motivation. Consider the linear system formula_5 where formula_1 is an formula_7 matrix and formula_8 the column space of formula_1. If formula_10 and formula_1 is nonsingular then formula_12 will be the solution of the system. Note that, if formula_1 is nonsingular, then formula_14 Now suppose formula_1 is rectangular (formula_16), or square and singular. Then we need a right candidate formula_17 of order formula_18 such that for all formula_8 formula_20 That is, formula_21 is a solution of the linear system formula_5. Equivalently, we need a matrix formula_17 of order formula_24 such that formula_25 Hence we can define the generalized inverse as follows: Given an formula_7 matrix formula_1, an formula_18 matrix formula_17 is said to be a generalized inverse of formula_1 if formula_25 The matrix formula_32 has been termed a regular inverse of formula_1 by some authors. Types. Important types of generalized inverse include: Some generalized inverses are defined and classified based on the Penrose conditions: where formula_56 denotes conjugate transpose. If formula_57 satisfies the first condition, then it is a generalized inverse of formula_1. If it satisfies the first two conditions, then it is a reflexive generalized inverse of formula_1. If it satisfies all four conditions, then it is the pseudoinverse of formula_1, which is denoted by formula_61 and also known as the Moore–Penrose inverse, after the pioneering works by E. H. Moore and Roger Penrose. It is convenient to define an formula_62-inverse of formula_1 as an inverse that satisfies the subset formula_64 of the Penrose conditions listed above. Relations, such as formula_65, can be established between these different classes of formula_62-inverses. When formula_1 is non-singular, any generalized inverse formula_68 and is therefore unique. For a singular formula_1, some generalised inverses, such as the Drazin inverse and the Moore–Penrose inverse, are unique, while others are not necessarily uniquely defined. Examples. Reflexive generalized inverse. Let formula_70 Since formula_71, formula_72 is singular and has no regular inverse. However, formula_72 and formula_74 satisfy Penrose conditions (1) and (2), but not (3) or (4). Hence, formula_74 is a reflexive generalized inverse of formula_72. One-sided inverse. Let formula_77 Since formula_72 is not square, formula_72 has no regular inverse. However, formula_80 is a right inverse of formula_72. The matrix formula_72 has no left inverse. Inverse of other semigroups (or rings). The element "b" is a generalized inverse of an element "a" if and only if formula_83, in any semigroup (or ring, since the multiplication function in any ring is a semigroup). The generalized inverses of the element 3 in the ring formula_84 are 3, 7, and 11, since in the ring formula_84: formula_86 formula_87 formula_88 The generalized inverses of the element 4 in the ring formula_84 are 1, 4, 7, and 10, since in the ring formula_84: formula_91 formula_92 formula_93 formula_94 If an element "a" in a semigroup (or ring) has an inverse, the inverse must be the only generalized inverse of this element, like the elements 1, 5, 7, and 11 in the ring formula_84. In the ring formula_84 any element is a generalized inverse of 0; however 2 has no generalized inverse, since there is no "b" in formula_84 such that formula_98. Construction. The following characterizations are easy to verify: Uses. Any generalized inverse can be used to determine whether a system of linear equations has any solutions, and if so to give all of them. If any solutions exist for the "n" × "m" linear system formula_127, with vector formula_128 of unknowns and vector formula_129 of constants, all solutions are given by formula_130, parametric on the arbitrary vector formula_131, where formula_57 is any generalized inverse of formula_1. Solutions exist if and only if formula_134 is a solution, that is, if and only if formula_135. If "A" has full column rank, the bracketed expression in this equation is the zero matrix and so the solution is unique. Generalized inverses of matrices. The generalized inverses of matrices can be characterized as follows. Let formula_3, and formula_137 be its singular-value decomposition. Then for any generalized inverse formula_138, there exist matrices formula_139, formula_140, and formula_141 such that formula_142 Conversely, any choice of formula_139, formula_140, and formula_141 for matrix of this form is a generalized inverse of formula_1. The formula_147-inverses are exactly those for which formula_148, the formula_149-inverses are exactly those for which formula_150, and the formula_151-inverses are exactly those for which formula_152. In particular, the pseudoinverse is given by formula_153: formula_154 Transformation consistency properties. In practical applications it is necessary to identify the class of matrix transformations that must be preserved by a generalized inverse. For example, the Moore–Penrose inverse, formula_155 satisfies the following definition of consistency with respect to transformations involving unitary matrices "U" and "V": formula_156. The Drazin inverse, formula_157 satisfies the following definition of consistency with respect to similarity transformations involving a nonsingular matrix "S": formula_158. The unit-consistent (UC) inverse, formula_159 satisfies the following definition of consistency with respect to transformations involving nonsingular diagonal matrices "D" and "E": formula_160. The fact that the Moore–Penrose inverse provides consistency with respect to rotations (which are orthonormal transformations) explains its widespread use in physics and other applications in which Euclidean distances must be preserved. The UC inverse, by contrast, is applicable when system behavior is expected to be invariant with respect to the choice of units on different state variables, e.g., miles versus kilometers.