Evanalysis
2.2Source-backedEmbedded interactionEstimated reading time: 3 min

2.2 Functions and relations

Read a function as a special kind of relation, then learn the language of images, preimages, and inverse maps.

Note collections

MATH1090: Set theory

Rigorous course notes on logic, sets, and number construction, written in short linked sections with careful proofs and examples.

Chapter 1

Logic

Reasoning tools for statements, connectives, and quantifiers.

Chapter 2

Sets and relations

Basic set language, functions, and relations.

Chapter 4

Order and completeness

Total order, bounds, supremum and infimum, and the completeness gap between Q and R.

Prerequisite: review 2.1 Sets and set operations first, because functions and relations are defined using sets.

What a function is

Definition

A function

A function from XX to YY is a subset of X×YX × Y such that every x in XX is paired with exactly one y in YY.

That is the set-theoretic definition used in the local notes.

Read the basic language

  • The domain is the set of inputs.
  • The target is the set of possible outputs.
  • The graph of the function is the set of pairs (x, y).
  • The image of a set is the set of outputs it reaches.
  • The preimage of a set is the set of inputs that land there.

Common mistake

A function must not send one input to two outputs

A relation may connect one input to many outputs. A function cannot. Every input must have exactly one output.

A first example

Worked example

Read a function from its rule

Take the rule f(x)=x2f(x) = x^2.

The inputs 2-2 and 2 both map to 4, so two different inputs may share the same output.

What is not allowed is one input producing two different outputs.

Solution

Image and preimage

Injective, surjective, bijective

Definition

Three useful words

  • Injective means different inputs never collide.
  • Surjective means every target value is hit.
  • Bijective means both injective and surjective.

The local notes also use this language to describe when an inverse function can exist.

Relations

Definition

A relation

A relation on XX and YY is any subset of X×YX × Y.

If X=YX = Y, we speak of a relation on one set.

Relations may be read with properties such as:

  • reflexive
  • symmetric
  • antisymmetric
  • transitive

Two especially important special cases are:

  • an equivalence relation
  • a partial order

A short example of relation language

Worked example

Equality classes are built from a relation

When a relation is reflexive, symmetric, and transitive, it is an equivalence relation.

Then the equivalence classes group the set into non-overlapping blocks.

Solution

What to remember

Quick check

Quick check

Is xyx ≤ y on the real numbers a relation? Is it a function?

Separate the two questions. First ask whether it is a subset of R×RR × R, then ask whether each input is paired with exactly one output.

Solution

Answer

Key terms in this unit