Types of Functions

Function

A relation in which each input has exactly one output. \(f:A\to B\), domain A, codomain B, range = set of outputs.

  • One-one (injective): different inputs give different outputs.
  • Onto (surjective): range = codomain.
  • Bijective: both.

For |A| = m, |B| = n: total functions \(n^m\); one-one (m ≤ n) \(n(n-1)\cdots(n-m+1)\); bijections (m = n) \(n!\).

Example 1. Functions from a 3-set to a 2-set.
\(2^3=8\).Example 2. One-one functions from a 2-set to a 3-set.
\(3\cdot2=6\).Example 3. Onto functions from a 3-set to a 2-set.
\(8-2=6\).Example 4. Is \(f(x)=x^2\) on R one-one?
No: \(f(2)=f(-2)=4\).

Common mistakes

  • Forgetting to specify the codomain when deciding if a function is onto.

Revision notes

  • One-one, onto, bijective.
  • Function: A relation in which each input has exactly one output.

Avoid these mistakes:

  • Forgetting to specify the codomain when deciding if a function is onto.

Formulas

Number of relations
\[ 2^{mn} \]
|A|=m, |B|=n
Bijections
\[ n! \]
|A|=|B|=n
Inverse of a composition
\[ (g\circ f)^{-1}=f^{-1}\circ g^{-1} \]
bijective f, g

Practice questions (MCQ)

1. One-one means:

2. Onto means:

3. Functions from a 3-set to a 2-set:

4. One-one functions from a 2-set to a 3-set:

5. Onto functions from a 3-set to a 2-set:

6. Bijections on a 4-set:

7. f(x) = x² on R is:

8. f(x) = x³ on R is:

9. The greatest integer function on R is:

10. A function f: A → B with |A| > |B| cannot be:

Written questions

1. Define a function and distinguish between one-one and onto.

Show answer
A function assigns each input exactly one output. One-one: distinct inputs give distinct outputs. Onto: every element of the codomain is an output.

2. Show that f: R → R, f(x) = 2x + 3 is bijective.

Show answer
One-one: 2x₁ + 3 = 2x₂ + 3 ⇒ x₁ = x₂. Onto: for y, x = (y − 3)/2 gives f(x) = y.

3. Show that f: R → R, f(x) = x² is neither one-one nor onto, and restrict it to make it bijective.

Show answer
f(2) = f(−2) so not one-one; −1 has no preimage so not onto. Restricting to f: [0, ∞) → [0, ∞) makes it bijective.
Content hidden. Please return to this page and click here to continue.