9.1  Points and Coordinates

In school the plane comes first as a picture, a sheet with two axes drawn on it, and pairs of numbers are labels attached to its points afterwards. Analysis turns this around. A point is its list of coordinates, and every statement about points, lines, lengths or angles is a statement about real numbers. Chapter 3 has already done this once: there a complex number was by definition a pair of reals, and the plane of complex numbers was the set R2. This section does the same for lists of any length. It defines Rn, describes subsets of it by conditions on coordinates, and introduces the simplest such subsets, the boxes.

Standing setting. Throughout the chapter, R is the complete ordered field of Number Systems: From N to R, Chapter 5 (Number Systems: From N to R, Theorem 5.5.2). Every rule proved there for ordered fields holds in R, and no proof below looks inside a real number. The letters n and m stand for natural numbers with n,m≥1, and k and j for indices in {1,…,n}, unless we say otherwise.

9.1.1. A point is its list of coordinates

Coordinates entered geometry so that a curve could become an equation and a construction a computation; a proof about the plane then needs the laws of R and nothing else. We take that step for every number of coordinates.

For example, the pair (3,−1) is a point of the plane, with first coordinate 3 and second coordinate −1. The triple (2,0,5) is a point of space. A list of four reals, such as (1,−2,0,3), is just as good a point, though we can no longer draw it. In each case the point is nothing but the list.

A point is its list of coordinates.

Definition 9.1.1 (The Space Rn)

Let n∈N with n≥2. The set Rn is the set of all n-tuples x=(x1,…,xn)with xk∈R for every k∈{1,…,n}; it is the set Xn of Sets and Functions, Definition 1.4.2 with X=R. The real number xk is the k-th coordinate of x. For n=1 we define R1:=R, and read a real number x as a list of length one whose first coordinate is x1:=x. The elements of Rn are called points or vectors; the two words mean the same thing.

In words: a point of Rn is an ordered list of n real numbers, and nothing more. Two points are equal if and only if they agree in every place: x=y⟺xk=yk for every k∈{1,…,n}. Sets and Functions, Section 1.4, defined this equality of n-tuples, just after ordered pairs (Sets and Functions, Definition 1.4.1). For n=1 it says only that x1=y1. So one equation between points of Rn is n equations between real numbers. For n=2 the definition gives R2=R×R. This is also the underlying set of the complex numbers: C:=R2 in Definition 3.1.1. A complex number and a point of the plane are the same object; Section 9.4 compares what the two readings do with it.

The case n=1 is a convention, not a theorem. Sets and Functions defines tuples only of length at least 2, and a real number is not a tuple. We declare R1 to be R so that every statement “for all n≥1” in this chapter includes the line, with x1 meaning x itself.

Examples. The point (1,−2,0,3) lies in R4; its third coordinate is 0. The point (0,0,0) lies in R3. It is not the real number 0: it is a triple, and Sets and Functions agreed that a tuple is never a number (Sets and Functions, Definition 1.4.1). And the smallest case: R1 is the line R, where a point has one coordinate, and the equality rule above reads x=y.

A list is not a set. Replace the list by a set. The set {1,2} holds the same two numbers as the point (1,2), but it forgets their order, {1,2}={2,1}, and it forgets repetitions, {1,1}={1}. The points (1,2), (2,1) and (1,1) are three different points of R2. What a coordinate system needs is exactly what sets lose: which number sits in which place.

Why this definition. A point defined as “a position in the plane” cannot be reasoned about: there is no rule for positions, only pictures of them. A point defined as a list of reals carries all the rules of the field R with it, one coordinate at a time. The price is that every geometric word now needs a definition in coordinates. The rest of this chapter supplies these definitions, each by a formula in the coordinates:

  • the sum of two points (Section 9.2);
  • the dot product (Section 9.3);
  • length and distance (Section 9.4);
  • the cosine of an angle (Section 9.6).

Remark. The familiar model of the plane, with an origin, a unit of length and two perpendicular axes, is how we draw a point of R2 and choose what to prove. It is motivation only. In this chapter a picture is never a reason: every claim is proved from the definitions and the laws of R.

Warning. Order and nesting matter. The points (1,2) and (2,1) of R2 are different, and the point (1,2) is not the set {1,2}. Nor is R2×R literally R3. Its elements are pairs ((x1,x2),x3) whose first entry is itself a pair. The elements of R3 are triples, and a triple is not a pair (Sets and Functions, Section 1.4).

Second readingGluing two lists into one

Although Rm×Rn and Rm+n are different sets, nothing is lost in passing between them. Let g:Rm×Rn→Rm+n glue two lists, g((x1,…,xm),(y1,…,yn)):=(x1,…,xm,y1,…,yn), with a real number read as a list of length one when m=1 or n=1. Then g is a bijection (Sets and Functions, Definition 2.2.3). It is injective. Suppose two pairs have the same image. The images agree in all m+n places, so the first lists agree in every place and so do the second lists. The two pairs are therefore equal by Sets and Functions, Definition 1.4.1. It is surjective: a list (z1,…,zm+n) is the image of the pair ((z1,…,zm),(zm+1,…,zm+n)). We use this identification only in words, as in “a point of R3 is a point of the plane together with a height”.

Quick check. Which of (0,0,0), (1,2) and ((1,2),3) lie in R3? How many points has {0,1}3?

Solution. Only (0,0,0). The point (1,2) is a pair, a list of length two. The object ((1,2),3) is also a pair, whose first entry is the pair (1,2); it lies in R2×R, and a pair is not a triple.

The set {0,1}3 has eight points: each of the three coordinates is 0 or 1, and the choices are independent, so there are 2⋅2⋅2=8 lists. Written out, they are (0,0,0), (0,0,1), (0,1,0), (0,1,1), (1,0,0), (1,0,1), (1,1,0) and (1,1,1).

9.1.2. Sets described by conditions

With points as lists, a subset of Rn is described by a condition on coordinates: the set of all x∈Rn whose coordinates satisfy it. Deciding whether a given point belongs is then a computation with real numbers. Here are the subsets of the plane that return most often.

Example (Subsets of the Plane by Conditions)

For each of the following subsets of R2, name one point that lies in it and one that does not, and check both against the condition.

  • (a) The first axis A:={x∈R2:x2=0}.
  • (b) The closed first quadrant Q:={x∈R2:x1≥0 and x2≥0}.
  • (c) The diagonal D:={x∈R2:x1=x2}.
  • (d) The graph G:={(t,t2):t∈R} of the squaring function.
  • (e) The set E:={x∈R2:x12+x22≤1}.

Solution.

  • (a) The point (5,0) is in A, since its second coordinate is 0. The point (0,5) is not, since 5≠0.

  • (b) The point (0,3) is in Q: 0≥0 and 3≥0. “Closed” means the axes are included. The point (−1,2) is not in Q, since −1≥0 fails; one failed condition is enough, because the two conditions are joined by “and”. Compare the condition x1x2≥0, a single condition that looks similar: the point (−1,−1) satisfies it, as (−1)(−1)=1≥0, but (−1,−1)∉Q. So {x:x1x2≥0} is a larger set than Q: it contains the closed third quadrant as well.

  • (c) The point (−2,−2) is in D, and (1,2) is not, since 1≠2.

  • (d) Here the set is described by listing its points, one for each real t, rather than by a condition. It has a description by a condition too: G={x∈R2:x2=x12}. Indeed (t,t2) satisfies x2=x12; and if x2=x12, then x=(t,t2) with t:=x1. So (3,9)∈G, while (9,3)∉G, because 3≠81=92. Section 8.1 treats the graph of any real function in the same way.

  • (e) The point (3/5,4/5) is in E: 9/25+16/25=1≤1. The point (1,1) is not: 1+1=2>1. In the picture E is a disk, but the picture is not the definition; once Section 9.4 has defined length, the condition says that the length of x is at most 1.

9.1.3. Boxes

Some conditions treat the coordinates separately: one condition on x1, one on x2, and so on, with no condition linking two coordinates. The quadrant Q of Example (Subsets of the Plane by Conditions) is of this kind; the diagonal D is not, since x1=x2 ties the two coordinates together. The simplest separate conditions bound each coordinate between two numbers. On the line that gives a closed interval [a,b], and in the plane a rectangle [a1,b1]×[a2,b2] with sides parallel to the axes. Later work in analysis traps points inside such sets in Rn, so we give them names.

For example, take a=(0,1) and b=(2,3). The points x of R2 with 0≤x1≤2 and 1≤x2≤3 form the rectangle [0,2]×[1,3], with corners (0,1) and (2,3). The point (1,2) lies in it. The point (3,2) does not, since its first coordinate 3 is larger than 2.

Definition 9.1.2 (Boxes)

Let a,b∈Rn with ak≤bk for every k. The closed box with corners a and b is [a1,b1]×⋯×[an,bn]:={x∈Rn:ak≤xk≤bk for every k}. If ak<bk for every k, the open box with corners a and b is (a1,b1)×⋯×(an,bn):={x∈Rn:ak<xk<bk for every k}.

The notation is the product of sets from Sets and Functions, Section 4.2, applied to intervals. A point lies in the box exactly when its k-th coordinate lies in the k-th interval, for every k. In the open box each (ak,bk) is an interval, not a pair. Sets and Functions, Section 1.4 lets context decide between the two readings of (a,b). Inside a product of this kind it always means the interval.

Examples. For n=1 a closed box is a closed interval [a1,b1] and an open box an open interval. For n=2 the closed box [0,1]×[0,1] is the unit square. In R3, the closed box [−1,1]×[0,1]×[2,2] is flat: its third interval is [2,2]={2}, so every point of it has third coordinate 2. The definition allows this, since it asks only a3≤b3. At the extreme, a=b gives a box with exactly one point, a itself.

Every box is non-empty, and we can name a point in it. The corner a lies in the closed box, since ak≤ak≤bk for every k; so does b. The open box contains the center c with ck:=(ak+bk)/2, because ak<bk gives ak<(ak+bk)/2<bk (Number Systems: From N to R, Proposition 4.1.2 (b)). This is why the definition demands ak≤bk, and ak<bk for the open box. Without it, [1,0]×[0,1]={x∈R2:1≤x1≤0 and 0≤x2≤1} would be “a box”, an empty one, and its “corners” would mean nothing. Exercise C1 shows that with the condition in place, a closed box determines its corners.

A set that is not a box. Let one bound depend on another coordinate: T:={x∈R2:0≤x2≤x1≤1}, a triangle in the picture. Each coordinate still lies in [0,1], but the bound x2≤x1 links the two. That one change makes T no box. Suppose T=[p1,q1]×[p2,q2]. The points (0,0) and (1,1) lie in T, so p1≤0, p2≤0, 0≤q1 and 1≤q2. Then (0,1) satisfies p1≤0≤q1 and p2≤1≤q2, so it lies in the box. But (0,1)∉T, since 1≤0 fails. An open box fails the same way: if T=(p1,q1)×(p2,q2), the points (0,0) and (1,1) give p1,p2<0 and q1,q2>1, so again (0,1) lies in the box but not in T. To show a set is not a box, read bounds off points of the set, then build a point the box must contain.

9.1.4. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Find all s,t∈R with (s+t,s−t)=(4,2).
  • (b) Is (1,1/2) in [0,1]×[1/2,1]? Is (1/2,0)?
  • (c) Describe the set {x∈R2:x1=x2 and x1+x2=1}.
  • (d) Is (0,2) in the open box (0,1)×(1,3)?
  • (e) Write the closed box with corners (−1,0,2) and (1,1,2), and count its points whose coordinates are all integers.

Solution.

  • (a) By the equality of pairs, s+t=4 and s−t=2. Adding gives 2s=6, so s=3; then t=1. Conversely (3+1,3−1)=(4,2). So s=3, t=1 is the only solution.

  • (b) Yes: 0≤1≤1 and 1/2≤1/2≤1. No: the second coordinate 0 fails 1/2≤0.

  • (c) A point in the set has x1=x2, so 2x1=1 and x1=x2=1/2. Conversely (1/2,1/2) satisfies both conditions. The set is {(1/2,1/2)}, a single point.

  • (d) No. The first coordinate would need 0<0<1, and 0<0 is false. The second coordinate passes (1<2<3), but every coordinate must pass.

  • (e) The corners satisfy −1≤1, 0≤1 and 2≤2, so the box is [−1,1]×[0,1]×[2,2]. A point of it with integer coordinates has x1∈{−1,0,1}, x2∈{0,1} and x3=2, and every such choice gives one. So there are 3⋅2⋅1=6 of them.

B. Practice

Exercise (B1: When one box contains another)

Let P=[a1,b1]×⋯×[an,bn] and Q=[c1,d1]×⋯×[cn,dn] be closed boxes in Rn. Prove that P⊆Q if and only if ck≤ak and bk≤dk for every k.

Solution. (⇐) Let x∈P and fix k. Then ck≤ak≤xk≤bk≤dk, so ck≤xk≤dk by transitivity. As k was arbitrary, x∈Q. Hence P⊆Q.

(⇒) Suppose P⊆Q. The corner a lies in P, because ak≤ak≤bk for every k, so a∈Q: reading coordinate k, ck≤ak. Likewise b∈P, so b∈Q and bk≤dk. This holds for every k.

The hypothesis ak≤bk of Definition 9.1.2 was used in (⇒), to put the corners in P. Without it the claim fails: the “box” {x∈R:1≤x≤0} is empty, so it lies in every Q, including Q=[5,6], although 5≤1 is false.

Exercise (B2: Intersections and unions of boxes)

Let P=[a1,b1]×⋯×[an,bn] and Q=[c1,d1]×⋯×[cn,dn] be closed boxes in Rn.

  • (a) Prove that P∩Q={x∈Rn:max{ak,ck}≤xk≤min{bk,dk} for every k}. Deduce that P∩Q is a closed box if max{ak,ck}≤min{bk,dk} for every k, and is empty otherwise.
  • (b) Prove that ([0,1]×[0,1])∪([2,3]×[0,1]) is not a closed box.

Solution.

  • (a) Fix k and a real t. Since ≤ is a total order on R (Number Systems: From N to R, Proposition 2.4.3 (i)), max{ak,ck} is one of ak, ck and is ≥ both, so ak≤t and ck≤t hold together exactly when max{ak,ck}≤t. In the same way t≤bk and t≤dk hold together exactly when t≤min{bk,dk}. Now x∈P∩Q means ak≤xk≤bk and ck≤xk≤dk for every k, which by the two equivalences, with t=xk, is the displayed condition.

    If max{ak,ck}≤min{bk,dk} for every k, the displayed set is the closed box with corners u and v, where uk:=max{ak,ck} and vk:=min{bk,dk}; the hypothesis is the condition uk≤vk that Definition 9.1.2 requires. If max{ak,ck}>min{bk,dk} for some k, no real xk satisfies max{ak,ck}≤xk≤min{bk,dk}, by transitivity, so P∩Q=∅.

  • (b) Call the union U and suppose U=[p1,q1]×[p2,q2]. The points (0,0) and (3,0) lie in U, so p1≤0 and 3≤q1, and p2≤0≤q2. Then (3/2,0) lies in the box, since p1≤0≤3/2≤3≤q1 and p2≤0≤q2. But (3/2,0) lies in neither square: 3/2>1 and 3/2<2. So (3/2,0)∉U, a contradiction. Hence U is not a closed box. The argument is the one used above to show that the triangle T is not a box.

C. Going deeper

Exercise (C1: A box determines its corners)

Let P=[a1,b1]×⋯×[an,bn] and Q=[c1,d1]×⋯×[cn,dn] be closed boxes in Rn. Prove that if P=Q, then ak=ck and bk=dk for every k.

Solution (Hint 1). Use Exercise B1, twice.

Solution (Hint 2). From P⊆Q and Q⊆P, write down four inequalities for each k.

Solution. Suppose P=Q and fix k. Since P⊆Q, Exercise B1 gives ck≤ak and bk≤dk. Since Q⊆P, the same exercise with the roles of the boxes exchanged gives ak≤ck and dk≤bk. The order of R is antisymmetric, being a total order (Number Systems: From N to R, Proposition 2.4.3 (i)), so ak=ck and bk=dk. As k was arbitrary, this proves the claim.

So a closed box, as a set, determines the numbers ak and bk. This is what makes “the box [a1,b1]×⋯×[an,bn]” an unambiguous name, and “the corners of a box” meaningful. Exercise B1 needed ak≤bk for the box on the left. This result applies B1 both ways, so it needs both ak≤bk and ck≤dk: the empty sets {x∈R:1≤x≤0} and {x∈R:5≤x≤2} are equal, with different “corners”.

What a complete answer needs. (10 points) - 2: fixes k and states the goal ak=ck, bk=dk. - 3: obtains ck≤ak and bk≤dk from P⊆Q (by B1, or directly from the corners a,b∈P). - 3: obtains the reverse inequalities from Q⊆P. - 2: concludes by antisymmetry, for every k. Slips that lose the step: using one inclusion only; reading the corners off the notation without proof (that is the claim).