A concept we will encounter over and over is the concept of absolute value. You want to think of the absolute value as the “size” of a real number. Here is the formal definition:
\begin{equation*}
\abs{x} \coloneqq
\begin{cases}
x & \text{if } x \geq 0, \\
-x & \text{if } x < 0 .
\end{cases}
\end{equation*}
Let us give the main features of the absolute value as a proposition.
Proposition1.3.1.
\(\abs{x} \geq 0\text{,}\) moreover, \(\abs{x}=0\) if and only if \(x = 0\text{.}\)
\(\abs{-x} = \abs{x}\) for all \(x \in \R\text{.}\)
\(\abs{xy} = \abs{x}\abs{y}\) for all \(x,y \in \R\text{.}\)
\(\abs{x}^2 = x^2\) for all \(x \in \R\text{.}\)
\(\abs{x} \leq y\) if and only if \(-y \leq x \leq y\text{.}\)
\(-\abs{x} \leq x \leq \abs{x}\) for all \(x \in \R\text{.}\)
Proof.
i: First suppose \(x \geq 0\text{.}\) Then \(\abs{x} = x \geq 0\text{.}\) Also, \(\abs{x} = x = 0\) if and only if \(x=0\text{.}\) On the other hand, if \(x < 0\text{,}\) then \(\abs{x} = -x > 0\text{,}\) and \(\abs{x}\) is never zero.
ii: If \(x > 0\text{,}\) then \(-x < 0\) and so \(\abs{-x} = -(-x) = x =
\abs{x}\text{.}\) Similarly when \(x < 0\text{,}\) or \(x = 0\text{.}\)
iii: If \(x\) or \(y\) is zero, then the result is immediate. When \(x\) and \(y\) are both positive, then \(\abs{x}\abs{y} = xy\text{.}\) As \(xy\) is also positive, \(xy = \abs{xy}\text{.}\) If \(x\) and \(y\) are both negative, then \(xy=(-x)(-y)\) is still positive and \(\abs{xy}=xy\text{.}\) Also, \(\abs{x}\abs{y} = (-x)(-y) = xy\text{.}\) If \(x > 0\) and \(y < 0\text{,}\) then \(\abs{x}\abs{y} = x(-y) = -(xy)\text{.}\) Now \(xy\) is negative and \(\abs{xy} = -(xy)\text{.}\) Similarly when \(x < 0\) and \(y > 0\text{.}\)
iv: Immediate if \(x \geq 0\text{.}\) If \(x < 0\text{,}\) then \(\abs{x}^2 = {(-x)}^2 =
x^2\text{.}\)
v: Suppose \(\abs{x} \leq y\text{.}\) If \(x \geq 0\text{,}\) then \(x \leq y\text{.}\) It follows that \(y \geq 0\text{,}\) leading to \(-y \leq 0 \leq x\text{.}\) So \(-y \leq x \leq y\) holds. If \(x < 0\text{,}\) then \(\abs{x} \leq y\) means \(-x \leq y\text{.}\) Negating both sides we get \(x \geq -y\text{.}\) Again \(y \geq 0\) and so \(y \geq 0 > x\text{.}\) Hence, \(-y \leq x \leq y\text{.}\)
On the other hand, suppose \(-y \leq x \leq y\) is true. If \(x \geq 0\text{,}\) then \(x \leq y\) is equivalent to \(\abs{x} \leq y\text{.}\) If \(x < 0\text{,}\) then \(-y \leq x\) implies \((-x) \leq y\text{,}\) which is equivalent to \(\abs{x} \leq y\text{.}\)
or \(\abs{a}-\abs{b} \leq \abs{a-b}\text{.}\) Switching the roles of \(a\) and \(b\) we find \(\abs{b}-\abs{a} \leq \abs{b-a} = \abs{a-b}\text{.}\) Applying Proposition 1.3.1, we obtain the reverse triangle inequality.
The second item in the corollary is obtained from the standard triangle inequality by just replacing \(y\) with \(-y\text{,}\) and noting \(\abs{-y} =
\abs{y}\text{.}\)
We proceed by induction. The conclusion holds trivially for \(n=1\text{,}\) and for \(n=2\) it is the standard triangle inequality. Suppose the corollary holds for \(n\text{.}\) Take \(n+1\) numbers \(x_1,x_2,\ldots,x_{n+1}\) and first use the standard triangle inequality, then the induction hypothesis
The expression \(\sabs{x}^2+9\sabs{x}+1\) is largest when \(\abs{x}\) is largest (why?). In the interval provided, \(\abs{x}\) is largest when \(x=5\) and so \(\abs{x}=5\text{.}\) One possibility for \(M\) is
\begin{equation*}
M = 5^2+9(5)+1 = 71 .
\end{equation*}
There are, of course, other \(M\) that work. The bound of 71 is much higher than it need be, but we didn’t ask for the best possible \(M\text{,}\) just one that works.
The last example leads us to the concept of bounded functions.
Definition1.3.6.
Suppose \(f \colon D \to \R\) is a function. We say \(f\) is bounded if there exists a number \(M\) such that \(\abs{f(x)} \leq M\) for all \(x \in D\text{.}\)
In the example, we proved \(x^2-9x+1\) is bounded when considered as a function on \(D = \{ x : -1 \leq x \leq 5 \}\text{.}\) On the other hand, if we consider the same polynomial as a function on the whole real line \(\R\text{,}\) then it is not bounded.
For a function \(f \colon D \to \R\text{,}\) we write (see Figure 1.4 for an example)
We also sometimes replace the “\(x \in D\)” with an expression. For example if, as before, \(f(x) = x^2-9x+1\text{,}\) for \(-1 \leq x \leq 5\text{,}\) a little bit of calculus shows
Be careful with the variables. The \(x\) on the left side of the inequality in (1.1) is different from the \(x\) on the right. You should really think of, say, the first inequality as
Let us prove this inequality. If \(b\) is an upper bound for \(g(D)\text{,}\) then \(f(x) \leq g(x) \leq b\) for all \(x \in D\text{,}\) and hence \(b\) is also an upper bound for \(f(D)\text{,}\) or \(f(x) \leq b\) for all \(x \in D\text{.}\) Take the least upper bound of \(g(D)\) to get that for all \(x \in D\)
The inequality (1.2) is not true given the hypothesis of the proposition above. For this stronger inequality we need the stronger hypothesis
\begin{equation*}
f(x) \leq g(y) \qquad \text{for all } x \in D \text{ and } y \in D.
\end{equation*}
The proof as well as a counterexample is left as an exercise (Exercise 1.3.5).
ExercisesExercises
1.3.1.
Show that \(\abs{x-y} < \epsilon\) if and only if \(x-\epsilon < y < x+\epsilon\text{.}\)
1.3.2.
Show: a) \(\max \{x,y\} = \frac{x+y+\abs{x-y}}{2}\) b) \(\min \{x,y\} = \frac{x+y-\abs{x-y}}{2}\)
1.3.3.
Find a number \(M\) such that \(\sabs{x^3-x^2+8x} \leq M\) for all \(-2 \leq x \leq
10\text{.}\)
1.3.4.
Finish the proof of Proposition 1.3.7. That is, prove that given a set \(D\text{,}\) and two bounded functions \(f \colon D \to \R\) and \(g \colon D \to \R\) such that \(f(x) \leq g(x)\) for all \(x \in D\text{,}\) then
Find an example (or examples) where we obtain strict inequalities.
1.3.8.
Suppose \(D\) is nonempty, \(f \colon D \to \R\) and \(g \colon D \to \R\) are bounded functions, and \(\alpha \in \R\text{.}\)
Show that \(\alpha f \colon D \to \R\) defined by \((\alpha f) (x) \coloneqq \alpha
f(x)\) is a bounded function.
Show that \(f+g \colon D \to \R\) defined by \((f+g) (x) \coloneqq f(x) + g(x)\) is a bounded function.
1.3.9.
Let \(f \colon D \to \R\) and \(g \colon D \to \R\) be functions with \(D\) nonempty, \(\alpha \in \R\text{,}\) and recall what \(f+g\) and \(\alpha f\) means from the previous exercise.
Prove that if \(f+g\) and \(g\) are bounded, then \(f\) is bounded.
Find an example where \(f\) and \(g\) are both unbounded, but \(f+g\) is bounded.
Prove that if \(f\) is bounded but \(g\) is unbounded, then \(f+g\) is unbounded.
Find an example where \(f\) is unbounded but \(\alpha f\) is bounded.
For a higher quality printout use the PDF versions: https://www.jirka.org/ra/realanal.pdf or https://www.jirka.org/ra/realanal2.pdf