• Foundation
  • About 18 min
  • 5 practice questions

Standard real functions and their graphs

Recognise and sketch the identity, constant, linear, polynomial, rational, modulus, signum and greatest integer functions, and state the domain and range of each.

If something looks wrong, please tell us.

By the end of this lesson you can

  • State the rule, domain and range of the identity, constant and linear functions.
  • Recognise polynomial and rational functions and find where a rational function is undefined.
  • Evaluate and sketch the modulus, signum and greatest integer functions.
  • Read a piecewise definition and evaluate it at given points.

A small family of functions turns up again and again in calculus, coordinate geometry and physics. Knowing each one's rule, graph, domain and range by heart lets you sketch a new function quickly and spot mistakes. In every case below the graph is the set of points (x, f(x)) in the plane.

Identity, constant and linear functions

The identity function f : R → R, f(x) = x, sends every number to itself. Its graph is the straight line y = x through the origin, making 45° with the x-axis. Domain and range are both R.

A constant function f(x) = c gives the same value for every x. Its graph is a horizontal line y = c. Domain R, range {c}. For example, f(x) = −3 has range {−3}.

A linear function is f(x) = mx + c, where m and c are constants. Its graph is a straight line with slope m that cuts the y-axis at (0, c). The function f(x) = x + 10 is linear: f(0) = 10, f(−10) = 0, f(5) = 15.

Polynomial and rational functions

A polynomial function has the form f(x) = a₀ + a₁x + a₂x² + ... + aₙxⁿ, where n is a non-negative integer and the coefficients are real. f(x) = x³ − 2x + 7 is a polynomial function. f(x) = x^(1/2) + 1 and f(x) = 3/x + x are not, because the powers of x are not non-negative integers.

A rational function is a quotient f(x)/g(x) of two polynomial functions, defined where g(x) ≠ 0. The simplest is f(x) = 1/x with domain R − {0}. Its range is also R − {0}: 1/x can be any non-zero number but never 0. As x grows, 1/x shrinks towards 0; as x approaches 0 from the right, 1/x grows without bound.

Values for sketching three standard graphs
x−2−1−0.50.5124
y = x²410.250.251416
y = x³−8−1−0.1250.1251864
y = 1/x−0.5−1−2210.50.25

The table shows a pattern worth remembering. The graph of y = x² is a U-shaped curve (a parabola) that is symmetric about the y-axis, with range [0, ∞). The graph of y = x³ rises from left to right through the origin, with negative outputs for negative inputs; its range is R. The graph of y = 1/x has two separate branches, in the first and third quadrants.

The modulus function

The modulus function f(x) = |x| is defined by |x| = x if x ≥ 0 and |x| = −x if x < 0. So |5| = 5, |0| = 0 and |−5| = −(−5) = 5. Its graph is V-shaped with its corner at the origin. Domain R, range [0, ∞).

The signum function

The signum function gives only the sign of a number: f(x) = 1 if x > 0, f(x) = 0 if x = 0, and f(x) = −1 if x < 0. For x ≠ 0 it equals |x|/x. Its graph is two horizontal pieces at heights 1 and −1 with a single point at the origin. Domain R, range {−1, 0, 1}.

The greatest integer function

The greatest integer function f(x) = [x] gives the greatest integer less than or equal to x. So [3.7] = 3, [5] = 5, [0.2] = 0 and, carefully, [−1.3] = −2, because −2 is the greatest integer that does not exceed −1.3. In general [x] = n for n ≤ x < n + 1. The graph is a staircase of horizontal steps, each closed at its left end and open at its right end. Domain R, range Z.

Standard functions by range

  • Range R
    • Identity f(x) = x
    • Linear mx + c, m ≠ 0
    • Cube f(x) = x³
  • Range [0, ∞)
    • Square f(x) = x²
    • Modulus f(x) = |x|
  • Only special values
    • Constant: {c}
    • Signum: {−1, 0, 1}
    • Greatest integer: Z
  • Range R − {0}
    • Reciprocal f(x) = 1/x
All the domains are R except for 1/x, whose domain is R − {0}.

Worked example 1: evaluating the special functions

Find |−7| + [−2.5] + sgn(−4) + [√2], where sgn is the signum function. Working: |−7| = 7; [−2.5] = −3 (the greatest integer not exceeding −2.5); sgn(−4) = −1; √2 ≈ 1.414, so [√2] = 1. The total is 7 − 3 − 1 + 1 = 4.

Worked example 2: a piecewise function

Let f(x) = 2 − x for x < 0, f(0) = 3, and f(x) = x² + 2 for x > 0. Find f(−3), f(0) and f(2). Working: −3 < 0, so f(−3) = 2 − (−3) = 5. The value at 0 is given directly: f(0) = 3. 2 > 0, so f(2) = 4 + 2 = 6. Each piece is used only for its own part of the domain.

Worked example 3: finding a linear function

A linear function f : Z → Z contains the pairs (0, −3) and (2, 5). Find f(x). Working: write f(x) = mx + c. From (0, −3), f(0) = c = −3. From (2, 5), 2m − 3 = 5, so m = 4. Hence f(x) = 4x − 3. Check: f(2) = 8 − 3 = 5.

|x| = x for x ≥ 0 and −x for x < 0. [x] is the greatest integer ≤ x, so [−1.3] = −2, not −1.

— Two definitions to get exactly right

Key takeaways: learn each standard function's rule, graph shape, domain and range. The modulus never gives a negative output, signum takes only the values −1, 0 and 1, and the greatest integer function rounds down, which matters most for negative numbers.

Check your understanding

  1. 1. What is the value of [−3.2] + [3.2], where [x] is the greatest integer function?

    1. 0
    2. −1
    3. 1
    4. −6
    Show answer

    Answer: B. [3.2] = 3. [−3.2] is the greatest integer not exceeding −3.2, which is −4 (not −3). So the sum is −4 + 3 = −1.

  2. 2. What is the range of the signum function?

    1. R
    2. {−1, 1}
    3. [−1, 1]
    4. {−1, 0, 1}
    Show answer

    Answer: D. Signum gives 1 for positive x, 0 at x = 0 and −1 for negative x. Those are its only values, so its range is {−1, 0, 1}. The interval [−1, 1] would include values such as 0.5 that are never taken.

  3. 3. Which of these is a polynomial function?

    1. f(x) = 3x⁴ − x + 2
    2. f(x) = √x + 1
    3. f(x) = 1/x + x
    4. f(x) = |x|
    Show answer

    Answer: A. 3x⁴ − x + 2 has only non-negative integer powers of x, so it is a polynomial. √x = x^(1/2) and 1/x = x⁻¹ have powers that are not non-negative integers, and |x| is not of polynomial form.

  4. 4. What is the range of f(x) = |x − 2|, x ∈ R?

    1. R
    2. [2, ∞)
    3. [0, ∞)
    4. (0, ∞)
    Show answer

    Answer: C. A modulus is never negative, so f(x) ≥ 0, and f(2) = 0 shows that 0 is attained. Every positive value is reached too, so the range is [0, ∞).

  5. 5. A linear function f satisfies f(0) = 3 and f(2) = −1. What is f(x)?

    1. 2x + 3
    2. −2x + 3
    3. −2x − 1
    4. 3x − 2
    Show answer

    Answer: B. Write f(x) = mx + c. f(0) = c = 3. Then f(2) = 2m + 3 = −1, so 2m = −4 and m = −2. Hence f(x) = −2x + 3. Check: f(2) = −4 + 3 = −1.

Privacy · Terms · Refunds · Delivery