Part I — Algebra · Chapter 3
Real Numbers
The fractions leave gaps in the number line. Filling them gives the real numbers — and with them, order, inequalities, distance, and roots.
A calculator says $\sqrt2 = 1.41421356237$. Fractions are packed along the number line with no visible gaps. So is $\sqrt2$ exactly equal to some fraction — perhaps one with an enormous numerator and denominator?
- Yes — some fraction must hit it exactly
- No — no fraction ever does
- Nobody knows
Hold that guess. The first section settles it, using nothing beyond even and odd.
You should be comfortable with the rules of arithmetic and with the even/odd proofs of Chapter 1 — the proof that $\sqrt2$ is not a fraction, a few lines below, is written in exactly that style.
Three quick ones from earlier chapters, to wake up what this chapter stands on. They are not scored. If one doesn't come to you, its solution says where to look.
If $n^2$ is even, what can you say about the integer $n$?
- $n$ is even.
- $n$ is odd.
- Nothing — it could be either.
- $n$ is divisible by $4$.
Answer: $n$ is even
If $n$ were odd, $n = 2k+1$, then $n^2 = 2(2k^2 + 2k) + 1$ would be odd. So an even square can only come from an even number. This is Example 6 of Chapter 1, and it is the engine of the first proof below.
Compute $(-3)(-5)$.
Answer: $15$
A negative times a negative is positive: $(-3)(-5) = 15$, by Example 4 of Chapter 1. The rule for flipping an inequality, later in this chapter, comes straight out of it.
Compute $\dfrac23 - \dfrac56$.
Answer: $-\dfrac16$
$\frac23 = \frac46$, so the difference is $\frac46 - \frac56 = -\frac16$. See §1.5.
3.1 Why the fractions are not enough
Between any two fractions there is another — take their average. So the rationals are packed everywhere on the line, with no visible gaps. It is startling that gaps exist at all.
But they do. Draw a square with side $1$; by the Pythagorean theorem (which we prove in Chapter 5) its diagonal has length $d$ with $d^2 = 2$. That length is a perfectly definite point on the line, and it is not a fraction.
Example 1. $\sqrt{2}$ is not a rational number
Suppose it were. We show that assumption leads to a contradiction, so it must be false.
- Suppose $\sqrt2 = \dfrac{m}{n}$ with $m, n$ integers, $n \neq 0$, and the fraction in lowest terms — any fraction can be put in lowest terms by canceling common factors, so this costs nothing.
- Square both sides: $2 = \dfrac{m^2}{n^2}$, hence $m^2 = 2n^2$.
- So $m^2$ is even. By Example 6 of Chapter 1, $m$ is then even too. Write $m = 2k$.
- Substitute: $(2k)^2 = 2n^2$, so $4k^2 = 2n^2$, so $n^2 = 2k^2$.
- By the same lemma, $n$ is even.
- But now $m$ and $n$ are both even — they share the factor $2$, contradicting "lowest terms". The supposition in step 1 is impossible, so $\sqrt2$ is not a fraction. $\blacksquare$
This is proof by contradiction: assume the opposite of what you want, derive an impossibility, conclude the assumption was false. Note how little it needed — the definition of "even", and the lemma from Chapter 1. Note also what it does not do: it gives no decimal expansion for $\sqrt2$, and does not need one.
In the proof that $\sqrt2$ is not a fraction, what was the assumption in lowest terms for?
- To be allowed to square both sides.
- It is what the conclusion “$m$ and $n$ are both even” contradicts.
- To show that $m^2$ is even.
- It was not needed.
Answer: it is what the contradiction contradicts
The argument shows $m$ and $n$ are both even, so they share the factor $2$. That is only a contradiction because we chose the fraction in lowest terms at the start. Without that choice the proof would simply stop, having proved nothing. When you read a proof, ask of every hypothesis: where is it used?
The real numbers are what you get by filling every such gap: the complete number line, with one number for every point. Rationals with terminating or repeating decimal expansions sit inside it; numbers like $\sqrt2$ and $\pi$, with non-repeating expansions, are the new arrivals, called irrational.
3.2 Addition, multiplication, and positivity
All eight rules from Chapter 1 hold for real numbers, plus the inverse rule: every $a \neq 0$ has $a^{-1}$ with $a a^{-1} = 1$. Everything proved in Chapter 1 from those rules therefore holds here unchanged — $(-a)(-b) = ab$, $a\cdot 0 = 0$, and the rest. That is the payoff of proving things from a short list.
What is genuinely new is order, and it rests on a single idea: some numbers are positive.
There is a set of positive numbers such that:
- Trichotomy. For every real $a$, exactly one holds: $a$ is positive, $a = 0$, or $-a$ is positive.
- Closure under addition. If $a, b$ are positive, so is $a + b$.
- Closure under multiplication. If $a, b$ are positive, so is $ab$.
Then define $a > b$ to mean "$a - b$ is positive", and $a < b$ to mean $b > a$.
Everything about inequalities follows from those three. Here is the pattern.
Example 2. A square is never negative
Show that $a^2 > 0$ for every $a \neq 0$.
- By trichotomy, either $a$ is positive or $-a$ is positive (the case $a = 0$ is excluded).
- If $a$ is positive, then $a\cdot a = a^2$ is positive by closure under multiplication.
- If $-a$ is positive, then $(-a)(-a)$ is positive by the same rule — and $(-a)(-a) = a^2$ by Chapter 1, Example 4.
- Either way $a^2$ is positive. $\blacksquare$
In particular $1 = 1^2$ is positive, so $-1$ is not. And no real number squares to $-1$ — which is exactly the gap that Chapter 14 fills.
For real numbers $a$ and $b$, suppose $a^2 + b^2 = 0$. What follows?
- $a = 0$ and $b = 0$.
- $a = -b$, for example $a = 1$, $b = -1$.
- Nothing can be said.
Answer: $a = 0$ and $b = 0$
By Example 2 each of $a^2$ and $b^2$ is positive unless the number itself is $0$. A sum of two numbers that are $\ge 0$ can be $0$ only if both are $0$. So $a = b = 0$. (The second option fails: $1^2 + (-1)^2 = 2$, not $0$.)
3.3 Order and inequalities
Let $a < b$. Then:
- $a + c < b + c$ for every $c$ — adding anything preserves an inequality.
- $ac < bc$ if $c > 0$ — multiplying by a positive number preserves it.
- $ac > bc$ if $c < 0$ — multiplying by a negative number reverses it.
- If also $b < d$ then $a < d$ (transitivity).
Take the true statement $2 < 5$ and multiply both sides by $-1$. Find $-2$ and $-5$ on the number line. Which is true: $-2 < -5$, or $-2 > -5$?Decide, then open
$-2$ lies to the right of $-5$, so $-2 > -5$. Multiplying by $-1$ reflects the whole line through $0$, and a reflection swaps left and right — so whatever was smaller becomes larger. That is all Rule 3 says, and the next paragraph proves it from the positivity rules.
Rule 3 is the one that catches people, so here is its proof. Suppose $a < b$ and $c < 0$. Then $b - a$ is positive and $-c$ is positive, so their product $(b-a)(-c)$ is positive by closure. Expanding, $(b-a)(-c) = ac - bc$. So $ac - bc$ is positive, which says precisely $ac > bc$. The direction flipped, and it had to.
Example 3. Solving an inequality
Solve $4 - 3x \le 13$.
- Add $-4$ to both sides: $-3x \le 9$. Direction unchanged — Rule 1.
- Multiply both sides by $-\frac13$. This number is negative, so the inequality reverses: $x \ge -3$.
- The solution set is every real number $x$ with $x \ge -3$, written $[-3, \infty)$.
- Spot-check the boundary and one point inside: $x = -3$ gives $4 + 9 = 13 \le 13$ ✓; $x = 0$ gives $4 \le 13$ ✓; and $x = -4$ gives $16 \le 13$ ✗, correctly excluded.
Solve $7 - 4x \le 19$.
- $x \le -3$
- $x \ge -3$
- $x \le 3$
- $x \ge 3$
Answer: $x \ge -3$
Add $-7$: $-4x \le 12$. Multiply by $-\frac14$, which is negative, so the inequality reverses: $x \ge -3$. Check a point: $x = 0$ gives $7 \le 19$ ✓, and $0 \ge -3$ ✓.
Never multiply an inequality by an expression whose sign you do not know. From $\frac{1}{x} < 1$ you cannot simply multiply by $x$: if $x > 0$ you get $1 < x$, but if $x < 0$ the inequality reverses and every negative $x$ already works. Split into cases, or rearrange to compare with $0$ instead.
Wrong turn. Multiplying an inequality by an unknown
Solve $\dfrac{1}{x} < 1$.
- The tempting move. Clear the fraction by multiplying both sides by $x$: $1 < x$. Answer: $x > 1$.
- The check. Try $x = -1$ in the original: $\dfrac{1}{-1} = -1$, and $-1 < 1$ is true. So $x = -1$ solves the inequality — yet the answer above excludes it. Solutions have gone missing.
- Why. Multiplying by $x$ assumed $x$ was positive. For negative $x$ the inequality reverses, and that whole half of the number line was never examined.
- The repair, case one. If $x > 0$, multiplying by the positive number $x$ keeps the direction: $1 < x$, so $x > 1$.
- The repair, case two. If $x < 0$, then $\frac1x$ is negative, and every negative number is already below $1$. So every $x < 0$ works, with no computation at all. ($x = 0$ is excluded outright: $\frac10$ names nothing.)
- The solution set is therefore $x < 0$ or $x > 1$ — two intervals, not one. $\blacksquare$
Sanity-check the boundary between them: $x = \tfrac12$ lies in neither interval, and indeed $\frac{1}{1/2} = 2$, which is not below $1$. The gap is real, and no single inequality of the form $x > c$ could have described this set.
Which of these moves keep an inequality pointing the same way? Choose every one that does.
- Adding $-5$ to both sides.
- Multiplying both sides by $3$.
- Multiplying both sides by $-2$.
- Subtracting the same number from both sides.
Answer: all except multiplying by $-2$
Adding or subtracting anything is safe, and so is multiplying by a positive number. Multiplying by a negative number reverses the order: $1 < 2$ but $-2 > -4$.
3.4 Absolute value and distance
The absolute value of $a$ is
It strips the sign: $|5| = 5$ and $|-5| = 5$. Two consequences are worth having permanently in mind:
- $|a|$ is the distance from $a$ to $0$ on the number line.
- $|a - b|$ is the distance between $a$ and $b$ — and it does not matter which way around you subtract, since $|a - b| = |b - a|$.
Once you read absolute value as distance, inequalities involving it stop needing algebra at all. The statement $|x - 3| < 2$ says "$x$ is within $2$ of $3$", so $1 < x < 5$ — read straight off the line.
Distance at work. Two absolute-value inequalities
Solve (a) $|2x - 6| \le 4$ and (b) $|x + 2| > 3$.
- (a) Pull the $2$ out first: $|2x - 6| = |2(x - 3)| = 2\,|x - 3|$. So the condition is $2|x - 3| \le 4$, that is, $|x - 3| \le 2$.
- Read it as distance: $x$ is within $2$ of $3$. So $1 \le x \le 5$ — the interval $[1, 5]$, endpoints included because of the $\le$.
- (b) $|x + 2| = |x - (-2)|$ is the distance from $x$ to $-2$. A plus sign inside the bars means the center is negative.
- "More than $3$ away from $-2$" means beyond $-2 + 3 = 1$ on the right, or beyond $-2 - 3 = -5$ on the left: $x < -5$ or $x > 1$. Two pieces, as always for a "far from" statement. $\blacksquare$
Spot-check (b) with $x = 0$: $|0 + 2| = 2$, which is not more than $3$ — and $0$ is indeed in neither piece.
The solution set of $|x - 4| < 3$ is an interval. Give its two endpoints, separated by a comma.
Answer: $1$ and $7$
$x$ is within $3$ of $4$: between $4 - 3 = 1$ and $4 + 3 = 7$. The solution set is the open interval $(1, 7)$ — the endpoints themselves are excluded, since the relation is $<$.
- $|a| \ge 0$, with $|a| = 0$ only when $a = 0$.
- $|ab| = |a||b|$.
- $|a + b| \le |a| + |b|$ — the triangle inequality.
The third is an inequality, not an equation, because $a$ and $b$ may point in opposite directions: with $a = 3$ and $b = -3$ the left side is $0$ and the right side is $6$. Equality holds exactly when $a$ and $b$ have the same sign (or one is zero) — when nothing cancels.
3.5 Powers and roots
For a positive integer $n$, $a^n$ means $a$ multiplied by itself $n$ times. From that definition alone, three laws are immediate — count the factors:
The third comes from regrouping: $(ab)^n$ is $n$ copies of $ab$ multiplied together, and commutativity and associativity let us gather all the $a$'s on one side and all the $b$'s on the other, leaving $a^n b^n$.
We now extend the notation to zero, negative, and fractional exponents. There is only one sensible way to do it: choose the meaning that keeps those three laws true.
$2^3 = 8$, $2^2 = 4$, $2^1 = 2$. Each step down halves the value. If the pattern is to continue, what must $2^0$ and $2^{-1}$ be?Decide, then open
Halving again: $2^0 = 1$ and $2^{-1} = \frac12$. Not $0$, and not $-2$. The box below shows that these are not merely the tidy continuation of a pattern: they are the only values that keep the law $a^m a^n = a^{m+n}$ true.
- $a^0 = 1$ (for $a \neq 0$), because $a^n a^0 = a^{n+0} = a^n$ forces $a^0$ to be the number that changes nothing under multiplication.
- $a^{-n} = \dfrac{1}{a^n}$, because $a^n a^{-n} = a^0 = 1$ forces $a^{-n}$ to be the inverse of $a^n$.
- $a^{1/n} = \sqrt[n]{a}$ (for $a > 0$), because $\big(a^{1/n}\big)^n = a^{n/n} = a^1 = a$ forces $a^{1/n}$ to be the $n$-th root.
- Hence $a^{m/n} = \big(\sqrt[n]{a}\big)^m$.
- $\sqrt[n]{ab} = \sqrt[n]{a}\,\sqrt[n]{b}$ (for $a, b > 0$), because the third law above must keep holding at the fractional exponent $1/n$ too: $(ab)^{1/n} = a^{1/n} b^{1/n}$. Roots distribute over products for the same reason every other rule in this box holds — it's forced, not chosen.
Nothing here is a convention chosen for tidiness; each is the unique choice compatible with the laws we already had.
Example 4. Simplifying with the laws
Simplify $\dfrac{(8)^{2/3} \cdot 2^{-1}}{2^{2}}$.
- $8 = 2^3$, so $8^{2/3} = (2^3)^{2/3} = 2^{3 \cdot 2/3} = 2^2 = 4$. Second law: $(a^m)^n = a^{mn}$.
- The numerator is $2^2 \cdot 2^{-1} = 2^{2 - 1} = 2$.
- Divide: $\dfrac{2}{2^2} = 2^{1-2} = 2^{-1} = \dfrac12$. $\blacksquare$
Your turn, with help. The laws in sequence
Simplify $32^{3/5} \cdot 2^{-4}$. The first step is done; try each later one before opening it.
- Write the base as a power of $2$: $32 = 2^5$, so $32^{3/5} = (2^5)^{3/5} = 2^{5 \cdot 3/5} = 2^3$.
-
Combine the two powers of $2$
Same base, so add the exponents: $2^3 \cdot 2^{-4} = 2^{3-4} = 2^{-1}$.
-
Write the result without a negative exponent
$2^{-1} = \dfrac12$. $\blacksquare$
Compute $16^{3/4}$.
Answer: $8$
$16 = 2^4$, so $16^{3/4} = (2^4)^{3/4} = 2^3 = 8$. Equivalently: the fourth root of $16$ is $2$, and $2^3 = 8$.
Example 5. Clearing a root from a denominator
Rewrite $\dfrac{1}{1-\sqrt2}$ with no root underneath.
- Multiply top and bottom by $1+\sqrt2$ — the same expression with the sign of the root reversed, called the conjugate. That multiplies the fraction by $1$, so its value is unchanged.
- The denominator becomes $(1-\sqrt2)(1+\sqrt2) = 1^2 - (\sqrt2)^2 = 1 - 2 = -1$, by the identity $(a-b)(a+b) = a^2 - b^2$ of Chapter 1.
- So $\dfrac{1}{1-\sqrt2} = \dfrac{1+\sqrt2}{-1} = -1-\sqrt2$. $\blacksquare$
This is called rationalizing the denominator. Sanity check: $1 - \sqrt2 \approx -0.414$, and $1/(-0.414) \approx -2.414$, which is $-1-\sqrt2$ ✓. The same device returns in Chapter 14, where it is how complex numbers are divided.
Rewrite $\dfrac{1}{\sqrt3 - 1}$ with no root in the denominator.
- $\dfrac{\sqrt3 + 1}{2}$
- $\dfrac{\sqrt3 - 1}{2}$
- $\sqrt3 + 1$
- $\dfrac12$
Answer: $\dfrac{\sqrt3 + 1}{2}$
Multiply top and bottom by $\sqrt3 + 1$. The denominator becomes $(\sqrt3 - 1)(\sqrt3 + 1) = 3 - 1 = 2$, so the fraction is $\frac{\sqrt3 + 1}{2}$. Check: $\sqrt3 - 1 \approx 0.732$ and $1/0.732 \approx 1.366$, while $(1.732 + 1)/2 = 1.366$ ✓.
$\sqrt{x^2} = |x|$, not $x$. The square root symbol always means the non-negative root, so $\sqrt{(-5)^2} = \sqrt{25} = 5 = |-5|$.
$\sqrt{a + b} \neq \sqrt a + \sqrt b$. Roots distribute over products (that's the rule above) but never over sums — there is no such law, and no reason to expect one. Test with $a = b = 9$: the left side is $\sqrt{18} \approx 4.24$, the right side is $6$.
Wrong turn. Taking the square root of both sides
Solve $x^2 = 9$.
- The tempting move. Undo the square by taking the square root of both sides: $x = 3$.
- The check. Try $x = -3$ in the original: $(-3)^2 = 9$ ✓. It solves the equation and was never offered. One of the two answers has quietly gone missing.
- Why. The step used $\sqrt{x^2} = x$, which is false whenever $x$ is negative. What is true is $\sqrt{x^2} = |x|$, since the root symbol always names the non-negative root.
- The repair. Applying the correct identity gives $|x| = 3$, and by the reading of absolute value as distance, $|x| = 3$ says $x$ sits three units from $0$ — on either side. So $x = 3$ or $x = -3$, and both check. $\blacksquare$
The same slip in reverse claims $\sqrt{9} = \pm 3$. It does not: $\sqrt{9}$ is the single number $3$. The two signs enter when solving $x^2 = 9$, not when evaluating a root — which is why the $\pm$ in the quadratic formula of Chapter 4 is written in explicitly rather than being smuggled inside the radical.
Fill in the exponents: $2^3 \cdot 2^4$ is $2$ to the power , and $(2^3)^4$ is $2$ to the power .
Answer: $2^7$ and $2^{12}$
$2^3 \cdot 2^4$ is three $2$s times four $2$s: seven in all. $(2^3)^4$ is four copies of three $2$s: twelve.
Practice
Compute $|{-3} - 5|$.
Answer: $8$
Inside the bars, $-3 - 5 = -8$, and $|-8| = 8$. Read as distance: the gap between $-3$ and $5$ on the line is $8$ units, and distances are never negative.
Solve $-2x + 1 > 7$.
- $x > -3$
- $x > 3$
- $x < -3$
- $x < 3$
Answer: $x < -3$
Add $-1$: $-2x > 6$. Now multiply by $-\frac12$, a negative number, so the inequality reverses: $x < -3$.
Check: $x = -4$ gives $8 + 1 = 9 > 7$ ✓; $x = 0$ gives $1 > 7$ ✗.
Solve $|x - 3| = 4$. List all solutions, separated by a comma.
Answer: $x = 7$ and $x = -1$
The equation says $x$ is at distance exactly $4$ from $3$. There are two such points: $3 + 4 = 7$ and $3 - 4 = -1$.
Algebraically: $x - 3 = 4$ or $x - 3 = -4$. An equation with absolute value almost always splits into two cases like this.
Which interval is the solution set of $|x - 2| \le 5$?
- $[-5, 5]$
- $[-3, 7]$
- $[2, 7]$
- Everything outside $[-3, 7]$
Answer: $[-3, 7]$
"The distance from $x$ to $2$ is at most $5$" means $x$ lies between $2 - 5 = -3$ and $2 + 5 = 7$, endpoints included because the relation is $\le$.
The last option would be the answer to $|x - 2| \ge 5$ — a "far from" statement, which always gives two pieces rather than one interval.
Compute $4^{-3/2}$.
Answer: $\dfrac18$
Take the pieces one at a time: $$4^{-3/2} = \frac{1}{4^{3/2}} = \frac{1}{\big(\sqrt4\big)^{3}} = \frac{1}{2^3} = \frac18.$$ Any order works — root first or power first — because $(a^m)^n = a^{mn}$.
Compute $27^{2/3}$.
Answer: $9$
$27 = 3^3$, so $27^{2/3} = (3^3)^{2/3} = 3^{2} = 9$. Equivalently: the cube root of $27$ is $3$, and $3^2 = 9$.
Simplify $\sqrt{x^{2}}$ so that the result is correct for every real $x$.
Answer: $|x|$
The symbol $\sqrt{\;}$ denotes the non-negative root, so $\sqrt{x^2}$ is never negative. For $x = -5$: $\sqrt{(-5)^2} = \sqrt{25} = 5$, which is $|-5|$, not $-5$. The answer $x$ is right only when $x \ge 0$; $|x|$ is right always.
Which of these statements is false for all real $a, b$?
- $|ab| = |a|\,|b|$
- $|a + b| \le |a| + |b|$
- $|a - b| = |b - a|$
- $|a + b| = |a| + |b|$
Answer: $|a + b| = |a| + |b|$
It fails whenever $a$ and $b$ have opposite signs: with $a = 3$, $b = -3$ the left side is $0$ and the right side is $6$. The correct general statement is the triangle inequality $|a+b| \le |a| + |b|$, with equality exactly when $a$ and $b$ have the same sign or one of them is $0$.
The other three hold for all real $a$ and $b$.
What is the smallest possible value of $(x + 1)^2 - 4$, and at which $x$ does it occur? Give the value of $x$.
Answer: $x = -1$ (where the expression equals $-4$)
By Example 2, a square is never negative: $(x+1)^2 \ge 0$ for every $x$, so $(x+1)^2 - 4 \ge -4$. The value $-4$ is actually attained when $(x+1)^2 = 0$, that is when $x = -1$.
This "a square is at least zero" argument is the whole idea behind completing the square in Chapter 4.
A student "proves" that $\frac1x < 1$ implies $x > 1$, by multiplying both sides by $x$. Where is the error?
- $\frac1x < 1$ is never true, so nothing follows.
- Multiplying by $x$ assumes $x > 0$; if $x < 0$ the inequality reverses, and indeed every negative $x$ satisfies $\frac1x < 1$.
- The inequality should have been squared instead.
- $\frac1x$ is undefined, so the statement is meaningless.
Answer: the second option
Multiplying an inequality by $x$ is only safe once you know the sign of $x$. Take $x = -2$: then $\frac1x = -\frac12 < 1$ is true, while $x > 1$ is false — so the claimed implication is wrong as stated.
The honest solution splits into cases: for $x > 0$, multiplying gives $1 < x$; for $x < 0$, the left side is negative and the inequality holds automatically. The full solution set is $x < 0$ or $x > 1$.
Recap
No fraction is ever exactly $\sqrt2$. If $\frac mn$ in lowest terms squared to $2$, then $m$ and $n$ would both have to be even — impossible for a fraction in lowest terms. The calculator's $1.41421356237$ is a fraction, and its square is a little less than $2$. The digits of $\sqrt2$ go on forever without repeating.
- $\sqrt2$ is not a fraction — proved by contradiction from the even/odd lemma. The reals fill the gaps the rationals leave.
- Order comes from three positivity rules. Everything about inequalities is derived from them, including the reversal when you multiply by a negative number.
- $a^2 > 0$ for $a \neq 0$: no real number squares to a negative.
- $|a - b|$ is distance. Read absolute-value inequalities as "near" ($<$, one interval) or "far" ($>$, two pieces).
- Zero, negative, and fractional exponents are defined by the requirement that $a^ma^n = a^{m+n}$ and $(a^m)^n = a^{mn}$ keep working.