haya.Learning made clear
Unit I · Relations and functions
8 min readConcept sheetPart I (1 mark); Part II (2 marks) and Part III (5 marks) to find images and pre-images and identify the type

Types of functions

One-one: different inputs give different outputs. Onto: every element of the co-domain is used. A bijection is both.

One-one (injective)x₁ ≠ x₂ ⇒ f(x₁) ≠ f(x₂)
Onto (surjective)Range = co-domain
BijectionOne-one and onto; then n(A) = n(B)
Horizontal line testA function is one-one if no horizontal line meets its graph more than once

The five types at a glance

TypeMeaningHow to spot it in an arrow diagram
One-oneDistinct elements of A have distinct imagesNo element of B receives two arrows
Many-oneTwo or more elements of A share an imageAt least one element of B receives two or more arrows
OntoEvery element of B has a pre-imageEvery element of B receives at least one arrow; range = co-domain
IntoAt least one element of B has no pre-imageSome element of B receives no arrow; range is a proper subset of B
BijectionBoth one-one and ontoEvery element of B receives exactly one arrow

One-one vs onto (students mix these up)

One-one asksDoes any element of B receive two arrows? If none does, f is one-one. If one does, f is many-one.
Onto asksDoes any element of B receive no arrow? If none is left out, f is onto. If one is left out, f is into.

The two questions are separate. A function can be one-one and into, many-one and onto, and so on.

Tests and counting facts

  • Horizontal line test: if every horizontal line meets the graph at most once, the function is one-one.
  • y = 2x + 1 passes the test. y = x² fails it, because the line y = 4 meets it at x = 2 and at x = −2.
  • If f: A → B is one-one, then n(A) ≤ n(B). If f is onto, then n(A) ≥ n(B).
  • If f is a bijection, then n(A) = n(B).
  • To prove one-one by algebra: assume f(x₁) = f(x₂) and show that x₁ = x₂.

Example 1: identify the type

Problem

Let A = {1, 2, 3, 4} and B = N (the natural numbers). f: A → B is defined by f(x) = x² + 2. Find the range of f and identify the type of function.

Working
  1. f(1) = 3, f(2) = 6, f(3) = 11, f(4) = 18.
  2. Range = {3, 6, 11, 18}.
  3. The four images are all different, so f is one-one.
  4. The range is not N; for example, 1 ∈ N has no pre-image. So f is into.
Answer

f is one-one and into.

Example 2: images, pre-images and type

Problem

f: N → N is defined by f(x) = 4x − 1. (i) Find the images of 1, 2 and 3. (ii) Find the pre-images of 27 and 39. (iii) Identify the type of function.

Working
  1. (i) f(1) = 3, f(2) = 7, f(3) = 11.
  2. (ii) 4x − 1 = 27 ⇒ 4x = 28 ⇒ x = 7.
  3. 4x − 1 = 39 ⇒ 4x = 40 ⇒ x = 10.
  4. (iii) If f(x₁) = f(x₂), then 4x₁ − 1 = 4x₂ − 1, so x₁ = x₂. Therefore f is one-one.
  5. For 2 ∈ N, 4x − 1 = 2 gives x = 3/4, which is not in N. So 2 has no pre-image and f is into.
Answer

Images 3, 7, 11; pre-images 7 and 10; f is one-one and into.

In real life

Seats in a full board exam hall form a bijection: each candidate gets exactly one seat and each seat gets exactly one candidate. Linking many ration-card families to one ration shop is many-one.

Exam angle

2 marks: “Let A = {1, 2, 3} and B = {p, q, r, s}. Show that f = {(1, p), (2, q), (3, s)} is one-one but not onto.” The images p, q and s are all different, so f is one-one. r ∈ B has no pre-image, so f is not onto (it is into).

2 marks: “Can a function from A = {1, 2, 3} to B = {x, y} be one-one? Give a reason.” No. Three elements would need three different images, but B has only two elements (n(A) > n(B)).

5 marks: “If f: R → R is defined by f(x) = 4x + 7, show that f is a bijection.” One-one: f(x₁) = f(x₂) ⇒ 4x₁ + 7 = 4x₂ + 7 ⇒ x₁ = x₂. Onto: for any y ∈ R, take x = (y − 7)/4 ∈ R; then f(x) = y. So f is one-one and onto, a bijection.

Remember it

One-one: no shared images. Onto: no lonely element in B. Both together make a bijection.