High School Mathematics — Contents High School Mathematics / Chapter 7

Chapter 7Vectors

Velocity, force, and displacement—many of the quantities that appear in high school physics have not only a “magnitude” but also a “direction.” The tool for treating such quantities mathematically is the vector. So far, in our study of mathematics we have dealt only with a single number (a scalar). A vector adds to this a new piece of information, a “direction.” This is only a small extension, yet its effect is large. For example, we have written the equation of a line in the form $y=ax+b$ ever since junior high school, but with vectors we can write it as $\vec{OP}=\vec{OA}+t\vec{d}$, a form in which direction and position are plainly visible. Properties of plane figures (the centroid of a triangle, the diagonals of a parallelogram, the intersection of two lines, and so on) can also be proved without using coordinates, using only the addition, subtraction, and scalar multiplication of arrows.

In this chapter, we first introduce the basic operations on vectors (equality, addition, subtraction, and scalar multiplication) using diagrams of arrows, and then learn how to express them in terms of components (ordered lists of numbers, like coordinates). Next, we introduce the inner product (also called the dot product), which plays the role of “multiplication” of two vectors, and use it to rewrite the equations of lines, planes, and spheres in the language of vectors. Finally, we learn how to test for the geometric properties of collinearity, concurrency, and coplanarity using vector expressions alone. The idea we learn here—that “any vector can be expressed in exactly one way in terms of two (or three) linearly independent vectors”—is the direct prototype of the concepts of basis and dimension in the linear algebra studied at university, and it connects directly to the composition and resolution of forces in physics and to the lattice vectors of crystals in materials science.

What you will learn in this chapter
  • Equality, addition, subtraction, and scalar multiplication of vectors, and the commutative, associative, and distributive laws they satisfy
  • The condition for parallelism of vectors, unit vectors, the idea of linear independence, and the fundamental theorem that any vector can be decomposed in exactly one way
  • Component representation of vectors (in the plane and in space), and the formulas for the position vectors of internal and external division points
  • The definition of the inner product $\vec a\cdot\vec b=|\vec a||\vec b|\cos\theta$, and its properties, component representation, and the condition for perpendicularity
  • Vector equations of lines, equations of lines and planes using normal vectors, and the equation of a sphere
  • The conditions for collinearity, concurrency, and coplanarity, and the formula for the area of a triangle using the inner product
Prerequisites: The geometry of junior high school mathematics (congruence and similarity of triangles, properties of parallel lines) and the basics of the coordinate plane learned in Chapter 4: Coordinate Geometry. Trigonometric ratios (Chapter 3) are also used in the definition of the inner product.
Source notes: Yasuhide Mochizuki, Mathematics Notes: High School Mathematics (handwritten lecture notes, in Japanese), pp. 23–31.

7.1 Vector Operations — Equality, Addition, Subtraction, and Scalar Multiplication

In “walking 3 km east” and “walking 3 km north,” the distance (magnitude) walked is the same 3 km in both cases, but the direction walked is completely different. A quantity that has both this “magnitude” and a “direction” is called a vector, and it is written with an arrow over a letter, as in $\vec a,\ \vec b$. In figures, the direction is shown by the direction of the arrow and the magnitude by its length. The magnitude of a vector $\vec a$ is written $|\vec a|$. In contrast, a quantity that has no direction and is determined by its magnitude alone (length, mass, temperature, and so on) is called a scalar (that is, a real number).

A vector whose arrow has initial point $A$ and terminal point $B$ is also written $\vec{AB}$. In this case the magnitude $|\vec{AB}|$ of $\vec{AB}$ equals the distance between the two points $A,B$. What matters is that a vector is determined by its magnitude and direction alone, so it does not matter where we start drawing the arrow. Arrows with the same magnitude and the same direction represent the same single vector, wherever their initial points are.

Definition 7.1: Equality of vectors

When two vectors $\vec a$ and $\vec b$ have both the same “direction” and the same “magnitude,” we say that $\vec a$ and $\vec b$ are equal and write $\vec a=\vec b$.

Equality of vectors a b
Figure 7.1: Two vectors $\vec a$, $\vec b$ with equal direction and magnitude. Even if their initial points are in different positions, vectors with the same direction and the same magnitude are the same vector.

7.1.1 Addition of vectors

The sum $\vec a+\vec b$ of two vectors $\vec a,\vec b$ is constructed as follows (the triangle rule). Draw an arrow so that $\vec a=\vec{OA}$, and then, from its terminal point $A$, draw an arrow $\vec{AB}$ with the same direction and magnitude as $\vec b$. Then the arrow $\vec{OB}$ going from the initial point $O$ to the terminal point $B$ is the sum $\vec a+\vec b$.

Vector addition (triangle rule) O a A b B a+b
Figure 7.2: Vector addition (triangle rule). If $\vec{OA}=\vec a$ and $\vec{AB}=\vec b$, then $\vec{OB}=\vec a+\vec b$.

Theorem 7.1: Properties of vector addition

The following laws hold for vector addition.

(I) Commutative law: $\vec a+\vec b=\vec b+\vec a$

(II) Associative law: $(\vec a+\vec b)+\vec c=\vec a+(\vec b+\vec c)$

Intuition: Why does the commutative law hold?

If we draw $\vec a+\vec b$ and $\vec b+\vec a$ by the triangle rule, both turn out to be the diagonal of the same parallelogram. The path that goes from $O$ to $A$ along $\vec a$ and then from $A$ to $B$ along $\vec b$ (this is $\vec a+\vec b$), and the path that goes from $O$ to $A'$ along $\vec b$ and then from $A'$ to $B$ along $\vec a$ (this is $\vec b+\vec a$), both lead from the same point $O$ to the same point $B$. Since vectors whose initial points and terminal points coincide are the same vector (Definition 7.1), we have $\vec a+\vec b=\vec b+\vec a$. The associative law can be seen in the same way: when three arrows are joined one after another, the arrow “from the initial point to the terminal point” does not change however we group them along the way.

7.1.2 The zero vector and opposite vectors

It is convenient to consider a vector whose initial point and terminal point coincide (a vector that does not move). This is called the zero vector.

Definition 7.2: Zero vector and opposite vector

A vector of magnitude $0$ is called the zero vector and is written $\vec 0$. No direction is assigned to the zero vector. Also, for a vector $\vec a$, a vector with the same magnitude as $\vec a$ and the opposite direction is called the opposite vector of $\vec a$ and is written $-\vec a$.

Theorem 7.2: Properties of the zero vector and opposite vectors

(I) $\vec a+(-\vec a)=\vec 0$

(II) $\vec a+\vec 0=\vec a$

(I) follows from the fact that if, by the triangle rule, we take $\vec a=\vec{OA}$ and then join $-\vec a=\vec{AO}$ (the arrow returning from $A$ to $O$), the initial point and the terminal point are both $O$—that is, we obtain a vector of magnitude $0$. (II) follows from the fact that attaching the motionless arrow $\vec 0$ changes neither the initial point nor the terminal point.

Using opposite vectors, we can define the subtraction of vectors in terms of addition alone: $\vec a-\vec b:=\vec a+(-\vec b)$. In a figure, when $\vec a=\vec{OA}$ and $\vec b=\vec{OB}$ are drawn from the same initial point $O$, we get $\vec a-\vec b=\vec{BA}$ (the arrow from $B$ to $A$). Indeed, reading the triangle rule as a route that passes through $B$, we have $\vec{OB}+\vec{BA}=\vec{OA}$, that is, $\vec b+\vec{BA}=\vec a$, and adding the opposite vector of $\vec b$ to both sides gives $\vec{BA}=\vec a-\vec b$.

7.1.3 Scalar multiplication of vectors

Multiplying a vector $\vec a$ by $k$ (where $k$ is a real number) is defined by the following convention: it denotes the vector with the same direction as $\vec a$ and $k$ times the magnitude if $k\gt0$, the vector with the direction opposite to $\vec a$ and $|k|$ times the magnitude if $k\lt0$, and the zero vector $\vec 0$ if $k=0$. This is written $k\vec a$.

Theorem 7.3: Properties of scalar multiplication of vectors

For real numbers $k,l$, the following three laws hold.

(I) Associative law: $k(l\vec a)=(kl)\vec a$

(II) Distributive law: $(k+l)\vec a=k\vec a+l\vec a$

(III) Distributive law: $k(\vec a+\vec b)=k\vec a+k\vec b$

(I) follows from the fact that “multiplying $\vec a$ by $l$ and then by $k$ as well” and “multiplying $\vec a$ by $kl$ from the start” agree, whether we look at the direction or at the magnitude. (II) and (III) are, when the directions are the same, exactly the distributive law for lengths $(k+l)|\vec a|=k|\vec a|+l|\vec a|$, and when the direction is reversed, they can be checked in the same way by keeping track of the signs.

Application: Composition of forces and vectors

In physics, when two forces $\vec F_1,\vec F_2$ act at the same time, the resultant force is found simply by addition, as $\vec F_1+\vec F_2$ (the parallelogram rule for forces is just the triangle rule we have learned here, flipped over). Also, the operation of multiplying a force by $k$ (changing only its strength while keeping the same direction) corresponds to the scalar multiple $k\vec F$. The “resolution of forces” of high school physics is nothing other than the decomposition of vectors that we learn in Section 7.2 (the operation of splitting one force into components in two directions).

Example 7.1: Equality of vectors and parallelograms

In a quadrilateral $ABCD$, show that if $\vec{AB}=\vec{DC}$ holds, then the quadrilateral is a parallelogram.

Solution. Take the point $O$ as the reference, and let the position vectors of $A,B,C,D$ be $\vec{OA},\vec{OB},\vec{OC},\vec{OD}$, respectively. Rewriting the hypothesis $\vec{AB}=\vec{DC}$ in terms of position vectors, we get

$$ \vec{OB}-\vec{OA}=\vec{OC}-\vec{OD} $$

(Here $\vec{AB}=\vec{OB}-\vec{OA}$ and $\vec{DC}=\vec{OC}-\vec{OD}$ are exactly the property of subtraction that we confirmed in Section 7.1.2.) Solving this for $\vec{OC}$, we obtain

$$ \vec{OC}=\vec{OD}+\vec{OB}-\vec{OA} $$

Now we compare the remaining pair of opposite sides of the quadrilateral, $\vec{BC}$ and $\vec{AD}$.

$$ \vec{BC}=\vec{OC}-\vec{OB}=(\vec{OD}+\vec{OB}-\vec{OA})-\vec{OB}=\vec{OD}-\vec{OA}=\vec{AD} $$

(The first equality is the definition of subtraction, the second substitutes the $\vec{OC}$ found above, and the third holds because $+\vec{OB}-\vec{OB}$ cancels.) Therefore $\vec{BC}=\vec{AD}$; that is, the other pair of opposite sides also consists of vectors with equal direction and magnitude. Since both pairs of opposite sides are parallel and equal ($\vec{AB}=\vec{DC}$ and $\vec{AD}=\vec{BC}$), the quadrilateral $ABCD$ is a parallelogram.

7.2 Conditions for Parallelism, Unit Vectors, and Linear Independence

7.2.1 The condition for parallelism of vectors

Definition 7.3: Parallel vectors

When two vectors $\vec a,\vec b$, neither of which is $\vec 0$, have directions that are either the same or opposite, we say that $\vec a$ and $\vec b$ are parallel and write $\vec a\parallel\vec b$.

Parallel vectors (same direction and opposite direction) a 1.6a(same direction) −a(opposite direction)
Figure 7.3: Examples of vectors parallel to $\vec a$. A positive multiple ($k\gt0$) with the same direction (middle) and the vector $-\vec a$ with the opposite direction (bottom) are all parallel to $\vec a$.

From the definition of scalar multiplication of a vector (Section 7.1.3), the following necessary and sufficient condition follows immediately. This is because $k\vec a$ is parallel to $\vec a$ and has the same direction if $k\gt0$, and has the opposite direction if $k\lt0$.

Theorem 7.4: Condition for parallelism of vectors

If $\vec a\ne\vec 0$ and $\vec b\ne\vec 0$, then

$$ \vec a\parallel\vec b \iff \vec a=k\vec b\ \text{for some real number}\ k\ \text{} $$

7.2.2 Unit vectors

Definition 7.4: Unit vectors

A vector whose magnitude is $1$ is called a unit vector.

The unit vectors (vectors of magnitude $1$) parallel to an arbitrary vector $\vec a\ (\ne\vec 0)$ are $\pm\dfrac{\vec a}{|\vec a|}$. Indeed, $\dfrac{\vec a}{|\vec a|}$ is the vector obtained by multiplying $\vec a$ by the real number $\dfrac1{|\vec a|}\ (\gt0)$, so it has the same direction as $\vec a$, and its magnitude is $|\vec a|\times\dfrac1{|\vec a|}=1$. The vector $-\dfrac{\vec a}{|\vec a|}$, obtained by reversing the sign, is another unit vector that differs only in that its direction is opposite.

7.2.3 Decomposition of vectors and linear independence

In the plane, if we have two arrows pointing in different directions, then any arrow can be built by “scaling those two arrows and adding them together”—this is the main theorem of this section. First, we prepare a term that states the condition “pointing in different directions” precisely.

Definition 7.5: Linear independence of vectors

(I) In the plane, when two vectors $\vec a,\vec b$ are both different from $\vec 0$ and are not parallel, we say that $\vec a,\vec b$ are linearly independent.

(II) In space, when three vectors $\vec a,\vec b,\vec c$ are all different from $\vec 0$ and do not lie in the same plane, we say that $\vec a,\vec b,\vec c$ are linearly independent.

Intuition: Why is it called “linear independence”?

The name “linear independence” means that “no single one of the vectors can be built from just a combination of scalar multiples of the remaining vectors (a linear combination).” In the plane, if $\vec a$ and $\vec b$ are parallel, then we can write $\vec b=k\vec a$, so $\vec b$ is merely a “rephrasing” of $\vec a$, and even using both together, the directions we can express are limited to the single line along one of them. If they are not parallel, then the direction of $\vec a$ and the direction of $\vec b$ are two “independent” directions, neither of which can be reached by a scalar multiple of the other, and together they can cover the entire plane. This idea of a “pair of independent directions” develops directly into the concept called a basis in university linear algebra.

Theorem 7.5: Fundamental theorem for plane and space vectors (uniqueness of decomposition)

(I) Suppose that $\vec a,\vec b$ are linearly independent in the plane. Then any vector $\vec p$ can be expressed in exactly one way in the following form.

$$ \vec p=s\vec a+t\vec b \qquad(\text{where}\ s,t\ \text{are real numbers}) $$

(II) Suppose that $\vec a,\vec b,\vec c$ are linearly independent in space. Then any vector $\vec p$ can be expressed in exactly one way in the following form.

$$ \vec p=s\vec a+t\vec b+u\vec c \qquad(\text{where}\ s,t,u\ \text{are real numbers}) $$
Decomposition of a vector: p=sa+tb a b sa tb p=sa+tb O
Figure 7.4: Decomposition by two linearly independent vectors $\vec a,\vec b$. The vector $\vec p$ is expressed in exactly one way, as the diagonal of the parallelogram whose two sides are $s\vec a$ and $t\vec b$.

Intuition: Why is there only one decomposition?

Suppose that two different expressions were possible, namely $\vec p=s\vec a+t\vec b=s'\vec a+t'\vec b$. Then $(s-s')\vec a=(t'-t)\vec b$. If $s\ne s'$, then dividing both sides by $(s-s')$ gives $\vec a=\dfrac{t'-t}{s-s'}\vec b$, which would mean that $\vec a$ and $\vec b$ are parallel. This contradicts the assumption that $\vec a,\vec b$ are linearly independent (not parallel). Therefore we must have $s=s'$, and then $(t'-t)\vec b=\vec 0$ with $\vec b\ne\vec 0$, so $t=t'$. In this way we see that the expression is unique. The case of space ($\vec a,\vec b,\vec c$) can be shown in the same way, using the assumption that the three vectors do not lie in the same plane.

Example 7.2: Testing for parallelism using linear independence

Let $\vec a,\vec b$ be linearly independent vectors. If $\vec{OP}=2\vec a+3\vec b$ and $\vec{OQ}=4\vec a+6\vec b$, show that the three points $O,P,Q$ lie on a line.

Solution. We check whether $\vec{OQ}$ can be expressed in terms of $\vec{OP}$.

$$ \vec{OQ}=4\vec a+6\vec b=2(2\vec a+3\vec b)=2\,\vec{OP} $$

(Comparing coefficients, we have $4=2\times2$ and $6=2\times3$; if we notice that the pair of coefficients $(4,6)$ of $\vec{OQ}$ is exactly twice the pair of coefficients $(2,3)$ of $\vec{OP}$, this factoring out is found naturally. Since $\vec a,\vec b$ are linearly independent, the expression $2\vec a+3\vec b$ corresponds to exactly one vector, $\vec{OP}$, and this factoring out is uniquely determined by Theorem 7.5). Hence $\vec{OQ}=2\vec{OP}$. This means that $\vec{OQ}$ is a scalar multiple of $\vec{OP}$, so by Theorem 7.4 we have $\vec{OQ}\parallel\vec{OP}$. Since $\vec{OP}$ and $\vec{OQ}$ are parallel vectors that both have the point $O$ as their initial point, $O,P,Q$ lie on a line.

7.3 Component Representation of Vectors and Internal and External Division Points

7.3.1 Components of a vector (in the plane)

Let $O$ be the origin of the coordinate plane, and for a vector $\vec a$ take the point $A$ so that $\vec a=\vec{OA}$, and write $A(x_1,y_1)$. Now take the point $E(1,0)$ on the $x$-axis and the point $F(0,1)$ on the $y$-axis, and let $\vec{OE}=\vec e_x$ and $\vec{OF}=\vec e_y$. Since $\vec e_x,\vec e_y$ are both vectors of magnitude $1$ (unit vectors) and are not parallel, they form a basis to which Theorem 7.5 of Section 7.2.3 (decomposition in terms of linearly independent vectors) applies.

Components of a vector (in the plane) x y ex ey A(x1,y1) O E F X Y
Figure 7.5: Components of a vector (in the plane). Dropping perpendiculars $AX,AY$ from the point $A$ to the $x$-axis and the $y$-axis, respectively, gives $\vec{OA}=\vec{OX}+\vec{OY}=x_1\vec e_x+y_1\vec e_y$.

Dropping perpendiculars $AX,AY$ from the point $A$ to the $x$-axis and the $y$-axis, respectively, we obtain $\vec{OA}=\vec{OX}+\vec{OY}$ by the triangle rule (Section 7.1.1). Here, $X$ is the point on the $x$-axis at a distance of $x_1$ (the coordinate of $X$) from $O$, so $\vec{OX}=x_1\vec e_x$, and similarly $\vec{OY}=y_1\vec e_y$. Therefore, this vector can be written in the form

$$ \vec{OA}=x_1\vec e_x+y_1\vec e_y $$

in exactly one way (the uniqueness of the decomposition in terms of the linearly independent $\vec e_x,\vec e_y$ is precisely Theorem 7.5 itself).

Definition 7.6: Components of a vector

(I) The case of the plane: When we write $\vec{OA}=x_1\vec e_x+y_1\vec e_y$ as above, we call the pair of real numbers $(x_1,y_1)$ the components of $\vec{OA}$, and we write $\vec{OA}=(x_1,y_1)$. We call $x_1$ the $x$-component and $y_1$ the $y$-component. We call $\vec e_x,\vec e_y$ the standard unit vectors for the coordinate axes.

(II) The case of space: Similarly in space, let $O$ be the origin and $A(x_1,y_1,z_1)$ a point, and let $\vec e_x,\vec e_y,\vec e_z$ be the standard unit vectors of the $x$-axis, $y$-axis, and $z$-axis. Then the vector from the origin to this point can be expressed

$$ \vec{OA}=x_1\vec e_x+y_1\vec e_y+z_1\vec e_z=(x_1,y_1,z_1) $$

in this form.

Caution: A component representation is not the same as coordinates

The component representation $(x_1,y_1)$ looks the same as the coordinates $(x_1,y_1)$ of a point, but it is not the coordinates themselves. This is because a vector is determined only by its “direction and magnitude,” and its initial point can be placed anywhere. Only when the initial point is the origin $O$ do the coordinates of the terminal point and the components of the vector happen to be the same pair of numbers. For example, the components of $\vec{AB}$ (whose initial point is not the origin) are not the coordinates of $B$ themselves; they must be computed from $\vec{AB}=\vec{OB}-\vec{OA}$ (Formula 7.2, which appears later).

7.3.2 Position vectors of internal and external division points

Let $\vec a=\vec{OA}$ and $\vec b=\vec{OB}$ be the position vectors of the points $A,B$, respectively (the position of a point expressed as a vector with respect to the origin $O$ is called its position vector). If $P$ is the point that divides segment $AB$ internally in the ratio $m:n$, then $\vec{AP}=\dfrac{m}{m+n}\vec{AB}$ holds (this merely restates, in the language of vectors, the idea of an internal division point that we have used since junior high school). Therefore,

$$ \vec{OP}=\vec{OA}+\vec{AP}=\vec a+\frac{m}{m+n}(\vec b-\vec a)=\frac{(m+n)\vec a-m\vec a+m\vec b}{m+n}=\frac{n\vec a+m\vec b}{m+n} $$

(the last step merely regroups the numerator as $(m+n)\vec a-m\vec a+m\vec b=(m+n-m)\vec a+m\vec b=n\vec a+m\vec b$). For an external division point, similarly, if we start from $\vec{AP}=\dfrac{m}{m-n}\vec{AB}$ ($m\ne n$) and rearrange, the position vector

$$ \vec{OP}=\vec a+\frac{m}{m-n}(\vec b-\vec a)=\frac{(m-n)\vec a-m\vec a+m\vec b}{m-n}=\frac{-n\vec a+m\vec b}{m-n} $$

is obtained.

Formula 7.1: Position vectors of internal and external division points

The position vector of the point that divides segment $AB$ in the ratio $m:n$ internally is $\dfrac{n\vec a+m\vec b}{m+n}$

The position vector of the point that divides segment $AB$ in the ratio $m:n$ externally is $\dfrac{-n\vec a+m\vec b}{m-n}\quad(m\ne n)$

Internal and external division points A P (internal) B P' (external) m n m n
Figure 7.6: The point $P$ that divides segment $AB$ internally in the ratio $m:n$, and the point $P'$ that divides it externally (when $m\gt n$, $P'$ lies farther out beyond $B$).

7.3.3 Vector operations in components

When vectors are given by their components, addition and scalar multiplication can be replaced by componentwise calculations. If $\vec a=(a_1,a_2)$ and $\vec b=(b_1,b_2)$, the following formulas hold.

Formula 7.2: Vector operations in components

In the plane, if $\vec a=(a_1,a_2)$ and $\vec b=(b_1,b_2)$, then

(I) $\vec a+\vec b=(a_1+b_1,\ a_2+b_2)$

(II) $k\vec a=(ka_1,ka_2)$ (where $k$ is a real number)

In space, if $\vec c=(c_1,c_2,c_3)$ and $\vec d=(d_1,d_2,d_3)$, then

(III) $\vec c+\vec d=(c_1+d_1,\ c_2+d_2,\ c_3+d_3)$

(IV) $k\vec c=(kc_1,kc_2,kc_3)$ (where $k$ is a real number)

These follow directly by substituting $\vec a=a_1\vec e_x+a_2\vec e_y$ and $\vec b=b_1\vec e_x+b_2\vec e_y$ and simplifying with the commutative and associative laws of Theorem 7.1 and the distributive laws of Theorem 7.3 (for example, $\vec a+\vec b=(a_1\vec e_x+a_2\vec e_y)+(b_1\vec e_x+b_2\vec e_y)=(a_1+b_1)\vec e_x+(a_2+b_2)\vec e_y$). Also, the vector joining the $2$ points $A(x_1,y_1),B(x_2,y_2)$ is $\vec{AB}=\vec{OB}-\vec{OA}=(x_2-x_1,\ y_2-y_1)$, and by the Pythagorean theorem its magnitude is $|\vec{AB}|=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ (this is exactly the distance formula for two points that we learned in Chapter 4).

Example 7.3: Component representation and internal and external division points

For the $2$ points $A(2,-1)$ and $B(5,3)$, find (a) the components and the magnitude of $\vec{AB}$, (b) the point that divides segment $AB$ internally in the ratio $2:1$, and (c) the point that divides segment $AB$ externally in the ratio $2:1$.

Solution. (a) Following the idea of Formula 7.2,

$$ \vec{AB}=(5-2,\ 3-(-1))=(3,4),\qquad |\vec{AB}|=\sqrt{3^2+4^2}=\sqrt{25}=5 $$

(b) Taking $m=2,n=1$ in Formula 7.1, the position vector of the internal division point is $\dfrac{1\cdot\vec a+2\cdot\vec b}{3}$. Computing with components, we get

$$ \frac{(2,-1)+2(5,3)}{3}=\frac{(2+10,\ -1+6)}{3}=\frac{(12,5)}{3}=\left(4,\ \frac53\right) $$

($2(5,3)=(10,6)$ is the scalar multiplication by Formula 7.2 (II), and the sum in the numerator is the addition by Formula 7.2 (I).) Hence the internal division point is $\left(4,\dfrac53\right)$.

(c) For external division in Formula 7.1 ($m=2,n=1$), the position vector is $\dfrac{-1\cdot\vec a+2\cdot\vec b}{2-1}=-\vec a+2\vec b$.

$$ -(2,-1)+2(5,3)=(-2,1)+(10,6)=(8,7) $$

Hence the external division point is $(8,7)$.

7.4 The Inner Product of Vectors

7.4.1 Definition of the inner product

Addition and scalar multiplication of vectors were operations whose results were again vectors. Here we introduce a new operation that produces a single real number (a scalar) from two vectors. When we compute the “work done” in physics, if a force $\vec F$ and a displacement $\vec s$ point in the same direction, the work is $|\vec F||\vec s|$; but a force acting in a misaligned direction does work only through the part projected onto the direction of the displacement. The inner product is this idea of “discounting the misalignment of direction by $\cos$,” formulated as an operation on vectors in general.

Definition 7.7: Inner product of vectors

Suppose the two vectors $\vec a,\vec b$ are not $\vec 0$. Let $\theta$ be the angle between $\vec a$ and $\vec b$ ($0^\circ\le\theta\le180^\circ$). Then we define the inner product (also called the dot product or the scalar product) of $\vec a$ and $\vec b$ as

$$ \vec a\cdot\vec b=|\vec a||\vec b|\cos\theta $$

(When $\vec a$ or $\vec b$ is $\vec 0$, we agree that $\vec a\cdot\vec b=0$.)

Diagram of the inner product (orthogonal projection) O a b θ |b|cosθ
Figure 7.7: Geometric meaning of the inner product. $|\vec b|\cos\theta$ is the length of the orthogonal projection of $\vec b$ onto the direction of $\vec a$ (a negative value if $\theta$ is obtuse), and the inner product can be read as $\vec a\cdot\vec b=|\vec a|\times(\vec b\text{ projected orthogonally onto the direction of }\vec a\text{, measured as a length})$.

7.4.2 Perpendicularity of vectors and the inner product

When $\theta=90^\circ$, we have $\cos90^\circ=0$, so the inner product is $0$. Conversely, if neither of $\vec a,\vec b$ is $\vec 0$, then $|\vec a||\vec b|\ne0$, so the inner product is $0$ only when $\cos\theta=0$, that is, only when $\theta=90^\circ$.

Theorem 7.6: Perpendicularity of vectors and the inner product

If $\vec a\ne\vec 0$ and $\vec b\ne\vec 0$, then

$$ \vec a\cdot\vec b=0 \iff \vec a\perp\vec b $$

7.4.3 Component representation of the inner product

The definition of the inner product involves the angle $\theta$, so it is hard to compute directly from the components alone. So let us rewrite the inner product as an expression in the components only, using the law of cosines that we learned in Chapter 3. Let $\vec a=(a_1,a_2)$ and $\vec b=(b_1,b_2)$. Take $O(0,0)$ as the initial point, and choose the points $A(a_1,a_2)$ and $B(b_1,b_2)$ so that $\vec{OA}=\vec a$ and $\vec{OB}=\vec b$. Applying the law of cosines to triangle $OAB$ gives

$$ |AB|^2=|OA|^2+|OB|^2-2|OA||OB|\cos\theta=|\vec a|^2+|\vec b|^2-2\,\vec a\cdot\vec b $$

(the last equality is just a direct substitution of $\vec a\cdot\vec b=|\vec a||\vec b|\cos\theta$ from Definition 7.7). On the other hand, $|AB|^2$ can also be computed from the components, using the formula for the distance between two points (Section 7.3.3).

$$ |AB|^2=(a_1-b_1)^2+(a_2-b_2)^2=a_1^2-2a_1b_1+b_1^2+a_2^2-2a_2b_2+b_2^2=|\vec a|^2+|\vec b|^2-2(a_1b_1+a_2b_2) $$

(we regrouped the terms using $|\vec a|^2=a_1^2+a_2^2$ and $|\vec b|^2=b_1^2+b_2^2$). Comparing the two computations of $|AB|^2$, we get $|\vec a|^2+|\vec b|^2-2\,\vec a\cdot\vec b=|\vec a|^2+|\vec b|^2-2(a_1b_1+a_2b_2)$; subtracting $|\vec a|^2+|\vec b|^2$ from both sides and dividing by $-2$ gives the following formula.

Formula 7.3: Component representation of the inner product

(I) Plane case: if $\vec a=(a_1,a_2)$ and $\vec b=(b_1,b_2)$, then $\vec a\cdot\vec b=a_1b_1+a_2b_2$

(II) Space case: if $\vec a=(a_1,a_2,a_3)$ and $\vec b=(b_1,b_2,b_3)$, then $\vec a\cdot\vec b=a_1b_1+a_2b_2+a_3b_3$

7.4.4 Properties of the inner product

Theorem 7.7: Properties of the inner product of vectors

The following laws hold for the inner product of vectors. Here we assume $\vec a\ne\vec 0$, $\vec b\ne\vec 0$, and $\vec c\ne\vec 0$ (by the convention in Definition 7.7 that “an inner product involving $\vec 0$ is $0$,” they in fact also hold when any one of these vectors is $\vec 0$).

(I) $\vec a\cdot\vec b=\vec b\cdot\vec a$

(II) $(\vec a+\vec b)\cdot\vec c=\vec a\cdot\vec c+\vec b\cdot\vec c$

(III) $(k\vec a)\cdot\vec b=\vec a\cdot(k\vec b)=k(\vec a\cdot\vec b)$

(IV) $\vec a\cdot\vec a=|\vec a|^2$ ($\because$ the angle between the two vectors is $\theta=0^\circ$, and $\cos\theta=1$)

Proof strategy: Compute with components

For (I)–(III), rather than proving them directly from the definition using angles, it is clearer to introduce the components of the vectors and compute with Formula 7.3. We check this in the plane case. Let $\vec a=(a_1,a_2)$, $\vec b=(b_1,b_2)$, and $\vec c=(c_1,c_2)$.

(I) $\vec a\cdot\vec b=a_1b_1+a_2b_2=b_1a_1+b_2a_2=\vec b\cdot\vec a$ (we only used the commutative law of multiplication of real numbers, $a_1b_1=b_1a_1$ and so on).

(II) Since $\vec a+\vec b=(a_1+b_1,a_2+b_2)$ (Formula 7.2),

$$ (\vec a+\vec b)\cdot\vec c=(a_1+b_1)c_1+(a_2+b_2)c_2=(a_1c_1+a_2c_2)+(b_1c_1+b_2c_2)=\vec a\cdot\vec c+\vec b\cdot\vec c $$

(we expanded using the distributive law for real numbers, and then regrouped the terms into the form of $\vec a\cdot\vec c$ and the form of $\vec b\cdot\vec c$).

(III) Since $k\vec a=(ka_1,ka_2)$, we have $(k\vec a)\cdot\vec b=ka_1b_1+ka_2b_2=k(a_1b_1+a_2b_2)=k(\vec a\cdot\vec b)$. Computing $\vec a\cdot(k\vec b)$ in the same way gives the same expression.

(IV) follows by substituting $\vec b=\vec a$ and $\theta=0^\circ$ into Definition 7.7 (the angle between $\vec a$ and $\vec a$ itself is $0^\circ$, and $\cos0^\circ=1$, so $\vec a\cdot\vec a=|\vec a||\vec a|\cdot1=|\vec a|^2$). The space case can be shown by the same computation, with just one more component.

∎

Example 7.4: Inner product and the angle between vectors

Let $\vec a=(1,\sqrt3)$ and $\vec b=(\sqrt3,1)$. Find $\vec a\cdot\vec b$, $|\vec a|$, and $|\vec b|$, and find the angle $\theta$ between $\vec a$ and $\vec b$.

Solution. By Formula 7.3 (I),

$$ \vec a\cdot\vec b=1\cdot\sqrt3+\sqrt3\cdot1=2\sqrt3 $$

For the magnitudes, using Theorem 7.7 (IV) ($|\vec a|^2=\vec a\cdot\vec a$),

$$ |\vec a|=\sqrt{1^2+(\sqrt3)^2}=\sqrt{1+3}=\sqrt4=2,\qquad |\vec b|=\sqrt{(\sqrt3)^2+1^2}=\sqrt{3+1}=2 $$

Solving Definition 7.7, $\vec a\cdot\vec b=|\vec a||\vec b|\cos\theta$, for $\cos\theta$, we get

$$ \cos\theta=\frac{\vec a\cdot\vec b}{|\vec a||\vec b|}=\frac{2\sqrt3}{2\times2}=\frac{\sqrt3}{2} $$

In the range $0^\circ\le\theta\le180^\circ$, the angle satisfying $\cos\theta=\dfrac{\sqrt3}{2}$ is $\theta=30^\circ$.

7.5 Vector Equations of Lines and Normal Vectors (Plane Geometry)

7.5.1 Vector equation of a line

Until now, we have written the equation of a line in the form $y=ax+b$. Here we learn how to represent a line using vectors.

Intuition: A vector is a “point”

Taking the origin $O$ as the reference, a point $P$ in the plane and its position vector $\vec{OP}$ correspond one-to-one. In other words, “the point $P$ moves” and “the vector $\vec{OP}$ changes” are merely two ways of describing the same phenomenon. From this viewpoint, we can rewrite “a line as a collection of points” as “an equation satisfied by a vector.”

Suppose there is a vector $\vec a=(\alpha,\beta)$ (other than $\vec 0$). Let $t$ range over all real numbers, and let the vector representing the moving point $(x,y)$ be $t\vec a=(t\alpha,t\beta)=(x,y)$.

Vector equation of a line through the origin x y a=(α,β) O ta (vary t) α β
Figure 7.8: The line through the origin parallel to the direction vector $\vec a=(\alpha,\beta)$. As $t$ varies over all real numbers, the point $(x,y)=t\vec a$ sweeps out this entire line. The small right triangle on the line shows the breakdown into base $\alpha$ and height $\beta$ (where the slope $\beta/\alpha$ comes from).

Comparing components, we obtain

$$ \begin{cases} x=\alpha t \\ y=\beta t \end{cases} $$

If $\alpha\ne0$, the first equation gives $t=\dfrac{x}{\alpha}$, and substituting this into the second equation, we get

$$ y=\beta\cdot\frac{x}{\alpha}=\frac{\beta}{\alpha}x $$

This is nothing other than the equation of the line through the origin with slope $\dfrac{\beta}{\alpha}$ (the case $b=0$ of $y=ax+b$). Thus $(x,y)=t\vec a$ is a vector equation of a line.

Next, we consider a general line, which does not necessarily pass through the origin. Let $A(\alpha,\beta)$ and $P(p,q)$ be points, and consider the line through the point $P$ parallel to $\vec a=\vec{PA}=(\alpha,\beta)$.

Vector equation of a line through the point P OP a=PA=(α,β) O P(p,q) α β
Figure 7.9: The line through the point $P(p,q)$ parallel to the direction vector $\vec a=\vec{PA}=(\alpha,\beta)$. If we take the moving point to be $\vec{OP}+t\vec a$, then as $t$ varies over all real numbers it sweeps out this entire line. The small right triangle on the line shows the breakdown into base $\alpha$ and height $\beta$.

Let the moving point be $(x,y)$. By the triangle rule (Section 7.1.1),

$$ (x,y)=\vec{OP}+t\vec{PA}=(p+t\alpha,\ q+t\beta) $$

that is,

$$ \begin{cases} x=\alpha t+p \\ y=\beta t+q \end{cases} $$

From the first equation, $t=\dfrac{x-p}{\alpha}$ (with $\alpha\ne0$), and substituting this into the second equation $y=\beta t+q$, we obtain

$$ y=\beta\cdot\frac{x-p}{\alpha}+q,\qquad\text{that is,}\qquad y-q=\frac{\beta}{\alpha}(x-p) $$

so this is indeed a line with slope $\dfrac{\beta}{\alpha}$ passing through the point $P(p,q)$ (this agrees with the formula $y-q=m(x-p)$ for “the line through the point $(p,q)$ with slope $m$,” which has been familiar since junior high school).

Formula 7.4: Vector equation of a line

(I) The line through the origin parallel to the direction vector $\vec a\ (\ne\vec 0)$: $(x,y)=t\vec a$ ($t$ ranges over all real numbers)

(II) The line through the point $P(p,q)$ parallel to the direction vector $\vec a=(\alpha,\beta)$: $(x,y)=\vec{OP}+t\vec a$

7.5.2 Lines and normal vectors

We can also construct the equation of a line by using a vector perpendicular to the line.

Definition 7.8: Normal vector

A vector other than $\vec 0$ that is perpendicular to a direction vector of a line $\ell$ (a vector formed by joining two distinct points on $\ell$) is called a normal vector of the line $\ell$. (The term that we used ahead of time in Definition 4.3 of Chapter 4 is now formally redefined here, using the tool we learned in this chapter: “perpendicular” means “the inner product is $0$” (Theorem 7.6).)

Let $A(x_1,y_1)$ be a fixed point and $P(x,y)$ a moving point. Let $\vec n=(a,b)$ be a vector perpendicular to $\vec{AP}$. Suppose the point $P$ moves along some line and the point $A$ lies on that line.

A line and a normal vector (plane) O A(x1,y1) P(x,y) n=(a,b)
Figure 7.10: The origin $O$, the points $A,P$ on the line, and the normal vector $\vec n=(a,b)$ perpendicular to the line. $\vec{OA},\vec{OP}$ (gray) correspond to the equation $\vec n\cdot(\vec{OP}-\vec{OA})=0$ in the text. Wherever on the line we measure from, $\vec n$ is perpendicular to the line.

Then, by Theorem 7.6 (perpendicularity and the inner product), $\vec n\cdot\vec{AP}=0$, that is, $\vec n\cdot(\vec{OP}-\vec{OA})=0$, and in terms of components this is written

$$ a(x-x_1)+b(y-y_1)=0 $$

The equation we have obtained is that of the line on which the points $A$ and $P$ lie.

Formula 7.5: Equation of a line from a normal vector

The equation of the line passing through the point $(x_1,y_1)$ with normal vector $\vec n=(a,b)$ is

$$ a(x-x_1)+b(y-y_1)=0 $$

Example 7.5: Finding the equation of a line from a normal vector

Find the equation of the line passing through the point $(1,2)$ whose normal vector is $\vec n=(3,-4)$.

Solution. Substituting $x_1=1,y_1=2,a=3,b=-4$ into Formula 7.5, we get

$$ 3(x-1)-4(y-2)=0 $$

Expanding the parentheses and simplifying (we have $3(x-1)=3x-3$ and $-4(y-2)=-4y+8$, and adding these, we combine the constant terms into $-3+8=5$), we obtain

$$ 3x-3-4y+8=0 \quad\Longrightarrow\quad 3x-4y+5=0 $$

This is the equation of the required line.

7.6 Equations of Planes, Lines, and Spheres in Space

From here on we deal with vectors in space (three dimensions). Components are written in parentheses, as in $(X,Y,Z)$ (the original notes also use square brackets, $[X,Y,Z]$, but in this book we standardize on parentheses so that the notation is consistent with the plane case).

7.6.1 Planes and normal vectors

In space, we consider a vector perpendicular not to a line but to a plane. Let $A(x_1,y_1,z_1)$ be a fixed point on a certain plane and $P(x,y,z)$ a moving point. Let $\vec n=(a,b,c)$ be a vector perpendicular to $\vec{AP}$. The point $P$ moves on that plane.

A plane and its normal vector (in space) A(x1,y1,z1) P(x,y,z) n=(a,b,c)
Figure 7.11: A plane in space and a normal vector $\vec n=(a,b,c)$ perpendicular to it. The pale red arrow represents the vector $\vec{AP}$ in the plane. The plane is drawn as a parallelogram seen obliquely (in reality it is a surface with no edges that extends infinitely).

Then, by exactly the same argument as in the plane, $\vec n\cdot\vec{AP}=0$, that is, $\vec n\cdot(\vec{OP}-\vec{OA})=0$, so that the relation

$$ a(x-x_1)+b(y-y_1)+c(z-z_1)=0 $$

holds.

Formula 7.6: Equation of a plane (normal vector, in space)

The equation of the plane that passes through the point $(x_1,y_1,z_1)$ and has $\vec n=(a,b,c)$ as a normal vector is

$$ a(x-x_1)+b(y-y_1)+c(z-z_1)=0 $$

Caution: $ax+by+cz+d=0$ is the equation of a plane in space

Expanding Formula 7.6 and collecting the constant terms puts it in the form $ax+by+cz+(-ax_1-by_1-cz_1)=0$. In general, a linear equation in $x,y,z$, $ax+by+cz+d=0$ (where at least one of $a,b,c$ is not $0$), represents a plane in space. Just as a line in the plane could be expressed by the linear equation $ax+by+c=0$ (Chapter 4), a plane in space is expressed by a linear equation—note that each time the dimension goes up by one, the equation keeps the same form, with just one more variable.

7.6.2 The equation of a line in space

In coordinate space, the vector equation of the line that passes through the point $A(x_0,y_0,z_0)$ and has direction vector $\vec d=(X,Y,Z)$ can be written, using the vector $\vec P=(x,y,z)$ that represents the moving point, as

$$ \vec P=\vec{OA}+t\vec d \qquad(\text{where }\vec P=\vec{OP}\text{, and }t\text{ is a parameter}) $$

(Here $\vec d=(X,Y,Z)$ is a vector parallel to the line.) Written in components, this is

$$ \vec P=(Xt+x_0,\ Yt+y_0,\ Zt+z_0)=(x,y,z) $$

That is, we have the following system of equations:

$$ \begin{cases} Xt+x_0=x \\ Yt+y_0=y \\ Zt+z_0=z \end{cases} $$

When none of $X,Y,Z$ is $0$, solving each equation in the form $t=\cdots$ gives

$$ t=\frac{x-x_0}{X}=\frac{y-y_0}{Y}=\frac{z-z_0}{Z} $$

(Since the three expressions all represent the same $t$, we link the right-hand sides to one another with equal signs.)

Formula 7.7: Equation of a line in space

The equation of the line that passes through the point $(x_0,y_0,z_0)$ and is parallel to the direction vector $\vec d=(X,Y,Z)$ (where $X,Y,Z\ne0$) is

$$ \frac{x-x_0}{X}=\frac{y-y_0}{Y}=\frac{z-z_0}{Z} $$

7.6.3 The equation of a sphere

In coordinate space, let us find the equation of the sphere with center $A(x_0,y_0,z_0)$ and radius $r\ (\gt0)$. Using the vector $\vec P$ that represents the moving point, and noting that the sphere is “the set of points whose distance from the center $A$ is always $r$,” we can write its equation as

$$ |\vec P-\vec{OA}|=r $$

Now let $\vec P=(x,y,z)$. Then $\vec P-\vec{OA}=(x-x_0,\ y-y_0,\ z-z_0)$. Squaring both sides (in an equation containing an absolute value, squaring removes the square root and makes the equation easier to handle) gives

$$ |\vec P-\vec{OA}|^2=r^2 $$

and, rewriting the left side using the component representation of the magnitude of a vector (Theorem 7.7 (IV) and Formula 7.3 extended to space), we find that

$$ (x-x_0)^2+(y-y_0)^2+(z-z_0)^2=r^2 $$

holds.

Formula 7.8: Equation of a sphere

The equation of the sphere with center $(x_0,y_0,z_0)$ and radius $r$ is

$$ (x-x_0)^2+(y-y_0)^2+(z-z_0)^2=r^2 $$

Example 7.6: Equations of a line, a plane, and a sphere in space

(a) Find the equation of the line that passes through the point $A(1,0,-2)$ and is parallel to the direction vector $\vec d=(2,-1,3)$.
(b) Find the equation of the plane that passes through the point $(2,-1,3)$ and has normal vector $\vec n=(1,2,-2)$.
(c) Find the equation of the sphere with center $(1,-2,3)$ and radius $5$.

Solution. (a) Substituting $(x_0,y_0,z_0)=(1,0,-2)$ and $(X,Y,Z)=(2,-1,3)$ into Formula 7.7, we get

$$ \frac{x-1}{2}=\frac{y-0}{-1}=\frac{z-(-2)}{3},\qquad\text{that is,}\qquad \frac{x-1}{2}=\frac{y}{-1}=\frac{z+2}{3} $$

(b) Substituting $(x_1,y_1,z_1)=(2,-1,3)$ and $(a,b,c)=(1,2,-2)$ into Formula 7.6, we obtain

$$ 1\cdot(x-2)+2\cdot(y-(-1))+(-2)\cdot(z-3)=0 $$

Expanding the parentheses and simplifying (adding $x-2$, $2(y+1)=2y+2$, and $-2(z-3)=-2z+6$, and combining the constant terms into $-2+2+6=6$), we get

$$ x-2+2y+2-2z+6=0 \quad\Longrightarrow\quad x+2y-2z+6=0 $$

(c) Substituting the center $(x_0,y_0,z_0)=(1,-2,3)$ and $r=5$ into Formula 7.8, we get

$$ (x-1)^2+(y+2)^2+(z-3)^2=25 $$

7.7 Conditions for Collinearity, Concurrency, and Coplanarity, and the Area of a Triangle

7.7.1 Vector equation of a line (the form through two points)

We now restate the vector equations of lines learned so far, as the form given by a fixed point and a direction vector and as the form through two distinct points.

Theorem 7.8: Vector equation of a line

① The line through the fixed point $A$ parallel to $\vec d\ (\ne\vec 0)$ is given by

$$ \vec{OP}=\vec{OA}+t\vec d $$

That is, the line can be expressed in this form.

② The line through two distinct points $A,B$ can be expressed as

$$ \vec{OP}=(1-t)\vec{OA}+t\vec{OB} \quad\text{or}\quad \vec{OP}=s\vec{OA}+t\vec{OB}\ (s+t=1) $$

Here, $\vec{OP}$ is a moving vector.

Statement ② is obtained from ① by adopting $\vec d=\vec{AB}=\vec{OB}-\vec{OA}$ as the direction vector, which gives $\vec{OP}=\vec{OA}+t(\vec{OB}-\vec{OA})=(1-t)\vec{OA}+t\vec{OB}$ (if we let $s=1-t$, this takes the form $s+t=1$). Let us use a figure to see why the condition $s+t=1$ is imposed.

Intuition: Why is $s+t=1$?

Suppose $\vec{OP}=s\vec{OA}+t\vec{OB}\ (s+t=1)$. When $s=1,t=0$ we have $P=A$, and when $s=0,t=1$ we have $P=B$. But what happens if $s+t=2$? Let us see the answer in a figure.

Points on the line and their relation to s,t (s+t=1) O A (s=1,t=0) B (s=0,t=1) P' (s=-1,t=2)
Figure 7.12: $\vec{OP}=s\vec{OA}+t\vec{OB}\ (s+t=1)$. As the values of $s,t$ vary, $P$ ranges over every point on the line $AB$ (including the parts where $s,t$ become negative, so it reaches beyond the points $A,B$).
What happens when s+t=2 O A A' (doubled) B B' (doubled) (Vector length doubled!)
Figure 7.13: When the vectors $\vec{OA},\vec{OB}$ from the origin $O$ to $A,B$ are each stretched to $2$ times their length, the tips become $A'(=2\vec{OA})$ and $B'(=2\vec{OB})$. The line through $A,B$ (solid) and the line through $A',B'$ (dashed) are not the same line; they are different lines, shifted parallel to each other. This is an example showing that, without the constraint “$s+t=1$,” the mere condition $s+t=2$ does not in general keep the point on the line $AB$.

7.7.2 Conditions for collinearity, concurrency, and coplanarity

Theorem 7.9: Conditions for collinearity, concurrency, and coplanarity

① Collinearity condition: the point $P$ lies on the line $AB$

$$ \iff \vec{AP}=k\vec{AB}\ \text{(for some real number}\ k\ \text{)} $$ $$ \iff \vec{OP}=(1-t)\vec{OA}+t\vec{OB}\ \text{(for some real number}\ t\ \text{).} $$

② Concurrency condition: the three points $P,Q,R$ coincide.

$$ \iff \vec{OP}=\vec{OQ}=\vec{OR} $$

③ Coplanarity condition: when the vectors $\vec{OA},\vec{OB},\vec{OC}$ are linearly independent, the point $P$ lies on the plane $ABC$.

$$ \iff \vec{OP}=s\vec{OA}+t\vec{OB}+u\vec{OC},\ s+t+u=1\ \text{(for some real numbers}\ s,t,u\ \text{).} $$

In ①, the first equivalence is exactly Theorem 7.4 (the condition for parallelism) together with the definition itself, and the second equivalence is obtained by setting $k=t$ in Theorem 7.8②. Statement ③ extends the idea of Theorem 7.8②—“the line through two points has $s+t=1$”—by one dimension to the plane spanned by the three points $A,B,C$. (For the same reason that a point in a plane could be expressed in exactly one way as a linear combination of two linearly independent vectors—Theorem 7.5—a point on a plane in space is also characterized as a linear combination of the linearly independent vectors $\vec{OA},\vec{OB},\vec{OC}$ in which the sum of the coefficients is 1.)

7.7.3 Area of a triangle

Let us find the area of triangle $OAB$ by using the inner product. If $\theta$ denotes the angle between the two sides, the area formula we already know from high school mathematics is

$$ S=\frac12\cdot|\vec{OA}|\cdot|\vec{OB}|\cdot\sin\theta $$

Here, since $0^\circ\le\theta\le180^\circ$ implies $\sin\theta\ge0$, we can write $\sin\theta=\sqrt{1-\cos^2\theta}$ (solving $\sin^2\theta+\cos^2\theta=1$ for $\sin\theta$ and choosing the positive root, since the sign is fixed by $\sin\theta\ge0$). Therefore,

$$ S=\frac12\cdot|\vec{OA}|\cdot|\vec{OB}|\cdot\sqrt{1-\cos^2\theta}=\frac12\sqrt{|\vec{OA}|^2\cdot|\vec{OB}|^2\cdot(1-\cos^2\theta)}=\frac12\sqrt{|\vec{OA}|^2|\vec{OB}|^2-\big(|\vec{OA}||\vec{OB}|\cos\theta\big)^2} $$

(To bring the factor $|\vec{OA}||\vec{OB}|$ in front of the radical inside it, we squared it and multiplied.) Finally, using Definition 7.7, $\vec{OA}\cdot\vec{OB}=|\vec{OA}||\vec{OB}|\cos\theta$, to replace $\big(|\vec{OA}||\vec{OB}|\cos\theta\big)^2$ inside the radical by an expression in the inner product, we find that

$$ S=\frac12\sqrt{|\vec{OA}|^2|\vec{OB}|^2-(\vec{OA}\cdot\vec{OB})^2} $$

holds.

Formula 7.9: Area of a triangle

The area $S$ of $\triangle OAB$ is

$$ S=\frac12\sqrt{|\vec{OA}|^2|\vec{OB}|^2-(\vec{OA}\cdot\vec{OB})^2} $$
Area of triangle OAB O A B θ
Figure 7.14: Triangle $OAB$ and the angle $\theta$ between the two sides $\vec{OA},\vec{OB}$.

Math Note: A shortcut for finding the area from components alone

If we write $\vec{OA}=(x_1,y_1)$ and $\vec{OB}=(x_2,y_2)$ in component representation, the quantity under the radical in Formula 7.9 can be rewritten as follows, using Formula 7.3 (the component representation of the inner product).

$$ |\vec{OA}|^2|\vec{OB}|^2-(\vec{OA}\cdot\vec{OB})^2=(x_1^2+y_1^2)(x_2^2+y_2^2)-(x_1x_2+y_1y_2)^2=(x_1y_2-x_2y_1)^2 $$

(Expanding the right-hand side gives $x_1^2x_2^2+x_1^2y_2^2+y_1^2x_2^2+y_1^2y_2^2-x_1^2x_2^2-2x_1x_2y_1y_2-y_1^2y_2^2=x_1^2y_2^2-2x_1x_2y_1y_2+y_1^2x_2^2=(x_1y_2-x_2y_1)^2$, which confirms that it agrees with the left-hand side.) Therefore, we obtain the formula

$$ S=\frac12|x_1y_2-x_2y_1| $$

which can be computed immediately from the components alone. This combination $x_1y_2-x_2y_1$ is exactly the quantity called the $2\times2$ determinant in university linear algebra, and it corresponds to the planar version of the cross product that you will study in vector analysis in the future.

Example 7.7: Verifying collinearity and finding the area of a triangle

(a) Let $A(1,4)$ and $B(6,-1)$. Verify that the point $P$ determined by $\vec{OP}=\dfrac25\vec{OA}+\dfrac35\vec{OB}$ lies on the line $AB$.
(b) For $\vec{OA}=(4,3)$ and $\vec{OB}=(1,5)$, find the area of $\triangle OAB$ by two methods, Formula 7.9 and the shortcut from the Math Note, and confirm that the results agree.

Solution. (a) Taking $s=\dfrac25,t=\dfrac35$, we have $s+t=1$, so by Theorem 7.8② (or directly by Theorem 7.9①), $P$ lies on the line $AB$. Verifying this explicitly with components, we get

$$ \vec{OP}=\frac25(1,4)+\frac35(6,-1)=\left(\frac25+\frac{18}5,\ \frac85-\frac35\right)=\left(\frac{20}5,\frac55\right)=(4,1) $$

Now, $\vec{AB}=(6-1,-1-4)=(5,-5)$ and $\vec{AP}=(4-1,1-4)=(3,-3)$, and since $\vec{AP}=\dfrac35(5,-5)=\dfrac35\vec{AB}$ ($3=\frac35\times5$, $-3=\frac35\times(-5)$), Theorem 7.9① confirms that $P$ indeed lies on the line $AB$.

(b) Computing with Formula 7.9, we have $|\vec{OA}|^2=4^2+3^2=25$, $|\vec{OB}|^2=1^2+5^2=26$, and $\vec{OA}\cdot\vec{OB}=4\times1+3\times5=19$ (Formula 7.3), so

$$ S=\frac12\sqrt{25\times26-19^2}=\frac12\sqrt{650-361}=\frac12\sqrt{289}=\frac12\times17=\frac{17}2 $$

With the Math Note shortcut $S=\dfrac12|x_1y_2-x_2y_1|$, we get

$$ S=\frac12|4\times5-1\times3|=\frac12|20-3|=\frac{17}2 $$

so both methods agree: $S=\dfrac{17}2$.

7.8 Summary and Exercises

7.8.1 Summary

\begin{equation} \vec p=s\vec a+t\vec b,\qquad \vec a\cdot\vec b=|\vec a||\vec b|\cos\theta=a_1b_1+a_2b_2,\qquad S=\frac12|x_1y_2-x_2y_1| \label{eq:7-key} \end{equation}

7.8.2 Exercises

Exercise 7.1: Position vector of the centroid

In triangle $ABC$, let $M$ be the midpoint of side $BC$, and let $G$ be the point that divides the median $AM$ internally in the ratio $2:1$ (the centroid of the triangle). Show that, taking an arbitrary point $O$ as the reference point,

$$ \vec{OG}=\frac{\vec{OA}+\vec{OB}+\vec{OC}}{3} $$

holds.

Hint: First use Formula 7.1 (the position vector of an internal division point) to express the position vector of $M$ in terms of $\vec{OB},\vec{OC}$, and then apply the same formula to the segment joining the points $A,M$.

Exercise 7.2: Linear independence and equating coefficients

Let $\vec a,\vec b$ be linearly independent vectors. If $(2x-1)\vec a+(y+2)\vec b=3\vec a-\vec b$ holds, find the values of the real numbers $x,y$.

Hint: By Theorem 7.5 (uniqueness of the decomposition), the coefficients of $\vec a$ on the two sides must be equal, and so must the coefficients of $\vec b$.

Exercise 7.3: Components, internal division points, and external division points

For the $2$ points $A(-1,3)$ and $B(4,-2)$, find (a) the components and the magnitude of $\vec{AB}$, (b) the point that divides segment $AB$ internally in the ratio $3:2$, and (c) the point that divides segment $AB$ externally in the ratio $3:2$.

Hint: Substitute $m=3,n=2$ into Formula 7.1. Note that $m-n=1$ for the external division.

Exercise 7.4: Inner product and the perpendicularity condition

Let $\vec a=(2,k)$ and $\vec b=(3,-4)$. Find the value of the real number $k$ for which $\vec a\perp\vec b$, and also find $|\vec a|$ in that case.

Hint: Combine Theorem 7.6 (perpendicularity and the inner product) with Formula 7.3.

Exercise 7.5: The equation of a line from a normal vector

Find the equation of the line through the $2$ points $A(1,2)$ and $B(4,6)$ by the method of “taking a vector perpendicular to the direction vector as the normal vector” (Formula 7.5).

Hint: First find the direction vector $\vec{AB}$, and use the fact that one vector perpendicular to $(p,q)$ is $(q,-p)$.

Exercise 7.6: Lines, planes, and spheres in space

Find the equation of the line through the point $A(2,-3,1)$ parallel to the direction vector $\vec d=(1,2,-2)$, the equation of the plane through the same point $A$ whose normal vector is $\vec d$, and the equation of the sphere with center $(0,1,-2)$ and radius $3$.

Hint: Simply apply Formula 7.7, Formula 7.6, and Formula 7.8 directly.

7.8.3 References

  1. Yasuhide Mochizuki, Mathematics Notes: High School Mathematics (handwritten lecture notes, in Japanese). The source of this chapter.
  2. Chart Institute (ed.), Chart-shiki Kiso kara no Sūgaku C [Chart-Style Mathematics C from the Basics], Suken Shuppan (in Japanese).