Functions
Every vending machine obeys one silent rule: press button B3, and you get exactly one snack — never two, never none. That rule is what mathematics calls a function: a relation from a set to a set in which every input is tied to exactly one output. It is the single most useful idea in the "Relations and Functions" chapter, because almost every equation you will meet from here on — , , — is really a compact machine of this kind. This article builds the definition from the relation you already know, gives you the vertical line test to spot a function on a graph, shows how two functions can be added, multiplied or divided to make new ones, and works a full numeric example so the rule stops being abstract and starts being arithmetic.
A function is a relation in which every element of has exactly one image in , checked visually by the vertical line test and combined algebraically through pointwise operations like .
The core idea
A relation becomes a function the moment it obeys strict discipline. Formally, is a function if every has an image in , and that image is unique — no element of is ever sent to two different places. Written as ordered pairs, is a subset of satisfying:
where: condition (i) says nothing in is left unpaired, and condition (ii) says nothing in is paired twice with different outputs. For each , the unique matching value is , called the image of ; is the pre-image of . Three sets travel with every function. The domain is itself. The co-domain is the declared target set . The range is , the collection of values actually hit — always a subset of the co-domain, sometimes a proper one.
Reading a graph. For plotted on the Cartesian plane, condition (ii) has a beautifully visual twin: the graph represents a function only if every vertical line crosses it at most once. Two crossings on one vertical line would mean one input mapped to two outputs — exactly what a function forbids.
Algebra of functions. Once two functions and share a common domain, new functions can be built pointwise, by combining the two output numbers at each shared input:
where: each new rule is evaluated by first computing and separately, then combining the two numbers; the quotient additionally drops every where , since division by zero is undefined. For a scalar , scales every output by .
Derivation
The goal is to show, without any new machinery beyond the definition of a function and the meaning of a Cartesian graph, that "every vertical line meets the graph at most once" is not a separate rule to memorise but a direct restatement of condition (ii) — so a student can trust the picture exactly as much as the algebra.
Step 1. Set up the correspondence. For , the graph of is the set of points , plotted with horizontal and vertical. A vertical line is the set of all points with first coordinate , for every possible .
Step 2. Translate "the line meets the graph" into function language. A point lies on both the vertical line and the graph exactly when for some valid — that is, exactly when is in the domain and produces the image .
Step 3. Count the crossings. Suppose the vertical line met the graph at two distinct points, and with . By Step 2 this means and simultaneously — the same input mapped to two different outputs. That is precisely a violation of condition (ii), the "exactly one image" rule.
Step 4. Conclude the equivalence. If is a genuine function, condition (ii) rules out two different -values for the same , so every vertical line meets the graph at most once. Conversely, if some vertical line meets a curve twice, that curve encodes two outputs for one input, so it cannot be the graph of a function. The graphical test and the algebraic definition check the same fact from two directions.
Worked example
Let , with given by , and let with domain . Verify is a function and find its range; then compute and , and evaluate both at .
Step 1. Compute the images of on : , so . Every element of appears exactly once as a first entry, each tied to a single output — both conditions of a function hold. Domain , range .
Step 2. Build the sum: . At : using and , the sum is , matching .
Step 3. Build the product: . At : directly, , matching .
Answer: is a function with range ; giving at ; giving at .
Common traps
- Treating every relation as a function. A relation only qualifies once every element of has exactly one image — missing outputs or repeated outputs for the same input both disqualify it.
- Mixing up range and co-domain. The co-domain is the declared target set ; the range is only what actually gets hit, so range co-domain, not always equal.
- Forgetting the domain restriction on a quotient. is undefined wherever ; leaving those points in the domain is a scoring error.
- Reaching for one-one, onto, or inverse language. These classifications belong to a later class; this syllabus asks only for the basic definition, domain and range, and the four algebraic operations.
Ask the tutor: Want to try a relation that almost passes the function test, or practise building and from a fresh pair of formulas? Ask the AI tutor to walk through more with you.
How is a function different from a relation, in one line I can remember?
A relation is just any pairing between two sets — inputs can repeat, be missing, or point to several outputs at once. A function tightens this to one strict rule: every input in the domain must have an output, and it must have only one. So every function is a relation, but not every relation is a function; the extra "exactly one" condition is the whole difference.
Why does the quotient of two functions need g(x) not equal to zero, but the sum and product do not?
Addition, subtraction and multiplication of two real numbers are always defined, so as long as and both exist, , and automatically exist too. Division is different: asks you to divide by , and division by zero has no meaning. So the quotient function's domain is the shared domain of and with every zero of removed.
Do I need to worry about one-one or onto functions for this chapter?
No — injective (one-one), surjective (onto) and bijective functions, along with inverse functions, are Class 12 topics and are not tested here. For this chapter, focus on the core definition of a function, identifying domain, co-domain and range, using the vertical line test, and computing the algebra of functions (sum, difference, product, quotient). Composition of functions may be mentioned briefly but is not examined at this level.