Introduction to the Modulus Function

Hi there! Welcome to one of the most visually satisfying topics in A Level Maths: The Modulus Function. Don't worry if the name sounds a bit "mathsy" and intimidating—it is actually a very simple concept. In short, the modulus function is like a "positivity filter." Whatever number you put into it, it makes sure the result comes out positive. In this guide, we will learn how to define it, how to draw its "V-shaped" graphs, and how to solve equations and inequalities using it.


1. What is the Modulus?

The modulus of a number is simply its "size" or magnitude, regardless of its sign. We represent it using two vertical bars: \(|x|\). This is sometimes called the absolute value.

The Definition

Mathematically, we define it in two parts:

  • If \(x\) is positive (or zero), the modulus does nothing: \(|x| = x\)
  • If \(x\) is negative, the modulus flips the sign to make it positive: \(|x| = -x\)

Example: \(|5| = 5\) and \(|-5| = 5\).

The Everyday Analogy: Think of the modulus as distance. If you walk 5 miles East, you've traveled 5 miles. If you walk 5 miles West, you've still traveled a distance of 5 miles. Distance can never be negative!

Did you know? The modulus function is used in computer programming and engineering whenever we need to calculate the difference between two values without caring which one is larger.

Key Takeaway: The output of a modulus function \(|f(x)|\) can never be negative. If you see an equation like \(|x| = -3\), you know immediately there is no solution!


2. Graphing the Modulus Function

For your OCR A Level, you need to know how to sketch the graph of \(y = |ax + b|\). These graphs always have a distinctive "V" shape.

Step-by-Step: How to Sketch \(y = |ax + b|\)

  1. Sketch the "normal" line: Lightly draw the line \(y = ax + b\) as if the modulus bars weren't there.
  2. Identify the negative part: Look at the part of the line that falls below the x-axis (where \(y\) is negative).
  3. Reflect: Flip that negative part upwards so it reflects across the x-axis.
  4. The Vertex: The point where the "V" hits the x-axis is called the vertex. This happens when \(ax + b = 0\).

Example: To sketch \(y = |x - 3|\):
The line \(y = x - 3\) would normally go below the x-axis when \(x < 3\). By applying the modulus, that part is reflected, creating a "V" that touches the x-axis at \((3, 0)\).

Quick Review Box:
- The graph is always on or above the x-axis.
- The point of the "V" is where the expression inside the bars equals zero.
- The "arms" of the V are straight lines.


3. Solving Modulus Equations

When you solve an equation like \(|f(x)| = g(x)\), you are looking for where a V-shaped graph intersects with another line.

Method 1: The "Two-Case" Method

Since the stuff inside the modulus could have been positive or negative before the bars were applied, we split the equation into two:

  1. Case 1 (Positive): \(f(x) = g(x)\)
  2. Case 2 (Negative): \(-f(x) = g(x)\) (or \(f(x) = -g(x)\))

Method 2: Squaring Both Sides

The syllabus mentions that \(|a| = |b| \iff a^2 = b^2\). This is a very powerful trick! Squaring a number always makes it positive, which "removes" the need for modulus bars.

Use this method when you have a modulus on both sides, like \(|x + 2| = |2x - 1|\).

Common Mistake: Always check your answers by plugging them back into the original equation! Sometimes, one of the solutions doesn't actually work (these are called 'extraneous' solutions).

Key Takeaway: Most modulus equations will have two solutions, but always check your graph or your algebra to be sure.


4. Solving Modulus Inequalities

This is often where students feel a bit stuck, but there are two very clear ways to handle it.

The Graphical Way (Highly Recommended!)

Sketch both sides of the inequality. If the question is \(|x - 2| < 5\), you draw the V-shape \(y = |x - 2|\) and the horizontal line \(y = 5\). The solution is the set of \(x\) values where the V-shape is below the line.

The Algebraic Way

The syllabus gives us a handy rule for inequalities like \(|x - a| < b\):
This is exactly the same as saying: \(a - b < x < a + b\).

Memory Aid:
- If \(|f(x)| < \text{number}\), it's one continuous interval (the stuff is "trapped" near the middle).
- If \(|f(x)| > \text{number}\), it's two separate intervals (the stuff is "pushed out" to the ends).

Step-by-Step for \(|x + 2| \le |2x - 1|\):
1. Square both sides: \((x + 2)^2 \le (2x - 1)^2\)
2. Expand: \(x^2 + 4x + 4 \le 4x^2 - 4x + 1\)
3. Rearrange into a quadratic inequality: \(0 \le 3x^2 - 8x - 3\)
4. Solve the quadratic to find your critical values and regions.


Final Quick Review

Term: Modulus - The positive magnitude of a value, shown as \(|x|\).
Term: Vertex - The sharp corner of the modulus graph on the x-axis.
Trick: Squaring - Use \(a^2 = b^2\) to solve equations with modulus on both sides.
Check: Always substitute your answers back into the original equation to ensure they are valid.

Don't worry if this seems tricky at first! The best way to master the modulus function is to practice sketching the graphs. Once you can see the "V," the algebra usually starts to make much more sense.