Skip to content
IB Diploma ProgrammeSL & HL

Modulus and reciprocal graphs

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Modulus and reciprocal graphs notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Modulus and reciprocal graphs notes as text: skim, search, and jump between subtopics.

~17 min read

1. The modulus graph: y = |f(x)|

The modulus of a number is its distance from zero, so it is never negative. For a function, |f(x)| equals f(x) when f(x) ≥ 0 and -f(x) when f(x) < 0.

To sketch y = |f(x)|, keep every part of the graph of y = f(x) that is on or above the x-axis. Reflect every part below the axis in the x-axis. The x-intercepts do not move.

The new graph has no point below the axis. A minimum of f below the axis becomes a local maximum. A sharp point forms where f crosses the axis with a non-zero gradient.

|f(x)| = begincases f(x) & f(x) ≥ 0 -f(x) & f(x) < 0 endcases

y = |f(x)| ⇒ y ≥ 0 for every x

Worked example 15 marks

The function f is defined by f(x) = x² - 2x - 3. Sketch the graph of y = |f(x)|, showing the x-intercepts, the y-intercept and the coordinates of the local maximum point.

  1. 1

    reflect the part of y = f(x) that is below the x-axis in the x-axis (M1) [1]

  2. 2

    f(x) = (x+1)(x-3), so the x-intercepts (-1, 0) and (3, 0) stay where they are (A1) [1]

  3. 3

    f(0) = -3, so the y-intercept of y = |f(x)| is (0, 3) (A1) [1]

  4. 4

    f(x) = (x-1)² - 4 has its minimum at (1, -4), so |f| has a local maximum at (1, 4) (A1) [1]

  5. 5

    the curve is never below the x-axis: unchanged for x < -1 and x > 3, an arch between -1 and 3 (A1) [1]

2. The graph of f(|x|)

For y = f(|x|) the input is always |x|, which is never negative. So the graph for x < 0 is a copy of the graph for x > 0.

Keep the part of y = f(x) with x ≥ 0. Delete the part with x < 0. Then reflect the kept part in the y-axis. The graph is symmetrical about the y-axis.

The y-intercept is f(0). Where f has a non-zero gradient at x = 0, the two halves meet in a cusp. Compare |f(x)|, which reflects in the x-axis and leaves the y-axis alone.

f(|x|) = f(x) for x ≥ 0

f(|x|) = f(-x) for x < 0

f(|-x|) = f(|x|)

Worked example 17 marks

The function f is defined as f(x) = (x² + ax + b)/(x + 1), where x ≠ -1 and a, b ∈ Z.

In the case where a = -3 and b = 1

(e)(i) sketch the graph of y = f(|x|), showing any asymptotes with their equations, the value of the intercept with the y-axis, and the coordinates of any local maximum or minimum points;

(ii) solve f(|x|) < f(x).

  1. 1

    smooth curve concave up for x > 0 with a minimum below the x-axis (A1) [1]

  2. 2

    correct coordinates for at least one minimum point: (1.24, -0.528) (A1) [1]

  3. 3

    symmetrical about the y-axis with a cusp at (0, 1) (A1) [1]

  4. 4

    both asymptotes shown with correct equations: y = x - 4 and y = -x - 4 (A1) [1]

  5. 5

    appropriate asymptotic behaviour for both asymptotes (A1) [1]

  6. 6

    (ii) graph y = f(x) and y = f(|x|): they coincide for x ≥ 0, and f(|x|) is below f(x) only between the vertical asymptote x = -1 and x = 0

  7. 7

    correct end-points -1 and 0 (A1) [1]

  8. 8

    correct inequality signs: -1 < x < 0 (A1) [1]

3. The reciprocal graph: y = 1/f(x)

For y = 1/(f(x)), replace every y-value of y = f(x) by its reciprocal. The sign does not change. The graph is above the axis where f is positive and below it where f is negative.

Each zero of f gives a vertical asymptote at the same x. If |f(x)| → ∞ as x → ±∞, then 1/(f(x)) → 0 and y = 0 is a horizontal asymptote.

The points where f(x) = 1 or f(x) = -1 stay fixed. A local minimum of f becomes a local maximum of 1/f at the same x, and the reverse. Where f is increasing, 1/f is decreasing.

f(a) = 0 ⇒ x = a is a vertical asymptote of y = 1/(f(x))

f(x) = ± 1 ⇒ 1/(f(x)) = f(x)

|f(x)| → ∞ ⇒ 1/(f(x)) → 0

Worked example 15 marks

The function f is defined by f(x) = x² - 2x - 3. Sketch the graph of y = 1/(f(x)), showing the equations of the asymptotes, the y-intercept and the coordinates of the local maximum point.

  1. 1

    f(x) = (x+1)(x-3) is zero at x = -1 and x = 3, so these are vertical asymptotes (A1) [1]

  2. 2

    y = 0 is a horizontal asymptote (A1) [1]

  3. 3

    f(0) = -3, so the y-intercept is (0, -1/3) (A1) [1]

  4. 4

    f has a minimum at (1, -4), so 1/f has a local maximum at (1, -1/4) (A1) [1]

  5. 5

    branches above the x-axis for x < -1 and x > 3, and below it for -1 < x < 3 (A1) [1]

4. The squared graph: y = [f(x)]²

To sketch y = [f(x)]², square every y-value of y = f(x). The result is never negative, so no part of the graph is below the x-axis.

At a zero of f the new graph touches the x-axis, because 0² = 0. A point where f(x) = 1 is invariant. A point where f(x) = -1 moves up to y = 1.

Where |f(x)| < 1 the graph moves closer to the axis. Where |f(x)| > 1 it moves further away. A turning point at height k becomes a turning point at height k², so a minimum below the axis becomes a maximum.

y = [f(x)]² ≥ 0

f(a) = 0 ⇒ [f(a)]² = 0

f(a) = ± 1 ⇒ [f(a)]² = 1

Worked example 14 marks

The function f is defined by f(x) = x² - 2x. Sketch the graph of y = [f(x)]², showing the x-intercepts and the coordinates of the local maximum point.

  1. 1

    [f(x)]² ≥ 0, so the graph is never below the x-axis (R1) [1]

  2. 2

    f(x) = x(x-2) is zero at x = 0 and x = 2, so the graph touches the x-axis at (0, 0) and (2, 0) (A1) [1]

  3. 3

    f(x) = (x-1)² - 1 has its minimum at (1, -1); squaring gives a local maximum at (1, 1) (A1) [1]

  4. 4

    the graph has a W shape, with minimum points at (0, 0) and (2, 0) (A1) [1]

5. The graph of f(ax + b)

The graph of y = f(ax +b) comes from y = f(x) in two steps. First a stretch with scale factor 1/a parallel to the x-axis. Then a translation of -b/a along the x-axis, because f(ax +b) = f(a(x + b/a)).

Only the x-coordinates change. The y-coordinates stay the same. A point (p,q) on y = f(x) moves to ((p - b)/a, q). If a is negative, the stretch includes a reflection in the y-axis.

The translation is by -b/a, not -b.

f(ax + b) = f(a(x + b/a))

(p, q) → ((p - b)/a, q)

stretch, scale factor 1/a, then translation beginpmatrix -b/a 0 endpmatrix

Worked example 14 marks

The graph of y = f(x) has a local maximum point at (-2, 3) and crosses the x-axis at (4, 0). Find the coordinates of the corresponding points on the graph of y = f(3x + 1).

  1. 1

    a point (p,q) on y = f(x) gives the point where 3x + 1 = p on y = f(3x + 1) (M1) [1]

  2. 2

    3x + 1 = -2 gives x = -1, so the local maximum is (-1, 3) (A1) [1]

  3. 3

    3x + 1 = 4 gives x = 1, so the x-intercept is (1, 0) (A1) [1]

  4. 4

    the y-coordinates are unchanged, because only x is transformed (R1) [1]

6. Modulus equations

A modulus is zero or positive. So |f(x)| = k has solutions only when k ≥ 0, and they satisfy f(x) = k or f(x) = -k.

For |f(x)| = |g(x)| the two expressions are equal or opposite: f(x) = g(x) or f(x) = -g(x).

For |f(x)| = g(x), solve both cases, then check every solution in the original equation. A solution with g(x) < 0 is extraneous and is rejected. The solutions are the x-coordinates where y = |f(x)| meets y = g(x).

|f(x)| = k iff f(x) = k or f(x) = -k (k ≥ 0)

|f(x)| = |g(x)| iff f(x) = ± g(x)

|f(x)| = g(x) ⇒ g(x) ≥ 0

Worked example 15 marks

Solve |x - 2| = 3x + 2.

  1. 1

    x - 2 = 3x + 2 or x - 2 = -(3x + 2) (M1) [1]

  2. 2

    x - 2 = 3x + 2 gives x = -2 (A1) [1]

  3. 3

    x - 2 = -3x - 2 gives 4x = 0, so x = 0 (A1) [1]

  4. 4

    check x = -2: |-4| = 4 but 3x + 2 = -4, so the sides differ and x = -2 is extraneous (R1) [1]

  5. 5

    check x = 0: |-2| = 2 and 3(0) + 2 = 2, so the only solution is x = 0 (A1) [1]

7. Modulus inequalities

For k > 0, |f(x)| < k means -k < f(x) < k: one interval. And |f(x)| > k means f(x) > k or f(x) < -k: two outside ranges.

For |f(x)| < |g(x)|, square both sides. Both are non-negative, so [f(x)]² < [g(x)]². Move everything to one side and factorise: (f - g)(f +g) < 0.

When algebra cannot isolate x, as in |3x arccos(x)| > 1, plot y = |f(x)| and y = k on the graphic display calculator. Find the intersections, then read the intervals from the graph. Strict signs give open ends.

|f(x)| < k iff -k < f(x) < k

|f(x)| > k iff f(x) > k or f(x) < -k

|f(x)| < |g(x)| iff [f(x)]² < [g(x)]² iff (f - g)(f + g) < 0

Worked example 15 marks

Use your graphic display calculator to solve |3x arccos(x)| > 1. Give the end-points to three significant figures.

  1. 1

    arccos(x) is defined only for -1 ≤ x ≤ 1 (R1) [1]

  2. 2

    plot y = |3x arccos(x)| and y = 1 on this domain (M1) [1]

  3. 3

    the intersections are at x = -0.189, x = 0.254 and x = 0.937 (A1) [1]

  4. 4

    the curve is above y = 1 for -1 ≤ x < -0.189; at x = -1 it is 3π ≈ 9.42 (A1) [1]

  5. 5

    and for 0.254 < x < 0.937 (A1) [1]

Recap

  • y = |f(x)|: reflect the parts below the x-axis in the x-axis. The graph is never below the axis.
  • y = f(|x|): keep x ≥ 0, delete x < 0, reflect the kept part in the y-axis. The graph is symmetrical about the y-axis.
  • y = 1/(f(x)): vertical asymptotes at the zeros of f, y = 0 as the horizontal asymptote, points with f = ± 1 fixed, minima and maxima swap.
  • y = [f(x)]²: never negative, touches the axis at the zeros of f, points with f = 1 stay fixed.
  • y = f(ax + b): stretch with scale factor 1/a parallel to the x-axis, then translate by -b/a. The y-values do not change.
  • |f(x)| = k means f(x) = ± k. Check every solution of |f(x)| = g(x). For |f| < |g| square both sides.
  • |f(x)| < k is one interval, |f(x)| > k is two. When algebra fails, plot both graphs and use the intersections.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the coordinates of the point on the graph of y = |f(x)| that corresponds to the point (2, -5) on the graph of y = f(x).1 mark
    Answer
    1. The point is below the x-axis, so it is reflected in the x-axis.
    2. The point is (2, 5).

    Trap: Reflecting in the y-axis gives (-2, -5). That is the graph of f(-x). The modulus changes only the sign of y.

  2. The point (2, 5) lies on the graph of y = f(x). Which point must lie on the graph of y = f(|x|)? A. (-2, 5)  B. (2, -5)  C. (-2, -5)  D. (5, 2)1 mark
    Answer
    1. For x ≥ 0, f(|x|) = f(x), so (2, 5) is on the graph.
    2. The graph is symmetrical about the y-axis, so (-2, 5) is also on it.
    3. The answer is A.

    Trap: B comes from reading f(|x|) as -f(x). C reflects in the origin. D swaps the coordinates. A reflection in the y-axis changes only the sign of x.

  3. Do not use a calculator. The function f is defined by f(x) = x² - 9. State the equation of each asymptote of the graph of y = 1/(f(x)).3 marks
    Answer
    1. A vertical asymptote lies at each zero of f.
    2. x² - 9 = 0 gives x = 3 and x = -3.
    3. As |f(x)| grows, 1/(f(x)) → 0, so y = 0 is the horizontal asymptote.

    Trap: Writing only x = ± 3 loses the horizontal asymptote. Taking reciprocals of the zeros (x = ±1/3) is wrong: the asymptotes sit at the zeros of f themselves.

  4. Do not use a calculator. Solve |2x - 5| = 7.3 marks
    Answer
    1. 2x - 5 = 7 or 2x - 5 = -7.
    2. 2x - 5 = 7 gives x = 6.
    3. 2x - 5 = -7 gives x = -1.

    Trap: Writing the second case as -2x - 5 = 7 negates only the x term and gives x = -6. Negate the whole expression, or negate the right-hand side.

  5. Do not use a calculator. The graph of y = f(2x + 6) is obtained from the graph of y = f(x) by a stretch parallel to the x-axis followed by a translation. Describe each transformation fully.3 marks
    Answer
    1. f(2x + 6) = f(2(x + 3)).
    2. First a stretch with scale factor 1/2 parallel to the x-axis.
    3. Then a translation by the vector beginpmatrix -3 0 endpmatrix.

    Trap: Translating by -6 gives f(2(x + 6)) = f(2x + 12). The translation is b/a = 3 to the left, after the stretch.

  6. Do not use a calculator. Solve the inequality |2x + 1| > 5.3 marks
    Answer
    1. 2x + 1 > 5 or 2x + 1 < -5.
    2. 2x + 1 > 5 gives x > 2.
    3. 2x + 1 < -5 gives x < -3.
    4. The solution is x < -3 or x > 2.

    Trap: -3 < x < 2 is the answer to |2x + 1| < 5. A "greater than" modulus inequality gives two outside ranges joined by "or".

  7. Do not use a calculator. Solve |3x - 2| = x - 4.4 marks
    Answer
    1. Case 1: 3x - 2 = x - 4 gives 2x = -2, so x = -1.
    2. Case 2: 3x - 2 = -(x - 4) gives 4x = 6, so x = 3/2.
    3. Check x = -1: |-5| = 5 but x - 4 = -5. Reject.
    4. Check x = 3/2: |5/2| = 5/2 but x - 4 = -5/2. Reject. There is no solution.

    Trap: Stopping after the two cases gives two answers. Both fail the check, because x - 4 < 0 for each and a modulus is never negative.

  8. Do not use a calculator. Solve the inequality |x - 1| < |2x + 3|.5 marks
    Answer
    1. Both sides are non-negative, so square both sides: (x - 1)² < (2x + 3)².
    2. (2x + 3)² - (x - 1)² > 0.
    3. [(2x + 3) - (x - 1)][(2x + 3) + (x - 1)] > 0.
    4. (x + 4)(3x + 2) > 0.
    5. The roots are x = -4 and x = -2/3, and the product is positive outside them.
    6. The solution is x < -4 or x > -2/3.

    Trap: The product (x + 4)(3x + 2) is positive outside its roots, not between them. Check a value: x = -1 gives 2 < 1, which is false, so -1 is rightly excluded.

  9. A sensor records an error E(t) = 2t² - 8t + 3 millimetres, where t seconds is the time and 0 ≤ t ≤ 4. The reading is |E(t)|. (a) Find the exact values of t for which |E(t)| = 1. [4] (b) Hence solve |E(t)| < 1. Give the end-points to three significant figures. [3]7 marks
    Answer
    1. (a)
    2. E(t) = 1 or E(t) = -1.
    3. E = 1: 2t² - 8t + 2 = 0, so t² - 4t + 1 = 0 and t = 2 ± √3.
    4. E = -1: 2t² - 8t + 4 = 0, so t² - 4t + 2 = 0 and t = 2 ± √2.
    5. All four values lie in 0 ≤ t ≤ 4.
    6. (b)
    7. |E| < 1 means -1 < E < 1. The parabola opens upwards, so E < 1 for 2 - √3 < t < 2 + √3.
    8. E > -1 for t < 2 - √2 or t > 2 + √2.
    9. Both hold for 0.268 < t < 0.586 or 3.41 < t < 3.73.

    Trap: Solving only E = 1 gives one interval, 0.268 < t < 3.73. The modulus needs both E = 1 and E = -1.

  10. The function f is defined by f(x) = x² - 4x - 5. (a) Find the exact solutions of |f(|x|)| = 4. [5] (b) Explain why the equation |f(|x|)| = 12 has exactly two solutions. [3]8 marks
    Answer
    1. (a)
    2. f(|x|) = |x|² - 4|x| - 5. Let u = |x|, with u ≥ 0.
    3. |f(|x|)| = 4 gives u² - 4u - 5 = 4 or u² - 4u - 5 = -4.
    4. u² - 4u - 9 = 0 gives u = 2 ± √13. u² - 4u - 1 = 0 gives u = 2 ± √5.
    5. u ≥ 0, so reject 2 - √13 and 2 - √5, which are negative.
    6. Each positive u gives two values of x: x = ±(2 + √13) and x = ±(2 + √5).
    7. (b)
    8. f(|x|) = -12 has no solution: u² - 4u + 7 = 0 has discriminant 16 - 28 < 0. The least value of f(|x|) is -9.
    9. f(|x|) = 12 gives u² - 4u - 17 = 0, so u = 2 ± √21.
    10. Only u = 2 + √21 is non-negative, and it gives x = ±(2 + √21): exactly two solutions.

    Trap: Forgetting to reject the negative value of u = |x|, or forgetting that each positive |x| gives two values of x, gives the wrong number of solutions.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
y = f(|x|): reflect the whole graph of y = f(x) in the y-axisDelete the part with x < 0, then reflect the part with x ≥ 0 in the y-axis
y = 1/(f(x)) has an x-intercept where f(x) = 0y = 1/(f(x)) has a vertical asymptote where f(x) = 0, and y = 0 is a horizontal asymptote
-1 ≤ x ≤ 0 for f(|x|) < f(x): right end-points, wrong signs-1 < x < 0: strict signs to match the strict inequality (end-points right, signs wrong earns A1A0)
|f(x)| = g(x) is solved by f(x) = g(x) and f(x) = -g(x) and both answers are statedCheck each solution in the original equation and reject any with g(x) < 0

Frequently asked questions

How do you sketch the graph of y = |f(x)| from the graph of y = f(x)?
Keep every part of y = f(x) that is on or above the x-axis, and reflect every part below the axis in the x-axis. The x-intercepts do not move. A minimum of f below the axis becomes a local maximum. For f(x) = x² - 2x - 3 the local maximum of |f(x)| is at (1, 4) and the y-intercept is (0, 3).
What is the difference between y = f(|x|) and y = |f(x)|?
For y = f(|x|), keep the part of y = f(x) with x ≥ 0, delete the part with x < 0 and reflect the kept part in the y-axis. The graph is then symmetrical about the y-axis. For y = |f(x)| the reflection is in the x-axis, and the y-axis is left alone.
How do you sketch y = 1/(f(x)) from the graph of y = f(x)?
Each zero of f gives a vertical asymptote at the same x, and the sign of f does not change. Where |f(x)| → ∞, 1/(f(x)) → 0, so y = 0 is a horizontal asymptote. A local minimum of f becomes a local maximum of 1/(f(x)) at the same x, and points where f(x) = 1 or f(x) = -1 stay fixed.
How does the graph of y = [f(x)]² differ from the graph of y = f(x)?
Square every y-value, so the graph is never below the x-axis. At each zero of f the new graph touches the x-axis. A turning point at height k becomes a turning point at height k², so a minimum below the axis becomes a maximum. Where f(x) = -1 the point moves up to y = 1.
How do you find the points on y = f(3x + 1) from the points on y = f(x)?
The graph is stretched with scale factor 1/a parallel to the x-axis and then translated by -b/a. Only the x-coordinates change, so a point (p, q) moves to ((p - b)/a, q). For y = f(3x + 1) the local maximum (-2, 3) becomes (-1, 3), and the x-intercept (4, 0) becomes (1, 0).
Why is an x-intercept wrong for y = 1/(f(x)) at a zero of f?
Each zero of f gives a vertical asymptote at the same x-value, not an x-intercept. For f(x) = x² - 2x - 3 the vertical asymptotes are x = -1 and x = 3. The horizontal asymptote y = 0 is drawn as well, and the graph does not cross the x-axis at those points.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters