Functions
Mathematics · Cheatsheet

Functions

Chapter 1 · Foundations

📋 Reference · always available
Function (definition)
A relation that assigns each input to exactly one output. Two parts: must act on every domain element, and must be well-defined (no input gets two outputs).
Function notation
y=f(x)orxf(x)y = f(x)\quad\text{or}\quad x \mapsto f(x)
Vertical line test
A graph represents a function iff every vertical line meets it in at most one point. Two intersections ⇒ one xx would map to two yys ⇒ not a function.
Domain
Set of allowed inputs. Natural domain = largest subset of R\mathbb{R} that gives real outputs.
Range
Set of outputs actually achieved. Read it off the yy-axis from the graph.
Domain rules — combine them all
Denominator 0\ne 0 · radicand 0\ge 0 for even roots · argument >0> 0 for ln/log\ln/\log · argument in [1,1][-1,1] for arcsin/arccos\arcsin/\arccos. Intersect the allowed sets.
Set vs interval notation
{x:x3}\{x:x\ge 3\}[3,)[3,\infty). {x:2x<5}\{x:-2\le x<5\}[2,5)[-2,5). Inverted bracket means open endpoint.
Inverse (definition)
f1(f(x))=x    and    f(f1(x))=xf^{-1}(f(x)) = x\;\;\text{and}\;\;f(f^{-1}(x)) = x
Three-step recipe to find $f^{-1}$
(1) Write y=f(x)y=f(x). (2) Swap xx and yy. (3) Solve for yy. That's f1(x)f^{-1}(x).
Inverse — geometric meaning
Graph of f1f^{-1} = reflection of ff across the line y=xy=x.
When does $f^{-1}$ exist?
Iff ff is one-to-one. If ff fails the horizontal line test, restrict the domain to one side of the turning point first.
Domain / range swap
D(f1)=R(f)D(f^{-1}) = R(f) and R(f1)=D(f)R(f^{-1}) = D(f).
Composition
(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))
Composition — domain rule
xx must be in D(g)D(g) AND g(x)g(x) must be in D(f)D(f). Compose inner function first; then check the outer's domain restriction kicks in.
Order matters
fggf   (in general)f\circ g \ne g\circ f\;\text{ (in general)}
Test with f(x)=2xf(x)=2x, g(x)=x+1g(x)=x+1: (fg)(1)=4(f\circ g)(1)=4, (gf)(1)=3(g\circ f)(1)=3.
Self-inverse functions
f1=ff^{-1} = f. Examples: y=xy=x, y=xy=-x, y=k/xy=k/x (any kk), y=axy=a-x. Their graphs are symmetric about y=xy=x AND look the same swapped.
Pitfall — implied domain
If no domain is stated, use the largest set giving real outputs. Always check denominators, radicals, logs.
Pitfall — $f^{-1}$ vs $1/f$
f1f^{-1} is the INVERSE function, NOT 1/f(x)1/f(x). They mean completely different things.
Pitfall — inverse without one-to-one
If you skip the one-to-one check, the 'inverse' you write down won't be a function. Always test (or restrict).