My textbook says $|a| = -a$ for $a \le 0$.
What does it mean by this? I'm confused and think that the absolute value of a negative number like $|-5|$ would be positive $5$?
My textbook says $|a| = -a$ for $a \le 0$.
What does it mean by this? I'm confused and think that the absolute value of a negative number like $|-5|$ would be positive $5$?
According to the definition
for $x\ge 0$ we have $|x|=x$
for $x< 0$ we have $|x|=-x$
we have
$|5|=5$
$|-5|=-(-5)=5$
therefore $|x|$ is always non negative.
You are correct $|-5| = 5$. BUT notice if $a = -5$ then $-a = -(-5) = 5$.
Think of it this way. If $a < 0$ then $|a|$ is positive and $a$ is negative. So $|a|$ is the opposite of $a$. So $|a| = -a$ because $-a$ is the opposite of $a$.
In short. An negative sign before a variable does not mean the number is negative. It means the number is the opposite sign of whatever the variable means.
To beat a dead horse: If $a \ge 0$ then $|a| > 0$. But if $a < 0$ then $|a|$ would be "whatever it takes to make $a$ positive" which is, as "a negative of a negative is a positive" must be the other direction and that is $-a$. And we know $-a > 0$.
.... or in yet another way....
The absolute value is the "non-negative magnitude". If $a > 0$ then $|a| = a>0$. But if $a < 0$ then notice that $-a > 0$. So that means that $-a$ IS the positive magnitude and because $a< 0$, then $a$ is the negative magnitude.
So $|a| = -a$.
Which is intuitively the opposite of what we think. Your confusion is understandable and common. But logically unnecessary.
For $a \le 0$, we indeed have $|a| = (-1)(a)$. You want to try $a=-5$, so we have
$$|\underbrace{-5}_{a}|=|a|= (-1) \ \underbrace{(a)}_{a=-5}=-(-5)=5$$
Don't forget, $a$ isn't always positive.
For positive numbers, the absolute value of $a$ is given by multiplying $1$ with $a$. Eg $|5|=(1)(5)=5$. So, for positive numbers, the absolute value of $a$ is itself.
For negative numbers, the absolute value of $a$ is given by multiplying by $-1$ with $a$. Eg $|-5|=(-1)(-5)=5$. So, for negative numbers, the absolute value of $a$ is $-a$.