9.2  Adding Points and Scaling Them

Section 9.1 made Rn a set of lists of reals. A set alone has no geometry: nothing in it says how to move from one point to another, or what it means to go twice as far in the same direction. Two operations supply this. A displacement is added to a point, coordinate by coordinate, and a displacement is scaled by stretching every coordinate by the same factor. Both are already familiar in the plane: the sum of Definition 3.1.1 adds two points of C=R2 coordinate by coordinate.

This section defines the two operations on Rn and proves their laws. Every equation among the laws turns out to be a law of R, used once in each coordinate. That observation is the section’s method, work coordinatewise. The method has one trap: a statement such as “x≠0” is not a statement about every coordinate.

9.2.1. The two operations

Here is the recurring computation that the definitions name. Moving the point (1,4) three units along the first axis and one unit down the second gives (1+3,4−1)=(4,3). Doing the same move twice gives (1+6,4−2)=(7,2): the displacement (3,−1) has been doubled to (6,−2). In each case one rule is applied, in the same way, to every coordinate.

Add and scale one coordinate at a time.

Definition 9.2.1 (Vector Operations in Rn)

Let n≥1. For all x=(x1,…,xn) and y=(y1,…,yn) in Rn and every c∈R, define x+y:=(x1+y1,…,xn+yn),cx:=(cx1,…,cxn). The zero vector is 0:=(0,…,0), the negative of x is −x:=(−1)x, and the difference is x−y:=x+(−y). The number c is called a scalar, and cx a scalar multiple of x.

In words: the k-th coordinate of x+y is xk+yk, and the k-th coordinate of cx is cxk. Both right-hand sides are n-tuples of reals, so the sum is a function Rn×Rn→Rn and scaling is a function R×Rn→Rn. There is nothing else to check: by Definition 9.1.1 a point determines its coordinates, so each formula gives exactly one output. When a vector is given by an expression, we write (v)k for its k-th coordinate; thus (x+y)k=xk+yk and (cx)k=cxk. For n=1, with a real x read as the 1-tuple (x), both operations are the sum and product of R.

Points and vectors. An element of Rn is called a point when we locate something and a vector when we add or scale it; the two words name the same objects. The displacement from a to b is the vector b−a. Adding it to a gives b: in coordinate k, ak+(bk+(−ak))=bk in R. A picture of an arrow from a to b is a way to think about b−a; it is not a new kind of object, and it never serves as a reason.

Two examples. With x=(1,0,−1) and y=(2,5,3) in R3, x+y=(3,5,2),2x−y=(2,0,−2)+(−2,−5,−3)=(0,−5,−5). The extreme scalar is c=0. Then 0x=(0⋅x1,…,0⋅xn)=0 for every x, by Number Systems: From N to R, Proposition 2.3.2 (b) and commutativity of multiplication, (F6), so scaling by 0 collapses every vector to the origin.

In the plane. On R2=C the sum is the sum of complex numbers (Definition 3.1.1). The scalar multiple c(a,b)=(ca,cb) is the complex product (c,0)(a,b). That is, it is the product of (a,b) with the real number c, read as a complex number (Proposition 3.1.1). So nothing new happens for n=2; what is new is that every n works the same way.

9.2.2. The method: work coordinatewise

We want the usual rules of algebra for these operations: brackets may be expanded, sums rearranged, scalars collected. None of this is promised by the definition; each rule must be proved. The first one shows how every proof in this section goes.

Idea (Scratch work). Take the law c(x+y)=cx+cy. In R2, with c=2, x=(1,−3) and y=(4,5), both sides are (10,4): on the left 2(5,2), on the right (2,−6)+(8,10). To prove the law for all x,y,c, we plan it backwards from what we want.

We know We want
x,y∈Rn, c∈R c(x+y)=cx+cy
the same; two points are equal when they agree in every place (Definition 9.1.1) (c(x+y))k=(cx+cy)k for every k∈{1,…,n}
fix k; unwind both sides with Definition 9.2.1 c(xk+yk)=cxk+cyk, an equation in R
what is left: an equation between real numbers true by the distributive law r(s+t)=rs+rt of R, (F9)

The second row is the key step: one equation in Rn became n equations in R, and each of them is a field law.

The table found the proof backwards; written forwards, it is short. Let k∈{1,…,n}. Then (c(x+y))k=c(xk+yk)=cxk+cyk=(cx+cy)k. The outer equalities are Definition 9.2.1. The middle one is the distributive law (F9) of a field (Number Systems: From N to R, Definition 2.3.1). Since k was arbitrary, the two vectors agree in every place, so they are equal by Definition 9.1.1.

Example (Method: work coordinatewise)

How it goes. To prove an equation between vectors of Rn:

  1. Fix an arbitrary k∈{1,…,n}.
  2. Compute the k-th coordinate of each side from the definitions.
  3. Prove the resulting equation in R, naming the field law used.
  4. Since k was arbitrary, conclude that the vectors agree in every place, so they are equal.

When to use it. Equations built from +, scalar multiples, coordinates and finite sums of vectors. Every law of Proposition 9.2.1 below except (j) is one application.

Common mistakes. Treating a condition that is not “for every k” as if it were. The statement x≠0 means that some coordinate xk is non-zero. It does not mean that every coordinate is non-zero. Similarly, “x and y are parallel”, defined below, asks for one scalar shared by all coordinates, so it is not a separate condition in each coordinate. In these cases, first unwind the condition into a statement about one chosen coordinate; then the method helps.

Examples. Law (g) of the proposition below, planned in the table above, and law (j), where the condition x≠0 has to be unwound.

9.2.3. The laws of the two operations

Proposition 9.2.1 (Laws of the Vector Operations)

For all x,y,z∈Rn and all c,d∈R:

  • (a) (x+y)+z=x+(y+z);
  • (b) x+y=y+x;
  • (c) x+0=x;
  • (d) x+(−x)=0;
  • (e) c(dx)=(cd)x;
  • (f) 1x=x;
  • (g) c(x+y)=cx+cy;
  • (h) (c+d)x=cx+dx;
  • (i) 0x=0, c0=0, and (−c)x=−(cx)=c(−x);
  • (j) if cx=0, then c=0 or x=0.

Idea. Parts (a)–(i) are equations, so Example (Method: work coordinatewise) applies directly: each becomes the matching law of R in coordinate k. Part (j) has the conclusion “c=0 or x=0”, and “x≠0” gives only one non-zero coordinate; that one coordinate is enough, because a field has no zero divisors.

Proof. Let k∈{1,…,n}. In (a)–(i) we compute the k-th coordinate of each side with Definition 9.2.1. The two coordinates agree by the law of R named in brackets. Since k is arbitrary, the two sides agree in every place, so they are equal.

    • (a) (xk+yk)+zk=xk+(yk+zk) [addition is associative, (F2)]. (b) xk+yk=yk+xk [addition is commutative, (F1)]. (c) xk+0=xk [0 is neutral for addition, (F3)].
    • (e) c(dxk)=(cd)xk [multiplication is associative, (F5)]. (f) 1⋅xk=xk [multiplication is commutative, (F6), and 1 is neutral, (F7)].
    • (g) c(xk+yk)=cxk+cyk [(F9)], as in the table above.
    • (h) (c+d)xk=cxk+dxk [(F6), (F9)].
    • (i) 0⋅xk=0 and c⋅0=0 [a⋅0=0, with (F6)]. For the last equations, (−c)xk, (−1)(cxk) and c((−1)xk) are all equal to −(cxk) [F3, Proposition 2.3.2]. These are the k-th coordinates of (−c)x, −(cx) and c(−x).
  • (j) Suppose cx=0. If x=0, the conclusion holds. Otherwise x≠0, so x and (0,…,0) differ in some place: there is one index k with xk≠0. The k-th coordinate of cx=0 gives cxk=0. Since R has no zero divisors (Number Systems: From N to R, Lemma 4.1.1 (d)), c=0 or xk=0, and the second is false. Hence c=0. This proves the proposition.

Uses: Definition 9.1.1 (equal means equal in every place); Number Systems: From N to R, Definition 2.3.1 (the field laws); Number Systems: From N to R, Proposition 2.3.2 (b) and (c) (a⋅0=0 and (−a)b=a(−b)=−(ab)).

Only the proof of (j) does not use every coordinate. It uses exactly one, the index k that “x≠0” provides, and the other coordinates of x may be zero. This is how a condition that is not “for every k” is handled: it is first unwound into a statement about one chosen coordinate.

Remark. The proof used only the field laws of R, never its order or its completeness. So the same definitions and the same proof work verbatim for n-tuples over any field F (Definition 4.1.1), for instance over C or over the field with two elements.

From now on we compute with vectors as with numbers, expanding brackets and collecting terms. Each such step is one of the laws of Proposition 9.2.1. For example, x+y=x+z gives y=z: add −x to both sides and use (a)–(d).

9.2.4. Sums of several vectors

A vector is assembled from its coordinates. To say this as an equation we need sums of more than two vectors, such as (1,2)+(0,3)+(4,−1)=(5,4), where each coordinate of the result is the sum of the matching coordinates: 1+0+4=5 and 2+3−1=4. Sums of vectors are defined exactly as finite sums of reals are in Sets and Functions (Sets and Functions, Definition 3.3.1). The definition is by recursion, now with Rn as the set of values (Sets and Functions, Theorem 3.3.1). For vectors v1,…,vm∈Rn, ∑j=10vj:=0,∑j=1m+1vj:=∑j=1mvj+vm+1. The empty sum is the zero vector, and the sum of one vector is that vector, by (c) and (b) of Proposition 9.2.1.

Lemma 9.2.2 (Sums of Vectors, Coordinatewise)

Let m∈N, let v1,…,vm,w1,…,wm∈Rn, and let c1,…,cm,d1,…,dm∈R.

  • (a) For every k∈{1,…,n}, (∑j=1mvj)k=∑j=1m(vj)k.
  • (b) ∑j=1m(cjvj+djwj)=∑j=1mcjvj+∑j=1mdjwj.

In words: the k-th coordinate of a sum of vectors is the sum of their k-th coordinates, and sums of vectors may be split termwise. Part (a) is the coordinatewise method for sums of any length, and part (b) is its first use.

For m≥1, a sum indexed from 1 is a sum indexed from 0 after a shift: ∑j=1maj=∑j=0m−1aj+1 with m−1∈N, which is the general form of Sets and Functions, Definition 3.3.1 with lower index 0. So every part of Lemma 1.1.3, stated for sums from 0, applies to non-empty sums from 1.

Second readingProof of the lemma

Idea. Part (a) is an induction on the number of terms: the recursion adds one vector at the end, and adding one vector adds one real in each coordinate. Part (b) is then Example (Method: work coordinatewise), with (a) supplying the coordinates.

Proof.

  • (a) Fix k. We use Sets and Functions, Theorem 3.2.1 on m, from the base m=0. For m=0 both sides are 0: the empty vector sum is the zero vector, whose k-th coordinate is 0, and the empty sum of reals is 0. Suppose (a) holds for m. Then (∑j=1m+1vj)k=(∑j=1mvj)k+(vm+1)k=∑j=1m(vj)k+(vm+1)k=∑j=1m+1(vj)k, The first equality is the recursion for vector sums, read in coordinate k. The second is the induction hypothesis. The third is the recursion for sums of reals.

  • (b) For m=0 both sides are the zero vector: the left side is the empty sum, and the right side is 0+0=0 by Proposition 9.2.1 (c). Let m≥1, and fix k. By (a), the k-th coordinate of the left side is ∑j(cj(vj)k+dj(wj)k). By Lemma 1.1.3 (a), which holds for non-empty sums indexed from 1 as well, this is ∑jcj(vj)k+∑jdj(wj)k. By (a) applied to each sum, that is the k-th coordinate of the right side. Since k is arbitrary, the two sides are equal.

Uses: Definition 9.2.1 (coordinates of sums, multiples); Sets and Functions, Definition 3.3.1 (recursion for real sums); Lemma 1.1.3 (a) (split termwise); Proposition 9.2.1 (c) (0+0=0); Definition 9.1.1 (equal in every place).

9.2.5. The standard vectors

In the plane, (3,−2) is “three steps along the first axis and two steps back along the second”. The steps are one unit long along a single axis, and they deserve names.

Definition 9.2.2 (Standard Vectors)

For k∈{1,…,n}, the k-th standard vector ek∈Rn has k-th coordinate 1 and every other coordinate 0: (ek)j:={1if j=k,0if j≠k.

For n=3: e1=(1,0,0), e2=(0,1,0), e3=(0,0,1). For n=1 there is one standard vector, e1=1. We need one fact about them.

Proposition 9.2.3 (Expansion in the Standard Vectors)

Every x∈Rn satisfies x=∑k=1nxkek, and the coefficients are unique: if c1,…,cn∈R and ∑k=1nckek=x, then ck=xk for every k.

Idea. Work coordinatewise, using Lemma 9.2.2 for the sum: the j-th coordinate of ∑kckek is a sum of n reals in which only the k=j term can be non-zero.

Proof. Let c1,…,cn∈R and j∈{1,…,n}. By Lemma 9.2.2 (a), (∑k=1nckek)j=∑k=1nck(ek)j. For k≠j the term is ck⋅0=0, and for k=j it is cj⋅1=cj, since 1 is neutral for multiplication (F7). A sum with one possibly non-zero term equals that term, by Lemma 1.1.3 (d). Since n≥1, this rule holds for sums indexed from 1, by the shift of index after Lemma 9.2.2. So the j-th coordinate is cj. Since j is arbitrary,

∑k=1nckek=(c1,…,cn).
(9.2.1)

Taking ck:=xk gives ∑kxkek=x. If ∑kckek=x, then Eq. 9.2.1 gives (c1,…,cn)=x, so ck=xk for every k. This proves the proposition.

Uses: Definition 9.2.1 (coordinates of ckek); Number Systems: From N to R, Proposition 2.3.2 (b) (a⋅0=0); Definition 9.1.1 (equal points, equal coordinates).

So the coefficients of a vector in the standard vectors are its coordinates, and nothing else. For example, (3,−2)=3e1−2e2 in R2, and (0,5,0)=5e2 in R3.

Warning. The vector e1=(1,0) is not the zero vector, although its second coordinate is 0. “x=0” asks every coordinate to vanish; “x≠0” asks only that some coordinate be non-zero. Reading “x≠0” as “xk≠0 for every k” would make e1 a zero vector, and would break the proof of Proposition 9.2.1 (j), which needs one non-zero coordinate and no more.

Remark. This chapter defines no product of two vectors that is again a vector. The expression (1,2)(3,4) is undefined in Rn, even though R2=C carries the product of Chapter 3; a computation with vectors must not borrow it. The product of Section 9.3 takes two vectors and returns a number.

9.2.6. Parallel vectors

When is one vector a stretched copy of another? For (3,−6) and (−1,2) the answer is yes: (3,−6)=−3⋅(−1,2). The definition must decide the cases with a zero vector too, and that forces its shape.

Definition 9.2.3 (Parallel Vectors)

Vectors x,y∈Rn are parallel if y=cx for some c∈R or x=cy for some c∈R.

The zero vector. The vector 0 is parallel to every x, since 0=0x by Proposition 9.2.1 (i). The “or” is needed for this. With x=0 and y=e1, no c gives e1=c⋅0, because c⋅0=0≠e1; only the second clause, 0=0⋅e1, makes them parallel. Without the “or”, parallelism would not even be symmetric.

The one-scalar test. When x≠0 the two clauses merge into one, and we use this form from now on: for x≠0, y is parallel to x if and only if y=tx for some t∈R.

(⇐) This is the first clause of Definition 9.2.3. (⇒) If y=cx, take t:=c. If x=cy, then c≠0, since c=0 would give x=0⋅y=0 by Proposition 9.2.1 (i). So c−1 exists, and y=1y=(c−1c)y=c−1(cy)=c−1x, by (f) and (e) of Proposition 9.2.1; take t:=c−1.

Parallelism is not coordinatewise: y=tx asks for one t that works in every coordinate at once. To test it, find t from one coordinate where xk≠0, then check the others.

Quick check. Is (2,4,−6) parallel to (−1,−2,3)? Is (1,2) parallel to (2,3)?

Solution. Yes: (2,4,−6)=−2⋅(−1,−2,3). No: (1,2)≠0, so by the one-scalar test (2,3) would have to be t(1,2); the first coordinate forces t=2, the second t=3/2. (Testing the other way, (1,2)=s(2,3) would need s=1/2 and s=2/3.)

Example (Midpoints and Parallelograms)
  • (a) For a,b∈Rn, let m:=12(a+b). Show that m−a=b−m, and compute m for a=(1,4), b=(5,−2).

  • (b) For four points a,b,c,d, consider the two conditions b−a=c−d and 12(a+c)=12(b+d). Check both for a=(0,0), b=(3,1), c=(4,3), d=(1,2).

Solution.

  • (a) Work coordinatewise. For each k, mk−ak=12(ak+bk)−ak=12(bk−ak)=bk−12(ak+bk)=bk−mk, by the field laws of R and 12+12=1. So the displacement from a to m equals the displacement from m to b: m is the midpoint of a and b. For a=(1,4) and b=(5,−2), a+b=(6,2) and m=(3,1); indeed m−a=(2,−3)=b−m.

  • (b) Here b−a=(3,1) and c−d=(3,1), so the first condition holds. Also a+c=(4,3)=b+d, so 12(a+c)=(2,32)=12(b+d). In a picture, b−a=c−d says that the sides from a to b and from d to c are the same displacement, as in a parallelogram abcd. The second condition says that the diagonals from a to c and from b to d share their midpoint. The picture suggests that the two conditions always hold together. A picture is not a reason; Exercise B2 (b) proves the equivalence from the laws.

9.2.7. Exercises

A. Check your understanding

Exercise (A1)

In (b)–(e), x,y∈Rn with n≥2. Decide whether the condition is a condition “for every k” on the coordinates, and if it is not, say what it asks.

  • (a) Compute 2(1,0,−1)−3(0,1,1)+(1,1,1) and write it in the form ∑kckek.
  • (b) x=y.
  • (c) x≠y.
  • (d) x+y=0.
  • (e) x is parallel to e1.

Solution.

  • (a) (2,0,−2)−(0,3,3)+(1,1,1)=(3,−2,−4)=3e1−2e2−4e3, by Proposition 9.2.3.

  • (b) Yes: xk=yk for every k (Definition 9.1.1).

  • (c) No: it means xk≠yk for some k.

  • (d) Yes: xk+yk=0 for every k.

  • (e) No, as written: since e1≠0, the one-scalar test says that x is parallel to e1 if and only if x=te1 for one t shared by all coordinates. Because e1 has only one non-zero coordinate, this one condition is equivalent to “xk=0 for every k≥2”. It puts no condition on x1. If x=te1, then xk=t⋅0=0 for k≥2; conversely, if those coordinates vanish, then x=x1e1 by Eq. 9.2.1.

B. Practice

Exercise (B1: Prove or disprove)

Let n≥2, x,y,z∈Rn and c,d∈R. Prove or disprove.

  • (a) If x+y=x+z, then y=z.
  • (b) If cx=cy, then x=y.
  • (c) If cx=dx and x≠0, then c=d.
  • (d) If x is parallel to y and y is parallel to z, then x is parallel to z.
  • (e) If x and y are parallel and both non-zero, then y=cx for some c≠0.

Solution.

  • (a) True. Coordinatewise: xk+yk=xk+zk for every k, so yk=zk by adding −xk to both sides in R. Hence y=z.

  • (b) False. Take c=0, x=e1, y=e2: then cx=0=cy by Proposition 9.2.1 (i), but e1≠e2, as their first coordinates are 1 and 0. (The statement is true when c≠0: multiply by c−1.)

  • (c) True. From cx=dx, adding −(dx)=(−d)x gives (c−d)x=0, by (d), (h) and (i) of Proposition 9.2.1. Since x≠0, (j) gives c−d=0, so c=d.

  • (d) False. Take x=e1, y=0, z=e2. The zero vector is parallel to every vector, so the hypotheses hold. But e2=te1 fails for every t (second coordinates 1≠t⋅0), so e2 is not parallel to e1, by the one-scalar test, since e1≠0. The counterexample needs the zero vector: for non-zero y, the one-scalar test gives x=sy and z=ty, and then x and z are parallel (if t≠0, x=(st−1)z; if t=0, z=0=0x). In R1 the statement is true, since any two reals are parallel; that is why n≥2 is assumed.

  • (e) True. Since x≠0, the one-scalar test gives y=cx for some c. If c=0, then y=0x=0, against y≠0. So c≠0.

Exercise (B2)

Solution.

  • (a) The vector (1,t,2) is non-zero, as its first coordinate is 1. By the one-scalar test, the two are parallel if and only if (2,6,4)=s(1,t,2) for some s. The first coordinate forces s=2; then the third reads 4=2⋅2, true, and the second reads 6=2t, so t=3. Conversely, (2,6,4)=2(1,3,2). So t=3 is the only value.

  • (b) (⇒) Suppose b−a=c−d. Add a+d to both sides. By (a)–(d), the left side becomes b+d and the right side a+c: for instance (b−a)+(a+d)=b+((−a)+a)+d=b+0+d=b+d, regrouping by (a), reordering by (b), then (d) and (c). So a+c=b+d, and multiplying by 12 gives 12(a+c)=12(b+d).

(⇐) Suppose 12(a+c)=12(b+d). Multiply by 2: by (e) and (f), 2(12(a+c))=(2⋅12)(a+c)=1(a+c)=a+c, and likewise on the right, so a+c=b+d. Add −a−d to both sides; by (a)–(d) as above, c−d=b−a.

C. Going deeper

Exercise (C1: Chapter check: two vectors that are not parallel)

Let x,y∈Rn. Prove that x and y are not parallel if and only if, for all s,t∈R, sx+ty=0⟹s=t=0.

Solution (Hint 1). For (⇒), suppose s≠0 and solve sx+ty=0 for x.

Solution (Hint 2). For (⇐), prove the contrapositive: if x and y are parallel, choose s and t, not both zero, with sx+ty=0. There are two clauses in Definition 9.2.3.

Solution. (⇒) Suppose x and y are not parallel, and let s,t∈R with sx+ty=0. First, s=0. Otherwise s−1 exists, and adding −(ty)=(−t)y to both sides gives sx=(−t)y, so x=s−1(sx)=s−1((−t)y)=(−ts−1)y, by (f), (e) and (i) of Proposition 9.2.1. Then x=cy with c=−ts−1, so x and y are parallel, a contradiction. So s=0, and the equation becomes 0x+ty=0, that is, ty=0 by (i) and (c). Next, y≠0: the zero vector is parallel to every vector (0=0x), and y is not parallel to x. By Proposition 9.2.1 (j), t=0.

(⇐) We prove the contrapositive. Suppose x and y are parallel. If y=cx, take s:=c, t:=−1: then sx+ty=cx−cx=0, yet t≠0. If x=cy, take s:=−1, t:=c: then sx+ty=−cy+cy=0, yet s≠0. In both cases the implication fails.

What a complete answer needs. (10 points)

  • 2: sets up (⇒): assumes not parallel and sx+ty=0, with the goal s=t=0.
  • 3: case s≠0: solves for x as a scalar multiple of y, dividing only after s≠0 is assumed, and reaches a contradiction with the definition.
  • 2: case s=0: obtains ty=0, justifies y≠0, and concludes t=0 by (j).
  • 2: (⇐) by contrapositive (or contradiction), producing (s,t)≠(0,0) in both clauses of the definition.
  • 1: concludes the equivalence.

A contrapositive route for (⇒) earns the same 7 points. It earns 2 for the setup: it assumes sx+ty=0 with (s,t)≠(0,0), with the goal that x and y are parallel. It earns 3 for the case s≠0, writing x as a multiple of y. It earns 2 for the case s=0, t≠0, deducing y=0 from ty=0 by (j) and noting that 0 is parallel to x.

Slips that lose the step (0 for the step):

  • Dividing by s without checking that s≠0.
  • Treating only the clause y=cx of Definition 9.2.3 and forgetting the clause x=cy.
  • Concluding t=0 from ty=0 without showing that y≠0.