Skip to main content
Tim Gan Math
A Math Tips

What Is a Modulus Function? Absolute Value, Graphs and Equations

10 min read
Modulus function shown as distance from zero and an absolute value graph

The modulus or absolute value of a real number tells us its distance from zero. Distance cannot be negative, so $|5|=5$ and $|-5|=5$.

That simple idea supports much more than arithmetic. It appears in equations, inequalities, graph transformations, vector magnitude, definite integrals and the modulus of a complex number. Students who reach H2 Mathematics without this foundation often have to learn the notation and the applications at the same time.

This guide builds the topic from the basic definition to graphs and H2 Math applications, followed by our tutors' view on the current syllabus gap.

In a hurry? Key takeaways
  • The modulus $|x|$ is the distance of $x$ from zero, so it is always non-negative.

  • A basic equation $|x-a|=r$ usually represents two points: $x=a+r$ or $x=a-r$.

  • $y=|f(x)|$ reflects negative outputs above the x-axis, while $y=f(|x|)$ reflects the right-hand portion across the y-axis.

  • Modulus connects to vector magnitude, geometric area, definite integrals and complex numbers in H2 Math.

  • Students intending to take H2 Math should learn basic modulus equations, inequalities and graphs before JC.

What Does Modulus Mean?

For a real number $x$, the modulus is its distance from zero on the number line. It is written as $|x|$ and defined by

$|x|=\begin{cases}x,&x\ge 0,\\-x,&x<0.\end{cases}$

Basic modulus rules include:

  • $|x|\ge0$ for every real number $x$.
  • $|x|=0$ only when $x=0$.
  • $|-x|=|x|$.
  • $|ab|=|a||b|$.
  • $\left|\frac{a}{b}\right|=\frac{|a|}{|b|}$ for $b\ne0$.

Examples:

  • $|7|=7$
  • $|-7|=7$
  • $|0|=0$
  • $|3-8|=|-5|=5$

A common mistake is saying that modulus simply 'removes the minus sign'. The distance interpretation is more useful because it extends naturally to equations, graphs, vectors and complex numbers.

Solving a Basic Modulus Equation

Consider

$|x-2|=5.$

This asks: which values of $x$ are five units away from 2? There are two possibilities:

$x-2=5\quad\text{or}\quad x-2=-5,$

so

$x=7\quad\text{or}\quad x=-3.$

The two-answer structure comes from distance. Students often lose one solution when they treat the modulus bars like ordinary brackets. Always consider the positive and negative cases, then check the answers in the original equation.

Understanding Modulus Inequalities

Distance also makes inequalities easier to interpret:

  • $|x-a|within $r$ units of $a$, so $a-r
  • $|x-a|>r$ means $x$ is more than $r$ units from $a$, so $xa+r$.

For example,

$|x-3|\le 4$

means that $x$ is at most four units from 3. Therefore

$-1\le x\le 7.$

For more complicated rational inequalities, students should identify critical values and use a sign or test-point method instead of applying a memorised rule blindly.

How Modulus Changes a Graph

Two transformations are easily confused:

### $y=|f(x)|$

Keep every part of $y=f(x)$ that is on or above the $x$-axis. Reflect any part below the $x$-axis upwards. The output can no longer be negative.

### $y=f(|x|)$

Keep the part of $y=f(x)$ for $x\ge0$, then reflect that right-hand portion in the $y$-axis. The resulting graph is symmetric about the $y$-axis.

Students should sketch the original graph first, identify what the modulus is acting on, and only then apply the correct reflection.

Why Modulus Matters Beyond One Topic

Modulus is a connecting idea across Mathematics.

Vector Magnitude

The magnitude of a vector is its length, so it must be non-negative. For $\mathbf{v}=(a,b)$,

$|\mathbf{v}|=\sqrt{a^2+b^2}.$

Students already meet the idea of magnitude in vectors. Understanding real-number modulus makes the notation and the geometric meaning less mysterious.

Areas Below the x-Axis

A definite integral gives signed area. A region below the $x$-axis contributes a negative value, but geometric area must be positive. If $f(x)$ crosses the axis, the interval must be split at its roots and the relevant integral values treated by magnitude. In suitable contexts, total area can be expressed using $|f(x)|$.

The Shoelace Formula

The determinant-style calculation in the shoelace formula can be positive or negative depending on the order of the vertices. The polygon's area is the absolute value of half that signed result. Modulus ensures that reversing orientation does not produce a negative area.

Complex Numbers

For $z=a+bi$, the modulus is the distance from the origin in an Argand diagram:

$|z|=\sqrt{a^2+b^2}.$

This is the same distance idea extended from the real number line to the complex plane.

Worked H2 Math Bridge: Modulus of a Complex Number

This short public solution from the TGM Question Bank finds the modulus and argument of $1+\sqrt3i$. It shows how the elementary idea of distance develops into an H2 Math application.

Students can explore more worked examples through the TGM Math Question Bank.

Our Tutors' View on the A Math Syllabus Gap

The current Singapore Additional Mathematics syllabus reduces content so students can concentrate on its assessed objectives. Our tutors understand that intention, but we do not agree with leaving detailed modulus functions, equations, inequalities and graph transformations out of the A Math learning path.

Mathematics is cumulative. Removing an advanced topic may reduce overload without affecting later foundations; removing a foundational idea can simply move the difficulty to the next stage. Students still encounter magnitude in vectors, area as a non-negative quantity and modulus notation. In H2 Math, modulus functions and inequalities may then be treated as assumed knowledge alongside more demanding concepts.

By comparison, the Cambridge IGCSE Additional Mathematics 0606 syllabus retains explicit work with $y=|f(x)|$. We are not suggesting that every O-Level student must study an extra examinable chapter. We recommend that students intending to take H2 Math learn the fundamentals after O-Levels so that their JC transition is less abrupt.

A Short Post-O-Level Learning Checklist

Before starting H2 Math, students should be able to:

  • Explain $|x|$ as distance from zero.
  • Use the piecewise definition of a modulus function.
  • Solve basic modulus equations.
  • Interpret and solve basic modulus inequalities.
  • Distinguish $y=|f(x)|$ from $y=f(|x|)$.
  • Connect modulus with vector magnitude and non-negative area.

This is a compact bridge topic. Learning it well can prevent avoidable confusion when the H2 syllabus becomes more demanding.

Conclusion

Modulus is not merely a pair of vertical bars. It is the mathematical language of distance and magnitude, connecting real numbers, graphs, inequalities, vectors, areas and complex numbers.

Students preparing for JC can use this guide as a foundation, then apply the ideas in worked questions and more advanced H2 Math topics.

Practise Modulus With Worked Explanations
Search the TGM Math Question Bank for targeted questions, written working and video solutions, or continue with our free H2 Math resources.

Frequently Asked Questions

Related Articles

A Math Tips
Understand Singapore Additional Mathematics, how it differs from E Math, who should take it, the current syllabus and how to prepare for A Math in Secondary 3.
H2 Math Tips
Mathematics is an essential subject that plays a crucial role in shaping our understanding of the world around us. In the realm of secondary and...
H2 Math Tips
What is H2 Mathematics? H2 Mathematics, also known as Higher 2 Mathematics, is a subject offered at the Advanced Level (A-Level) in the Singapore-Cambridge...