yourmom98 said:
so basically|x| means the answer is like always positive
Right, if you include 0 as a positive number. To avoid confusion about 0, you could also say that |x| is non-negative, which means |x|
> 0.
so therefor there will be a possibility of where the x is negative or -x and positvie just x right? so |x| is like F(x) rite? and if you sub x-7 for f(x) you would get like in order for x to be the positive value it would have to be greater than 7 there for x>=7 and -x would be -x<7?
I don't really understand that. Perhaps x appearing both in the definition and your example is confusing - the two x's aren't being used in the same way. So let's just change (x - 7) to (y - 7). If you write |x| as f(x), |y - 7| would be f(y - 7); You're setting x = y - 7. Plug (y - 7) into your definition in place of x. It now says
|y - 7| = (y - 7) if (y - 7)
> 0; -(y - 7) if (y - 7) < 0.
You already know that |y - 7| will be non-negative, remember. The definition tells you how to turn (y - 7) into a non-negative number.
Let y = 0. (0 - 7) = -7. Plug this into your definition:
|-7| = -7 if -7
> 0; -(-7) if -7 < 0.
-7 < 0. So what does the definition tell you? |-7| = -(-7) = 7.
Let y = 8. (8 - 7) = 1. Do the same thing.
|1| = 1 if 1
> 0; -(1) if 1 < 0.
1
> 0. So what does the definition tell you in this case? |1| = 1.
The definition tells you more than that. But do you understand this part?
The rule is pretty simple - you could say informally that if x is already non-negative, don't do anything to it; If x is negative, do what to it in order to make it non-negative?