A2-12 Modulus Function
A2-12 Modulus Function
The statement |x-a| < b is another way of saying that the distance between x and a is less than b.
x must lie between the vertical lines, in other words a - b < x < a + b.
Example (1): Sketch the graph of y = (x-1)2 – 16, and from it sketch the graph of y = | (x-1)2 – 16 | .
The function
y = (x-1)2 – 16 is a quadratic with roots of –
3 and 5, and a minimum point of (1, -16). It
is therefore below the x–axis for –3 < x < 5.
The graph is accurate here, but examination questions would generally only require a sketch with the
key points clearly shown. In this case they would be (-3, 0), (5, 0), (1, 16) and (1, -16).
Mathematics Revision Guides – The Modulus Function Page 4 of 15
Author: Mark Kudlowski
Example (2): Sketch the graph of y = sin x° for –2 x 2, and from it sketch the graphs of
y = | sin x | and y = sin (|x|). What can you say about the two resulting graphs ?
The graph of y = | sin x | coincides with that of y = sin x whenever sin x is positive, but is a reflection
of y = sin x in the x-axis whenever sin x is negative.
The graph of y = sin |x | coincides with that of y = sin x whenever x is positive, but is a reflection of
y = sin x in the y-axis whenever x is negative.
It can be seen that the the graphs of y = | sin x | and y = sin (|x|) are different.
This holds true for most functions, i.e | f (x) | f ( | x | ).
.
Mathematics Revision Guides – The Modulus Function Page 5 of 15
Author: Mark Kudlowski
Example (3):
The graph of y = | ln x |
coincides with that of y = ln x
for x 1, but is a reflection of
y = ln x in the y-axis for
0 < x < 1.
The function ln (|x|) and related functions such as log10(|x|) have important applications in calculus, and
can also be used as a ‘workaround’ to solve certain equations involving logarithms.
This is almost the same as an example from an earlier section, but we are dealing with logarithms of
the modulus of the number a - 10.
log( a + 10 ) = 2 log( |a – 10| ) log( a + 10 ) = log(( a – 10)2) using log laws. Note that there is no
need to put a modulus around the squared term, since the square of any real number is positive.
a2 – 21a + 90 = 0
(a – 15) (a – 6) = 0
a = 15 or 6.
(Had the question been about solving log( a + 10 ) = 2 log( a – 10 ), without the modulus sign, a = 6
would not have been a solution, as the expression would have become log 16 = 2 log ( -4 ), and there is
no logarithm of a negative number.)
Mathematics Revision Guides – The Modulus Function Page 6 of 15
Author: Mark Kudlowski
The graphs of | x | and related functions can be transformed in the same way as those of other
functions.
Looking at the graphs, we can see that |(2x – 1)| coincides with 2x - 1 whenever 2x – 1 0, or x ½ .
Instead of multiplying the LHS by –1 to give 1 – 2x = 5 , we could multiply the RHS by –1 to give
2x – 1 = -5, again leading to x = -2.
From this example, we can deduce that the solution(s) of the equation | f (x) | = k
can be found by solving two separate equations:
Example (7): Find the solutions of the equation |(4x + 3)| = 11.
or
This is a quadratic, but the same method can be used as for linear examples.
x2 – 2x – 7 = -8
x2 – 2x – 7 = -8 x2 - 2x + 1 = 0
(x - 1)2 = 0 (factorising), giving a solution of x = 1.
-(x2 – 2x – 7) = 8
-(x2 – 2x – 7) = 8 - x2 + 2x + 7 = 8 - x2 + 2x - 1 = 0
x2 - 2x + 1 = 0 (multiplying both sides by –1 to make x2 term positive)
(x - 1)2 = 0 (factorising), giving a solution of x = 1.
The first method is better, as the algebra works out much simpler.
The solutions of |(x2 – 2x - 7)| = 8 are x = 1, x = 5 and x = -3.
The second method (right) shows the graph of the function |(x2 – 2x - 7)|.
It is coincident with the graph of x2 – 2x – 7 when x2 – 2x – 7 0.
However, when x2 – 2x – 7 <0, the graph of |(x2 – 2x - 7)| coincides with the graph of -(x2 – 2x – 7).
(The negative part of the original graph of x2 – 2x – 7 has been included for reference).
x2 – 5x – 1 = -5
x2 – 5x – 1 = -5 x2 - 5x + 4 = 0
(x - 4)(x -1) = 0 (factorising), giving solutions of x = 4, x = 1.
Example (10): Find the solutions of the equation |(x + 1)| = |2x|.
This example is different, because we have a modulus function of x on both sides of the equation.
Nevertheless, we can still solve the equation in a similar way to those of the form | f (x) | = k.
The solution(s) of the equation | f (x) | = | g(x) | can be found by solving two separate equations:
–(x + 1) = 2x ;
-x – 1 = 2x
-1 = 3x x = 13
or
x + 1 = -2x ;
x + 1 = -2x
3x + 1 = 0 x = 13 .
Another method would be to square both sides of the equation and solve as follows;
(Note that a squared quantity is always positive, so the modulus sign can be removed).
(x + 1)2 = (2x)2 x2 + 2x+ 1 = 4x2 .
0 = 3x2 - 2x- 1.
Care is required if we have a modulus function on one side of the equation, but a non-modulus function
on the other, as the next two examples will show.
This is very similar to example (10), but this time we have a non-modulus function of x on one side of
the equation, and a modulus function on the other.
x + 1 = -2x ;
x + 1 = -2x
3x + 1 = 0 x = 13 .
The next example is similar, but there is an important difference in the final result.
Example (10b): Find the solutions of the equation |(x + 1)| = 2x.
It might be thought that if we followed the same technique as we did in Example 10a, then the
solutions of |(x + 1)| = 2x would be x = 1 and x = 13 .
The second ‘solution’ seems to be incorrect here – if we were to plot the graphs, they will only
intersect at the one point (1, 2), giving x = 1 as the only solution.
Because the modulus function by definition is positive, then a ‘solution’ found using the earlier
methods is only valid if substituting for x in the non-modulus function also gives a positive result.
Hence the non-solution of x = 13 ; |(x + 1)| = 23 , and 2x = 23 .
In Example 10a, the non-modulus function of (x + 1) returned a positive value for both values of x , so
the two graphs met at two points, giving two solutions.
Mathematics Revision Guides – The Modulus Function Page 13 of 15
Author: Mark Kudlowski
Inequalities involving the modulus function are solved in a similar way to the corresponding equations,
although care is needed with sign reversals.
Example (11): Find the solutions of the inequality |(4x + 3)| < 11.
The first solution set is the ‘obvious’ one of 4x + 3 < 11 4x < 8 x < 2.
The second solution set can be found either multiplying the LHS by – 1 or the RHS by -1.
The two solution sets can be combined to give -3½ < x < 2.
Whenever the second solution set is found by reversing the quantity on the opposite side of the
inequality sign, then the direction of the inequality sign must also be reversed.
Mathematics Revision Guides – The Modulus Function Page 14 of 15
Author: Mark Kudlowski
Example (12): Find the solutions of the inequality |(x2 – 5x - 1)| 5. (This is a modification of
Example (9)).
The first solution set can be found by solving x2 – 5x - 1 5 x2 – 5x - 6 0, which in turn
factorises to (x + 1)(x – 6) 0, giving two solution sets of x 6, x -1.
The second solution set can be found by solving x2 – 5x - 1 -5. Again, as we have reversed the sign
of the quantity on the RHS, the inequality sign also had to be reversed.
x2 – 5x – 1 -5
x2 – 5x – 1 -5 x2 - 5x + 4 0
(x - 4)(x -1) 0 (factorising), giving the solution set of 1 x 4.
Inequalities involving the modulus function where there are modulus expressions on both sides.
Example (13): Find the solutions of the inequality |(x + 1)| > |2x|. (Modification of Example (10)).
This time we have an algebraic expression on both sides of the inequality. We can therefore either:
i) solve the corresponding equation, sketch the graphs of the two functions and find where the graph of
|(x + 1)| lies above the graph of |2x|, or
ii) square both sides, solve the related quadratic equation, plot its graph, and from there solve the
inequality.
Method (i):
x= 13 and x = 1.
13 < x < 1.
or 13 < x < 1.