The Modulus Function and the Graph of y = |ax + b| | Edexcel A Level Maths notes

Free preview: The Modulus Function and the Graph of y = |ax + b|

The Modulus and the V-Shaped Graph

Year 2 (A level only)

Watch: 1-minute explainer

Let's start with an idea you know: distance is never negative. Walk 5 m left or 5 m right, you have still walked 5 m. A thermometer reading of −5 °C is 5 degrees away from freezing, just like +5 °C. Maths has a symbol for "how far, ignoring direction".

  • The modulus of a number is its size without its sign. (It is also called the absolute value.)
  • It is written with vertical bars: |5|=5 and |−5|=5.
  • Think of |x| as the distance of x from 0 on the number line. So it is never negative.

|x|={xif x⩾0−xif x<0

💡 In plain words

  • If x is positive (or zero), leave it alone.
  • If x is negative, change its sign. The second line looks odd, but −x is positive when x is negative: |−3|=−(−3)=3.

✏️ YOUR TURN 1

Try this first:

Evaluate.

  1. |−7|
  2. |3−8|
  3. |2|−|−5|

Answer:

  1. 7
  2. |−5|=5. Work out the inside first.
  3. 2−5=−3. The answer can be negative here, because the subtraction is outside the bars.

The recipe: sketching y = |ax + b|

  1. Sketch the line y=ax+b lightly. Why: the modulus graph is built from it.
  2. Find where it crosses the x-axis: solve ax+b=0. This will be the vertex.
  3. Reflect up any part below the x-axis (where y is negative) in the x-axis. Why: the modulus turns negative outputs into positive ones of the same size.
  4. Label the vertex and the y-intercept.
  • The result is a V shape with its vertex (the sharp point) on the x-axis.

👀 Watch me do it: sketch y=|2x−3|

What I writeWhy I do it
Line y=2x−3: gradient 2, y-intercept −3.Step 1.
2x−3=0⇒x=32Step 2: vertex (32,0).
For x<32 the line is negative; flip it to y=3−2x.Step 3: −(2x−3)=3−2x.
y-intercept |−3|=3, so (0,3).Step 4.

Graph of y = |2x − 3|, a V shape with vertex (3/2, 0) and y-intercept (0, 3), the dashed line y = 2x − 3 below the axis, and the line y = 5 meeting the V at (−1, 5) and (4, 5)

Following the graph

  • The line y=2x−3 crosses the x-axis at x=32. For x<32 it is negative (dashed).
  • That part is flipped up, so for x<32 the graph is y=−(2x−3)=3−2x.
  • The vertex is (32,0). The y-intercept is |−3|=3, so (0,3).
  • The horizontal line y=5 meets the V twice, at (−1,5) and (4,5). These give the two solutions of |2x−3|=5.

y=|ax+b| has its vertex at (−ba,0) and y-intercept (0,|b|)

💡 In plain words

  • The vertex is where the inside is zero: solve ax+b=0 to get x=−ba.
  • The y-intercept is |b|, because putting x=0 leaves |b|.

✏️ YOUR TURN 2

Try this first:

Give the vertex and y-intercept of each graph.

  1. y=|2x+8|
  2. y=|4−x|

Answer:

  1. Vertex: 2x+8=0, (−4,0). y-intercept (0,8).
  2. Vertex: 4−x=0, (4,0). y-intercept (0,4). (The V points the same way: a modulus graph always opens upwards.)

The Graphs y = |f(x)| and y = f(|x|)

The same idea works for any graph. There is also a second, different way to use a modulus. Notice where the bars go.

y = |f(x)|: modulus outside

  • The bars are round the output, so they act on y.
  • Draw y=f(x), then reflect every part below the x-axis up in the x-axis.
  • Parts above the axis are unchanged. The graph never goes below the x-axis.

Graph of y = |f(x)| for f(x) = (x + 1)(x − 3): the part between −1 and 3 is flipped up to give a hump with top (1, 4)

Following the graph

  • f(x)=(x+1)(x−3) is negative between its roots −1 and 3 (dashed).
  • That section is reflected up: the minimum (1,−4) becomes a peak at (1,4), and the y-intercept (0,−3) becomes (0,3).
  • The graph has sharp corners at the roots (−1,0) and (3,0).

y = f(|x|): modulus inside

  • The bars are round the input, so they act on x.
  • For x⩾0, |x|=x, so the graph is the same as y=f(x).
  • For x<0, f(|x|)=f(−x), which is the reflection in the y-axis.
  • So: keep the right-hand half of y=f(x), delete the left-hand half, and replace it with the mirror image of the right-hand half.

Graph of y = f(|x|) for f(x) = (x + 1)(x − 3): symmetrical W shape with minima (−1, −4) and (1, −4), roots ±3 and a peak at (0, −3)

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Functions and Graphs

  1. Sketching Cubic and Quartic Graphs from Their Factors
  2. Reciprocal Graphs y = a/x and y = a/x² and Their Asymptotes
  3. Using Points of Intersection to Solve Equations
  4. Direct and Inverse Proportion and Their Graphs
  5. Translating Graphs: y = f(x) + a and y = f(x + a)
  6. Stretching and Reflecting Graphs: y = af(x), y = f(ax), y = −f(x) and y = f(−x)
  7. Combining Transformations of Graphs
  8. What Makes a Function: Domain, Range, One-One and Many-One
  9. Composite Functions: Finding fg(x) and Its Domain
  10. Inverse Functions and Their Graphs: Reflecting in y = x
  11. The Modulus Function and the Graph of y = |ax + b|
  12. Modelling with Functions: Limitations and Refinements
  13. Move Up a Grade: A Level Maths Functions and Graphs
  14. Tricky Bits: A Level Maths Functions and Graphs

Video

What's inside for this topic

14 teacher notes, 229 practice questions, 60 flashcards, 7 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Inverse Functions and Their Graphs: Reflecting in y = x Next note: Modelling with Functions: Limitations and Refinements

The Modulus Function and the Graph of y = |ax + b| on other exam boards

All Edexcel A Level Maths topics · A Level Maths