Real
Functions
Piecewise, inverse, absolute value, and rational functions all follow logical patterns. This guide builds each from first principles with diagrams, worked examples, and checkpoints to verify your understanding.
A piecewise function is defined by different formulas for different intervals of x. The function is still a function — each x gives exactly one y — but the rule changes depending on where x sits.
Think of a taxi fare: there might be a flat fee for the first 2 km, then a per-km rate after that. Two different rules, one function.
f(x) = { rule₁ if condition₁
{ rule₂ if condition₂
{ rule₃ if condition₃
The conditions must cover all required x values and must not overlap.
Open vs Closed Endpoints
| Symbol | Meaning | Inequality | Dot style on graph |
|---|---|---|---|
| Closed bracket [ | Endpoint is included | ≤ or ≥ | ● filled dot |
| Open bracket ( | Endpoint is excluded | < or > | ○ open dot |
At a boundary point, only ONE piece can own that x value. If the boundary x = 1 uses ≥ in piece 2, then piece 2 has the filled dot at x = 1 and piece 1 must use < (open dot).
Evaluating a Piecewise Function
To find f(a): first determine which condition a satisfies, then apply only that piece's formula. Never mix pieces.
x = −3 satisfies x < 0 → use piece 1: f(x) = x²
x = 0 satisfies x = 0 → use piece 2: f(x) = 3
x = 4 satisfies x > 0 → use piece 3: f(x) = 2x − 1
Use piece 1 with x → 2:
x = 2 satisfies x ≥ 2 → use piece 2:
Left-hand value = 5, actual value = 3. They differ.
For continuity, the left-hand value must equal the right-hand value at x = 1.
From the left: f(−1) = 3 (closed — included). From the right: approaching x = −1 gives (−1)² = 1. Since 3 ≠ 1, there is a jump at x = −1 — the function is discontinuous there.
- Step 1: Identify each piece, its formula, and its interval.
- Step 2: Build a table of values for each piece — include at least the boundary points and one interior point.
- Step 3: Check whether each boundary point is open or closed. Mark the dot accordingly.
- Step 4: Graph each piece separately — different colour or style helps.
- Step 5: Do NOT connect pieces across a gap. Leave a visible jump if the function is discontinuous there.
Horizontal line at y = −1. Open circle at x = −2 (because < not ≤).
At x = −2: y = −1 (closed). At x = 2: y = 3 (closed). Draw the segment.
Horizontal line at y = 3. Open circle at x = 2.
The function is defined for x < 0 (piece 1) and for 0 ≤ x ≤ 3 (piece 2).
As x approaches 0 from the left, f(x) = −x approaches 0 (but doesn't include it since x < 0 means f(x) > 0). As x → −∞, −x → +∞.
At x = 0: f = 0. At x = 3: f = 9. Since x² is increasing on [0, 3]:
The rule changes at t = 1 (flat fee ends) and at the point where cost hits $15.
At t = 6 the cost reaches $15, so the cap applies exactly at t = 6.
At x = −1: Left-hand value = 4; piece 2 value = (−1) + 5 = 4. They match → continuous.
At x = 0: Piece 2 value = 0 + 5 = 5; piece 3 value (as x → 0⁺) = −0 + 5 = 5. They match → continuous.
The function is continuous everywhere.
The inverse of a function f, written f⁻¹, undoes f. If f takes x to y, then f⁻¹ takes y back to x.
f is "double and add 1" → f(3) = 7. The inverse is "undo that" → f⁻¹(7) = 3, by subtracting 1 and halving. The output of f becomes the input of f⁻¹.
When Does the Inverse Exist as a Function?
A function has an inverse that is also a function if and only if f is one-to-one — meaning every y value comes from at most one x value.
| Test | What it checks | Result if it passes |
|---|---|---|
| Horizontal line test | Draw any horizontal line — does it cross the graph more than once? | If no line crosses twice: one-to-one → inverse is a function |
| Algebraic check | Can two different x-values give the same y? Set f(a) = f(b) and check if a = b must follow. | If a = b is forced: one-to-one |
Both compositions give x, so g = f⁻¹ (and f = g⁻¹).
The domain and range of f⁻¹ are the range and domain of f, respectively — they swap.
(a) f(x) = 3x + 7 — linear, strictly increasing → one-to-one ✓
(b) g(x) = x² − 4 — parabola, g(2) = g(−2) = 0 → not one-to-one ✗ (unless domain is restricted)
(c) h(x) = x³ — strictly increasing for all real x → one-to-one ✓
Without x ≥ 1, f(x) = (x−1)² + 4 is a parabola — not one-to-one. The restriction keeps only the right half (increasing part).
Domain of f⁻¹ = Range of f. Since f has domain x ≥ 1 and minimum value at x = 1 of f(1) = 4, the range of f is [4, +∞).
The absolute value of a number is its distance from zero on the number line — always non-negative.
|x| = x if x ≥ 0
|x| = −x if x < 0
Geometrically: it "folds" the left half of the number line onto the right half, making all values positive.
This folding creates the characteristic V-shape. The standard form is:
| Feature | Value / Rule |
|---|---|
| Vertex (turning point) | (h, k) |
| Axis of symmetry | x = h |
| Opening direction | Up if a > 0 · Down if a < 0 |
| Slope of right arm | +|a| |
| Slope of left arm | −|a| (mirror image) |
| Domain | All real numbers ℝ |
| Range (a > 0) | y ∈ [k, +∞) |
| Range (a < 0) | y ∈ (−∞, k] |
Intercepts of y = a|x − h| + k
- y-intercept: set x = 0 → y = a|0 − h| + k = a|h| + k
- x-intercept(s): set y = 0 → a|x − h| = −k → |x − h| = −k/a. Then solve as an absolute value equation (may have 0, 1, or 2 solutions depending on the sign of −k/a).
y-intercept is (0, 0) — the graph also crosses the x-axis here!
a = −1 < 0 → opens downward. ✓ Consistent with the description.
|something| = c means the "something" is at distance c from zero — it could be c or −c. There are exactly two positions at distance c from zero (unless c = 0 or c < 0).
A rational function has the form f(x) = P(x)/Q(x) where P and Q are polynomials. The Sec 5 focus is on the simplified form that produces a hyperbola:
The Role of Each Parameter
| Parameter | Effect |
|---|---|
| h | Shifts the vertical asymptote to x = h (left/right shift) |
| k | Shifts the horizontal asymptote to y = k (up/down shift) |
| a/b > 0 | Branches in quadrants 1 and 3 (relative to the asymptotes) |
| a/b < 0 | Branches in quadrants 2 and 4 (relative to the asymptotes) |
| |a/b| large | Branches are stretched farther from the asymptotes |
Intercepts of f(x) = a/(b(x − h)) + k
- y-intercept: set x = 0 → y = a/(b(0 − h)) + k = a/(−bh) + k (provided h ≠ 0)
- x-intercept: set y = 0 → a/(b(x−h)) = −k → a = −kb(x−h) → x = h − a/(kb) (provided k ≠ 0)
Since a/b < 0, the branches lie in the 2nd and 4th quadrants relative to the asymptote intersection point (−1, 3): upper-left and lower-right.