Types of functions and their graphs
Open a maths exam on functions and the same handful of "shapes" appear again and again: a flat line, a diagonal line, a smooth curve, a V, a staircase, a curve that never touches an axis. Rather than treating every formula as a brand-new mystery, this topic gives you nine named real-valued functions — constant, identity, polynomial, rational, modulus, signum, exponential, logarithmic, and greatest integer — each with a fixed formula, a fixed graph shape, and a domain and range you should be able to state on sight. Once you recognise which family a formula belongs to, its domain, range and graph follow almost automatically, without redrawing anything from scratch. This article builds that recognition, derives the piecewise rule that governs the trickiest of these graphs — the modulus function — and works through evaluating the fussiest cases: negative and fractional inputs to the greatest integer and signum functions, which is exactly where marks are lost.
Each of the nine named real functions is a fixed formula with a fixed graph shape, and recognising the family instantly tells you its domain and range without needing to plot a single point.
The core idea
Every function below is a rule , or to a suitable subset of , given by one specific formula. Learning the family means learning the formula, the domain, the range, and the shape together, as one package.
Straight-line shapes. The constant function is a horizontal line at height , with range . The identity function is the line through the origin, with domain range . Both are polynomial functions of degree and respectively.
Polynomial and rational functions. A polynomial function has the general form
where: are fixed coefficients and is a non-negative integer (the degree). Its domain is always ; the range depends on the degree — for example has range . A rational function is one polynomial divided by another, , and its domain is minus wherever the denominator vanishes — the numerator's zeros are irrelevant to the domain.
Piecewise shapes. The modulus function and the signum function (which reports only the sign of , as , , or ) are both defined by cases rather than a single algebraic expression, which is exactly why students find them harder to evaluate quickly — see the derivation below for the modulus function's rule.
Curves that hug an axis. The exponential function (with , ) has range : it gets arbitrarily close to the -axis but never touches it, rising for and falling toward for . The logarithmic function is its mirror image in the line : domain , range , defined only for positive .
The staircase. The greatest integer function rounds down to the largest integer not exceeding , giving domain and range ; its graph is a staircase of unit-length steps, each step's left end included and right end excluded.
The goal is to derive, from the basic definition of the modulus function, the general piecewise formula for for any fixed real number , which is the single formula behind nearly every modulus graph you will be asked to sketch or evaluate in this chapter, including the shifted V-shapes that trip students up when the vertex is not at the origin.
Step 1. Start from the basic definition of the modulus of any real quantity : when , and when . This is the only rule that needs to be remembered; everything else is substitution.
Step 2. Substitute into that definition. The condition becomes , which rearranges to ; the condition becomes , which rearranges to . So the two cases of the modulus definition translate directly into two cases on , split at the single point .
Step 3. Write out in each case. For , . For , . Combining these gives the general rule
where: is the fixed real number the graph is centred on (the vertex location), and is the input variable.
Step 4. Read off the shape. Both branches are straight lines meeting exactly at , where ; the right branch has slope and the left branch has slope , so the graph is always a V with its vertex at the point , regardless of what is. Setting recovers the plain modulus function used earlier, confirming the general rule matches the basic case.
Worked example
Using the derived rule with , this extends the Pass-1 example : state in piecewise form, then solve the equation for all values of .
Step 1. Apply the derived formula with : , a V with vertex at , matching the graph already described in Pass-1.
Step 2. To solve , use both branches, since either one could equal . On the branch : . Check , so this root is valid on this branch.
Step 3. On the branch : . Check , so this root is valid on this branch too.
Step 4. Verify both directly in the original equation: ✓ and ✓. The equation has two solutions: and — geometrically, the two points on the V-shaped graph at height .
Competitive stretch
The same branches solve the inequality : on , ; on , . Combining both pieces gives , the interval where the V-graph lies below height .
Common traps
- Rounding instead of flooring. always rounds down toward , so , not — a frequent slip on negative inputs.
- Assuming signum is undefined at . The formula suggests division by zero, but the syllabus's piecewise definition fixes exactly.
- Forgetting for exponential and logarithmic functions. If , collapses to the constant function , which has no valid logarithmic partner.
- Solving using only one branch. Both branches must be checked, since a modulus equation with generally has two valid roots, as in the worked example above.
Ask the tutor: Want more practice evaluating the greatest integer and signum functions at tricky negative or fractional inputs, or solving modulus equations with two branches? Ask the AI tutor to walk through additional examples with you.
Why does the greatest integer function round down for negative numbers instead of just dropping the decimal part?
Because is defined as the greatest integer that does not exceed , not as truncation. For a positive number like , dropping the decimal and rounding down happen to give the same answer, . But for , the integers not exceeding it are , and the greatest of these is — dropping the decimal would wrongly suggest , which is actually greater than and so does not satisfy "not exceeding." Always picture the number line and ask which integer sits at or just below the point.
How is the modulus function different from just removing the negative sign?
"Removing the negative sign" is really the piecewise rule in disguise: for the modulus keeps unchanged, and for it multiplies by to flip the sign, which is exactly what "removing the negative sign" describes for negative inputs. The piecewise definition is the rigorous version of that intuition, and it is essential once you shift the function, as in , because then you cannot just eyeball the sign — you must apply the two-case rule at the shifted vertex , as derived above.
Do I need to memorise separate graphs for every rational function, or is there a shortcut?
At this syllabus level, you are only expected to identify that a given formula is a rational function (a ratio of two polynomials) and state its domain by excluding the denominator's zeros — you are not expected to sketch every possible rational graph from scratch. Focus your graph-sketching effort on the other eight named functions instead, since those are the ones with a single fixed shape you are expected to draw or recognise on sight; rational functions beyond the very simplest cases go beyond this chapter's scope.