{{Short description|Function that is its own inverse}} {{Other uses|Involution (disambiguation)#Mathematics}} right|thumb|An involution is a function {{math|''f'' : ''X'' → ''X''}} that, when applied twice, brings one back to the starting point.

In mathematics, an '''involution''', '''involutory function''', or '''self-inverse function'''<ref>Robert Alexander Adams, ''Calculus: Single Variable'', 2006, {{isbn|0321307143}}, p. 165</ref> is a function {{mvar|f}} that is its own inverse, {{math|1=''f''(''f''(''x'')) = ''x''}} for all {{mvar|x}} in the domain of {{math|''f''}}.<ref>{{citation|last=Russell|first=Bertrand|title=Principles of mathematics|year=1903|publisher=W. W. Norton & Company, Inc|page=426|url=https://books.google.com/books?id=63ooitcP2osC&q=involution%20subject%3A%&pg=PR3|edition=2nd|isbn=9781440054167}}</ref> Equivalently, applying {{mvar|f}} twice produces the original value.

== General properties == Any involution is a bijection.

The identity map is a trivial example of an involution. Examples of nontrivial involutions include negation ({{math|''x'' ↦ −''x''}}), reciprocation ({{math|''x'' ↦ 1/''x''}}), and complex conjugation ({{math|''z'' ↦ {{overline|''z''}}}}) in arithmetic; reflection, half-turn rotation, and circle inversion in geometry; complementation in set theory; and reciprocal ciphers such as the ROT13 transformation and the Beaufort polyalphabetic cipher.

The composition {{math|''g'' ∘ ''f''}} of two involutions {{math|''f''}} and {{math|''g''}} is an involution if and only if they commute: {{math|1=''g'' ∘ ''f'' = ''f'' ∘ ''g''}}.<ref>{{citation|title=The Elements of Operator Theory|first=Carlos S.|last=Kubrusly|publisher=Springer Science & Business Media|year=2011|isbn=9780817649982|at=Problem&nbsp;1.11(a), p.&nbsp;27|url=https://books.google.com/books?id=g-UFYTO8SbMC&pg=PA27}}.</ref>

== Involutions on finite sets == The number of involutions, including the identity involution, on a set with {{math|1=''n'' = 0, 1, 2, ...}} elements is given by a recurrence relation found by Heinrich August Rothe in 1800: : <math>a_0 = a_1 = 1</math> and <math>a_n = a_{n - 1} + (n - 1)a_{n-2}</math> for <math>n > 1.</math> The first few terms of this sequence are 1, 1, 2, 4, 10, 26, 76, 232 {{OEIS|id=A000085}}; these numbers are called the telephone numbers, and they also count the number of Young tableaux with a given number of cells.<ref> {{citation | last = Knuth | first = Donald E. | author-link = Donald Knuth | location = Reading, Mass. | mr = 0445948 | pages = 48, 65 | publisher = Addison-Wesley | title = The Art of Computer Programming, Volume 3: Sorting and Searching | year = 1973 }}</ref> The number {{math|''a''{{sub|''n''}}}} can also be expressed by non-recursive formulas, such as the sum <math display="block">a_n = \sum_{m=0}^{\lfloor \frac{n}{2} \rfloor} \frac{n!}{2^m m! (n-2m)!} .</math>

The number of fixed points of an involution on a finite set and its number of elements have the same parity. Thus the number of fixed points of all the involutions on a given finite set have the same parity. In particular, every involution on an odd number of elements has at least one fixed point. This can be used to prove Fermat's two squares theorem.<ref> {{citation | last = Zagier | first = D. | author-link = Don Zagier | doi = 10.2307/2323918 | issue = 2 | journal = American Mathematical Monthly | mr = 1041893 | page = 144 | title = A one-sentence proof that every prime ''p'' ≡ 1 (mod 4) is a sum of two squares | volume = 97 | year = 1990 | jstor = 2323918 }}.</ref>

== Involution throughout the fields of mathematics ==

=== Real-valued functions ===

The graph of an involution (on the real numbers) is symmetric across the line {{math|1=''y'' = ''x''}}. This is due to the fact that the inverse of any ''general'' function will be its reflection over the line {{math|1=''y'' = ''x''}}. This can be seen by "swapping" {{mvar|x}} with {{mvar|y}}. If, in particular, the function is an ''involution'', then its graph is its own reflection.

Some basic examples of involutions include the functions <math display="block">\begin{alignat}{1} f(x) &= a-x \; , \\ f(x) &= \frac{b}{x-a}+a \end{alignat}</math>Besides, we can construct an involution by wrapping an involution {{mvar|g}} in a bijection {{mvar|h}} and its inverse (<math>h^{-1} \circ g \circ h</math>). For instance :<math display="block">\begin{alignat}{2} f(x) &= \sqrt{1 - x^2} \quad\textrm{on}\; [0;1] & \bigl(g(x) = 1-x \quad\textrm{and}\quad h(x) = x^2\bigr), \\ f(x) &= \ln\left(\frac {e^x+1}{e^x-1}\right) & \bigl(g(x) = \frac{x+1}{x-1}=\frac{2}{x-1}+1 \quad\textrm{and}\quad h(x) = e^x\bigr) \\ \end{alignat}</math> === Euclidean geometry === A simple example of an involution of the three-dimensional Euclidean space is reflection through a plane. Performing a reflection twice brings a point back to its original coordinates.

Another involution is reflection through the origin; not a reflection in the above sense, and so, a distinct example.

These transformations are examples of affine involutions.

=== Projective geometry === An involution is a projectivity of period 2, that is, a projectivity that interchanges pairs of points.<ref name=AGP>A.G. Pickford (1909) [https://archive.org/details/elementaryprojec00pickrich/page/n5 Elementary Projective Geometry], Cambridge University Press via Internet Archive</ref>{{rp|24}} * Any projectivity that interchanges two points is an involution. * The three pairs of opposite sides of a complete quadrangle meet any line (not through a vertex) in three pairs of an involution. More generally, given four points and any line not through one of them, there exists a projective involution which exchanges any point on this line with the second intersection of the (possibly degenerate) conic through the given point and the four others. This result has been called Desargues's Involution Theorem.<ref>J. V. Field and J. J. Gray (1987) ''The Geometrical Work of Girard Desargues'', (New York: Springer), p. 54</ref> Its origins can be seen in Lemma IV of the lemmas to the ''Porisms'' of Euclid in Volume VII of the ''Collection'' of Pappus of Alexandria.<ref>Ivor Thomas (editor) (1980) ''Selections Illustrating the History of Greek Mathematics'', Volume II, number 362 in the Loeb Classical Library (Cambridge and London: Harvard and Heinemann), pp. 610&ndash;3</ref> * If an involution has one fixed point and is not the identity, it has another, and consists of the correspondence between harmonic conjugates with respect to these two points. In this instance the involution is termed "hyperbolic", while if there are no fixed points it is "elliptic". In the context of projectivities, fixed points are called '''double points'''.<ref name=AGP/>{{rp|53}}

Another type of involution occurring in projective geometry is a '''polarity''' that is a correlation of period 2.<ref>H. S. M. Coxeter (1969) ''Introduction to Geometry'', pp. 244–8, John Wiley & Sons</ref>

=== Linear algebra === {{details|Involutory matrix}} In linear algebra, an involution is a linear operator {{math|''T''}} on a vector space, such that {{math|1={{itco|''T''}}{{sup|2}} = ''I''}}. Except for in characteristic 2, such operators are diagonalizable for a given basis with just {{math|1}}s and {{math|&minus;1}}s on the diagonal of the corresponding matrix. If the operator is orthogonal (an '''orthogonal involution'''), it is orthonormally diagonalizable.

For example, suppose that a basis for a vector space {{math|''V''}} is chosen, and that {{math|''e''<sub>1</sub>}} and {{math|''e''<sub>2</sub>}} are basis elements. There exists a linear transformation {{math|''f''}} that sends {{math|''e''<sub>1</sub>}} to {{math|''e''<sub>2</sub>}}, and sends {{math|''e''<sub>2</sub>}} to {{math|''e''<sub>1</sub>}}, and that is the identity on all other basis vectors. It can be checked that {{math|1=''f''(''f''(''x'')) = ''x''}} for all {{math|''x''}} in {{math|''V''}}. That is, {{math|''f''}} is an involution of {{math|''V''}}.

For a specific basis, any linear operator can be represented by a matrix {{math|''T''}}. Every matrix has a transpose, obtained by swapping rows for columns. This transposition is an involution on the set of matrices. Since elementwise complex conjugation is an independent involution, the conjugate transpose or Hermitian adjoint is also an involution.

The definition of involution extends readily to modules. Given a module {{math|''M''}} over a ring {{math|''R''}}, an {{math|''R''}} endomorphism {{math|''f''}} of {{math|''M''}} is called an involution if {{math|{{itco|''f''}}<sup>2</sup>}} is the identity homomorphism on {{math|''M''}}.

Involutions are related to idempotents; if {{math|2}} is invertible then they correspond in a one-to-one manner.

In functional analysis, Banach *-algebras and C*-algebras are special types of Banach algebras with involutions.

=== Quaternion algebra, groups, semigroups === In a quaternion algebra, an (anti-)involution is defined by the following axioms: if we consider a transformation <math>x \mapsto f(x)</math> then it is an involution if * <math> f(f(x))=x </math> (it is its own inverse) * <math> f(x_1+x_2)=f(x_1)+f(x_2) </math> and <math> f(\lambda x)=\lambda f(x) </math> (it is linear) * <math> f(x_1 x_2)=f(x_1) f(x_2) </math>

An anti-involution does not obey the last axiom but instead * <math> f(x_1 x_2)=f(x_2) f(x_1) </math>

This former law is sometimes called antidistributive. It also appears in groups as {{math|1=(''xy''){{sup|−1}} = (''y''){{sup|−1}}(''x''){{sup|−1}}}}. Taken as an axiom, it leads to the notion of semigroup with involution, of which there are natural examples that are not groups, for example square matrix multiplication (i.e. the full linear monoid) with transpose as the involution.

=== Ring theory === {{details|*-algebra}} In ring theory, the word ''involution'' is customarily taken to mean an antihomomorphism that is its own inverse function. Examples of involutions in common rings include the complex conjugation on the complex plane, its equivalent in the split-complex numbers, and the transpose operation in a matrix ring.

When ''R'' is a commutative ring and ''A'' is an algebra over ''R'', then an anti-involution &sigma; on A is a ''standard involution'' if it leaves ''R'' fixed in ''A'' and satisfies :<math>\forall a \in A \ \ \sigma(a) + a \in R \ \ \text{and}\ \ a \sigma(a) \in R.</math><ref>Alexander J. Hahn (1994) ''Quadratic algebras, Clifford algebras, and Arithmetic Witt Groups'', page 77, Universitext, Springer, {{isbn|0-387-94110-X}}</ref><ref>{{cite book | last=Knus | first=Max-Albert | authorlink=Max-Albert Knus | title=Quadratic and Hermitian forms over Rings | series=Grundlehren der Mathematischen Wissenschaften | volume=294 | location=Berlin etc. | publisher=Springer-Verlag | year=1991 | isbn=3-540-52117-8 | zbl=0756.11008 | page=3 }}</ref>

=== Group theory === In group theory, an element of a group is an involution if it has order 2; that is, an involution is an element {{math|''a''}} such that {{math|''a'' ≠ ''e''}} and {{math|1=''a''<sup>2</sup> = ''e''}}, where {{math|''e''}} is the identity element.<ref> John S. Rose. [https://books.google.com/books?id=j-I7Zpq3GdIC "A Course on Group Theory"]. p. 10, section 1.13. </ref> Originally, this definition agreed with the first definition above, since members of groups were always bijections from a set into itself; that is, ''group'' was taken to mean ''permutation group''. By the end of the 19th century, ''group'' was defined more broadly, and accordingly so was ''involution''.

A permutation is an involution if and only if it can be written as a finite product of disjoint transpositions.

The involutions of a group have a large impact on the group's structure. The study of involutions was instrumental in the classification of finite simple groups.

An element {{math|''x''}} of a group {{math|''G''}} is called strongly real if there is an involution {{math|''t''}} with&nbsp;{{math|1=''x''{{sup|''t''}} = ''x''{{sup|−1}}}} (where&nbsp;{{math|1=''x''{{sup|''t''}} = ''x''{{sup|−1}} = ''t''{{sup|−1}} ⋅ ''x'' ⋅ ''t''}}).

Coxeter groups are groups generated by a set {{math|''S''}} of involutions subject only to relations involving powers of pairs of elements of {{math|''S''}}. Coxeter groups can be used, among other things, to describe the possible regular polyhedra and their generalizations to higher dimensions.

=== Mathematical logic === The operation of complement in Boolean algebras is an involution. Accordingly, negation in classical logic satisfies the ''law of double negation'': {{math|¬¬''A''}} is equivalent to {{math|''A''}}.

Generally in non-classical logics, negation that satisfies the law of double negation is called ''involutive''. In algebraic semantics, such a negation is realized as an involution on the algebra of truth values. Examples of logics that have involutive negation are Kleene and Bochvar three-valued logics, Łukasiewicz many-valued logic, the fuzzy logic 'involutive monoidal t-norm logic' (IMTL), etc. Involutive negation is sometimes added as an additional connective to logics with non-involutive negation; this is usual, for example, in t-norm fuzzy logics.

The involutiveness of negation is an important characterization property for logics and the corresponding varieties of algebras. For instance, involutive negation characterizes Boolean algebras among Heyting algebras. Correspondingly, classical Boolean logic arises by adding the law of double negation to intuitionistic logic. The same relationship holds also between MV-algebras and BL-algebras (and so correspondingly between Łukasiewicz logic and fuzzy logic BL), IMTL and MTL, and other pairs of important varieties of algebras (respectively, corresponding logics).

In the study of binary relations, every relation has a converse relation. Since the converse of the converse is the original relation, the conversion operation is an involution on the category of relations. Binary relations are ordered through inclusion. While this ordering is reversed with the complementation involution, it is preserved under conversion.

=== Computer science === The XOR bitwise operation with a given value for one parameter is an involution on the other parameter. XOR masks in some instances were used to draw graphics on images in such a way that drawing them twice on the background reverts the background to its original state.

Two special cases of this, which are also involutions, are the bitwise NOT operation which is XOR with an all-ones value, and stream cipher encryption, which is an XOR with a secret keystream.

This predates binary computers; practically all mechanical cipher machines implement a reciprocal cipher, an involution on each typed-in letter. Instead of designing two kinds of machines, one for encrypting and one for decrypting, all the machines can be identical and can be set up (keyed) the same way.<ref>{{cite book |title=Classical Cryptology |first=Greg |last=Goebel |chapter-url=http://vc.airvectors.net/ttcode_05.html |chapter=The Mechanization of Ciphers |year=2018 }}</ref>

Another involution used in computers is an order-2 bitwise permutation. For example, a color value stored as integers in the form {{math|(''R'', ''G'', ''B'')}}, could exchange {{math|''R''}} and {{math|''B''}}, resulting in the form {{math|(''B'', ''G'', ''R'')}}: {{math|1=''f''(''f''(RGB)) = RGB, ''f''(''f''(BGR)) = BGR}}.

=== Physics === Legendre transformation, which converts between the Lagrangian and Hamiltonian, is an involutive operation.

Integrability, a central notion of physics and in particular the subfield of integrable systems, is closely related to involution, for example in context of Kramers–Wannier duality.

== See also == * Atbash * Automorphism * Idempotence * ROT13

== References == {{reflist}}

== Further reading == * {{cite journal |title=Quaternion involutions and anti-involutions |first1=Todd A. |last1=Ell |first2=Stephen J. |last2=Sangwine |journal=Computers & Mathematics with Applications |volume=53 |issue=1 |year=2007 |pages=137–143 |doi=10.1016/j.camwa.2006.10.029|arxiv=math/0506034 |s2cid=45639619 }} * {{citation | last1=Knus | first1=Max-Albert | author1-link=Max-Albert Knus |last2=Merkurjev | first2=Alexander | author2-link=Alexander Merkurjev | last3=Rost | first3=Markus | author3-link=Markus Rost | last4=Tignol | first4=Jean-Pierre | author4-link=Jean-Pierre Tignol | title=The Book of Involutions | others=With a preface by J. Tits | zbl=0955.16001 | series=Colloquium Publications | publisher=American Mathematical Society | volume=44 | location=Providence, RI | year=1998 | isbn=0-8218-0904-0 }} * {{springer|title=Involution|id=p/i052510}}

== External links == * {{Commonscatinline|Involution}}

Category:Algebraic properties of elements Category:Functions and mappings