Chapter 3. Review of vectors

§3.1 [TEXT] Notation for scalars, vectors, points

If you haven’t seen the symbol ℝ before, let’s introduce it now:

Definition
We denote by ℝ the real numbers, so 3,2,−𝜋 are elements of ℝ. Sometimes we’ll also refer to a real number as a scalar.

The symbol “∈”, if you haven’t seen it before, means “is a member of”. So 3∈ℝ is the statement “3 is a real number”. Or 𝑥∈ℝ means that 𝑥 is a real number.

Unfortunately, right off the bat I have to mention that the notation ℝ𝑛 could mean two things:

Definition

By ℝ𝑛 we could mean one of two things, depending on context:

  • The vectors of length 𝑛, e.g. the vector (𝜋5) is a vector in ℝ2.
  • The points in 𝑛-dimensional space, e.g. (2,7) is a point in ℝ2.

To work around the awkwardness of ℝ𝑛 meaning two possible things, this book will adopt the following conventions for variable names:

Type signature
  • Bold lowercase letters like 𝐮 and 𝐯 will be used for vectors. When we draw pictures of vectors, we always draw them as arrows.

  • Capital letters like 𝑃 and 𝑄 are used for points. When we draw pictures of points, we always draw them as dots.

  • Sometimes, if we need to refer to the vector drawn as an arrow which starts at point 𝑃 and ends at 𝑄, we write 𝑃𝑄⃗ for it.

We’ll also use different notation for actual elements:

Type signature
  • A vector will either be written in column format like (123), or with angle brackets as ⟨1,2,3⟩ if the column format is too tall to fit.
  • But a point will always be written with parentheses like (1,2,3).

Some vectors in ℝ3 are special enough to get their own shorthand. (The notation “≔” means “is defined as”.)

Definition

When working in ℝ2, we define

𝐞1≔(10),𝐞2≔(01),as well as𝟎≔(00).
Definition

When working in ℝ3, we define

𝐞1≔(100),𝐞2≔(010),𝐞3≔(001),as well as𝟎≔(000).

In other places, you’ll sometimes see 𝐢, 𝐣, 𝐤 instead, but this book will always use 𝐞𝑖.

§3.2 [TEXT] Length

Definition

The length of a vector is denoted by |𝐯| and corresponds to the length of the arrow drawn. It is given by the Pythagorean theorem.

  • In two dimensions:

    𝐯=(𝑥𝑦)⟹|𝐯|≔𝑥2+𝑦2.
  • In three dimensions:

    𝐯=(𝑥𝑦𝑧)⟹|𝐯|≔𝑥2+𝑦2+𝑧2.

In 𝑛 dimensions, if 𝐯=⟨𝑎1,…,𝑎𝑛⟩, the length is |𝐯|≔𝑎12+…+𝑎𝑛2.

Type signature
The length |𝐯| has type scalar. It is always positive unless 𝐯=𝟎, in which case the length is 0.

§3.3 [TEXT] Directions and unit vectors

Remember that a vector always has

In other words, the geometric picture of a vector always carries two pieces of information. (Here, I’m imagining we’ve drawn the vector as an arrow with one endpoint at the origin and pointing some way.)

In a lot of geometry situations we only care about the direction, and we want to ignore the magnitude. When that happens, one convention is to just set the magnitude equal to 1:

Definition
A unit vector will be a vector that has magnitude 1.

Thus we use the concept of unit vector to capture direction. So in ℝ2, (10) is thought of as “due east” and (−10) is “due west”, while (01) is “due north” and (1212) is “northeast”.

Definition

Given any vector 𝐯 in ℝ𝑛 besides the zero vector, the direction along 𝐯 is the unit vector

𝐯|𝐯|

which is the unit vector that points the same way that 𝐯 does.

(Depending on what book you’re following, more pedantic authors might write “the unit vector in the direction of 𝐯” or even “the unit vector in the same direction as 𝐯” rather than “direction along 𝐯”. This is too long to type, so I adopted the shorter phrasing. I think everyone will know what you mean.)

We will avoid referring to the direction of the zero-vector 𝟎, which doesn’t make sense. (If you try to apply the formula here, you get division by 0, since 𝟎 is the only vector with length 0.) If you need it, the convention is that it has every direction.

Type signature
If 𝐯 is a nonzero vector in ℝ𝑛, then the direction along 𝐯 is a (unit) vector in ℝ𝑛.
Example

Let’s first do examples in ℝ2 so we can draw some pictures.

  • The direction along the vectors (10), (50) or (13370) are all (10), thought of as due east.

  • But the direction along the vectors (−10) or (−90) are both (−10), thought of as due west.

  • The direction along the vectors (0−2), (0−17) are all (0−1), thought of as due south.

Example

How about the direction along (3−4)? We need to first find the length of the vector so we can scale it down. That’s given by the Pythagorean theorem, of course:

|(3−4)|=32+42=5.

So the direction along (3−4) would be

15(3−4)=(3/5−4/5).

See Figure 1. The direction is somewhere between south and southeast.

Figure 1: The direction along (3−4) (blue) is (3/5−4/5) (red). Unit vectors always lie on the grey circle (unit circle) by definition.

When drawn like Figure 1 in the two-dimensional picture ℝ2, the notion of direction along (𝑥𝑦) is almost like the notion of slope 𝑦𝑥 in high school algebra (so the slope of the blue ray in Figure 1). But there are a few reasons our notion of direction is more versatile than just using the slope of the blue ray.

Example

The direction along the three-dimensional vector (12−1621) is

(12/29−16/2921/29).

See if you can figure out where the 29 came from.

§3.4 [RECIPE] Areas and volumes

If 𝐯1=(𝑥1𝑦1) and 𝐯2=(𝑥2𝑦2) are vectors, drawn as arrows with a common starting point, then 𝐯1, 𝐯2, and their sum 𝐯1+𝐯2 make a parallelogram in the plane together with 𝟎, as shown in Figure 2.

Figure 2: Vector addition in ℝ2.

The following theorem is true, but we won’t be able to prove it in 18.02.

Recipe for area of a parallelogram

The signed area of the parallelogram formed by 𝐯1=(𝑥1𝑦1) and 𝐯2=(𝑥2𝑦2) is equal to

|𝑥1𝑥2𝑦1𝑦2|=𝑥1𝑦2−𝑥2𝑦1.

A similar theorem is true for the parallelepiped9 with three vectors in ℝ3; see Figure 3.

Recipe for volume of a parallelepiped

The signed volume of the parallelepiped formed by 𝐯1=(𝑥1𝑦1𝑧1), 𝐯2=(𝑥2𝑦2𝑧2), 𝐯3=(𝑥3𝑦3𝑧3) is equal to

|𝑥1𝑥2𝑥3𝑦1𝑦2𝑦3𝑧1𝑧2𝑧3|.

Figure 3: Three vectors in ℝ3 making a parallelepiped.

You might have noticed that the word “signed” has slipped in before “area” and “volume”. What does that mean? Well, if you only care about the area of the volume itself, it doesn’t matter for you; you should just take the absolute value of the determinant. But the sign carries a bit more information.

Digression

If you’re interested in the proof of these results and their 𝑛-dimensional generalizations, the tool needed is the wedge product, which is denoted

⋀𝑘(ℝ𝑛).

This is well beyond the scope of 18.02, but it’s documented in Chapter 12 of my Napkin for those of you that want to read about it.

Alternatively, I think Wikipedia and Axler10, among others, use a definition of the determinant as the unique multilinear alternating map on 𝑛-tuples of column vectors in ℝ𝑛 that equals 1 for the identity. This definition will work, and will let you derive the formula for determinant, and gives you a reason to believe it should match your concept of area and volume. It’s probably also easier to understand than wedge products. However, in the long term I think wedge products are more versatile, even though they take much longer to setup.

§3.5 [EXER] Exercises

Exercise 3.1. Compute the unit vector along the direction of the vector

(−0.0008𝜋−0.0009𝜋−0.0012𝜋).
Exercise 3.2. If 𝐴 is a 3×3 matrix with determinant 2, what values could det(10𝐴) take?
Exercise 3.3. Compute the real number 𝑎 for which the points (0,0,0), (1,0,1), (0,1,2) and (1,2,𝑎) all lie on one plane.
  1. 9I hate trying to spell this word.
  2. 10Who has a paper called Down with Determinants!, which I approve of.