The Modulus functionNeed a little Explanation

AI Thread 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:
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Replies
2
Views
1K
Replies
10
Views
2K
Replies
9
Views
4K
Replies
2
Views
2K
Replies
4
Views
3K
Replies
13
Views
2K
Replies
2
Views
1K
Back
Top