KS Maths
Topic 2.16 Β· AA Higher Level

Modulus graphs and equations

Inside the modulus is not outside it

With f(x) = x βˆ’ 2, at x = βˆ’2 the graph of |f(x)| reads 4 and the graph of f(|x|) reads 0. Two bars in two different places, and two completely different functions.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

graph
A picture that shows how numbers relate.The graph shows distance and time.
modulus
The size of a number, ignoring its sign.The modulus of minus 5 is 5.
equation
A statement that two things are equal. It has an equals sign.x plus 2 = 5 is an equation.
axis
A number line that a graph is drawn on. The x-axis goes across and the y-axis goes up.The y-axis is vertical.
square root
A number that gives the original number when multiplied by itself.The square root of 25 is 5.
reflection
Flip a shape over a mirror line.Reflect the triangle in the y-axis.
sketch
Draw the general shape quickly. It need not be exact.Sketch the graph showing where it crosses the axes.
zero
The number 0. It is neither positive nor negative.5 minus 5 is zero.
reciprocal
The number you multiply by to get 1. Turn a fraction upside down.The reciprocal of 3 over 5 is 5 over 3.
divide
Share into equal parts, or find how many times one number fits in another.12 divided by 4 is 3.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer; a slip here shows you what to watch for later in the lesson.

  1. Work out |βˆ’7| and |3 βˆ’ 8|.
    Answer

    |βˆ’7| = 7 and |3 βˆ’ 8| = |βˆ’5| = 5. The modulus is the distance from zero, so the result is never negative. Do the arithmetic inside the bars first, then take the modulus.

  2. Say what happens to a graph when y = f(x) becomes y = f(βˆ’x), and when it becomes y = βˆ’f(x).
    Answer

    f(βˆ’x) is a reflection in the y-axis: the input changes, so the graph moves horizontally. βˆ’f(x) is a reflection in the x-axis: the output changes, so the graph moves vertically. Inside is horizontal, outside is vertical.

  3. Solve 3x βˆ’ 5 = 4.
    Answer

    Add 5 first: 3x = 9. Then divide by 3: x = 3. Undo the operations in the reverse order, subtract or add first and divide last. This is the order that matters in f(2x + 1).

  4. Find 1/(βˆ’0.25).
    Answer

    βˆ’4. Dividing 1 by a number between βˆ’1 and 0 gives a number further from zero, with the same sign. This is why a reciprocal graph climbs towards an asymptote.

Words used in this lesson
modulus (absolute value)
the distance of a number from zero, so it is never negative. For example: |βˆ’6| = 6 and |6| = 6.
fold
reflect part of a graph across a line, like folding paper. For example: the part of a graph below the x-axis can be folded upwards.
reflect
make a mirror image across a line. For example: reflecting (3, 2) in the x-axis gives (3, βˆ’2).
reciprocal
one divided by the number. For example: the reciprocal of 4 is 1/4.
asymptote
a line that a curve gets closer and closer to as it heads off towards infinity. For example: x = 0 is the asymptote of 1/x.
root (zero)
a value of x where the graph meets the x-axis. For example: x = 4 is a root of y = x βˆ’ 4.
vertex
the point of a V-shaped graph. For example: the vertex of y = |x| is (0, 0).
transformation
a change to a graph, such as a translation, reflection or stretch. For example: y = f(x) + 2 is a transformation of y = f(x).
tolerance
how far from a target a measurement is allowed to be. For example: a tolerance of 0.5 means within 0.5 either way.
sketch
draw the shape and label the key features; it does not need to be exact. For example: a sketch of y = |x| shows the vertex at the origin.
hence
use the result you have just found. For example: β€œsketch f(x), and hence sketch |f(x)|” means fold your sketch.

Predict first. On the last view, f(2x + 1) is drawn against f(x) = x βˆ’ 2. Will the new line be steeper than the original, shallower, or the same? Decide, and say what the 2 inside the bracket is doing to the x-values.

Then check

Press Next graph until you reach that view. Read the two values on the readouts at x = 0 and then at x = 0.5, and use them to work out the gradient of f(2x + 1). Was the 2 stretching the graph sideways or squashing it?

-4-3-2-112345f(x)|f(x)| = 4.00f(|x|) = 0.00|f(x)| folds about the x-axis. f(|x|) copies the right half onto the left.At x = -2.0 they are 4.00 apart.
βˆ’4.000f(x) = x βˆ’ 2
4.000|f(x)|
0.000f(|x|)
4.0 apartthe two are

The dashed line is the original in every view. Each transformation is read off it, which is the whole method: you are never given a formula to manipulate.

The two moduli, and why they are different

Both start from the same graph and neither needs any algebra. The difference is which axis the folding happens about.

GraphWhat to do to the originalResult
y = |f(x)|Anything below the x-axis is reflected up.Never negative.
y = f(|x|)Delete the left half and replace it with a mirror image of the right half.Always even.

Say them in that form and they stop being confusable. Outside the function acts on the output, so it folds about the x-axis. Inside the function acts on the input, so it folds about the y-axis. That is the same inside-and-outside rule as 2.11, applied to a modulus.

For f(x) = x βˆ’ 2:

At x = βˆ’2 the first is 4 and the second is 0. At x = βˆ’3 they are 5 and 1. They are equal only for x β‰₯ 2, where the original was already positive and neither fold did anything.

Count the roots as a check. |x βˆ’ 2| = 0 at one place, x = 2. |x| βˆ’ 2 = 0 at two, x = 2 and x = βˆ’2, because the right half was copied over. Different numbers of roots is the fastest proof that they are different functions.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AA HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AA HL Mock Exam Pack, $25BuyPlan $99