The Modulus functionNeed a little Explanation

In summary: The "negative" in "-x" is not the "negative" in "negative five."So, you're not "wrong" in thinking that |-5|= -5. You're making an indirect connection, one that you may not even realize you are making. And you're confused, because you can see that |-5|= 5. But it's not because you're wrong. It's because the notation is confusing.So, what does the definition say?It says that if x is less than zero, then |x|= -x. Otherwise, if x is greater than or equal to zero, then |x|= x.
  • #1
nishantve1
76
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
  • #2
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.
 
  • #3
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
 
  • #4
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
 
  • #5
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:

What is the Modulus function?

The Modulus function, also known as the absolute value function, is a mathematical function that returns the distance of a number from 0 on a number line. In other words, it gives the positive value of any given number, disregarding its sign.

How is the Modulus function represented?

The Modulus function is represented by the symbol "|" placed on either side of the number. For example, the Modulus of -5 would be written as |-5|, which equals 5.

What are the main uses of the Modulus function?

The Modulus function is mainly used in mathematical equations involving distance, such as calculating speed, acceleration, and displacement. It is also used in computer programming to determine the remainder of a division between two numbers.

Can the Modulus function be applied to all types of numbers?

Yes, the Modulus function can be applied to all types of numbers, including integers, decimals, and fractions. However, it is most commonly used with integers.

What is the difference between the Modulus function and the Floor function?

The Modulus function and the Floor function are two different mathematical functions. While the Modulus function returns the positive value of a number, the Floor function rounds down a number to the nearest integer. For example, the Floor of 4.9 would be 4, while the Modulus of 4.9 would be 4.9.

Similar threads

Replies
5
Views
2K
Replies
5
Views
713
Replies
5
Views
845
  • General Math
Replies
2
Views
881
  • General Math
Replies
9
Views
2K
Replies
4
Views
413
  • General Math
Replies
13
Views
2K
  • General Math
Replies
2
Views
1K
Replies
2
Views
682
  • General Math
Replies
4
Views
2K
Back
Top