Topic 2: Modulus and Piecewise Graphs

The starting point for every modulus expression is

∣A∣={A,A≥0,−A,A<0.\boxed{ |A|= \begin{cases} A,&A\geq0,\\ -A,&A<0. \end{cases} }

When a modulus appears in an equation, the first question is:

When is the expression inside the modulus non-negative, and when is it negative?

These conditions determine which parts of the equation apply in different regions.

A modulus graph can therefore be understood by constructing its pieces. Reflections and symmetries then follow from the algebra rather than needing to be memorised as separate rules.

The general approach is

identify the expression⟶find its sign⟶construct the pieces⟶use symmetry.\boxed{ \text{identify the expression} \longrightarrow \text{find its sign} \longrightarrow \text{construct the pieces} \longrightarrow \text{use symmetry}. }

1. Modulus Applied to the Output

Consider y=∣f(x)∣y=|f(x)|.

The expression inside the modulus is f(x)f(x).

By definition,

∣f(x)∣={f(x),f(x)≥0,−f(x),f(x)<0.\boxed{ |f(x)|= \begin{cases} f(x),&f(x)\geq0,\\ -f(x),&f(x)<0. \end{cases} }

This means that the graph of y=∣f(x)∣y=|f(x)| is constructed from the graph of y=f(x)y=f(x) as follows:

  • Keep the parts on or above the xx-axis unchanged.
  • Reflect the parts below the xx-axis upwards.
  • Keep the roots in their original positions.

Example: A Quadratic Graph

Let f(x)=x2−4f(x)=x^2-4.

The original graph crosses the xx-axis at x=−2andx=2x=-2 \qquad\text{and}\qquad x=2.

The quadratic is non-negative when x≤−2orx≥2x\leq-2 \qquad\text{or}\qquad x\geq2, and negative when −2<x<2-2<x<2.

Therefore,

∣x2−4∣={x2−4,x≤−2,4−x2,−2<x<2,x2−4,x≥2.\boxed{ |x^2-4|= \begin{cases} x^2-4,&x\leq-2,\\ 4-x^2,&-2<x<2,\\ x^2-4,&x\geq2. \end{cases} }

The roots divide the original graph into three pieces. Only the middle piece is reflected.

Original graph: the roots separate the positive and negative regions.

Transformed graph: the negative middle piece is reflected above the x-axis.

The vertex (0,−4)(0,-4) becomes (0,4)(0,4), while the roots remain at x=−2x=-2 and x=2x=2.

Key principle

y=∣f(x)∣: reflect only the parts of y=f(x) below the x-axis.\boxed{ y=|f(x)|: \text{ reflect only the parts of }y=f(x) \text{ below the }x\text{-axis}. }

The decision depends on the sign of the output f(x)f(x), not on the sign of xx.


2. Modulus Applied to the Input

Now consider y=f(∣x∣)y=f(|x|).

This time the modulus is applied to the input.

Since

∣x∣={x,x≥0,−x,x<0,|x|= \begin{cases} x,&x\geq0,\\ -x,&x<0, \end{cases}

we obtain

f(∣x∣)={f(x),x≥0,f(−x),x<0.\boxed{ f(|x|)= \begin{cases} f(x),&x\geq0,\\ f(-x),&x<0. \end{cases} }

For non-negative inputs, nothing changes.

For negative inputs, the function receives the corresponding positive input instead.

Consequently, the graph for x≥0x\geq0 determines the entire transformed graph.

Example: Constructing the Graph from Its Right-Hand Part

Let f(x)=x2−2xf(x)=x^2-2x.

Then f(∣x∣)=∣x∣2−2∣x∣f(|x|)=|x|^2-2|x|.

For x≥0x\geq0, f(∣x∣)=x2−2xf(|x|)=x^2-2x.

For x<0x<0, f(∣x∣)=x2+2xf(|x|)=x^2+2x.

Thus

f(∣x∣)={x2+2x,x<0,x2−2x,x≥0.\boxed{ f(|x|)= \begin{cases} x^2+2x,&x<0,\\ x^2-2x,&x\geq0. \end{cases} }

Original graph: its right-hand part for x ≥ 0 determines the transformed graph.

Transformed graph: reflect the right-hand part across the y-axis.

The transformed graph is symmetric about the yy-axis because f(∣−x∣)=f(∣x∣)f(|-x|)=f(|x|).

Key principle

y=f(∣x∣): keep the right-hand part of y=f(x) and reflect it across the y-axis.\boxed{ y=f(|x|): \text{ keep the right-hand part of }y=f(x) \text{ and reflect it across the }y\text{-axis}. }

Comparing the Two Transformations

Although the expressions look similar, they act differently.

For y=∣f(x)∣y=|f(x)|, the input remains unchanged. Negative outputs become positive.

For y=f(∣x∣)y=f(|x|), negative inputs are replaced by their positive counterparts.

In particular:

  • y=∣f(x)∣y=|f(x)| is always non-negative.
  • y=f(∣x∣)y=f(|x|) is always symmetric about the yy-axis.
  • y=f(∣x∣)y=f(|x|) can still take negative values.
  • y=∣f(x)∣y=|f(x)| need not be symmetric about the yy-axis.

Always identify whether the modulus acts on the input or the output before drawing the graph.


3. Nested Modulus Graphs

Some expressions contain more than one modulus sign.

For these graphs, work from the inside out. Construct the result of each operation before applying the next one.

Consider y=∣∣1−x∣−1∣y=\left||1-x|-1\right|.

The outer modulus acts on the whole expression ∣1−x∣−1|1-x|-1, not just on 1−x1-x.

Step 1: Draw the Inner Graph

Start with y=∣1−x∣=∣x−1∣y=|1-x|=|x-1|.

This is a V-shaped graph with vertex (1,0)(1,0).

Step 2: Translate the Graph Down by 1

Next construct y=∣1−x∣−1y=|1-x|-1.

Every point moves down by one unit.

The vertex becomes (1,−1)(1,-1).

To find where the graph crosses the xx-axis, solve ∣1−x∣−1=0|1-x|-1=0.

Thus ∣1−x∣=1|1-x|=1, giving x=0orx=2x=0 \qquad\text{or}\qquad x=2.

The intermediate graph is negative precisely when 0<x<20<x<2.

Step 3: Apply the Outer Modulus

Now construct y=∣∣1−x∣−1∣y=\left||1-x|-1\right|.

The outer modulus leaves the non-negative parts of the intermediate graph unchanged.

It reflects the negative section between x=0x=0 and x=2x=2 upwards.

Therefore:

  • The graph is unchanged for x≤0x\leq0 and x≥2x\geq2.
  • The section between x=0x=0 and x=2x=2 is reflected in the xx-axis.
  • The roots at x=0x=0 and x=2x=2 remain fixed.
  • The point (1,−1)(1,-1) becomes (1,1)(1,1).

The final graph has two global minima: (0,0)and(2,0)(0,0) \qquad\text{and}\qquad (2,0).

It also has a local maximum at (1,1)(1,1).

The outer branches continue upwards, so this local maximum is not a global maximum.

Step 4: Confirm the Graph Using a Piecewise Expression

The inner modulus changes its rule at x=1x=1:

∣1−x∣={1−x,x≤1,x−1,x≥1.|1-x|= \begin{cases} 1-x,&x\leq1,\\ x-1,&x\geq1. \end{cases}

After subtracting 11, the intermediate graph is

∣1−x∣−1={−x,x≤1,x−2,x≥1.|1-x|-1= \begin{cases} -x,&x\leq1,\\ x-2,&x\geq1. \end{cases}

The outer modulus introduces two further boundaries at x=0x=0 and x=2x=2.

Hence

∣∣1−x∣−1∣={−x,x≤0,x,0<x≤1,2−x,1<x≤2,x−2,x>2.\boxed{ \left||1-x|-1\right|= \begin{cases} -x,&x\leq0,\\ x,&0<x\leq1,\\ 2-x,&1<x\leq2,\\ x-2,&x>2. \end{cases} }

The four straight-line pieces meet at (0,0),(1,1),(2,0)(0,0),\qquad (1,1),\qquad (2,0), as shown in the graph.

The piecewise expression confirms the construction. It is not necessary to derive every piece before beginning the graphical transformation.

General Principle

For a nested modulus of the form y=∣∣f(x)∣−a∣,a≥0y=\left||f(x)|-a\right|, \qquad a\geq0, construct the graph in three stages.

First draw y=∣f(x)∣y=|f(x)|.

Next translate it down by aa: y=∣f(x)∣−ay=|f(x)|-a.

Finally, reflect any part of this intermediate graph below the xx-axis upwards.

Before the final reflection, identify the zeros and determine where the intermediate expression is negative.

work from the inside out⟶locate the negative sections⟶reflect them upwards.\boxed{ \text{work from the inside out} \longrightarrow \text{locate the negative sections} \longrightarrow \text{reflect them upwards}. }

The essential rule is to apply each operation to the current graph, not to all the modulus signs simultaneously.


4. Putting the Modulus on (y)

Now consider ∣y∣=f(x)|y|=f(x).

This is different from y=∣f(x)∣y=|f(x)|.

Since ∣y∣≥0|y|\geq0, solutions of ∣y∣=f(x)|y|=f(x) are possible only when f(x)≥0f(x)\geq0.

If f(x)>0f(x)>0, there are two possible values: y=f(x)andy=−f(x)y=f(x) \qquad\text{and}\qquad y=-f(x).

If f(x)=0f(x)=0, there is only one value: y=0y=0.

If f(x)<0f(x)<0, there are no solutions.

Thus

∣y∣=f(x)⟺{y=±f(x),f(x)>0,y=0,f(x)=0,no point,f(x)<0.\boxed{ |y|=f(x) \quad\Longleftrightarrow\quad \begin{cases} y=\pm f(x),&f(x)>0,\\ y=0,&f(x)=0,\\ \text{no point},&f(x)<0. \end{cases} }

Example: A Relation with Two Branches

Consider ∣y∣=x2−1|y|=x^2-1.

The right-hand side must be non-negative: x2−1≥0x^2-1\geq0.

Therefore, x≤−1orx≥1x\leq-1 \qquad\text{or}\qquad x\geq1.

There are no points satisfying the relation when −1<x<1-1<x<1.

For the allowed values of xx, y=±(x2−1)y=\pm(x^2-1).

Original graph: its negative middle section produces no points in the final relation.

Final relation: each positive output produces two points, one above and one below the x-axis.

The graph is symmetric about the xx-axis.

However, it is generally a relation rather than a function of xx, because a single input may correspond to two different outputs.

For example, when x=2x=2, ∣y∣=3|y|=3, so y=3ory=−3y=3 \qquad\text{or}\qquad y=-3.

Compare the Two Expressions

For y=∣f(x)∣y=|f(x)|, every input in the domain of ff produces exactly one output. The graph lies on or above the xx-axis.

For ∣y∣=f(x)|y|=f(x), inputs where f(x)<0f(x)<0 produce no points, while inputs where f(x)>0f(x)>0 produce two points.

The distinction is: y=∣f(x)∣: negative outputs are reflected upwards.y=|f(x)|: \text{ negative outputs are reflected upwards}.

∣y∣=f(x): negative values of f(x) are forbidden, and positive values give two branches.\boxed{ |y|=f(x): \text{ negative values of }f(x)\text{ are forbidden,} \text{ and positive values give two branches}. }

5. Two Modulus Signs Divide the Plane into Regions

Modulus can also appear in equations involving both coordinates.

Consider ∣x∣+∣y∣=4|x|+|y|=4.

There are two expressions inside modulus signs.

Their forms depend on the signs of both xx and yy, so the coordinate axes divide the plane into four regions.

RegionEquation
x ≥ 0, y ≥ 0x + y = 4
x < 0, y ≥ 0−x + y = 4
x ≥ 0, y < 0x − y = 4
x < 0, y < 0−x − y = 4

Each equation must be drawn only in its corresponding region.

Step 1: Construct the First-Quadrant Piece

In the first quadrant, x≥0,y≥0x\geq0,\qquad y\geq0.

Therefore, ∣x∣=x,∣y∣=y|x|=x, \qquad |y|=y, and the equation becomes x+y=4x+y=4.

The relevant part is only the segment joining (0,4)and(4,0)(0,4) \qquad\text{and}\qquad (4,0).

The rest of the infinite line does not belong to this sign case.

Step 2: Construct the Other Three Pieces

In the second quadrant, −x+y=4-x+y=4.

This gives the segment from (−4,0)(-4,0) to (0,4)(0,4).

In the fourth quadrant, x−y=4x-y=4.

This gives the segment from (4,0)(4,0) to (0,−4)(0,-4).

In the third quadrant, −x−y=4-x-y=4.

This gives the segment from (−4,0)(-4,0) to (0,−4)(0,-4).

Together, the four segments form a diamond.

The four pieces can be written as

∣x∣+∣y∣=4⟺{x+y=4,x≥0, y≥0,−x+y=4,x<0, y≥0,x−y=4,x≥0, y<0,−x−y=4,x<0, y<0.\boxed{ |x|+|y|=4 \quad\Longleftrightarrow\quad \begin{cases} x+y=4,&x\geq0,\ y\geq0,\\ -x+y=4,&x<0,\ y\geq0,\\ x-y=4,&x\geq0,\ y<0,\\ -x-y=4,&x<0,\ y<0. \end{cases} }

Each boundary point belongs to the graph and is included by the relevant non-strict inequalities.

Step 3: Recognise the Symmetry

Now examine the original equation.

Since ∣−x∣=∣x∣,∣−y∣=∣y∣|-x|=|x|, \qquad |-y|=|y|, changing the sign of either coordinate leaves the equation unchanged.

Therefore the graph is symmetric about both coordinate axes.

Once the first-quadrant segment is understood, the remaining three segments can be constructed by reflection.

This gives a faster method:

construct the first-quadrant piece⟶reflect it across the axes.\boxed{ \text{construct the first-quadrant piece} \longrightarrow \text{reflect it across the axes}. }

The sign cases explain why the graph has this structure. Symmetry allows us to complete it without separately solving every case.

From an Equation to a Region

A closely related inequality is ∣x∣+∣y∣≤4|x|+|y|\leq4.

The equation gives the diamond-shaped boundary.

The inequality includes all points inside that boundary as well.

For example, in the first quadrant, x+y≤4,x≥0,y≥0x+y\leq4, \qquad x\geq0,\quad y\geq0, describes the triangular region between the coordinate axes and the segment x+y=4x+y=4.

Reflecting this triangular region across both axes produces the full diamond-shaped region.

The distinction between the boundary and the entire region is important in problems involving intersections and areas.


6. The General Relation (f(|x|,|y|)=0)

The same reasoning extends beyond expressions such as ∣x∣+∣y∣=4|x|+|y|=4.

Consider a relation f(∣x∣,∣y∣)=0f(|x|,|y|)=0, where ff is an expression involving two variables.

Because both modulus inputs are non-negative, begin with the relation f(u,v)=0,u≥0,v≥0f(u,v)=0, \qquad u\geq0,\quad v\geq0.

This identifies the part of the graph in the first quadrant, including the axes.

The Four Sign Regions

The original equation has the following forms.

RegionRelation
x ≥ 0, y ≥ 0f(x,y) = 0
x < 0, y ≥ 0f(−x,y) = 0
x ≥ 0, y < 0f(x,−y) = 0
x < 0, y < 0f(−x,−y) = 0

These four cases construct the complete relation.

However, once the first-quadrant piece is known, symmetry gives a shorter route.

Suppose (a,b),a>0,b>0(a,b), \qquad a>0,\quad b>0, satisfies f(a,b)=0f(a,b)=0.

Then the four points (a,b),(−a,b),(a,−b),(−a,−b)(a,b),\qquad (-a,b),\qquad (a,-b),\qquad (-a,-b) all satisfy f(∣x∣,∣y∣)=0f(|x|,|y|)=0.

This is because each point gives the same pair of modulus values: (∣x∣,∣y∣)=(a,b)(|x|,|y|)=(a,b).

Points on the axes are shared by reflected pieces and should be counted only once.

The resulting relation is symmetric about both coordinate axes because ∣−x∣=∣x∣|-x|=|x| and ∣−y∣=∣y∣|-y|=|y|.

General method

construct the first-quadrant part⟶reflect it across both axes.\boxed{ \text{construct the first-quadrant part} \longrightarrow \text{reflect it across both axes}. }

This method applies to equations and inequalities involving ∣x∣|x| and ∣y∣|y|, provided the original relation is defined for the required non-negative inputs.

The first-quadrant piece may be a curve, a line segment or an entire region. The same symmetry principle applies.


Practical Approach

When faced with an unfamiliar modulus graph or relation, begin with the definition of modulus rather than a memorised reflection rule.

  1. Identify the expression inside each modulus sign. Decide whether the modulus acts on an input, an output or a coordinate.

  2. Find where that expression is non-negative or negative. Roots and coordinate axes often determine the boundaries.

  3. Rewrite the expression in the relevant regions. Each piece must be used only where its sign conditions hold.

  4. Construct the graph from those pieces. Check the roots, endpoints and points where the rule changes.

  5. Use symmetry when appropriate. Once the piecewise structure is understood, reflection may eliminate unnecessary repeated calculations.

  6. Check whether the result is a function or a relation. In particular, an equation such as ∣y∣=f(x)|y|=f(x) can give two outputs for one input.

For nested modulus expressions, apply one operation at a time, beginning with the innermost expression.

identify signs⟶construct the pieces⟶use symmetry⟶verify.\boxed{ \text{identify signs} \longrightarrow \text{construct the pieces} \longrightarrow \text{use symmetry} \longrightarrow \text{verify}. }

The central principle: A modulus graph is first a piecewise graph. Understanding where expressions change sign explains the reflections, symmetries and restrictions that appear in the final graph.

Practice Questions

1

When Does the Reflected Graph Exist?

MEMBERLogin required