<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Injective_function</id>
	<title>Injective function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Injective_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Injective_function&amp;action=history"/>
	<updated>2026-06-16T10:38:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Injective_function&amp;diff=47005&amp;oldid=prev</id>
		<title>imported&gt;Mesocyclonic93: Reverted edit by Asmae BOUKDIR1 (talk) to last version by Lemondoge</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Injective_function&amp;diff=47005&amp;oldid=prev"/>
		<updated>2026-03-31T17:47:42Z</updated>

		<summary type="html">&lt;p&gt;Reverted edit by &lt;a href=&quot;/w/index.php?title=Special:Contributions/Asmae_BOUKDIR1&quot; title=&quot;Special:Contributions/Asmae BOUKDIR1&quot;&gt;Asmae BOUKDIR1&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User_talk:Asmae_BOUKDIR1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Asmae BOUKDIR1 (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last version by Lemondoge&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{short description|Function that preserves distinctness}}&lt;br /&gt;
{{redirect|Injective|other uses|Injective module|and|Injective object}}&lt;br /&gt;
{{functions}}&lt;br /&gt;
&lt;br /&gt;
In [[mathematics]], an &amp;#039;&amp;#039;&amp;#039;injective function&amp;#039;&amp;#039;&amp;#039; (also known as &amp;#039;&amp;#039;&amp;#039;injection&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;one-to-one function&amp;#039;&amp;#039;&amp;#039;&amp;lt;ref&amp;gt;Sometimes &amp;#039;&amp;#039;&amp;#039;one-one function&amp;#039;&amp;#039;&amp;#039; in Indian mathematical education. {{cite web |title=Chapter 1: Relations and functions |url=https://ncert.nic.in/ncerts/l/lemh101.pdf |via=NCERT |url-status=live |archive-url=https://web.archive.org/web/20231226194119/https://ncert.nic.in/ncerts/l/lemh101.pdf |archive-date= December 26, 2023 }}&amp;lt;/ref&amp;gt;) is a [[function (mathematics)|function]] {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} that maps [[Distinct (mathematics)|distinct]] elements of its domain to distinct elements of its codomain; that is, {{math|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; ≠ &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;}} implies {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;) {{≠}} &amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)}} (equivalently by [[contraposition]], {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;) {{=}} &amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)}} implies {{math|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;}}). In other words, every element of the function&amp;#039;s [[codomain]] is the [[Image (mathematics)|image]] of {{em|at most}} one element of its [[Domain of a function|domain]].&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{cite web |url=https://www.mathsisfun.com/sets/injective-surjective-bijective.html |title=Injective, Surjective and Bijective |website=Math is Fun |access-date=2019-12-07 }}&amp;lt;/ref&amp;gt; The term {{em|one-to-one function}} must not be confused with {{em|one-to-one correspondence}} that refers to [[bijective function]]s, which are functions such that each element in the codomain is an image of &amp;#039;&amp;#039;exactly one&amp;#039;&amp;#039; element in the domain. &lt;br /&gt;
&lt;br /&gt;
A [[homomorphism]] between [[algebraic structure]]s is a function that is compatible with the operations of the structures. For all common algebraic structures, and, in particular for [[vector space]]s, an {{em|injective homomorphism}} is also called a {{em|[[monomorphism]]}}. However, in the more general context of [[category theory]], the definition of a monomorphism differs from that of an injective homomorphism.&amp;lt;ref&amp;gt;{{cite web |url=https://stacks.math.columbia.edu/tag/00V5 |title=Section 7.3 (00V5): Injective and surjective maps of presheaves |website=The Stacks project |access-date=2019-12-07 }}&amp;lt;/ref&amp;gt; This is thus a theorem that they are equivalent for algebraic structures; see &amp;#039;&amp;#039;{{slink|Homomorphism|Monomorphism}}&amp;#039;&amp;#039; for more details.&lt;br /&gt;
&lt;br /&gt;
A function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; that is not injective is sometimes called many-to-one.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
{{dark mode invert|[[file:Injection.svg|thumb|alt=The sets X = {1, 2, 3} and Y = {A, B, C, D}, and a function mapping 1 to D, 2 to B, and 3 to A.|An injective function, which is not also [[Surjective function|surjective]]]]}}&lt;br /&gt;
{{further|topic=notation|Function (mathematics)#Notation}}&lt;br /&gt;
Let &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; be a function whose domain is a set {{tmath| X }}. The function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is said to be &amp;#039;&amp;#039;&amp;#039;injective&amp;#039;&amp;#039;&amp;#039; provided that for all &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;X,&amp;lt;/math&amp;gt; if {{tmath|1= f(a) = f(b)}}, then {{tmath|1= a = b }}; that is, &amp;lt;math&amp;gt;f(a) = f(b)&amp;lt;/math&amp;gt; implies {{tmath|1= a = b}}. Equivalently, if {{tmath| a \neq b }}, then &amp;lt;math&amp;gt;f(a) \neq f(b)&amp;lt;/math&amp;gt; in the [[Contraposition|contrapositive]] statement.&lt;br /&gt;
&lt;br /&gt;
Symbolically,&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\forall a,b \in X, \;\; f(a)=f(b) \Rightarrow a=b,&amp;lt;/math&amp;gt;&lt;br /&gt;
which is logically equivalent to the [[Contraposition|contrapositive]],&amp;lt;ref&amp;gt;{{cite web |url=http://www.math.umaine.edu/~farlow/sec42.pdf |title=Section 4.2 Injections, Surjections, and Bijections |last=Farlow |first=S. J. |author-link=Stanley Farlow |website=Mathematics &amp;amp; Statistics - University of Maine |access-date=2019-12-06 |url-status=dead |archive-url= https://web.archive.org/web/20191207035302/http://www.math.umaine.edu/~farlow/sec42.pdf |archive-date= Dec 7, 2019 }}&amp;lt;/ref&amp;gt;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\forall a, b \in X, \;\; a \neq b \Rightarrow f(a) \neq f(b).&amp;lt;/math&amp;gt;An injective function (or, more generally, a monomorphism) is often denoted by using the specialized arrows ↣ or ↪ (for example, &amp;lt;math&amp;gt;f:A\rightarrowtail B&amp;lt;/math&amp;gt; or {{tmath| f:A\hookrightarrow B}}), although some authors specifically reserve ↪ for an [[inclusion map]].&amp;lt;ref&amp;gt;{{cite web |title=What are usual notations for surjective, injective and bijective functions? |url=https://math.stackexchange.com/questions/46678/what-are-usual-notations-for-surjective-injective-and-bijective-functions |access-date=2024-11-24 |website=Mathematics Stack Exchange |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;#039;&amp;#039;For visual examples, readers are directed to the [[#Gallery|gallery section.]]&amp;#039;&amp;#039;&lt;br /&gt;
* For any set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and any subset {{tmath| S \subseteq X }}, the [[inclusion map]] &amp;lt;math&amp;gt;S \to X&amp;lt;/math&amp;gt; (which sends any element &amp;lt;math&amp;gt;s \in S&amp;lt;/math&amp;gt; to itself) is injective. In particular, the [[identity function]] &amp;lt;math&amp;gt;X \to X&amp;lt;/math&amp;gt; is always injective (and in fact bijective).&lt;br /&gt;
* If the domain of a function is the [[empty set]], then the function is the [[empty function]], which is injective.&lt;br /&gt;
* If the domain of a function has one element (that is, it is a [[singleton set]]), then the function is always injective.&lt;br /&gt;
* The function &amp;lt;math&amp;gt;f : \R \to \R&amp;lt;/math&amp;gt; defined by &amp;lt;math&amp;gt;f(x) = 2 x + 1&amp;lt;/math&amp;gt; is injective.&lt;br /&gt;
* The function &amp;lt;math&amp;gt;g : \R \to \R&amp;lt;/math&amp;gt; defined by &amp;lt;math&amp;gt;g(x) = x^2&amp;lt;/math&amp;gt; is {{em|not}} injective, because (for example) &amp;lt;math&amp;gt;g(1) = 1 = g(-1).&amp;lt;/math&amp;gt; However, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is redefined so that its domain is the non-negative real numbers {{math|[0, +∞)}}, then &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is injective.&lt;br /&gt;
* The [[exponential function]] &amp;lt;math&amp;gt;\exp : \R \to \R&amp;lt;/math&amp;gt; defined by &amp;lt;math&amp;gt;\exp(x) = e^x&amp;lt;/math&amp;gt; is injective (but not [[Surjective function|surjective]], as no real value maps to a negative number).&lt;br /&gt;
* The [[natural logarithm]] function &amp;lt;math&amp;gt;\ln : (0, \infty) \to \R&amp;lt;/math&amp;gt; defined by &amp;lt;math&amp;gt;x \mapsto \ln x&amp;lt;/math&amp;gt; is injective.&lt;br /&gt;
* The function &amp;lt;math&amp;gt;g : \R \to \R&amp;lt;/math&amp;gt; defined by &amp;lt;math&amp;gt;g(x) = x^n - x&amp;lt;/math&amp;gt; is not injective, since, for example, {{tmath|1= g(0) = g(1) = 0}}.&lt;br /&gt;
&lt;br /&gt;
More generally, when &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; are both the [[real line]] {{tmath| \R }}, then an injective function &amp;lt;math&amp;gt;f : \R \to \R&amp;lt;/math&amp;gt; is one whose graph is never intersected by any horizontal line more than once. This principle is referred to as the {{em|[[horizontal line test]]}}.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Injections can be undone ==&lt;br /&gt;
&lt;br /&gt;
Functions with [[Inverse function#Left and right inverses|left inverses]] are always injections. That is, given {{tmath| f : X \to Y }}, if there is a function &amp;lt;math&amp;gt;g : Y \to X&amp;lt;/math&amp;gt; such that for every {{tmath| x \in X }}, {{tmath|1= g(f(x)) = x }}, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is injective. The proof is that&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;f(a) = f(b) \rightarrow g(f(a))=g(f(b)) \rightarrow a = b.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is called a [[Retract (category theory)|retraction]] of {{tmath| f }}. Conversely, &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is called a [[Retract (category theory)|section]] of {{tmath| g }}.&lt;br /&gt;
For example: &amp;lt;math&amp;gt;f:\R\rightarrow\R^2,x\mapsto(1,m)^\intercal x&amp;lt;/math&amp;gt; is retracted by {{tmath| g:y\mapsto\frac{(1,m)}{1+m^2}y }}.&lt;br /&gt;
&lt;br /&gt;
Conversely, every injection &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; with a non-empty domain has a left inverse &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt;. It can be defined by choosing an element &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; in the domain of &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and setting &amp;lt;math&amp;gt;g(y)&amp;lt;/math&amp;gt; to the unique element of the pre-image &amp;lt;math&amp;gt;f^{-1}[y]&amp;lt;/math&amp;gt; (if it is non-empty) or to &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; (otherwise).{{refn|Unlike the corresponding statement that every surjective function has a right inverse, this does not require the [[axiom of choice]], as the existence of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is implied by the non-emptiness of the domain. However, this statement may fail in less conventional mathematics such as [[constructive mathematics]]. In constructive mathematics, the inclusion &amp;lt;math&amp;gt;\{ 0, 1 \} \to \R&amp;lt;/math&amp;gt; of the two-element set in the reals cannot have a left inverse, as it would violate [[Indecomposability (constructive mathematics)|indecomposability]], by giving a [[Retract (category theory)|retraction]] of the real line to the set {0,1}.}}&lt;br /&gt;
&lt;br /&gt;
The left inverse &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is not necessarily an [[Inverse function|inverse]] of &amp;lt;math&amp;gt;f,&amp;lt;/math&amp;gt; because the composition in the other order, {{tmath| f \circ g }}, may differ from the identity on {{tmath| Y }}. In other words, an injective function can be &amp;quot;reversed&amp;quot; by a left inverse, but is not necessarily [[Inverse function|invertible]], which requires that the function is bijective.&lt;br /&gt;
&lt;br /&gt;
== Injections may be made invertible ==&lt;br /&gt;
&lt;br /&gt;
In fact, to turn an injective function &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; into a bijective (hence invertible) function, it suffices to replace its codomain &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; by its actual image &amp;lt;math&amp;gt;J = f(X).&amp;lt;/math&amp;gt; That is, let &amp;lt;math&amp;gt;g : X \to J&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;g(x) = f(x)&amp;lt;/math&amp;gt; for all {{tmath| x \in X }}; then &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is bijective. Indeed, &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be factored as {{tmath| \operatorname{In}_{J,Y} \circ g }}, where &amp;lt;math&amp;gt;\operatorname{In}_{J,Y}&amp;lt;/math&amp;gt; is the [[inclusion function]] from &amp;lt;math&amp;gt;J&amp;lt;/math&amp;gt; into {{tmath| Y }}.&lt;br /&gt;
&lt;br /&gt;
More generally, injective [[partial function]]s are called [[partial bijection]]s.&lt;br /&gt;
&lt;br /&gt;
== Other properties ==&lt;br /&gt;
{{See also|List of set identities and relations#Functions and sets}}&lt;br /&gt;
{{Dark mode invert|[[Image:Injective composition2.svg|thumb|300px|The composition of two injective functions is injective.]]}}&lt;br /&gt;
* If &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; are both injective then &amp;lt;math&amp;gt;f \circ g&amp;lt;/math&amp;gt; is injective.&lt;br /&gt;
* If &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt; is injective, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is injective (but &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; need not be).&lt;br /&gt;
* &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; is injective if and only if, given any functions {{tmath| g }}, &amp;lt;math&amp;gt;h : W \to X&amp;lt;/math&amp;gt; whenever {{tmath|1= f \circ g = f \circ h }}, then {{tmath|1= g = h }}. In other words, injective functions are precisely the [[monomorphism]]s in the [[category theory|category]] &amp;#039;&amp;#039;&amp;#039;[[Category of sets|Set]]&amp;#039;&amp;#039;&amp;#039; of sets.&lt;br /&gt;
* If &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; is injective and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is a [[subset]] of {{tmath| X }}, then {{tmath|1= f^{-1}(f(A)) = A }}. Thus, &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; can be recovered from its [[Image (function)|image]] {{tmath| f(A) }}.&lt;br /&gt;
* If &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; is injective and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; are both subsets of {{tmath| X }}, then {{tmath|1= f(A \cap B) = f(A) \cap f(B) }}.&lt;br /&gt;
* Every function &amp;lt;math&amp;gt;h : W \to Y&amp;lt;/math&amp;gt; can be decomposed as &amp;lt;math&amp;gt;h = f \circ g&amp;lt;/math&amp;gt; for a suitable injection &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and surjection {{tmath| g }}. This decomposition is unique [[up to isomorphism]], and &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; may be thought of as the [[inclusion function]] of the range &amp;lt;math&amp;gt;h(W)&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; as a subset of the codomain &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; of {{tmath| h }}.&lt;br /&gt;
* If &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; is an injective function, then &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; has at least as many elements as &amp;lt;math&amp;gt;X,&amp;lt;/math&amp;gt; in the sense of [[cardinal number]]s. In particular, if, in addition, there is an injection from {{tmath| Y }} to {{tmath| X }}, then &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; have the same cardinal number. (This is known as the [[Cantor–Bernstein–Schroeder theorem]].)&lt;br /&gt;
* If both &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt; are [[Finite set|finite]] with the same number of elements, then &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; is injective if and only if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is surjective (in which case &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is bijective).&lt;br /&gt;
* An injective function which is a homomorphism between two algebraic structures is an [[embedding]].&lt;br /&gt;
* Unlike surjectivity, which is a relation between the graph of a function and its codomain, injectivity is a property of the graph of the function alone; that is, whether a function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is injective can be decided by only considering the graph (and not the codomain) of {{tmath| f }}.&lt;br /&gt;
&lt;br /&gt;
== Proving that functions are injective ==&lt;br /&gt;
&lt;br /&gt;
A proof that a function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is injective depends on how the function is presented and what properties the function holds.&lt;br /&gt;
For functions that are given by some formula there is a basic idea. We use the definition of injectivity, namely that if {{tmath|1= f(x) = f(y) }}, then {{tmath|1= x = y }}.&amp;lt;ref&amp;gt;{{cite web |last=Williams |first=Peter |title=Proving Functions One-to-One |url=http://www.math.csusb.edu/notes/proofs/bpf/node4.html |date=Aug 21, 1996 |website=Department of Mathematics at CSU San Bernardino Reference Notes Page |archive-date= 4 June 2017 |archive-url=https://web.archive.org/web/20170604162511/http://www.math.csusb.edu/notes/proofs/bpf/node4.html }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is an example: &lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;f(x) = 2 x + 3&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: Let {{tmath| f : X \to Y }}.  Suppose {{tmath|1= f(x) = f(y) }}.  So &amp;lt;math&amp;gt;2 x + 3 = 2 y + 3&amp;lt;/math&amp;gt; implies {{tmath|1= 2 x = 2 y }}, which implies {{tmath|1= x = y }}.  Therefore, it follows from the definition that &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is injective.&lt;br /&gt;
&lt;br /&gt;
There are multiple other methods of proving that a function is injective.  For example, in calculus if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is a differentiable function defined on some interval, then it is sufficient to show that the derivative is always positive or always negative on that interval.  In linear algebra, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is a linear transformation it is sufficient to show that the kernel of &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; contains only the zero vector.  If &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is a function with finite domain it is sufficient to look through the list of images of each domain element and check that no image occurs twice on the list.&lt;br /&gt;
&lt;br /&gt;
A graphical approach for a real-valued function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; of a real variable &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the [[horizontal line test]]. If every horizontal line intersects the curve of &amp;lt;math&amp;gt;f(x)&amp;lt;/math&amp;gt; in at most one point, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is injective or one-to-one.&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
{{gallery&lt;br /&gt;
|perrow=4&lt;br /&gt;
|align=center&lt;br /&gt;
|File:Injection.svg|alt1=The sets X = {1, 2, 3} and Y = {A, B, C, D}, and a function mapping 1 to D, 2 to B, and 3 to A.|An &amp;#039;&amp;#039;&amp;#039;injective&amp;#039;&amp;#039;&amp;#039; non-surjective function (injection, not a bijection)&lt;br /&gt;
|File:Bijection.svg|alt2=The sets X = {1, 2, 3, 4} and Y = {A, B, C, D}, and a function mapping 1 to D, 2 to B, 3 to C, and 4 to A.|An &amp;#039;&amp;#039;&amp;#039;injective&amp;#039;&amp;#039;&amp;#039; surjective function (bijection)&lt;br /&gt;
|File:Surjection.svg|alt3=The sets X = {1, 2, 3, 4} and Y = {B, C, D}, and a function mapping 1 to D, 2 to B, 3 to C, and 4 to C.|A non-injective surjective function (surjection, not a bijection)&lt;br /&gt;
|File:Not-Injection-Surjection.svg|alt4=The sets X = {1, 2, 3, 4} and Y = {A, B, C, D}, and a function mapping 1 to D, 2 to B, 3 to C, and 4 to C.|A non-injective non-surjective function (also not a bijection)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{gallery&lt;br /&gt;
|perrow=3&lt;br /&gt;
|align=center&lt;br /&gt;
|File:Non-injective function1.svg|Not an injective function. Here &amp;lt;math&amp;gt;X_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;X_2&amp;lt;/math&amp;gt; are subsets of &amp;lt;math&amp;gt;X, Y_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_2&amp;lt;/math&amp;gt; are subsets of {{tmath| Y }}: for two regions where the function is not injective because more than one domain [[Element (mathematics)|element]] can map to a single range element. That is, it is possible for {{em|more than one}} &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to map to the {{em|same}} &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; in {{tmath| Y }}.&lt;br /&gt;
|File:Non-injective function2.svg|Making functions injective. The previous function &amp;lt;math&amp;gt;f : X \to Y&amp;lt;/math&amp;gt; can be reduced to one or more injective functions (say) &amp;lt;math&amp;gt;f : X_1 \to Y_1&amp;lt;/math&amp;gt; and {{tmath| f : X_2 \to Y_2 }}, shown by solid curves (long-dash parts of initial curve are not mapped to anymore). Notice how the rule &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has not changed – only the domain and range. &amp;lt;math&amp;gt;X_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;X_2&amp;lt;/math&amp;gt; are subsets of &amp;lt;math&amp;gt;X, Y_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_2&amp;lt;/math&amp;gt; are subsets of {{tmath| Y }}: for two regions where the initial function can be made injective so that one domain element can map to a single range element. That is, only one &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; maps to one &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; in {{tmath| Y }}.&lt;br /&gt;
|File:Injective function.svg|Injective functions. Diagramatic interpretation in the [[Cartesian plane]], defined by the [[Map (mathematics)|mapping]] {{tmath| f : X \to Y }}, where {{tmath|1= y = f(x) }}, {{nowrap|&amp;lt;math&amp;gt;X =&amp;lt;/math&amp;gt; domain of function}}, {{nowrap|&amp;lt;math&amp;gt;Y = &amp;lt;/math&amp;gt; [[range of a function|range of function]]}}, and &amp;lt;math&amp;gt;\operatorname{im}(f)&amp;lt;/math&amp;gt; denotes image of {{tmath| f }}. Every one &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; maps to exactly one unique &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; in {{tmath| Y }}. The circled parts of the axes represent domain and range sets — in accordance with the standard diagrams above&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* {{annotated link|Bijection, injection and surjection}}&lt;br /&gt;
* {{annotated link|Injective metric space}}&lt;br /&gt;
* {{annotated link|Monotonic function}}&lt;br /&gt;
* {{annotated link|Univalent function}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* {{citation |last1=Bartle |first1=Robert G. |title=The Elements of Real Analysis |publisher=[[John Wiley &amp;amp; Sons]] |location=New York |edition=2nd |isbn=978-0-471-05464-1 |year=1976 }}, p.&amp;amp;nbsp;17 &amp;#039;&amp;#039;ff&amp;#039;&amp;#039;.&lt;br /&gt;
* {{citation |last1=Halmos |first1=Paul R. |author1-link=Paul R. Halmos |title=[[Naive Set Theory (book)|Naive Set Theory]] |isbn=978-0-387-90092-6 |year=1974 |publisher=Springer |location=New York }}, p.&amp;amp;nbsp;38 &amp;#039;&amp;#039;ff&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
{{commons category|Injectivity}}&lt;br /&gt;
{{wiktionary|injective}}&lt;br /&gt;
* [http://jeff560.tripod.com/i.html Earliest Uses of Some of the Words of Mathematics: entry on Injection, Surjection and Bijection has the history of Injection and related terms.]&lt;br /&gt;
* [http://www.khanacademy.org/math/linear-algebra/v/surjective--onto--and-injective--one-to-one--functions Khan Academy – Surjective (onto) and Injective (one-to-one) functions: Introduction to surjective and injective functions]&lt;br /&gt;
&lt;br /&gt;
{{mathematical logic}}&lt;br /&gt;
{{authority control}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Functions and mappings]]&lt;br /&gt;
[[Category:Basic concepts in set theory]]&lt;br /&gt;
[[Category:Types of functions]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Mesocyclonic93</name></author>
	</entry>
</feed>