# Inverse element

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Inverse_element
> Markdown URL: https://mediated.wiki/source/Inverse_element.md
> Source: https://en.wikipedia.org/wiki/Inverse_element
> Source revision: 1346659882
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Generalization of additive and multiplicative inverses

"Invertible" redirects here. For other uses, see [Invertible (disambiguation)](/source/Invertible_(disambiguation)).

In [mathematics](/source/Mathematics), the concept of an **inverse element** generalises the concepts of [opposite](/source/Additive_inverse) (−*x*) and [reciprocal](/source/Multiplicative_inverse) (1/*x*) of numbers.

Given an [operation](/source/Operation_(mathematics)) denoted here ∗, and an [identity element](/source/Identity_element) denoted e, if *x* ∗ *y* = *e*, one says that x is a **left inverse** of y, and that y is a **right inverse** of x. (An identity element is an element such that *x* ∗ *e* = *x* and *e* ∗ *y* = *y* for all x and y for which the left-hand sides are defined.[1])

When the operation ∗ is [associative](/source/Associative), if an element x has both a left inverse and a right inverse, then these two inverses are equal and unique; they are called the *inverse element* or simply the *inverse*. Often an adjective is added for specifying the operation, such as in [additive inverse](/source/Additive_inverse), [multiplicative inverse](/source/Multiplicative_inverse), and [functional inverse](/source/Functional_inverse). In this case (associative operation), an **invertible element** is an element that has an inverse. In a [ring](/source/Ring_(mathematics)), an *invertible element*, also called a [unit](/source/Unit_(ring_theory)), is an element that is invertible under multiplication (this is not ambiguous, as every element is invertible under addition).

Inverses are commonly used in [groups](/source/Group_(mathematics))—where every element is invertible, and [rings](/source/Ring_(mathematics))—where invertible elements are also called [units](/source/Unit_(ring_theory)). They are also commonly used for operations that are not defined for all possible operands, such as [inverse matrices](/source/Inverse_matrices) and [inverse functions](/source/Inverse_function). This has been generalized to [category theory](/source/Category_theory), where, by definition, an [isomorphism](/source/Isomorphism) is an invertible [morphism](/source/Morphism).

The word 'inverse' is derived from [Latin](/source/Latin_language): *[inversus](https://en.wiktionary.org/wiki/inversus)* that means 'turned upside down', 'overturned'. This may take its origin from the case of [fractions](/source/Fraction_(mathematics)), where the (multiplicative) inverse is obtained by exchanging the numerator and the denominator (the inverse of x y {\displaystyle {\tfrac {x}{y}}} is y x {\displaystyle {\tfrac {y}{x}}} ).

In this article, the operations are [associative](/source/Associative) and have [identity elements](/source/Identity_element), except when otherwise stated and in section [§ Generalizations](#Generalizations).

## Definitions and basic properties

The concepts of *inverse element* and *invertible element* are commonly defined for [binary operations](/source/Binary_operations) that are everywhere defined (that is, the operation is defined for any two elements of its [domain](/source/Domain_of_a_function)). However, these concepts are also commonly used with [partial operations](/source/Partial_operation), that is operations that are not defined everywhere. Common examples are [matrix multiplication](/source/Matrix_multiplication), [function composition](/source/Function_composition) and composition of [morphisms](/source/Morphism) in a [category](/source/Category_(mathematics)). It follows that the common definitions of [associativity](/source/Associativity) and [identity element](/source/Identity_element) must be extended to partial operations; this is the object of the first subsections.

In this section, X is a [set](/source/Set_(mathematics)) (possibly a [proper class](/source/Proper_class)) on which a partial operation (possibly total) is defined, which is denoted with ∗ . {\displaystyle *.}

### Associativity

A partial operation is [associative](/source/Associative) if

- x ∗ ( y ∗ z ) = ( x ∗ y ) ∗ z {\displaystyle x*(y*z)=(x*y)*z}

for every *x*, *y*, *z* in X for which one of the members of the equality is defined; the equality means that the other member of the equality must also be defined.

Examples of non-total associative operations are [multiplication of matrices](/source/Matrix_multiplication) of arbitrary size, and [function composition](/source/Function_composition).

### Identity elements

Let ∗ {\displaystyle *} be a possibly [partial](/source/Partial_operation) associative operation on a set X.

An *[identity element](/source/Identity_element)*, or simply an *identity* is an element e such that

- x ∗ e = x and e ∗ y = y {\displaystyle x*e=x\quad {\text{and}}\quad e*y=y}

for every x and y for which the left-hand sides of the equalities are defined.

If e and f are two identity elements such that e ∗ f {\displaystyle e*f} is defined, then e = f . {\displaystyle e=f.} (This results immediately from the definition, by e = e ∗ f = f . {\displaystyle e=e*f=f.} )

It follows that a total operation has at most one identity element, and if e and f are different identities, then e ∗ f {\displaystyle e*f} is not defined.

For example, in the case of [matrix multiplication](/source/Matrix_multiplication), there is one *n*×*n* [identity matrix](/source/Identity_matrix) for every positive integer n, and two identity matrices of different size cannot be multiplied together.

Similarly, [identity functions](/source/Identity_function) are identity elements for [function composition](/source/Function_composition), and the composition of the identity functions of two different sets are not defined.

### Left and right inverses

If x ∗ y = e , {\displaystyle x*y=e,} where e is an identity element, one says that x is a *left inverse* of y, and y is a *right inverse* of x.

Left and right inverses do not always exist, even when the operation is total and associative. For example, addition is a total associative operation on [nonnegative integers](/source/Nonnegative_integer), which has 0 as [additive identity](/source/Additive_identity), and 0 is the only element that has an [additive inverse](/source/Additive_inverse). This lack of inverses is the main motivation for extending the [natural numbers](/source/Natural_number) into the integers.

An element can have several left inverses and several right inverses, even when the operation is total and associative. For example, consider the [functions](/source/Function_(mathematics)) from the integers to the integers. The *doubling function* x ↦ 2 x {\displaystyle x\mapsto 2x} has infinitely many left inverses under [function composition](/source/Function_composition), which are the functions that divide by two the even numbers, and give any value to odd numbers. Similarly, every function that maps n to either 2 n {\displaystyle 2n} or 2 n + 1 {\displaystyle 2n+1} is a right inverse of the function n ↦ ⌊ n 2 ⌋ , {\textstyle n\mapsto \left\lfloor {\frac {n}{2}}\right\rfloor ,} the [floor function](/source/Floor_function) that maps n to n 2 {\textstyle {\frac {n}{2}}} or n − 1 2 , {\textstyle {\frac {n-1}{2}},} depending whether n is even or odd.

More generally, a function has a left inverse for [function composition](/source/Function_composition) if and only if it is [injective](/source/Injective), and it has a right inverse if and only if it is [surjective](/source/Surjective).

In [category theory](/source/Category_theory), right inverses are also called [sections](/source/Section_(category_theory)), and left inverses are called [retractions](/source/Retraction_(category_theory)).

### Inverses

An element is *invertible* under an operation if it has a left inverse and a right inverse.

In the common case where the operation is associative, the left and right inverse of an element are equal and unique. Indeed, if l and r are respectively a left inverse and a right inverse of x, then

- l = l ∗ ( x ∗ r ) = ( l ∗ x ) ∗ r = r . {\displaystyle l=l*(x*r)=(l*x)*r=r.}

*The inverse* of an invertible element is its unique left or right inverse.

If the operation is denoted as an addition, the inverse, or [additive inverse](/source/Additive_inverse), of an element x is denoted − x . {\displaystyle -x.} Otherwise, the inverse of x is generally denoted x − 1 , {\displaystyle x^{-1},} or, in the case of a [commutative](/source/Commutative) multiplication 1 x . {\textstyle {\frac {1}{x}}.} When there may be a confusion between several operations, the symbol of the operation may be added before the exponent, such as in x ∗ − 1 . {\displaystyle x^{*-1}.} The notation f ∘ − 1 {\displaystyle f^{\circ -1}} is not commonly used for [function composition](/source/Function_composition), since 1 f {\textstyle {\frac {1}{f}}} can be used for the [multiplicative inverse](/source/Multiplicative_inverse).

If x and y are invertible, and x ∗ y {\displaystyle x*y} is defined, then x ∗ y {\displaystyle x*y} is invertible, and its inverse is y − 1 x − 1 . {\displaystyle y^{-1}x^{-1}.}

An invertible [homomorphism](/source/Homomorphism) is called an [isomorphism](/source/Isomorphism). In [category theory](/source/Category_theory), an invertible [morphism](/source/Morphism) is also called an [isomorphism](/source/Isomorphism).

## In groups

A [group](/source/Group_(mathematics)) is a [set](/source/Set_(mathematics)) with an [associative operation](/source/Associative_operation) that has an identity element, and for which every element has an inverse.

Thus, the inverse is a [function](/source/Function_(mathematics)) from the group to itself that may also be considered as an operation of [arity](/source/Arity) one. It is also an [involution](/source/Involution_(mathematics)), since the inverse of the inverse of an element is the element itself.

A group may [act](/source/Group_action) on a set as [transformations](/source/Transformation_(mathematics)) of this set. In this case, the inverse g − 1 {\displaystyle g^{-1}} of a group element g {\displaystyle g} defines a transformation that is the inverse of the transformation defined by g , {\displaystyle g,} that is, the transformation that "undoes" the transformation defined by g . {\displaystyle g.}

For example, the [Rubik's Cube group](/source/Rubik's_Cube_group) represents the finite sequences of elementary moves. The inverse of such a sequence is obtained by applying the inverse of each move in the reverse order.

## In monoids

A [monoid](/source/Monoid) is a set with an [associative operation](/source/Associative_operation) that has an [identity element](/source/Identity_element).

The *invertible elements* in a monoid form a [group](/source/Group_(mathematics)) under monoid operation.

A [ring](/source/Ring_(mathematics)) is a monoid for ring multiplication. In this case, the invertible elements are also called [units](/source/Unit_(ring_theory)) and form the [group of units](/source/Group_of_units) of the ring.

If a monoid is not [commutative](/source/Commutative_monoid), there may exist non-invertible elements that have a left inverse or a right inverse (not both, as, otherwise, the element would be invertible).

For example, the set of the [functions](/source/Function_(mathematics)) from a set to itself is a monoid under [function composition](/source/Function_composition). In this monoid, the invertible elements are the [bijective functions](/source/Bijective_function); the elements that have left inverses are the [injective functions](/source/Injective_function), and those that have right inverses are the [surjective functions](/source/Surjective_function).

Given a monoid, one may want extend it by adding inverse to some elements. This is generally impossible for non-commutative monoids, but, in a commutative monoid, it is possible to add inverses to the elements that have the [cancellation property](/source/Cancellation_property) (an element x has the cancellation property if x y = x z {\displaystyle xy=xz} implies y = z , {\displaystyle y=z,} and y x = z x {\displaystyle yx=zx} implies y = z {\displaystyle y=z} ). This extension of a monoid is allowed by [Grothendieck group](/source/Grothendieck_group) construction. This is the method that is commonly used for constructing [integers](/source/Integer) from [natural numbers](/source/Natural_number), [rational numbers](/source/Rational_number) from [integers](/source/Integer) and, more generally, the [field of fractions](/source/Field_of_fractions) of an [integral domain](/source/Integral_domain), and [localizations](/source/Localization_(commutative_algebra)) of [commutative rings](/source/Commutative_ring).

## In rings

A [ring](/source/Ring_(mathematics)) is an [algebraic structure](/source/Algebraic_structure) with two operations, *addition* and *multiplication*, which are denoted as the usual operations on numbers.

Under addition, a ring is an [abelian group](/source/Abelian_group), which means that addition is [commutative](/source/Commutative) and [associative](/source/Associative); it has an identity, called the [additive identity](/source/Additive_identity), and denoted 0; and every element x has an inverse, called its [additive inverse](/source/Additive_inverse) and denoted −*x*. Because of commutativity, the concepts of left and right inverses are meaningless since they do not differ from inverses.

Under multiplication, a ring is a [monoid](/source/Monoid); this means that multiplication is associative and has an identity called the [multiplicative identity](/source/Multiplicative_identity) and denoted 1. An *invertible element* for multiplication is called a [unit](/source/Unit_(ring_theory)). The inverse or [multiplicative inverse](/source/Multiplicative_inverse) (for avoiding confusion with additive inverses) of a unit x is denoted x − 1 , {\displaystyle x^{-1},} or, when the multiplication is commutative, 1 x . {\textstyle {\frac {1}{x}}.}

The additive identity 0 is never a unit, except when the ring is the [zero ring](/source/Zero_ring), which has 0 as its unique element.

If 0 is the only non-unit, the ring is a [field](/source/Field_(mathematics)) if the multiplication is commutative, or a [division ring](/source/Division_ring) otherwise.

In a [noncommutative ring](/source/Noncommutative_ring) (that is, a ring whose multiplication is not commutative), a non-invertible element may have one or several left or right inverses. This is, for example, the case of the [linear functions](/source/Linear_function) from an [infinite-dimensional vector space](/source/Infinite-dimensional_vector_space) to itself.

A [commutative ring](/source/Commutative_ring) (that is, a ring whose multiplication is commutative) may be extended by adding inverses to elements that are not [zero divisors](/source/Zero_divisors) (that is, their product with a nonzero element cannot be 0). This is the process of [localization](/source/Localization_(commutative_algebra)), which produces, in particular, the field of [rational numbers](/source/Rational_number) from the ring of integers, and, more generally, the [field of fractions](/source/Field_of_fractions) of an [integral domain](/source/Integral_domain). Localization is also used with zero divisors, but, in this case the original ring is not a [subring](/source/Subring) of the localisation; instead, it is mapped non-injectively to the localization.

## Matrices

[Matrix multiplication](/source/Matrix_multiplication) is commonly defined for [matrices](/source/Matrix_(mathematics)) over a [field](/source/Field_(mathematics)), and straightforwardly extended to matrices over [rings](/source/Ring_(mathematics)), [rngs](/source/Rng_(algebra)) and [semirings](/source/Semiring). However, *in this section, only matrices over a [commutative ring](/source/Commutative_ring) are considered*, because of the use of the concept of [rank](/source/Rank_(linear_algebra)) and [determinant](/source/Determinant).

If A is a *m*×*n* matrix (that is, a matrix with m rows and n columns), and B is a *p*×*q* matrix, the product AB is defined if *n* = *p*, and only in this case. An [identity matrix](/source/Identity_matrix), that is, an identity element for matrix multiplication is a [square matrix](/source/Square_matrix) (same number for rows and columns) whose entries of the [main diagonal](/source/Main_diagonal) are all equal to 1, and all other entries are 0.

An [invertible matrix](/source/Invertible_matrix) is an invertible element under matrix multiplication. A matrix over a commutative ring R is invertible if and only if its determinant is a [unit](/source/Unit_(ring_theory)) in R (that is, is invertible in R. In this case, its [inverse matrix](/source/Inverse_matrix) can be computed with [Cramer's rule](/source/Cramer's_rule).

If R is a field, the determinant is invertible if and only if it is not zero. As the case of fields is more common, one see often invertible matrices defined as matrices with a nonzero determinant, but this is incorrect over rings.

In the case of [integer matrices](/source/Integer_matrices) (that is, matrices with integer entries), an invertible matrix is a matrix that has an inverse that is also an integer matrix. Such a matrix is called a [unimodular matrix](/source/Unimodular_matrix) for distinguishing it from matrices that are invertible over the [real numbers](/source/Real_number). A square integer matrix is unimodular if and only if its determinant is 1 or −1, since these two numbers are the only units in the ring of integers.

A matrix has a left inverse if and only if its rank equals its number of columns. This left inverse is not unique except for square matrices where the left inverse equal the inverse matrix. Similarly, a right inverse exists if and only if the rank equals the number of rows; it is not unique in the case of a rectangular matrix, and equals the inverse matrix in the case of a square matrix.

## Functions, homomorphisms and morphisms

[Composition](/source/Function_composition) is a [partial operation](/source/Partial_operation) that generalizes to [homomorphisms](/source/Homomorphism) of [algebraic structures](/source/Algebraic_structure) and [morphisms](/source/Morphism) of [categories](/source/Category_(mathematics)) into operations that are also called *composition*, and share many properties with function composition.

In all the case, composition is [associative](/source/Associative).

If f : X → Y {\displaystyle f\colon X\to Y} and g : Y ′ → Z , {\displaystyle g\colon Y'\to Z,} the composition g ∘ f {\displaystyle g\circ f} is defined if and only if Y ′ = Y {\displaystyle Y'=Y} or, in the function and homomorphism cases, Y ⊂ Y ′ . {\displaystyle Y\subset Y'.} In the function and homomorphism cases, this means that the [codomain](/source/Codomain) of f {\displaystyle f} equals or is included in the [domain](/source/Domain_of_a_function) of g. In the morphism case, this means that the [codomain](/source/Codomain) of f {\displaystyle f} equals the [domain](/source/Domain_of_a_function) of g.

There is an *identity* id X : X → X {\displaystyle \operatorname {id} _{X}\colon X\to X} for every object X ([set](/source/Set_(mathematics)), algebraic structure or [object](/source/Object_(category_theory))), which is called also an [identity function](/source/Identity_function) in the function case.

A function is invertible if and only if it is a [bijection](/source/Bijection). An invertible homomorphism or morphism is called an [isomorphism](/source/Isomorphism). An homomorphism of algebraic structures is an isomorphism if and only if it is a bijection. The inverse of a bijection is called an [inverse function](/source/Inverse_function). In the other cases, one talks of *inverse isomorphisms*.

A function has a left inverse or a right inverse if and only it is [injective](/source/Injective) or [surjective](/source/Surjective), respectively. An homomorphism of algebraic structures that has a left inverse or a right inverse is respectively injective or surjective, but the converse is not true in some algebraic structures. For example, the converse is true for [vector spaces](/source/Vector_space) but not for [modules](/source/Module_(mathematics)) over a ring: a homomorphism of modules that has a left inverse of a right inverse is called respectively a [split epimorphism](/source/Split_epimorphism) or a [split monomorphism](/source/Split_monomorphism). This terminology is also used for morphisms in any category.

## Generalizations

### In a unital magma

Let S {\displaystyle S} be a unital [magma](/source/Magma_(algebra)), that is, a [set](/source/Set_(mathematics)) with a [binary operation](/source/Binary_operation) ∗ {\displaystyle *} and an [identity element](/source/Identity_element) e ∈ S {\displaystyle e\in S} . If, for a , b ∈ S {\displaystyle a,b\in S} , we have a ∗ b = e {\displaystyle a*b=e} , then a {\displaystyle a} is called a **left inverse** of b {\displaystyle b} and b {\displaystyle b} is called a **right inverse** of a {\displaystyle a} . If an element x {\displaystyle x} is both a left inverse and a right inverse of y {\displaystyle y} , then x {\displaystyle x} is called a **two-sided inverse**, or simply an **inverse**, of y {\displaystyle y} . An element with a two-sided inverse in S {\displaystyle S} is called **invertible** in S {\displaystyle S} . An element with an inverse element only on one side is **left invertible** or **right invertible**.

Elements of a unital magma ( S , ∗ ) {\displaystyle (S,*)} may have multiple left, right or two-sided inverses. For example, in the magma given by the Cayley table

* 1 2 3 1 1 2 3 2 2 1 1 3 3 1 1

the elements 2 and 3 each have two two-sided inverses.

A unital magma in which all elements are invertible need not be a [loop](/source/Loop_(algebra)). For example, in the magma ( S , ∗ ) {\displaystyle (S,*)} given by the [Cayley table](/source/Cayley_table)

* 1 2 3 1 1 2 3 2 2 1 2 3 3 2 1

every element has a unique two-sided inverse (namely itself), but ( S , ∗ ) {\displaystyle (S,*)} is not a loop because the Cayley table is not a [Latin square](/source/Latin_square).

Similarly, a loop need not have two-sided inverses. For example, in the loop given by the Cayley table

* 1 2 3 4 5 1 1 2 3 4 5 2 2 3 1 5 4 3 3 4 5 1 2 4 4 5 2 3 1 5 5 1 4 2 3

the only element with a two-sided inverse is the identity element 1.

If the operation ∗ {\displaystyle *} is [associative](/source/Associative) then if an element has both a left inverse and a right inverse, they are equal. In other words, in a [monoid](/source/Monoid) (an associative unital magma) every element has at most one inverse (as defined in this section). In a monoid, the set of invertible elements is a [group](/source/Group_(mathematics)), called the [group of units](/source/Group_of_units) of S {\displaystyle S} , and denoted by U ( S ) {\displaystyle U(S)} or *H*1.

### In a semigroup

Main article: [Regular semigroup](/source/Regular_semigroup)

The definition in the previous section generalizes the notion of inverse in group relative to the notion of identity. It's also possible, albeit less obvious, to generalize the notion of an inverse by dropping the identity element but keeping associativity; that is, in a [semigroup](/source/Semigroup).

In a semigroup *S* an element *x* is called **(von Neumann) regular** if there exists some element *z* in *S* such that *xzx* = *x*; *z* is sometimes called a *[pseudoinverse](/source/Generalized_inverse)*. An element *y* is called (simply) an **inverse** of *x* if *xyx* = *x* and *y* = *yxy*. Every regular element has at least one inverse: if *x* = *xzx* then it is easy to verify that *y* = *zxz* is an inverse of *x* as defined in this section. Another easy to prove fact: if *y* is an inverse of *x* then *e* = *xy* and *f* = *yx* are [idempotents](/source/Idempotent_element), that is *ee* = *e* and *ff* = *f*. Thus, every pair of (mutually) inverse elements gives rise to two idempotents, and *ex* = *xf* = *x*, *ye* = *fy* = *y*, and *e* acts as a left identity on *x*, while *f* acts a right identity, and the left/right roles are reversed for *y*. This simple observation can be generalized using [Green's relations](/source/Green's_relations): every idempotent *e* in an arbitrary semigroup is a left identity for *Re* and right identity for *Le*.[2] An intuitive description of this fact is that every pair of mutually inverse elements produces a local left identity, and respectively, a local right identity.

In a monoid, the notion of inverse as defined in the previous section is strictly narrower than the definition given in this section. Only elements in the Green class [*H*1](/source/Green's_relations#The_H_and_D_relations) have an inverse from the unital magma perspective, whereas for any idempotent *e*, the elements of *H*e have an inverse as defined in this section. Under this more general definition, inverses need not be unique (or exist) in an arbitrary semigroup or monoid. If all elements are regular, then the semigroup (or monoid) is called regular, and every element has at least one inverse. If every element has exactly one inverse as defined in this section, then the semigroup is called an [inverse semigroup](/source/Inverse_semigroup). Finally, an inverse semigroup with only one idempotent is a group. An inverse semigroup may have an [absorbing element](/source/Absorbing_element) 0 because 000 = 0, whereas a group may not.

Outside semigroup theory, a unique inverse as defined in this section is sometimes called a **quasi-inverse**. This is generally justified because in most applications (for example, all examples in this article) associativity holds, which makes this notion a generalization of the left/right inverse relative to an identity (see [Generalized inverse](/source/Generalized_inverse)).

### *U*-semigroups

A natural generalization of the inverse semigroup is to define an (arbitrary) unary operation ° such that (*a*°)° = *a* for all a in S; this endows S with a type ⟨2,1⟩ algebra. A semigroup endowed with such an operation is called a ***U*-semigroup**. Although it may seem that *a*° will be the inverse of a, this is not necessarily the case. In order to obtain interesting notion(s), the unary operation must somehow interact with the semigroup operation. Two classes of *U*-semigroups have been studied:[3]

- ***I*-semigroups**, in which the interaction axiom is *aa*°*a* = *a*

- **[*-semigroups](/source/Semigroup_with_involution)**, in which the interaction axiom is (*ab*)° = *b*°*a*°. Such an operation is typically denoted by *a**

Clearly a group is both an *I*-semigroup and a *-semigroup. A class of semigroups important in semigroup theory are [completely regular semigroups](/source/Completely_regular_semigroup); these are *I*-semigroups in which one additionally has *aa*° = *a*°*a*; in other words every element has commuting pseudoinverse *a*°. There are few concrete examples of such semigroups however; most are [completely simple semigroups](/source/Completely_simple_semigroup). In contrast, a subclass of *-semigroups, the [*-regular semigroups](/source/Semigroup_with_involution#Drazin) (in the sense of Drazin), yield one of best known examples of a (unique) pseudoinverse, the [Moore–Penrose inverse](/source/Moore%E2%80%93Penrose_inverse). In this case however the involution *a** is not the pseudoinverse. Rather, the pseudoinverse of x is the unique element y such that *xyx* = *x*, *yxy* = *y*, (*xy*)* = *xy*, (*yx*)* = *yx*. Since *-regular semigroups generalize inverse semigroups, the unique element defined this way in a *-regular semigroup is called the *generalized inverse* or *Moore–Penrose inverse*.

### Semirings

Main article: [Quasiregular element](/source/Quasiregular_element)

### Examples

All examples in this section involve associative operators.

#### Galois connections

The lower and upper adjoints in a (monotone) [Galois connection](/source/Galois_connection), *L* and *G* are quasi-inverses of each other; that is, *LGL* = *L* and *GLG* = *G* and one uniquely determines the other. They are not left or right inverses of each other however.

#### Generalized inverses of matrices

A [square matrix](/source/Square_matrix) M {\displaystyle M} with entries in a [field](/source/Field_(mathematics)) K {\displaystyle K} is invertible (in the set of all square matrices of the same size, under [matrix multiplication](/source/Matrix_multiplication)) if and only if its [determinant](/source/Determinant) is different from zero. If the determinant of M {\displaystyle M} is zero, it is impossible for it to have a one-sided inverse; therefore a left inverse or right inverse implies the existence of the other one. See [invertible matrix](/source/Invertible_matrix) for more.

More generally, a square matrix over a [commutative ring](/source/Commutative_ring) R {\displaystyle R} is invertible [if and only if](/source/If_and_only_if) its determinant is invertible in R {\displaystyle R} .

Non-square matrices of [full rank](/source/Full_rank) have several one-sided inverses:[4]

- For A : m × n ∣ m > n {\displaystyle A:m\times n\mid m>n} we have left inverses; for example, ( A T A ) − 1 A T ⏟ A left − 1 A = I n {\displaystyle \underbrace {\left(A^{\text{T}}A\right)^{-1}A^{\text{T}}} _{A_{\text{left}}^{-1}}A=I_{n}}

- For A : m × n ∣ m < n {\displaystyle A:m\times n\mid m<n} we have right inverses; for example, A A T ( A A T ) − 1 ⏟ A right − 1 = I m {\displaystyle A\underbrace {A^{\text{T}}\left(AA^{\text{T}}\right)^{-1}} _{A_{\text{right}}^{-1}}=I_{m}}

The left inverse can be used to determine the least norm solution of A x = b {\displaystyle Ax=b} , which is also the [least squares](/source/Least_squares) formula for [regression](/source/Regression_analysis) and is given by x = ( A T A ) − 1 A T b . {\displaystyle x=\left(A^{\text{T}}A\right)^{-1}A^{\text{T}}b.}

No [rank deficient](/source/Rank_deficient) matrix has any (even one-sided) inverse. However, the Moore–Penrose inverse exists for all matrices, and coincides with the left or right (or true) inverse when it exists.

As an example of matrix inverses, consider:

- A : 2 × 3 = [ 1 2 3 4 5 6 ] {\displaystyle A:2\times 3={\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}}}

So, as *m* < *n*, we have a right inverse, A right − 1 = A T ( A A T ) − 1 . {\displaystyle A_{\text{right}}^{-1}=A^{\text{T}}\left(AA^{\text{T}}\right)^{-1}.} By components it is computed as

- A A T = [ 1 2 3 4 5 6 ] [ 1 4 2 5 3 6 ] = [ 14 32 32 77 ] ( A A T ) − 1 = [ 14 32 32 77 ] − 1 = 1 54 [ 77 − 32 − 32 14 ] A T ( A A T ) − 1 = 1 54 [ 1 4 2 5 3 6 ] [ 77 − 32 − 32 14 ] = 1 18 [ − 17 8 − 2 2 13 − 4 ] = A right − 1 {\displaystyle {\begin{aligned}AA^{\text{T}}&={\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}}{\begin{bmatrix}1&4\\2&5\\3&6\end{bmatrix}}={\begin{bmatrix}14&32\\32&77\end{bmatrix}}\\[3pt]\left(AA^{\text{T}}\right)^{-1}&={\begin{bmatrix}14&32\\32&77\end{bmatrix}}^{-1}={\frac {1}{54}}{\begin{bmatrix}77&-32\\-32&14\end{bmatrix}}\\[3pt]A^{\text{T}}\left(AA^{\text{T}}\right)^{-1}&={\frac {1}{54}}{\begin{bmatrix}1&4\\2&5\\3&6\end{bmatrix}}{\begin{bmatrix}77&-32\\-32&14\end{bmatrix}}={\frac {1}{18}}{\begin{bmatrix}-17&8\\-2&2\\13&-4\end{bmatrix}}=A_{\text{right}}^{-1}\end{aligned}}}

The left inverse doesn't exist, because

- A T A = [ 1 4 2 5 3 6 ] [ 1 2 3 4 5 6 ] = [ 17 22 27 22 29 36 27 36 45 ] {\displaystyle A^{\text{T}}A={\begin{bmatrix}1&4\\2&5\\3&6\end{bmatrix}}{\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}}={\begin{bmatrix}17&22&27\\22&29&36\\27&36&45\end{bmatrix}}}

which is a [singular matrix](/source/Singular_matrix), and cannot be inverted.

## See also

- [Division ring](/source/Division_ring)

- [Latin square property](/source/Quasigroup#Algebra)

- [Loop (algebra)](/source/Loop_(algebra))

- [Unit (ring theory)](/source/Unit_(ring_theory))

- [Modular multiplicative inverse](/source/Modular_multiplicative_inverse)

## Notes

1. **[^](#cite_ref-1)** The usual definition of an identity element has been generalized for including the [identity functions](/source/Identity_function) as identity elements for [function composition](/source/Function_composition), and [identity matrices](/source/Identity_matrices) as identity elements for [matrix multiplication](/source/Matrix_multiplication).

1. **[^](#cite_ref-2)** Howie, prop. 2.3.3, p. 51

1. **[^](#cite_ref-3)** Howie p. 102

1. **[^](#cite_ref-4)** ["MIT Professor Gilbert Strang Linear Algebra Lecture #33 – Left and Right Inverses; Pseudoinverse"](http://ocw.mit.edu/OcwWeb/Mathematics/18-06Spring-2005/VideoLectures/detail/lecture33.htm).

## References

- M. Kilp, U. Knauer, A.V. Mikhalev, *Monoids, Acts and Categories with Applications to Wreath Products and Graphs*, De Gruyter Expositions in Mathematics vol. 29, Walter de Gruyter, 2000, [ISBN](/source/ISBN_(identifier)) [3-11-015248-7](https://en.wikipedia.org/wiki/Special:BookSources/3-11-015248-7), p. 15 (def in unital magma) and p. 33 (def in semigroup)

- Howie, John M. (1995). *Fundamentals of Semigroup Theory*. [Clarendon Press](/source/Clarendon_Press). [ISBN](/source/ISBN_(identifier)) [0-19-851194-9](https://en.wikipedia.org/wiki/Special:BookSources/0-19-851194-9). contains all of the semigroup material herein except *-regular semigroups.

- Drazin, M.P., *Regular semigroups with involution*, Proc. Symp. on Regular Semigroups (DeKalb, 1979), 29–46

- Miyuki Yamada, *P-systems in regular semigroups*, [Semigroup Forum](/source/Semigroup_Forum), 24(1), December 1982, pp. 173–187

- Nordahl, T.E., and H.E. Scheiblich, Regular * Semigroups, [Semigroup Forum](/source/Semigroup_Forum), 16(1978), 369–377.

---
Adapted from the Wikipedia article [Inverse element](https://en.wikipedia.org/wiki/Inverse_element) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Inverse_element?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
