CSCA Mathematics · Functions · Section 1 of 17
Domain & Range
The domain (定义域) of a function f is the set of all valid inputs (x-values). The range (值域) is the set of all possible outputs (y-values or f(x)-values).
Finding the Domain
Ask: "What values of x would cause a problem?" Common restrictions:
- Division by zero: For f(x) = 1/(x-3), exclude x = 3. Domain: ℝ \ {3} or (-∞,3) ∪ (3,∞).
- Square root of negative: For f(x) = √(x-2), need x-2 ≥ 0 → x ≥ 2. Domain: [2, ∞).
- Logarithm of non-positive: For f(x) = ln(x), need x > 0. Domain: (0, ∞).
- Combined: For f(x) = √(x) / (x-4), need x ≥ 0 AND x ≠ 4. Domain: [0,4) ∪ (4,∞).
Finding the Range
Methods include:
- Algebraic: Set y = f(x), solve for x in terms of y, and find what y-values are valid.
- Graphical: Sketch or visualise the function and read off the y-values covered.
- Key observations: x² ≥ 0 always, so x² + 3 ≥ 3. Range of f(x) = x² + 3 is [3, ∞).
Notation: Domain and range are sets, so express them using set or interval notation.
Think of the domain as the "menu" of a restaurant (what you can order) and the range as the "dishes that actually come out of the kitchen" (what you actually get).
Key takeaway: Domain = all valid inputs (avoid ÷0, √negative, log of non-positive). Range = all possible outputs. Express both in interval notation.
Key Formulas
√(expr) needs expr ≥ 0 | 1/expr needs expr ≠ 0 | log(expr) needs expr > 0
Worked Example 1
Example 1: Find the domain of f(x) = √(6 - 2x).
Need 6 - 2x ≥ 0 → -2x ≥ -6 → x ≤ 3. Domain: (-∞, 3].
Worked Example 2
Example 2: Find the domain and range of f(x) = 1/(x² + 1).
Domain: x² + 1 ≥ 1 > 0 for all x, so no restrictions. Domain = ℝ.
Range: Max value is 1/(0+1) = 1 (at x=0). As x → ±∞, f → 0⁺. Range = (0, 1].
Worked Example 3
Example 3: Find the domain of g(x) = ln(x² - 4).
Need x² - 4 > 0 → x² > 4 → |x| > 2 → x < -2 or x > 2.
Domain: (-∞, -2) ∪ (2, ∞).
Exam Tips
For domain, systematically check for division by zero, square roots, and logarithms.
For range, try the algebraic method: set y = f(x), solve for x, and see which y-values produce real x.
Common Mistakes
Forgetting to exclude log argument = 0: ln(0) is undefined, so you need strict inequality x > 0, not x ≥ 0.
Saying range of x² is ℝ: x² ≥ 0 always, so range is [0, ∞), not all reals.
Try This Yourself
Find the domain of f(x) = √(x+3) / (x-1).
Show the answer
Need x+3 ≥ 0 → x ≥ -3, and x ≠ 1. Domain: [-3, 1) ∪ (1, ∞).