IUM lectures on Numbers

4.2. The gory details of +, -, ×, /

Unfortunately this is incredibly tedious to do on paper. I would not spend too much time worrying about this subsection; it's many many simple calculations.

We have the notation cl(a,b) for the equivalence class of (a,b)\in\Z\times(\Z-\{0\}); we would like to call it a/b but we need to hold off on this until we have defined division!

Of course, as well as division, we also want to have an addition and a multiplication on \mathbb{Q}, satisfying \frac{a}{b}+\frac{c}{d}=\frac{ad+bc}{bd},\quad \frac{a}{b}\times\frac{c}{d}=\frac{ac}{bd} and we also need to define negation -x of a rational and reciprocal x^{-1} of a nonzero rational; then we can define subtraction x-y to be x+(-y), and division x/y to be x\times y^{-1} and we will finally have our four basic arithmetical operations.

This construction is quite formal and very tedious. Let me plough through it in these notes. Looking back at our approach for defining operations on the integers, we see that we need to do the following.

Definition 69 (pre-operations)

  • We define pre-addition on \Z\times(\Z-\{0\}) by (a,b)+(c,d)=(ad+bc,bd).

  • We define pre-negation on \Z\times(\Z-\{0\}) by -(a,b)=(-a,b).

  • We define pre-multiplication on \Z\times(\Z-\{0\}) by (a,b)\times(c,d)=(ac,bd).

  • We define pre-reciprocal on (\Z-\{0\})\times(\Z-\{0\}) by (a,b)^{-1}=(b,a).

It is worth remarking that everything here makes sense, i.e., that all the second terms in each bracket are nonzero. For addition and multiplication this is because the product of two non-zero integers is non-zero (see the second problem sheet).

Now let's go back to defining these operations on the rationals. Let me explain the problem again. The rationals are "pairs of integers, glued together". When you give a function the same input twice, it has to give the same output -- that's what being a function is about. So if we're trying to define a function on a set which is a bunch of things glued together, we need to make sure that the function doesn't take two things glued together and rip them apart and send them to different things.

More formally, to show that these "pre" operations really do descend to operations on the rational numbers, we must hence have to prove the following.

Theorem 70 (pre-operations descend to the quotient)

  1. If (a,b)\sim(a',b') then (a,b)+(c,d)\sim(a',b')+(c,d), and if (c,d)\sim(c',d') then (a,b)+(c,d)\sim(a,b)+(c',d').

  2. If (a,b)\sim(a',b') then -(a,b)\sim-(a',b').

  3. If (a,b)\sim(a',b') then (a,b)\times(c,d)\sim(a',b')\times(c,d) and if (c,d)\sim(c',d') then (a,b)\times(c,d)\sim(a,b)\times(c',d').

  4. If (a,b)\sim(a',b') and a,a'\not=-0 then (a,b)^{-1}\sim(a',b')^{-1}.

Proof

None of these are hard, and the first one is probably the most complicated (because the definition of pre-addition is the messiest). I'll do that one and will leave the rest to you.

  1. For the first part, we know ab'=ba' and we want to check that (ad+bc,bd)\sim(a'd+b'c,b'd), or equivalently that (ad+bc)b'd=bd(a'd+b'c). Multiplying everything out (i.e., using distributivity) we reduce the goal to (ad)(b'd)+(bc)(b'd)=(bd)(a'd)+(bd)(b'c). Using commutativity and associativity loads of times gives ab'dd+bcb'd=ba'dd+bcb'd, and now ab'=ba' gives the result easily.

    For the second part, we know that cd'=dc' and need to show (ad+bc,bd)\sim(ad'+bc',bd') or equivalently that (ad+bc)bd'=bd(ad'+bc'). Again multiplying out the brackets and applying commutativity and associativity of multiplication the result follows from cd'=dc'.

The rest are on the problem sheet.

Corollary 71 (addition, subtraction, multiplication)

We can define addition, negation and multiplication on \mathbb{Q} by cl(a,b)+cl(c,d)=cl((a,b)+(c,d)), -cl(a,b)=cl(-a,b), cl(a,b)\times cl(c,d)=cl(ac,bd)

Proof

The subtle thing which needs to be done here is simply to check that our functions are well-defined, that is, in each case, changing the input cl(a,b) to the equal element cl(a',b') if (a,b)\sim(a',b') doesn't change the value of the answer. But this is exactly what we proved in the previous theorem.

Just as we considered the naturals as being a subset of the integers via an explicit map, let's define j:\Z\to\mathbb{Q} by j(z)=cl(z,1) (i.e., the rational which we think of as z/1). We leave as an exercise to show that the map j is injective and preserves addition and multiplication.

We define the rational 0 to be j(0)=cl(0,1). Now, reciprocal is a bit different from the other operations because it doesn't work with 0 (infinity is not a number). So let's just check that we've got this straight. First let's observe that if (a,b)\sim(0,1) then by definition a\times1=b\times 0, so a=0. Thus reciprocals definitely make sense on the rationals:

Definition 72 (reciprocal on the rational numbers)

If x\not=0 is a rational number then every (a,b) in the equivalence class representing x has a\not=0, so (a,b)^{-1} makes sense (the pre-reciprocal). We define x^{-1} to be the class of (a,b)^{-1} and note that it's well-defined by the previous theorem.

It's tiresome talking about (a,b) and cl(a,b). Let's introduce the more sensible notation a/b, and check that this really is a divided by b in the sense we've just introduced.

Lemma 73 (Sensible notation for rationals)

If a and b are integers and b\not=0, and if we abuse notation also call a the rational number j(a)=cl(a,1) and similarly for b, then the equivalence class of (a,b) is the rational number a/b.

Proof

The definition of a/b is j(a)\times j(b)^{-1}, so it's the class of (a,1)\times(b,1)^{-1}, so it's the class of (a,1)\times(1,b), so it's the class of (a\times 1, 1\times b), so it's the class of (a,b).

It turns out that the rationals are a field. Let me explicitly record the definition of a field here.

Definition 74 (Fields)

A field is a set X, equipped with two special elements 0\in X and 1\in X with 0\not=1, two functions +:X\times X\to X and \times:X\times X\to X, and two other functions -:X\to X and (\cdot)^{-1}:(X-\{0\})\to X, satisfying the following axioms:

For all x,y,z\in X, we have:

  • 0+x=x+0=x; (0 is an additive identity)

  • x+(y+z)=(x+y)+z; (addition is associative)

  • (-x)+x=x+(-x)=0; (negation is an additive inverse)

  • x+y=y+x; (addition is commutative)

  • 1\not=0; (fields have at least two elements)

  • 1\times x=x\times 1=x; (1 is a multiplicative identity)

  • x(yz)=(xy)z; (multiplication is associative)

  • If x\not=0 then x\times x^{-1}=x^{-1}\times x=1; (reciprocal is a multiplicative inverse)

  • xy=yx; (multiplication is commutative)

  • x(y+z)=xy+xz and (x+y)z=xz+yz. (multiplication distributes over addition)

Exercise: which two axioms of a field aren't axioms of a commutative ring?

Fields are important because the abstract theory of vector spaces works over any field. The non-JMC students among you will already have heard about these in the IUM Applied lectures. And they are also covered in the Linear Algebra and Groups module later this term.

The rational numbers are a field, but we skip the proof -- not because it is hard, but because it is long and very boring, and every check is very easy if you know what you're doing. I'll force you to do one of the checks on the last problem sheet.