**One to one function** basically denotes the mapping of two sets.Â A function g is one-to-one if every element of the range of g corresponds to exactly one element of the domain of g. One-to-one is also written as 1-1. A function f() is a method, which relates elements/values of one variable to the elements/values of another variable, in such a way that elements of the second variable is identically determined by the elements of the first variable. With the help of examples, we are going to learn about this function in detail so that its concept could be easily understood. This concept is widely explained in Class 11 and Class 12 syllabus.

Apart from the one-to-one function, there are other sets of functions which denotes the relation between sets, elements or identities. They are;

- Many to One function or Surjective function
- Onto Function or Bijective function

Also, we have other types of functions in Maths which you can learn here easily, such as Identity function, Constant function, Polynomial function, etc. Let us now learn, a brief explanation with definition, its representation and example.

**Also, read:**

## Definition of One-to-One Functions

A function has many types and one of the most common functions used is the **one-to-one function or injective function. **Also, we will be learning here the inverse of this function.

One-to-One functions define that each element of one set say Set (A) is mapped with a unique element of another set, say, Set (B).

**Or **

It**Â **could be defined as each element of Set A has a unique element on Set B.

In brief, let us consider â€˜fâ€™ is a function whose domain is set A. The function is said to be injective if for all x and y in A,

Whenever f(x)=f(y), then x=y

And equivalently, if x â‰ y, then f(x) â‰ f(y)

**Formally, it is stated as, if f(x)=f(y) Â implies x=y, then f is one-to-one mapped or f is 1-1**.

Similarly, if f is a function which is one to one, with domain A and range B, then the inverse of function f is given by;

**f ^{-1}**(y) = x ; if and only if f(x) = y

A function f : X â†’ Y is said to be one to one (or injective function), if the images of distinct elements of X under f are distinct, i.e., for every x1 , x2 âˆˆ X, f(x1 ) = f(x2 ) implies x1Â = x2 . Otherwise it is called many to one function.

In Maths, an injective function or injection or one-one function is a function that comprises individuality that never maps discrete elements of its domain to the equivalent element of its codomain. We can say, every element of the codomain is the image of only one element of its domain.

**Examples of Injective Function**

- The identity function X â†’ X, is always injective.
- If function f: Râ†’ R, then f(x) = 2x is injective.
- If function f: Râ†’ R, then f(x) = 2x+1 is injective.
- If function f: Râ†’ R, then f(x) = x
^{2}is not an injective function, because here if x = -1, then f(-1) = 1 = f(1). Hence, the element of codomain is not discrete here. - If function f: Râ†’ R, then f(x) = x/2 is injective.
- If function f: Râ†’ R, then f(x) = x
^{3}is injective. - If function f: Râ†’ R, then f(x) = 4x+5 is injective.

**Horizontal Line Test**

An injective function can be determined by the horizontal line test or geometric test.

- If a horizontal line can intersect the graph of the function, more than one time then the function is not mapped as one-to-one.
- If a horizontal line can intersect the graph of the function only a single time, then the function is mapped as one-to-one.

## One to One Function Inverse

If f is a function defined as y = f(x), then the inverse function of f is x = f -1(y) i.e. f-1 defined from y to x. In inverse function co-domain of f is the domain of f -1 and the domain of f is the co-domain of f -1.

Only one-to-one functions has its inverse since these functions has one to one correspondences i.e. each element from the range correspond to one and only one domain element.Â

Let a function f : A -> B is defined, then f is said to be invertible if there exists a function g : B -> A in such a way that if we operate f{g(x)} or g{f(x)} we get the starting point or value.

Let us understand with the help of an example,

**Example: Show that the function f : X -> Y, such that f(x)= 5x + 7,**

For all x , yÂ âˆˆ N is invertible.Â

**Solution:Â **

Let y âˆˆ N -> y = f(x) = 5x + 7 for x âˆˆ N

x = (y-7)/5

If we define h : Y -> X by h(y) = (y-7)/ 5

Again hof(x) = h[ f(x) ] = h{ 5x + 7 } = 5(y-7) /Â 5 + 7 = x

And foh(y) = f[ h(y) ] = f( (y-7) / 5) = 5(y-7) /Â 5 + 7 = y

Hence f is invertible function and h is the inverse of f.

## Properties of One-One Function

- If f and g are both one to one, then f âˆ˜ g follows injectivity.
- If g âˆ˜ f is one to one, then function f is one to one but function g may not be.
- f : X â†’ Y is one-one, if and only if, given any functions g, h : P â†’ X whenever f âˆ˜ g = f âˆ˜ h, then g = h. In other words, one-one functions are exactly the monomorphisms in the category Set of sets.
- If f : X â†’ Y is one-one and P is a subset of X, then f
^{-1}Â (f(A)) = P. Thus, P can be retrieved from its image f(P). - If f : X â†’ Y is one-one and P and Q are both subsets of X, then f(P âˆ© Q) = f(P) âˆ© f(Q).
- If both X and Y are limited with the same number of elements, then f : X â†’ Y is one-one, if and only if, f is surjective or onto function.

## Examples

**Example 1:**** Let A = {1, 2, 3} and B = {a, b, c, d}. Which of the following is a one-to-one function?**

- {(1, c), (2, c)(2, c)}
- {(1,a),(2,b),(3,c)}
- {(1, b)(1, c)}

The Answer is 2.

**Explanation:** Here, option number 2 satisfies the one-to-one condition, as elements of set B(range) is uniquely mapped with elements of set A(domain).

**Example 2: ****Show that f: Râ†’ R defined as f(a) = 3a ^{3}Â – 4 is one to one function?**

**Solution:**

Let f ( a_{1} ) = f ( a_{2}Â ) for all a_{1}Â , a_{2}âˆˆR

so 3a_{1}^{3}Â – 4 = 3a_{2}^{3}Â – 4

a_{1}^{3}Â = a_{2}^{3}Â

a_{1}^{3}Â – a_{2}^{3}Â = 0

(a_{1}Â – a_{2}) (a_{1}Â + a_{1}a_{2}Â + a_{2}^{2}) = 0

a_{1}Â = a_{2}Â and (a_{1}^{2}Â + a_{1}a_{2}Â + a_{2}^{2}) = 0Â

(a_{1}^{2}Â + a_{1}a_{2}Â + a_{2}^{2}) = 0 is not considered because there is no real values

of a_{1}Â and a_{2}.

Therefore,Â the given function f is one-one.

Students are advised to solve more of such example problems, to understand the concept of one-to-one mapping clearly. To learn more about various maths concepts, register with BYJUâ€™S. Also, download its app to get personalised learning videos.