Two different coverage questions for functions

For a function f:A→Bf:A\to B, the domain AA is the set of permitted inputs and the codomain BB is the stated target set. The words one-to-one and onto answer different questions about the arrows between these sets.

A mapping from a domain to a stated codomain. Labels identify elements for the questions.

A mapping from a domain to a stated codomain. Labels identify elements for the questions.

One-to-one (injective)

A function is one-to-one if distinct inputs never share an output. Formally, f(a)=f(b)f(a)=f(b) implies a=ba=b. On an arrow diagram, inspect the target endpoints: no target element may receive arrows from two different domain elements. A function can be one-to-one even if some codomain values are unused.

Onto (surjective)

A function is onto if every element of the codomain is hit by at least one input. In symbols, for every b∈Bb\in B, there is an a∈Aa\in A with f(a)=bf(a)=b. On an arrow diagram, every element drawn in the codomain needs at least one incoming arrow. An onto function may send several inputs to the same target.

Worked classification

Suppose a function maps three inputs to three displayed codomain values, with exactly one arrow ending at each value. No outputs repeat and none are left unused.


It is both one-to-one and onto, hence bijective. If two inputs instead end at the same codomain value, it is not one-to-one; if another codomain value then has no arrow, it is also not onto.



Which statement is the definition of a one-to-one function ff?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let f:{1,2,3}→{a,b,c,d}f:\{1,2,3\}\to\{a,b,c,d\} be given by f(1)=af(1)=a, f(2)=bf(2)=b, and f(3)=cf(3)=c. How should ff be classified?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Refer to the figure. Which classification applies to the displayed mapping f:A→Bf:A\to B?

A mapping from a domain to a stated codomain. Labels identify elements for the questions.

A mapping from a domain to a stated codomain. Labels identify elements for the questions.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors