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 227 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 image (range) is the subset of BB actually produced; it may be smaller than the whole codomain.

Functions are classified by how they map:

PropertyDefinitionFormal Condition
InjectiveOne-to-one; no input collisionsf(a)=f(a)a=af(a) = f(a') \Rightarrow a = a'
SurjectiveOnto; codomain is fully coveredImage equals BB
BijectiveBoth injective and surjectivePerfect pairing

Bijections are invertible: a bijection ff has a unique inverse f1f^{-1} satisfying f1(f(a))=af^{-1}(f(a)) = a. They formalize equal cardinality, allowing us to compare even infinite sets.

Composition & Pitfalls

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. Composition is associative, and the composition of two bijections is again a bijection.

Order matters: (gf)(x)=g(f(x))\text{Order matters: } (g \circ f)(x) = g(f(x))

Common pitfall: Confusing injective with surjective, and reading composition left to right. Injective forbids input collisions; surjective requires full codomain coverage. In gfg \circ f, the function on the right (ff) acts first. Reversing this order yields the wrong result.
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

Mathematical Language and Reasoning