Advanced Mathematics

Sets, Functions and Notation

Sets, the symbols for combining them, and functions as rules sending each element of one set to exactly one element of another.

Needs a step first: 1

A set is a collection of things, and ∪\cup, ∩\cap, ∖\setminus and ×\times build new sets from old. A function f:A→Bf: A \to B assigns every element of AA one element of BB; it is injective if different inputs give different outputs, surjective if every element of BB is reached, and bijective (and so invertible) if both. This is the shared language of the rest of the map: events in probability are sets, and vector spaces and groups are sets with structure.

Where it shows up: A trained model is a function from inputs to outputs, and in quantum mechanics an observable is a map from states to states, so both are described in this language.

How to hold it: In your head

Read set notation as fluently as prose, and tell from a function's rule whether it is injective, surjective or invertible, and why.

What knowing it looks like

  • Read and write set-builder notation such as {x∈R:x2<4}\{x \in \mathbb{R} : x^2 < 4\}, and compute unions, intersections, differences and products.
  • Decide whether a function is injective or surjective, with a proof or a counterexample.
  • Compose two functions and find an inverse, stating its domain and codomain.

Test yourself

Is f:R→Rf: \mathbb{R} \to \mathbb{R}, f(x)=x2f(x) = x^2 injective? Is it surjective? Then show that g:[0,∞)→[0,∞)g: [0, \infty) \to [0, \infty), g(x)=x2g(x) = x^2 is a bijection and give its inverse.
Show the worked answer
ff is not injective: f(−1)=f(1)=1f(-1) = f(1) = 1. It is not surjective: no real xx has x2=−1x^2 = -1. For gg: if a,b≥0a, b \ge 0 and a2=b2a^2 = b^2, then (a−b)(a+b)=0(a-b)(a+b) = 0, and a+b=0a + b = 0 only when a=b=0a = b = 0, so a=ba = b: injective. Every y≥0y \ge 0 is g(y)g(\sqrt{y}): surjective. So gg is a bijection with g−1(y)=yg^{-1}(y) = \sqrt{y}. The same formula gives different answers on different domains, which is why a function is not just its formula.

Needs a step first: 1

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "Sets, Functions and Notation" (Bridge tier): Sets, the symbols for combining them, and functions as rules sending each element of one set to exactly one element of another.
I already know: Logic and Proof.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Is $f: \mathbb{R} \to \mathbb{R}$, $f(x) = x^2$ injective? Is it surjective? Then show that $g: [0, \infty) \to [0, \infty)$, $g(x) = x^2$ is a bijection and give its inverse.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended