Courses / Mathematics I
Mathematical Language and Reasoning

Functions as Mappings

A function f : A B is a rule assigning to each element of the domain A exactly one element of the codomain B.

Mathematics I 341 words Free to read

Rules That Assign

A function f:ABf : A \to B is a rule assigning to each element of the domain AA exactly one element of the codomain BB. The "exactly one output per input" requirement is what distinguishes a function from an arbitrary correspondence. The image (or range) is the subset of BB actually produced as outputs; it may be smaller than the whole codomain.

Functions are classified by how they map:

Bijections are exactly the invertible functions: a bijection ff has a unique inverse f1f^{-1} satisfying f1(f(a))=af^{-1}(f(a)) = a. They also formalize "same size" — two sets have equal cardinality precisely when a bijection exists between them, a definition powerful enough to compare infinite sets (which is how we learn Q\mathbb{Q} is countable but R\mathbb{R} is not).

Functions compose: for f:ABf : A \to B and g:BCg : B \to C, the composition (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)) applies ff first, then gg — read right to left. Composition is associative, and the composition of two bijections is again a bijection. Functions are the connective tissue of mathematics, linking one structure to another while preserving or transforming information.

Common pitfall: confusing injective (one-to-one) with surjective (onto), and reading composition left to right. Injective forbids input collisions; surjective requires the codomain to be fully covered — a function can be one without the other. And gfg \circ f means "ff then gg": the function on the right acts first. Reversing the order gives the wrong result whenever ff and gg do not commute.

A domain column and codomain column of dots joined by arrows; an accent collision (two arrows into one target) fails injectivity, and an unhit target fails surjectivity.

f(a)=f(a)a=af(a) = f(a') \Rightarrow a = a'

Functions as Mappings

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

13practice questions
2interactive scenes
Start Mathematics I free

Mathematical Language and Reasoning