Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

One to One Function Explained: Definition, Tests, Examples

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

How to Quickly Check if a Function is One to One?

The concept of one to one function plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Understanding this topic helps in advanced algebra, calculus, and computer science logic. It also builds a strong foundation for competitive exams like JEE and Olympiads.


What Is One to One Function?

A one to one function (also called an injective function) is a function in which every output value is paired with only one unique input value. This means that no two different elements in the domain map to the same element in the range. You’ll find this concept applied in areas such as inverse functions, types of functions, and data encryption.


Key Formula for One to One Function

Here’s the standard formula to check for a one to one function:

If \( f(x_1) = f(x_2) \Rightarrow x_1 = x_2 \), then f is a one to one function.


Cross-Disciplinary Usage

One to one function is not only useful in Maths but also plays an important role in Physics, Computer Science, and daily logical reasoning. For example, in computer science, one to one mapping helps in creating unique keys in databases. Students preparing for JEE or NEET will see the relevance of this topic in questions about relations and functions and onto functions.


Step-by-Step Illustration

  1. Suppose \( f(x) = 2x + 3 \). Is this function one to one?
  2. 1. Assume \( f(a) = f(b) \).
    2. So, \( 2a + 3 = 2b + 3 \)
    3. Subtract 3 from both sides: \( 2a = 2b \)
    4. Divide by 2: \( a = b \)
    Conclusion: Since a = b, the function is one to one.

Speed Trick or Vedic Shortcut

A quick way to test if a function is one to one is the horizontal line test. On the graph of a function, if any horizontal line meets the curve at most once, then the function is one to one. This is a popular shortcut in exams.


Example Trick: The function \( f(x) = x^2 \) fails the horizontal line test because the line y = 4 cuts the parabola at both x = 2 and x = -2. So, it’s not a one to one function!


Shortcuts like this save time in competitive exams. Vedantu’s live sessions provide such tips and tests to help students become accurate and fast.


Try These Yourself

  • Check if \( f(x) = 3x - 7 \) is a one to one function.
  • Is \( f(x) = x^2 \) a one to one function on all real numbers? What about on \( x \geq 0 \)?
  • Draw the graph of \( y = x^3 \) and perform the horizontal line test.
  • Given the set { (2,5), (3,6), (7,8) }, is this relation a one to one function?

Frequent Errors and Misunderstandings

  • Confusing one to one function with one to many or many to one mappings.
  • Assuming a function that passes the vertical line test is also one to one.
  • Forgetting to check the domain when testing if a function is one to one (e.g., \( x^2 \) is one to one on x ≥ 0 but not on all real numbers).

One to One vs Many to One: Quick Comparison

Function Type Definition Example
One to One Every output has exactly one unique input \( f(x) = x + 5 \)
Many to One Multiple inputs have the same output \( f(x) = x^2 \) (since 2 and -2 both map to 4)

Relation to Other Concepts

The idea of one to one function connects closely with topics such as inverse functions (only one to one functions have inverses) and bijective functions (which are both one to one and onto). Mastering this concept helps with understanding advanced function properties and composition of functions in higher maths.


Classroom Tip

A quick way to remember one to one functions: Each y comes from only one x. Draw arrows in a set diagram—if two arrows ever land on the same output, it’s not one to one! Vedantu’s teachers often use coloured card activities in live classes to make this simple and visual.


Wrapping It All Up

We explored one to one function—from definition, key tests like the horizontal line test, quick tricks, worked examples, and links to other key Math concepts. Continue practicing with Vedantu’s problem sets and interactive sessions to become confident in solving questions on one to one functions and their inverses.


Explore related concepts: Onto Function | Inverse Function | Types of Relations | Types of Functions | Bijective Function


Best Seller - Grade 12 - JEE
View More>
Previous
Next

FAQs on One to One Function Explained: Definition, Tests, Examples

1. What is a one-to-one function (or injective function) in mathematics?

A one-to-one function, also known as an injective function, is a function where each element in the range corresponds to exactly one unique element in the domain. In simpler terms, no two different inputs produce the same output. For example, f(x) = x + 2 is a one-to-one function, but f(x) = x² is not (because both 2 and -2 map to 4).

2. How can I determine if a function is one-to-one using its graph?

Use the horizontal line test. If any horizontal line intersects the graph at most once, the function is one-to-one. If a horizontal line intersects the graph more than once, the function is not one-to-one.

3. How can I check if a function is one-to-one algebraically?

Assume f(a) = f(b) for any two inputs a and b. If this implies that a = b, then the function is one-to-one. If f(a) = f(b) does *not* necessarily mean a = b, then the function is not one-to-one.

4. What is the difference between a one-to-one function and a many-to-one function?

A one-to-one function maps each input to a unique output. A many-to-one function maps multiple inputs to the same output. For example, f(x) = x + 1 is one-to-one, while f(x) = x² is many-to-one.

5. Why are one-to-one functions important for finding inverse functions?

Only one-to-one functions have inverse functions. This is because an inverse function reverses the mapping, and a one-to-one function ensures a unique reverse mapping exists for every output.

6. Is f(x) = x² a one-to-one function? Why or why not?

No, f(x) = x² is not a one-to-one function. This is because, for example, f(2) = f(-2) = 4. The horizontal line test would also show this.

7. Is f(x) = x + 5 a one-to-one function? Why or why not?

Yes, f(x) = x + 5 is a one-to-one function. If f(a) = f(b), then a + 5 = b + 5, which implies a = b. Each input produces a unique output.

8. Can you give an example of a real-world situation that can be modeled by a one-to-one function?

A person's Social Security number uniquely identifies them; this is a one-to-one relationship. Each social security number maps to only one person.

9. What is the relationship between one-to-one functions and the horizontal line test?

The horizontal line test is a graphical method to determine if a function is one-to-one. If every horizontal line intersects the graph of the function at most once, then the function is one-to-one.

10. If I compose two one-to-one functions, is the resulting function also one-to-one?

Yes, the composition of two one-to-one functions is always one-to-one. This is because the uniqueness of the mapping is preserved through the composition.

11. How do I find the inverse of a one-to-one function?

1. Set y = f(x).
2. Swap x and y.
3. Solve for y in terms of x.
4. The resulting expression for y is the inverse function, f⁻¹(x).