**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. 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.+

## 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

**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,

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

For all x , yÂ âˆˆ N is an 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.

## 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 \(\rightarrow\) 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}Â \(\in\) 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.