one to one

Comprehensive study notes, diagrams, and exam preparation for one to one.

One-to-One Function

Definition

A function is called one-to-one or injective if different elements of the domain always map to different elements of the codomain.

Formally, is one-to-one if:

for all .

Equivalently,

This means no two distinct inputs in the domain share the same output.


Main Content

1. Meaning of Injective Mapping

  • A one-to-one function assigns each input a unique output, so there is no repetition in outputs for different inputs.
  • If two different elements of the domain produced the same value, then the function would not be one-to-one.

For example, consider .
If , then:

So this function is one-to-one.

Another example is on all real numbers. It is not one-to-one because:

Here, two different inputs give the same output.

2. Ways to Test One-to-One Functions

Algebraic test

  • Assume and prove that . If this works, the function is injective.

Graphical test

  • A function is one-to-one if any horizontal line intersects its graph at most once. This is called the horizontal line test.

Example:

  • is one-to-one because every horizontal line cuts the graph only once.
  • is not one-to-one because many horizontal lines cut it twice.

Some functions may be one-to-one only on a restricted domain. For example:

  • is not one-to-one on
  • but it becomes one-to-one on

This is important in calculus, algebra, and function inversion.

3. Properties and Relation with Inverse Functions

  • A function has an inverse function only if it is one-to-one onto its range.
  • The inverse exists because each output corresponds to exactly one input.
  • If a function is one-to-one, then the inverse relation is also a function.

For example, if , then:

Solving for :

So the inverse is:

This is possible because is one-to-one.

A useful property:

  • If and are one-to-one, then their composition is also one-to-one.

This makes injective functions very useful in proofs and function construction.


Working / Process

  1. Identify the function and its domain and codomain clearly.
  2. Assume two arbitrary inputs and , and check whether leads to .
  3. If needed, apply the horizontal line test or restrict the domain to make the function one-to-one.

Advantages / Applications

  • Helps determine whether an inverse function exists.
  • Used in counting and comparing sizes of sets in set theory.
  • Useful in solving equations, graph analysis, and theorem proving.
  • Important in computer science, cryptography, and coding theory where unique representation matters.
  • Used in proving that two sets have the same cardinality through one-to-one correspondence.

Summary

  • A one-to-one function maps distinct inputs to distinct outputs.
  • It is also called an injective function.
  • It can be tested algebraically or by the horizontal line test.
  • It is essential for inverse functions and set comparisons.