What Is a Function?
A function f from set A to set B is a relation that assigns exactly one element of B to each element of A. We write f: A โ B.
Key Terms:
Domain: Set A (all possible inputs)
Codomain: Set B (all possible outputs)
Range/Image: The set of actual outputs: {f(a) | a โ A}
Example: f: โ โ โ, f(x) = xยฒ
Domain: โ, Codomain: โ, Range: [0, โ)
Function Notation
f: A โ B means for every a โ A, there is exactly one f(a) โ B
Examples:
f(x) = 2x + 1 Linear function
g(x) = xยฒ Quadratic function
h(x) = |x| Absolute value function
Not a function: xยฒ + yยฒ = 1 (y is not uniquely determined by x)
Special Functions
Identity: id_A(x) = x for all x โ A
Constant: f(x) = c for all x โ A
Floor: โxโ = greatest integer โค x
Ceiling: โxโ = smallest integer โฅ x
Modular: f(a) = a mod n