Given two nonzero vectors \(\mathbf{a}\) and \(\mathbf{b},\) what is the angle formed by these vectors? By the angle formed by the vectors \(\mathbf{a}\) and \(\mathbf{b}\), I mean an angle between \(0\) and \(\pi\) including \(0\) and \(\pi.\) To answer this question, we use the dot product, and this is one of the prominent usages of the dot product.
From the geometric definition of the dot product we have \[ \mathbf{a} \cdot \mathbf{b} = \| \mathbf{a} \| \mkern 1mu \| \mathbf{b} \| \mkern 1mu \cos\theta, \] where \(\theta\) is the angle angle formed by \(\mathbf{a}\) and \(\mathbf{b}.\) From this formula we calculate \[ \cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{ \| \mathbf{a} \| \mkern 1mu \| \mathbf{b} \|}. \] Therefore, \[ \theta = \arccos \left(\frac{\mathbf{a} \cdot \mathbf{b}}{ \| \mathbf{a} \| \mkern 1mu \| \mathbf{b} \|} \right). \]
Inspired by the the fact that we used the arccos function above, I briefly reviewed the concept of a function. I wrote more about Functions on this webpage: Functions
Theorem (a characterization of a rectangle) (often used in carpentry).
Let \(ABCD\) be a parallelogram with vertices \(A, B, C, D\) and the diagonals \(\overline{AC}\) and \(\overline{BD}\), as pictured below. Then \(ABCD\) is a rectangle if and only if the diagonals \(\overline{AC}\) and \(\overline{BD}\) have the same length.
Proof (using vectors).
Theorem (a characterization of a rhombus)
Let \(ABCD\) be a parallelogram with vertices \(A, B, C, D\) and the diagonals \(\overline{AC}\) and \(\overline{BD}\), as pictured above. Then \(ABCD\) is a rhombus if and only if the diagonals \(\overline{AC}\) and \(\overline{BD}\) perpendicular.
Proof (using vectors).
Theorem of Thales. If \(A\), \(B\), and \(C\) are points on a circle with diameter \(\overline{AC}\), then the angle at \(B\) is a right angle. Conversely, if the triangle \(ABC\) is a right triangle with the right angle at \(B\), then \(B\) lies on the circle having \(\overline{AC}\) as its diameter.
Proof (using vectors). Assume that \(A\), \(B\), and \(C\) are points on a circle with diameter \(\overline{AC}.\) Our goal is to prove that the line segments \(\overline{BA}\) and \(\overline{BC}\) are orthogonal. The dot product of vectors is an efficient tool for proving orthogonality. Therefore we use vectors in this proof.
Since \(\overline{AC}\) is a diameter of a circle, this circle's center is the midpoint of \(\overline{AC}.\) Denote this midpoint by \(O.\) Introduce the following vectors by their representative oriented line segments: \[ \mathbf{a}=\overrightarrow{BA}, \quad \mathbf{b}=\overrightarrow{BC}, \quad \mathbf{c}=\overrightarrow{OC}, \quad \text{and} \quad \mathbf{d}=\overrightarrow{BO}. \] Since \(O\) is the midpoint of \(\overline{AC},\) we have that the vector \(-\mathbf{c}\) is represented by \(\overrightarrow{OA}.\) The following algebraic relationships hold among the vectors that we introduced: \begin{align*} \mathbf{a} & = \mathbf{d} - \mathbf{c} \\ \mathbf{b} & = \mathbf{d} + \mathbf{c}. \end{align*} Since \(O\) is the center of a circle and the points (A\), \(B\), and \(C\) are on that circle, we have \[ \| \mathbf{c} \| = \| \mathbf{d} \|. \] Our goal is to prove that the line segments \(\overline{BA}\) and \(\overline{BC}\) are orthogonal. To prove this, we calculate \begin{align*} \mathbf{a} \cdot \mathbf{b} & = (\mathbf{d} - \mathbf{c})\cdot (\mathbf{d} + \mathbf{c}) \\ & = \mathbf{d} \cdot \mathbf{d} - \mathbf{c} \cdot \mathbf{d} + \mathbf{d} \cdot \mathbf{c} - \mathbf{c} \cdot \mathbf{c} \\ & = \mathbf{d} \cdot \mathbf{d} - \mathbf{d} \cdot \mathbf{c} + \mathbf{d} \cdot \mathbf{c} - \mathbf{c} \cdot \mathbf{c} \\ & = \mathbf{d} \cdot \mathbf{d} - \mathbf{c} \cdot \mathbf{c} \\ & = \| \mathbf{d} \|^2 - \| \mathbf{c} \|^2 \\ & = 0. \end{align*} Consequently, the vectors \(\mathbf{a}\) and \(\mathbf{b}\) are orthogonal. Therefore, the line segments \(\overline{BA}\) and \(\overline{BC}\) are orthogonal. QED
An important application of dot product is the calculation of the orthogonal projection.
Here is my presentation of the orthogonal projection of \(\mathbf{v}\) onto \(\mathbf{u}.\) Given two nonzero vectors \(\mathbf{u}\) and \(\mathbf{v}\), the orthogonal projection of \(\mathbf{v}\) onto \(\mathbf{u}\) is a special scaling of \(\mathbf{u}\), call it \[ \alpha \mkern1mu \mathbf{u}, \qquad \alpha \in \mathbb{R}, \] which has a very special property that the difference \[ \mathbf{v} - \alpha \mkern1mu \mathbf{u} \qquad \text{is orthogonal to} \qquad \mathbf{u}. \] Using the orthogonality stated on the line above, we can calculate \(\alpha\) in terms of \(\mathbf{u}\) and \(\mathbf{v}\): \[ \bigl( \mathbf{v} - \alpha \mkern1mu\mathbf{u}\bigr) \cdot \mathbf{u} = 0. \] Now we use the distributivity property of the dot product to get \[ \mathbf{v} \cdot \mathbf{u} - \alpha \mkern1mu (\mathbf{u} \cdot \mathbf{u}) = 0. \] The last equality we can solve for \(\alpha\): \[ \alpha = \frac{\mathbf{v} \cdot \mathbf{u}}{\mathbf{u} \cdot \mathbf{u}}. \] Now we have the formula for the projection vector of \(\mathbf{v}\) onto \(\mathbf{u}\): \[ \operatorname{proj}_{\mathbf{u}} (\mathbf{v}) = \frac{\mathbf{v} \cdot \mathbf{u}}{\mathbf{u} \cdot \mathbf{u}}\ \mathbf{u} = \frac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{u}\|^2} \ \mathbf{u} \]
Now I can write a formula in which we see what is so special about the projection vector of \(\mathbf{v}\) onto \(\mathbf{u}\): \[ \mathbf{v} = \underbrace{\frac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{u}\|^2}\,\mathbf{u}}_{\text{a multiple of } \mathbf{u}} + \underbrace{ \left(\mathbf{v} - \frac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{u}\|^2}\,\mathbf{u} \right)}_{\text{orthogonal to } \mathbf{u}} \]
Orthogonal projections \(\operatorname{proj}_{\mathbf{u}}(\mathbf{v})\) and related vectors in color
The animation below illustrates the fact that the projection \(\operatorname{proj}_{\mathbf{u}}(\mathbf{v})\) does not change when \(\mathbf{u}\) is replaced by its nonzero scalar multiple.
The Definition of the projection vector on page 140 is confused and formula (2.7) is wrong.
Below is a snippet from the definition.
Reading just the orange words, one does not know whether the projection is in the same direction as \(\mathbf{u}\), or it can also be in the opposite direction of \(\mathbf{u}.\) In fact, if the angle between \(\mathbf{v}\) and \(\mathbf{u}\) is acute, then the projection of \(\mathbf{v}\) onto \(\mathbf{u}\) points in the same direction as \(\mathbf{u}\), and if the angle between \(\mathbf{v}\) and \(\mathbf{u}\) is obtuse, then the projection of \(\mathbf{v}\) onto \(\mathbf{u}\) points in the opposite direction of \(\mathbf{u}.\) The projection of \(\mathbf{v}\) onto \(\mathbf{u}\) is always colinear with \(\mathbf{u}.\) That is, it is a scalar multiple of \(\mathbf{u}.\)
Below is the snippet of (2.7) on page 140:
This is quite confusing. When you look at (2.7), on the left-hand side is a vector, while on the right-hand side is a scalar. They cannot be equal. Vector can never equal a scalar. I was not familiar with the concept scalar projection of \(\mathbf{v}\) onto \(\mathbf{u}.\) Based on my research, the common meaning of the scalar projection of \(\mathbf{v}\) onto \(\mathbf{u}\) is not the length of the projection, but something a little more complicated. One could say that it is the signed length; it is the length when the projection and \(\mathbf{u}\) point in the same direction and it is the opposite of the length when the projection and \(\mathbf{u}\) point in different directions. Or it is the scalar that we use to scale the unit vector of \(\mathbf{u}\) to get the projection.
So, the book is wrong for using the word "length," in the sentence with (2.7), but the formula for \(\operatorname{comp}_{\mathbf{u}} \mathbf{v}\) is correct when one removes \(\operatorname{proj}_{\mathbf{u}} \mathbf{v}.\)
Here is an explanation of \(\operatorname{comp}_{\mathbf{u}} \mathbf{v}\), starting from the formula for \(\operatorname{proj}_{\mathbf{u}} \mathbf{v}\): \[ \operatorname{proj}_{\mathbf{u}}\mkern-5mu \mathbf{v} = \frac{\mathbf{v}\cdot\mathbf{u}}{\|\mathbf{u}\|^2}\,\mathbf{u} = \frac{\mathbf{v}\cdot\mathbf{u}}{\|\mathbf{u}\|}\,\left(\frac{1}{\|\mathbf{u}\|} \mathbf{u}\right) = \underbrace{ \frac{\mathbf{v}\cdot\mathbf{u}}{\|\mathbf{u}\|}}_{ \operatorname{comp}_{\mathbf{u}}\mkern-5mu\mathbf{v}} \mkern 7mu \underbrace{\left(\frac{1}{\|\mathbf{u}\|} \mathbf{u}\right)}_{\begin{array}{c} \text{the unit } \\ \text{vector of} \ \mathbf{u} \end{array}}. \]
Theorem about the diagonals in a deltoid. (A common name for a deltoid is a kite.)
If \(ABCD\) is a deltoid with vertices \(A, B, C, D\), as shown below, then its diagonals \(\overline{AC}\) and \(\overline{BD}\) are perpendicular.
Definition of a deltoid. A quadrilateral \(ABCD\) is called a deltoid if and only if it has two pairs of adjacent sides of equal length: \(|\overline{AB}| = |\overline{AD}|\) and \(|\overline{CB}| = |\overline{CD}|\).
Proof (using vectors). Step 1. Introduce the following vectors by their representative line segments: \(\mathbf{a} = \overrightarrow{AD}\), \(\mathbf{b} = \overrightarrow{AB}\), \(\mathbf{c} = \overrightarrow{CB}\), and \(\mathbf{d} = \overrightarrow{CD}.\) Assume that \(|\overline{AB}| = |\overline{AD}|\) and \(|\overline{CB}| = |\overline{CD}|.\) With the vectors introduced, we assume that \[ \|\mathbf{a}\| = \|\mathbf{b}\| \quad \text{and} \quad \|\mathbf{c}\| = \|\mathbf{d}\|. \] Since \[ \mathbf{a} - \mathbf{d} + \mathbf{c} - \mathbf{b} = \mathbf{0}, \] we have that \[ \mathbf{a} - \mathbf{b} = \mathbf{d} - \mathbf{c}, \] and \[ \mathbf{a} - \mathbf{d} = \mathbf{b} - \mathbf{c}. \] The oriented line segment \(\overrightarrow{AC}\) is on one diagonal and it represents the vector \(\mathbf{a} - \mathbf{d} = \mathbf{b} - \mathbf{c}.\) The oriented line segment \(\overrightarrow{BD}\) is on the other diagonal and it represents the vector \(\mathbf{a} - \mathbf{b} = \mathbf{d} - \mathbf{c}.\) Next we will calculate the dot product \[ (\mathbf{a} - \mathbf{b}) \cdot (\mathbf{a} - \mathbf{d}). \]
Step 2. Before calculating this dot product, we establish the following useful equality: \begin{align*} \mathbf{a} - \mathbf{b} & = \frac{1}{2} (\mathbf{a} - \mathbf{b}) + \frac{1}{2} (\mathbf{a} - \mathbf{b}) \\ & = \frac{1}{2} (\mathbf{a} - \mathbf{b}) + \frac{1}{2} (\mathbf{d} - \mathbf{c}) \\ & = \frac{1}{2} (\mathbf{a} + \mathbf{d}) - \frac{1}{2} (\mathbf{b} + \mathbf{c}). \end{align*} Hence we have \[ \mathbf{a} - \mathbf{b} = \frac{1}{2} (\mathbf{a} + \mathbf{d}) - \frac{1}{2} (\mathbf{b} + \mathbf{c}). \]
Step 3. We use this equality to calculate \begin{align*} (\mathbf{a} - \mathbf{b}) \cdot (\mathbf{a} - \mathbf{d}) & = \left(\frac{1}{2} (\mathbf{a} + \mathbf{d}) - \frac{1}{2} (\mathbf{b} + \mathbf{c}) \right) \cdot (\mathbf{a} - \mathbf{d}) \\ & = \frac{1}{2} (\mathbf{a} + \mathbf{d}) \cdot (\mathbf{a} - \mathbf{d}) - \frac{1}{2} (\mathbf{b} + \mathbf{c}) \cdot (\mathbf{a} - \mathbf{d}) \\ & = \frac{1}{2} \bigl( \|\mathbf{a}\|^2 - \|\mathbf{d}\|^2 \bigr) - \frac{1}{2} (\mathbf{b} + \mathbf{c}) \cdot (\mathbf{b} - \mathbf{c}) \\ & = \frac{1}{2} \bigl( \|\mathbf{a}\|^2 - \|\mathbf{d}\|^2 \bigr) - \bigl( \|\mathbf{b}\|^2 - \|\mathbf{c}\|^2 \bigr) \\ & = \frac{1}{2} \bigl( \|\mathbf{a}\|^2 - \|\mathbf{b}\|^2 \bigr) + \frac{1}{2} \bigl( \|\mathbf{c}\|^2 - \|\mathbf{d}\|^2 \bigr) \\ \end{align*} Since we assume \[ \|\mathbf{a}\| = \|\mathbf{b}\| \quad \text{and} \quad \|\mathbf{c}\| = \|\mathbf{d}\|, \] we have \[ (\mathbf{a} - \mathbf{b}) \cdot (\mathbf{a} - \mathbf{d}) = \frac{1}{2} \bigl( \|\mathbf{a}\|^2 - \|\mathbf{b}\|^2 \bigr) + \frac{1}{2} \bigl( \|\mathbf{c}\|^2 - \|\mathbf{d}\|^2 \bigr) = 0. \] Thus, the vectors \(\mathbf{a} - \mathbf{b}\) and \(\mathbf{a} - \mathbf{d}\) are orthogonal. Therefore, the diagonals are orthogonal. QED.
Varignon's Theorem
Let \(ABCD\) be a quadrilateral with vertices \(A, B, C, D\) and denote by \(A'\) the midpoint of \(\overline{AB}\), by \(B'\) the midpoint of \(\overline{BC}\), by \(C'\) the midpoint of \(\overline{CD}\), and by \(D'\) the midpoint of \(\overline{DA}\), as pictured below. Then \(A'B'C'D'\) is a parallelogram.
Proof (using vectors). Step 1. Introduce the following vectors by their representative line segments: \(\mathbf{a} = \overrightarrow{AB}\), \(\mathbf{b} = \overrightarrow{BC}\), \(\mathbf{c} = \overrightarrow{CD}\), and \(\mathbf{d} = \overrightarrow{DA}.\) Since \[ \mathbf{a} + \mathbf{b} + \mathbf{c} + \mathbf{d} = \mathbf{0}, \] we have that \[ \mathbf{b} + \mathbf{c} = - (\mathbf{a} + \mathbf{d}), \] (this vector is represented by the oriented line segment \(\overrightarrow{BD}\)) and \[ \mathbf{a} + \mathbf{b} = -(\mathbf{c} + \mathbf{d}). \] (this vector is represented by the oriented line segment \(\overrightarrow{AC}\)).
Step 2. In triangle \(AA'D'\) we have that the oriented line segment \(\overrightarrow{A'D'}\) represents the vector \(-\frac{1}{2}(\mathbf{a} + \mathbf{d}).\) In triangle \(CB'C'\) we have that the oriented line segment \(\overrightarrow{B'C'}\) represents the vector \(\frac{1}{2}(\mathbf{b} + \mathbf{c}).\) Since we have \[ -\frac{1}{2}(\mathbf{a} + \mathbf{d}) = \frac{1}{2}(\mathbf{b} + \mathbf{c}), \] the oriented line segments \(\overrightarrow{A'D'}\) and \(\overrightarrow{B'C'}\) are equivalent. That is they are parallel and have equal length.
Step 3. In triangle \(BA'B'\) we have that the oriented line segment \(\overrightarrow{A'B'}\) represents the vector \(\frac{1}{2}(\mathbf{a} + \mathbf{b}).\) In triangle \(DD'C'\) we have that the oriented line segment \(\overrightarrow{D'C'}\) represents the vector \(-\frac{1}{2}(\mathbf{d} + \mathbf{c}).\) Since we have \[ -\frac{1}{2}(\mathbf{c} + \mathbf{d}) = \frac{1}{2}(\mathbf{a} + \mathbf{b}), \] the oriented line segments \(\overrightarrow{A'B'}\) and \(\overrightarrow{D'C'}\) are equivalent. That is they are parallel and have equal length.
Conclusion. We proved that the line segments \(\overline{A'D'}\) and \(\overline{B'C'}\) are parallel and have equal length and that the line segments \(\overline{A'B'}\) and \(\overline{D'C'}\) are parallel and have equal length. Therefore, \(A'B'C'D'\) is a parallelogram. QED.
A compass rose is a common tool for communicating direction in navigation. The compass rose below shows 32 distinct directions. Here are the names of all 32 directions:
E - East | EbN - East-by-North | ENE - East-Northeast | NEbE - Northeast-by-East |
NE - Northeast | NEbN - Northeast-by-North | NNE - North-Northeast | NbE - North-by-East |
N - North | NbW - North-by-West | NNW - North-Northwest | NWbN - Northwest-by-North |
NW - Northwest | NWbW - Northwest-by-West | WNW - West-Northwest | WbN - West-by-North |
W - West | WbS - West-by-South | WSW - West-Southwest | SWbW - Southwest-by-West |
SW - Southwest | SWbS - Southwest-by-South | SSW - South-Southwest | SbW - South-by-West |
S - South | SbE - South-by-East | SSE - South-Southeast | SEbS - Southeast-by-South |
SE - Southeast | SEbE - Southeast-by-East | ESE - East-Southeast | EbS - East-by-South |
The role played by the compass rose in navigation, when we deal with vectors, is played by the unit circle in a coordinate plane.
Below, I show the unit circle with 32 marked angles and their corresponding cosine and sine values. Note, however, that the angles on the compass rose are not the same as those on the unit circle: the compass rose uses angles that are multiples of \(\pi/16\) (11.25 degrees).
For example, if we are given a vector \(\bigl\langle -1, \sqrt{3} \bigr\rangle\), we calculate the corresponding unit vector in the same direction: \(\bigl\langle -1/2, \sqrt{3}/2 \bigr\rangle\); then calculate the angle \(\theta\) such that \(\cos\theta = -1/2, \sin\theta = \sqrt{3}/2\); that is the angle \(\theta = 2 \pi /3\) and we state that the direction of the vector \(\bigl\langle -1, \sqrt{3} \bigr\rangle\) makes the angle of \(2 \pi /3\) with the positive direction of the horizontal axes.
Although it is not done in mathematics classes, having calculated this angle \(2 \pi /3\) or 120 degrees, we can calculate: \(120/11.25 \approx 10.6667.\) This tells us that the vector \(\bigl\langle -1, \sqrt{3} \bigr\rangle\) points in the direction between NNW - North-Northwest and NWbN - Northwest-by-North, a little closer to Northwest-by-North.
Click here to get a pdf file.
Mouse-over the image for a simplified version.
Here are a compass rose and the unit circle next to each other:
I made some progress on calculating volume of an antiprism whose base is a regular \(n\)-gon and with a given height. For that I use the fact that such an antiprism can be split in \(2n\) congruent pieces. Then I just calculate the volume of one piece. It is like advising a birthday party how to cat a cake in the shape of an antiprism.
Hover your mouse over an image to see the animation.
2-dimensional object: | square | rectangle | parallelogram | circle | disk | ellipse |
3-dimensional object: | cube | cuboid | parallelepiped | sphere | ball | ellipsoid |
Most of these terms should be familiar. I would like to point out the less frequently used term the cuboid, which is the 3D version of a rectangle. You may know it as a "rectangular prism" or a box 📦. I like the term cuboid; the reason: so prominent object should have its own name, not share it with the family of prisms or a packaging item. The cuboid is a convenient, concise and precise name for a very common shape. As the picture below shows, the term cuboid is used in geometry instruction, even at the primary school level.