2. Functions

Modulus Transformations

Modulus Transformations

students, today’s lesson is about one of the most useful ideas in Functions: the modulus, or absolute value, transformation. Modulus transformations help us change parts of a graph while keeping others fixed, which makes them powerful for sketching, solving equations, and modeling real situations 📈. By the end of this lesson, you should be able to explain what modulus means, describe how it changes a graph, and use it in IB-style reasoning with functions.

Lesson objectives:

  • Understand the meaning of modulus as a function operation.
  • Describe how modulus transformations affect graphs and equations.
  • Apply modulus transformations to solve equations and inequalities.
  • Connect modulus transformations to transformations, inverse thinking, and function behavior.

A big idea to remember is that the modulus of a number measures its distance from $0$ on the number line. That is why $|x|$ is always non-negative. For example, $|5|=5$ and $|-5|=5$. This simple idea becomes very useful when applied to functions, because it changes how the graph behaves on different parts of the domain.

What modulus means in function language

The modulus of a real number is defined as

$$

$|x|=\begin{cases}$

$x, & x\ge 0 \\$

-x, & x<0

$\end{cases}$

$$

This piecewise definition is important because it shows that modulus does not simply “make everything positive” in a random way. Instead, it keeps values that are already non-negative and reflects negative values across the $x$-axis.

For a function $f(x)$, the expression $|f(x)|$ means we apply the modulus to the output of the function. So if $f(x)$ is negative, the graph is reflected above the $x$-axis; if $f(x)$ is already non-negative, it stays the same. In other words, the transformation $y=|f(x)|$ changes only the parts of the graph below the $x$-axis.

Example: if $f(x)=x-2$, then

$$

$|f(x)|=|x-2|.$

$$

The graph of $y=x-2$ is a straight line crossing the $x$-axis at $x=2$. After applying modulus, the part below the $x$-axis flips upward, creating a “V” shape with vertex at $(2,0)$.

This is very different from multiplying by a constant like $y=2f(x)$, which stretches the whole graph vertically. Modulus is a conditional transformation because it depends on whether $f(x)$ is positive or negative.

How $y=|f(x)|$ changes a graph

To understand $y=|f(x)|$, split the graph of $y=f(x)$ into two parts:

  • where $f(x)\ge 0$, the graph stays unchanged;
  • where $f(x)<0$, the graph is reflected in the $x$-axis.

This means the zeros of the function are especially important. Wherever $f(x)=0$, the graph of $|f(x)|$ touches the $x$-axis. If the original graph crosses the axis, the modulus version creates a sharp turn or corner at that point.

Take $f(x)=x^2-4$.

  • The original function has zeros at $x=-2$ and $x=2$.
  • Between $-2$ and $2$, the function is negative.
  • Outside that interval, it is non-negative.

So for $y=|x^2-4|$:

  • the outside parts stay the same,
  • the middle part is flipped upward.

This creates a graph that is smooth on the outside but has reflections in the center. In IB questions, it is common to sketch this by first finding the intervals where $f(x)$ is positive or negative.

A useful method is to write

$$

$|f(x)|=\begin{cases}$

$f(x), & f(x)\ge 0 \\$

-f(x), & f(x)<0

$\end{cases}$

$$

This helps with exact sketching and with solving equations. It also shows why the modulus graph is usually not differentiable at points where the graph changes direction sharply, such as at a cusp or corner.

Modulus inside the function: $f(|x|)$

Another important transformation is $y=f(|x|)$. This is different from $|f(x)|$.

For $y=f(|x|)$, we first replace $x$ by $|x|$ before applying the function. Since $|x|=x$ for $x\ge 0$ and $|x|=-x$ for $x<0$, we get symmetry about the $y$-axis.

This means the graph on the right side of the $y$-axis is copied to the left side. So if you know the graph for $x\ge 0$, you can reflect it across the $y$-axis to get the rest.

Example: let $f(x)=\sqrt{x}$. Then

$$

$f(|x|)=\sqrt{|x|}.$

$$

The graph is defined for all real $x$, because $|x|\ge 0$. The right-hand half of $y=\sqrt{x}$ is copied to the left side, giving a graph symmetric about the $y$-axis. This is a very common IB-style observation.

Compare this with $|f(x)|=|\sqrt{x}|$. Since $\sqrt{x}\ge 0$ for all $x$ in its domain, the modulus changes nothing. This shows why it is essential to read the transformation carefully. The location of the modulus matters.

Solving equations and inequalities with modulus

Modulus transformations are closely linked to solving equations and inequalities. A classic form is

$$

$|f(x)|=a,$

$$

where $a\ge 0$.

This means either

$$

$f(x)=a$

$$

or

$$

$f(x)=-a.$

$$

Why? Because a number has absolute value $a$ if it is $a$ units from $0$, either positive or negative.

Example:

$$

$|x-3|=5.$

$$

So

$$

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

$$

Hence

$$

$x=8 \quad \text{or} \quad x=-2.$

$$

For inequalities, the rules are also important:

$$

$|f(x)|<a \iff -a<f(x)<a,$

$$

for $a>0$.

And

$$

|f(x)|>a $\iff$ f(x)>a \text{ or } f(x)<-a.

$$

Example:

$$

$|2x+1|\le 7$

$$

becomes

$$

$-7\le 2x+1\le 7.$

$$

Solving gives

$$

$-8\le 2x\le 6,$

$$

so

$$

$-4\le x\le 3.$

$$

In graph terms, inequalities with modulus often describe distances. For example, $|x-4|<2$ means $x$ is within $2$ units of $4$, so $2<x<6$. This distance idea is one of the most important connections between algebra and graphs in the Functions topic.

Modulus transformations in IB-style analysis

IB Mathematics: Analysis and Approaches HL often asks students to explain behavior using clear reasoning, not just calculations. Modulus transformations are perfect for that because they connect graph shape, domain, range, symmetry, and equation solving.

Here are three major connections:

1. Symmetry

  • $y=|f(x)|$ reflects negative $y$-values upward.
  • $y=f(|x|)$ creates symmetry about the $y$-axis.

2. Domain and range

  • The domain of $|f(x)|$ is usually the same as the domain of $f(x)$.
  • The range of $|f(x)|$ is always non-negative.
  • The domain of $f(|x|)$ may become larger than the domain of $f(x)$ if the original function was only defined for $x\ge 0$.

3. Piecewise structure

Modulus creates piecewise functions naturally. For example,

$$

$|x^2-1|=\begin{cases}$

x^2-1, & x\le -1 \text{ or } x\ge 1 \\

$1-x^2, & -1<x<1$

$\end{cases}$

$$

This kind of decomposition is very useful when drawing graphs or finding exact intersections.

A real-world interpretation can help too. Imagine the temperature deviation from freezing. If the temperature is $-3^\circ\text{C}$ or $3^\circ\text{C}$, the difference from $0^\circ\text{C}$ is the same in magnitude. That is exactly what modulus measures: distance from a reference value. 🚗📏

Conclusion

Modulus transformations are an essential part of Functions in IB Mathematics: Analysis and Approaches HL. The main idea is that modulus uses distance, so it turns negative values positive in a controlled way. When applied to functions, $|f(x)|$ reflects only the parts below the $x$-axis, while $f(|x|)$ creates symmetry about the $y$-axis. These transformations help with graph sketching, solving equations, solving inequalities, and understanding function structure. students, if you can explain why a graph changes in each interval and how that relates to $|x|$, you are using the kind of reasoning IB values.

Study Notes

  • The modulus of a real number is its distance from $0$.
  • $|x|=x$ for $x\ge 0$ and $|x|=-x$ for $x<0$.
  • $y=|f(x)|$ keeps the part of $y=f(x)$ above the $x$-axis and reflects the part below it.
  • $y=f(|x|)$ creates symmetry about the $y$-axis.
  • The domain of $|f(x)|$ is usually the same as the domain of $f(x)$.
  • The range of $|f(x)|$ is always $y\ge 0$.
  • To solve $|f(x)|=a$ with $a\ge 0$, solve $f(x)=a$ and $f(x)=-a$.
  • To solve $|f(x)|<a$, use $-a<f(x)<a$.
  • To solve $|f(x)|>a$, use $f(x)>a$ or $f(x)<-a$.
  • Modulus transformations often create piecewise functions.
  • Zeros of the original function are key points where the graph of $|f(x)|$ may change shape.
  • In IB questions, always check whether the modulus is applied to the input $x$ or to the output $f(x)$.

Practice Quiz

5 questions to test your understanding