• # Revision:OCR Core 3 - The modulus function

## 7. The modulus function

### The modulus function and its graph

The modulus function is defined as follows:

.

This is defined for all real numbers, and can also be called "absolute value".

The shape of the graph of this function is easy to predict. Consider that all positive "x" values will have no change (hence there will be a line which has gradient 1, and passes through the origin). But there is a difference to the negative values of "x". These values will be changed (they will become positive), and therefore what would be a line going in the same direction as the one for positive "x" (if there was no modulus function) will be reflected in the x-axis, forming a line that has gradient -1, and passes through the origin.

These lines meet at the origin, and give the "V" shape of the graph .

### Graphs of functions involving the modulus

The method previously used to predict the shape of can be used with other functions involving the modulus function (as a component).

Consider the graph of .

Consider the times when this is positive, and therefore .

.

Hence, for all values of "x" greater than or equal to "n" there is a line of gradient 1.

Now consider the other case, where the modulus function changes the value.

Hence:

.

Hence there is a line, of gradient -1 for all values of "x" below "n". This gives the same "V" shape as the original graph (of ), however this time the line of symmetry is not , but .

The reason for the gradients being 1, and -1 is simply that , and .

The two graphs are of gradient 1, and -1 (respectively), and this is where this information can be found.

This idea can be further generalised:

.

This implies that for all of the values such that the function applied to "x" is greater than or equal to 0, the function of "x" is graphed as usual. When the function is negative, there is a reflection in the x-axis.

Notice that there are sharp corners, at these points there is no derivative but it is possible for these points to be minima or maxima.

Graphs of are different to those discussed previously.

In these graphs, the positive values of "x" are not changed, and therefore the function outputs the same value, and the graph is unchanged for all positive "x". The negative values of "x" are changed such that they are positive, and correspond to their magnitudinally equivalent positive "x" values. This implies that there is a symmetry about the y-axis, as all of the negative values of "x" are plotted as if they were positive. Considering this in terms of transformations:

There is no change to the function for positive "x".

There is a reflection in the y-axis for negative "x".

### Some algebraic properties

It is useful to be able to correctly manipulate the modulus function.

Consider:

So, .

Similarly,

(Do not make the common mistake of assuming these rules hold for addition and subtraction).

### Modulus on the number line

The distance between two points on a number line can be expressed using the modulus.

is the distance between the numbers "a", and "b".

The reason for this is simply that if "b" is less than "a", the distance would appear negative (if there was no modulus), however, distance is not a vector quantity, and therefore it must be expressed as a positive quantity.

Conversely, if "b" is greater than or equal to "a" it is either the same point as "a", or it is further along the line; hence the distance need not have the modulus (but it makes no difference that there is a modulus function).

Consider .

This implies that .

In this manner inequalities can be formed, and solved.

.

(For the obvious restriction of "n" being positive).

Now consider the idea of the distance:

Consider the cases that can occur:

Hence:

And similarly:

### Equations involving modulus

There are two main methods for solving equations involving the modulus function. The first involves using graphs. This method relies upon the ability of the candidate to draw an accurate graph involving the modulus function, and understand the concept that the intersections of the graphs of the appropriate functions will lead to the solution to the equation.

The second method is perhaps a more versatile method that allows for greater extensibility, and more accurate answers. This method involves understanding the concept of a modulus function, and hence how to handle the different cases that arise. (This method will be concentrated on in these notes as it is perhaps more complicated).

Consider the equation .

There are two different cases for the modulus function in this equation, either it changes the expression it is applied to, or it does not; consider both.

Also:

.

Now the equation can be solved:

.

(Note that these are the different cases, either the modulus function changes the expression it is applied to, or it does not).

But, there are conditions upon these statements being true.

For the case that the modulus function does not change the expression, it has been shown that , and that ; the true values which solve this are the ones for which this is true.

Hence, this is only true for positive (or zero) "n".

The other case should be considered:

Hence, this is only true for positive "n".

(This process is easier if there are numbers in it (as the number is either positive, negative, or neither, and therefore there would simply be an answer, not a condition).

### Inequalities involving modulus

The same methods as for equations can be applied to inequalities.

Consider the different cases:

Hence:

There are restrictions however; consider the case for the expression within the modulus being positive first.

Hence, the difference between "x", and "k" must be less than or equal to "n" for this to be true.

The other case is:

Hence, the difference between "x", and "k" must be greater than or equal to "-n" for this to be true.

Note that when dealing with two moduli in an inequality all of the different cases must be considered (both expressions are positive, one expression is positive, the other expression is positive, both expressions are negative).

### Squares, square roots and moduli

For real numbers the square is always greater than or equal to zero, hence:

.

Also:

.

Sometimes it is convenient to square the moduli to remove them from an equation or inequality (as opposed to the rather lengthy method aforementioned).

If it is the desire of a candidate to square each side of an expression it is useful for them to know which steps are valid (and, indeed, which are not).

An identity can be used.

.

In order to use this it should be demonstrated.

Consider the four cases:

The first case:

(The above is obviously true, as the moduli of the two values are not changing anything [the values are positive]).

The second part follows from simple factorisation.

It is simple to shorten the demonstration by simply explaining that , hence there is no problem with the statement.

As:

The case where can be considered, and simply shows that which is obviously true.

Similarly, the following statements can be deduced:

.

Hence:

Also, if :

.

The special case above has to be considered as for all "x" the modulus of "x" is greater than or equal to 0.

These results show that inequalities are preserved through squaring, and therefore that it can be a valid step.

Example

1. Solve the following inequality:

.

Using the squaring method:

Now:

.

It is not always correct to use this method, and it can lead to extra roots. If this method is used, it is very useful to check the answers obtained before submitting them.

Try Learn together, TSR's study area

32,808
revision notes

35,457
mindmaps

34,415
crosswords

14,289
quizzes

create
a study planner

thousands
of discussions

Today on TSR

### How to predict exam questions

No crystal ball required