The Concept of a Function, Domain and Range
A function is the single most important organising idea in the rest of this course: every topic from quadratics to derivatives is really a statement about how one function behaves. Before any of that can be built, you need a precise definition — not "a function is like a machine" but a definition precise enough to decide, for a given pairing of numbers, whether it qualifies. This chapter builds that definition, then develops the two sets that attach to every function: its domain (what you are allowed to put in) and its range (what can come out).
To work through this chapter you need confidence with set notation (, , interval notation), inequalities, and the graphs of , and from earlier study. Nothing here requires calculus; it is the algebraic foundation the rest of Block B stands on.
1. Relations and the Definition of a Function
A relation is simply any rule that associates elements of one set with elements of another. Not every relation is useful for prediction: knowing an input might allow several possible outputs, which makes it useless as a model of a deterministic process. A function from a set (the domain) to a set is a relation in which
Definition. Every element of is mapped to exactly one element of . We write , and for the resulting element of is , read " of ".
The phrase "exactly one" is the entire content of the definition. mapped to by is a function (every input has one output, even though two inputs share an output). But the rule " maps to a number whose square is " is not a function on , because would have to map to both and .
The vertical line test. On a Cartesian graph, a curve represents a function of if and only if no vertical line cuts the curve more than once. The circle fails this test (the vertical line meets it at and ) and so is not the graph of a function of , even though it is a perfectly good relation.
2. Domain: What Is Allowed In
The domain of is the complete set of input values for which is defined. When a function is given by a formula without a stated domain, the convention is the natural domain: every real for which the formula produces a real number.
Three situations restrict the natural domain, and they are worth having as a checklist:
- Division by zero is forbidden. If , then must be excluded: .
- Square roots (and other even roots) of negative numbers are forbidden, over the reals. If , we need , i.e. .
- Logarithms of non-positive numbers are forbidden (covered fully in Block A, but the domain rule recurs here): requires a strictly positive argument.
Worked example 1. Find the domain of .
Two restrictions apply simultaneously. The square root demands , so . The denominator demands , so . Combining both,
Notice that the point is removed from an otherwise unbroken interval — a single excluded point does not split the domain into "two branches" in any deeper sense, it is just one value deleted from a continuum, and the interval notation must show that with two half-open intervals meeting at the gap.
3. Range: What Can Come Out
The range of (sometimes called the image) is the set of all actual output values as runs over the whole domain. Unlike the domain, the range frequently cannot be read off the formula by inspection — it usually requires understanding the shape of the graph, or an algebraic argument.
Worked example 2 (the routine case). State the range of for .
Since for every real , with equality only at , adding gives , and every value is attained (by for ). So .
Worked example 3 (the edge case). State the range of for .
A tempting but wrong instinct is "the range is also all reals except 2" — copying the excluded domain value into the range is a common error. Instead, ask: is there any real number that can never equal? Setting and solving for ,
This rearrangement is only invalid when , because then there would be no finite with (a fraction with a nonzero numerator is never zero). Every other value of does correspond to some valid . Hence
The excluded value in the range () came from the horizontal asymptote of the reciprocal shape, not from the excluded domain value (, which gives the vertical asymptote) — the two restrictions have different causes and there is no reason, in general, for them to coincide or to look alike.
Key distinction. Domain restrictions come from the formula (denominators, roots, logs) and are found by inspecting . Range restrictions come from the shape of the output and are found by analysing what values actually achieves — often by trying to solve for in terms of , or by graphing.
4. Finding the Range by Solving for
The method used in Worked example 3 generalises: given , rearrange to express in terms of . The range is exactly the set of for which that rearrangement is valid (produces a real , and a defined one).
Worked example 4. Find the range of , .
This is defined for every except . So — and indeed is the horizontal asymptote of this rational function, a connection that Chapter 7 will make systematic.
For functions built from , or trigonometric pieces, solving for is often messier than simply tracking the minimum/maximum behaviour of the expression directly, as in Worked example 2 — choose whichever method suits the formula.
5. Domain and Range from a Graph
When a function is presented graphically rather than algebraically, the domain is read off the horizontal extent of the curve (project every point onto the -axis) and the range is read off the vertical extent (project every point onto the -axis). Open circles or dashed boundary lines mark values approached but never attained (as at a vertical or horizontal asymptote); filled circles mark values that are attained.
Warning. A graph with an arrowhead trailing off to the edge of the page is a visual convention meaning "continues indefinitely in this direction," not a claim that the function stops there. Misreading a truncated axis as the true domain is one of the commonest graph-reading errors.
6. Function Notation and Evaluating
Writing names the function and asserts that is whatever produces from . Evaluating at a specific input means substituting that input for every occurrence of in the formula — including inputs that are themselves expressions.
Worked example 5. Given , find , and .
Note that and in general — function notation is not distributive over addition, and treating it as if it were is one of the most persistent algebra errors at this level.
7. One-to-One Functions and the Horizontal Line Test
A function is one-to-one (or injective) if distinct inputs always give distinct outputs: , equivalently . Graphically, is one-to-one exactly when no horizontal line meets its graph more than once — the horizontal line test.
on all of is not one-to-one, since ; restricted to , it is one-to-one. This property matters immediately: Chapter 2 shows that a function has an inverse function (in the full sense) exactly when it is one-to-one on its domain.
Common Exam Pitfalls
- Writing the range as "all reals except the excluded domain value." The excluded value in a rational function's range comes from its horizontal asymptote, which is generally a different number from the vertical asymptote excluded from the domain (Worked example 3).
- Forgetting to combine multiple domain restrictions. When a formula has both a root and a denominator, every restriction must be satisfied simultaneously — take the intersection, not just one of them.
- Treating as . Function notation means "substitute," not "distribute." Always expand the whole input first, then substitute.
- Misreading a graph's domain/range from where the drawing happens to stop, rather than from arrowheads (continues forever), open circles (value excluded) or filled circles (value included).
- Confusing a relation satisfying the vertical line test incidentally with it being "the only function possible" for that curve — many different formulas can share one graph on a restricted domain; always check what domain is actually specified.
- Quoting the range of incorrectly after a reflection or restriction — re-derive it from the vertex/shape each time rather than pattern-matching to a memorised shape.
Summary
- A function assigns to every element of exactly one element of ; this is tested graphically by the vertical line test.
- The domain is the set of valid inputs; for a formula, exclude values making a denominator zero, an even root negative, or a logarithm's argument non-positive, and intersect all such restrictions.
- The range is the set of actual outputs; find it either by analysing the shape of directly (e.g. ) or by solving for and finding which give a valid .
- For : domain excludes (vertical asymptote), range excludes (horizontal asymptote) — these are generally different numbers for different reasons.
- Function notation means substitute for throughout; it is not distributive: in general.
- A function is one-to-one when no two inputs share an output, tested by the horizontal line test; this property is the prerequisite for a genuine inverse function (Chapter 2).