The Modulus functionNeed a little Explanation

Click For Summary
The modulus function, or absolute value, is defined as f(x) = |x|, where |x| equals x if x is greater than or equal to zero, and -x if x is less than zero. This means that for negative inputs like -5, the output is positive, specifically |-5| = 5. The confusion often arises from interpreting the negative sign in the definition; it indicates the negation of the input value, not a direct output. When graphing functions like f(x) = |1 - x + |x||, it's important to recognize that it involves nested absolute values, which can complicate the visualization. Understanding the distinction between the arithmetic of negative numbers and their representation on a number line can clarify these concepts.
nishantve1
Messages
74
Reaction score
1
So I have been dealing with the modulus function for almost a year now , I didn't ran into it many times so didn't really tried to understand it well . But it has started to get a little bit confusing . So if someone helps me I will be really happy .
From what I know
f(x) = |x| = { x ; x >= 0 and -x ;x<=0

That means |-5| = 5 and |5| = 5
And it has a graph
360px-Absolute_value.svg.png


But this does not satisfy my intuition , for me the function and the graph says two different thing , I mean the function says
f(x) = |x| = {-x ;x<=0

so if I plug in -5 which is less than 0 then the output should be -5 only
I know I am wrong but I am just going with function definition . What does the definition actually say ?

Also I encounter problems while sketching graphs of the mod function .
If someone can help me with the graph of
f(x) = |1-x+|x|| it would be awesome
I can graph it using wolframalpha but I want to know how it came about
Thanks
 
Mathematics news on Phys.org
Hey nishantve1.

What the definition means is that you negate the number if less than zero and keep the original if greater than 0 (or equal).

So with your example of -5, if we negate this we get -(-5) = +5 = 5. Another example is -10 which we negate giving us -(-10) = +10 = 10.

Now if we give say +5, we leave it alone giving us + 5 = 5.

Basically we define |x| to be -x if x < 0 and x if x >= 0, and the above examples show how we calculate this.
 
nishantve1 said:
If someone can help me with the graph of
f(x) = |1-x+|x|| it would be awesome

Check this absolute value article over at Wikipedia, it might help a bit (the first paragraph sums it up nicely).

Thinking of it as "absolute value" instead of "modulus" might help you grasp the concept.

For the case above f(x) = |1-x + |x|| you have 2 absolute value functions within one another.

Imagine the case: |x| - x which is the same as -x + |x|

If x is positive, it ends up being x-x... what happens when x is negative? remember that -(-1) = 1
 
nishantve1 said:
So I have been dealing with the modulus function for almost a year now , I didn't ran into it many times so didn't really tried to understand it well . But it has started to get a little bit confusing . So if someone helps me I will be really happy .
From what I know
f(x) = |x| = { x ; x >= 0 and -x ;x<=0

That means |-5| = 5 and |5| = 5
And it has a graph
360px-Absolute_value.svg.png


But this does not satisfy my intuition , for me the function and the graph says two different thing , I mean the function says
f(x) = |x| = {-x ;x<=0

so if I plug in -5 which is less than 0 then the output should be -5 only
Then your difficulty is not so much algebra as arithmetic. The "algebra" you have written correctly- if x< 0 then |x|= -x. So, because -5< 0, |-5|= -(-5). If you think that is -5 then the difficulty is basic arithmetic: you can think of this as (-1)(-5)= 5. Or you can, a little more sophisticated, think of -(-5) as the "negative" (additive inverse) of -5. And, since -5+ 5= 0, 5 is the "negative" of -5. Either way, |-5|= -(-5)= 5.

I know I am wrong but I am just going with function definition . What does the definition actually say ?

Also I encounter problems while sketching graphs of the mod function .
If someone can help me with the graph of
f(x) = |1-x+|x|| it would be awesome
I can graph it using wolframalpha but I want to know how it came about
Thanks
 
nishantve1 said:
But this does not satisfy my intuition , for me the function and the graph says two different thing , I mean the function says
f(x) = |x| = {-x ;x<=0

so if I plug in -5 which is less than 0 then the output should be -5

Others have already answered the question, but I wanted to mention this point. It's often confusing for students.

A negative number is a point on the number line "to the left" of zero, or technically, a real number which is less than zero as defined by the '<' relationship. In this sense, the fact that -5 is five units to the left of zero is functioning like an address. A house address on a street, or a memory address in a computer, to mention two familiar contemporary usages. An address is an label; but unlike completely arbitrary labels, the address space is endowed with an order relation so that we can find our way around.

On the other hand, what do we mean when x is a variable and we say -x?

Do we mean that x, or perhaps -x, is to be found to the left of zero on the number line? No, not at all! What we mean is that if x is to the left, we want -x to denote the point equidistant on the right; and vice versa.

In other words, -5 denotes the point five units to the left of zero.

But if x is a variable, and x = -5, then -x = 5, a point to the RIGHT of zero.

We are overloading the meaning of '-'. Sometimes it's and address that tells us which side of zero we're on; and other times, it's an instruction or operator that flips the direction while preserving the magnitude of a number.

This is why -x confuses students. We're actually flim-flamming them a bit, by using '-' two different ways.
 
Last edited:
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K