A function f: A → B joins every element of A to exactly one element of B.
Types of functions
| Function | Form |
|---|---|
| Linear | f(x) = mx + c |
| Constant | f(x) = c (m = 0) |
| Quadratic | f(x) = ax² + bx + c, a ≠ 0 |
| Identity | I(x) = x for every x |
| Algebraic | y given by a finite algebraic rule, e.g. y = x + 2 |
Composite functions
If f: A → B and g: B → C, the composite gof: A → C does f first, then g.
- gof(x): g(f(x))
- fog(x): f(g(x)) (usually ≠ gof(x))
- f²(x): fof(x) = f(f(x)); f³(x) = f(f(f(x)))
- Associative: ho(gof) = (hog)of = h(g(f(x)))
- With a scalar k: (f ± k)(x) = f(x) ± k; (kf)(x) = k·f(x)
Inverse functions
Only a one-to-one onto function has an inverse f⁻¹: B → A. Swap each pair: if f = {(1, 1), (2, 3), (3, 4)} then f⁻¹ = {(1, 1), (3, 2), (4, 3)}.
- f(x) = ax + b: f⁻¹(x) = (x − b)/a
- f(x) = (ax + b)/(cx + d): f⁻¹(x) = (b − dx)/(cx − a)
- Method: write y = f(x), swap x and y, solve for y
Worked example
f(x) = 2x + 3 and g(x) = x². Find fog(2), gof(2) and f⁻¹(7).
- fog(2) = f(4) = 2·4 + 3 = 11
- gof(2) = g(7) = 49
- f⁻¹(x) = (x − 3)/2, f⁻¹(7) = 2