Artificial Intelligence 🤖
Vectors
Vector geometry

Vector geometry

Here, we introduce some concepts and notation for the three-dimensional coordinate system. The 3D3 \mathrm{D} coordinate system is often denoted by R3\mathbb{R}^{3}. A general point PP which lives in a 3D space is defined by its x,yx-, y-, zz-coordinates. If the point has zero zz-coordinate then we say it sits in xyx-y plane. The xy,xz,yx-y, x-z, y-z planes are known as the coordinate planes. Consider a point P=(x,y,z)P=(x, y, z) and a point Q=(x,y,0)Q=(x, y, 0); the point QQ is referred to as the projection of PP in the xyx-y plane.

Much (but not all!) of what we know to be true in 2D2 \mathrm{D}, i.e. in R2\mathbb{R}^{2} can be extended in 3D3 \mathrm{D}. For instance, the distance between two points P1=(x1,y1)P_{1}=\left(x_{1}, y_{1}\right) and P2=(x2,y2)P_{2}=\left(x_{2}, y_{2}\right) in R2\mathbb{R}^{2} is given by

d=(x2x1)2+(y2y1)2,d=\sqrt{\left(x_{2}-x_{1}\right)^{2}+\left(y_{2}-y_{1}\right)^{2}},

and in R3\mathbb{R}^{3}, for P1=(x1,y1,z1)P_{1}=\left(x_{1}, y_{1}, z_{1}\right) and P2=(x2,y2,z2)P_{2}=\left(x_{2}, y_{2}, z_{2}\right),

d=(x2x1)2+(y2y1)2+(z2z1)2.d=\sqrt{\left(x_{2}-x_{1}\right)^{2}+\left(y_{2}-y_{1}\right)^{2}+\left(z_{2}-z_{1}\right)^{2}} .

Vector equation of a line

What information do we need to determine a line? In 2D, we need (i) a point on the line, say P=(x1,y1)P=\left(x_{1}, y_{1}\right) and (ii) a direction or slope, i.e. kk. In 3D, we need (i) a point on the line, say P=(x1,y1,z1)P=\left(x_{1}, y_{1}, z_{1}\right) and (ii) a direction given by a vector parallel to the line, say v\boldsymbol{v}. In Fig. 9.9P09.9 P_{0} is a known point on the line LL with coordinates (x0,y0,z0),P\left(x_{0}, y_{0}, z_{0}\right), P is an arbitrary point also on LL with coordinate points (x,y,z)(x, y, z). The vectors r0\boldsymbol{r}_{\mathbf{0}} and r\boldsymbol{r} are the position vectors for points P0P_{0} and PP, respectively. Now, a=P0P\boldsymbol{a}=\overrightarrow{P_{0} P} and by the parallelogram rule (see Section 9.2),

r=r0+a.r=r_{0}+a .

The vector v\boldsymbol{v} gives us the direction parallel to the line; since a\boldsymbol{a} is parallel to v\boldsymbol{v}, we can write v\boldsymbol{v} as a scalar multiple of a\boldsymbol{a},

a=λv,λR.\boldsymbol{a}=\lambda \boldsymbol{v}, \quad \lambda \in \mathbb{R} .

It follows that the line which is parallel to the vector v\boldsymbol{v} and passes through the point PP with position vector r\boldsymbol{r} is given by,

r=r0+λv\boldsymbol{r}=\boldsymbol{r}_{0}+\lambda v

We note that r\boldsymbol{r} traces out the line, r0\boldsymbol{r}_{\mathbf{0}} puts us onto the line and λv\lambda \boldsymbol{v} moves us along the line (if λ>0\lambda>0, we move in the direction of v\boldsymbol{v}, if λ<0\lambda<0, we move in the opposite direction of v)\boldsymbol{v}).

To write the equation of a line in Cartesian coordinates starting from Eq. (9.25), we write out the vectors in component form

r0=x0i+y0j+z0k,v=ai+bj+ck,r=xi+yj+zk\begin{array}{r} \boldsymbol{r}_{\mathbf{0}}=x_{0} \mathbf{i}+y_{0} \mathbf{j}+z_{0} \mathbf{k}, \\ \boldsymbol{v}=a \mathbf{i}+b \mathbf{j}+c \mathbf{k}, \\ \boldsymbol{r}=x \mathbf{i}+y \mathbf{j}+z \mathbf{k} \end{array}

Using Eq. (9.25) and Eqs. (9.26), we write rr0=λv\boldsymbol{r}-\boldsymbol{r}_{\mathbf{0}}=\lambda \boldsymbol{v} as

(xx0)i+(yy0)j+(zz0)k=λ(ai+bj+ck).\left(x-x_{0}\right) \mathbf{i}+\left(y-y_{0}\right) \mathbf{j}+\left(z-z_{0}\right) \mathbf{k}=\lambda(a \mathbf{i}+b \mathbf{j}+c \mathbf{k}) .

Comparing coefficients on each side gives us the following equation

λ=xx0a=yy0b=zz0c;\lambda=\frac{x-x_{0}}{a}=\frac{y-y_{0}}{b}=\frac{z-z_{0}}{c} ;

these are known as the symmetric equations of the line. From Eq. (9.28) we have the following parametric form of the equation of the line,

x=x0+λa,y=y0+λb,z=z0+λc.x=x_{0}+\lambda a, \quad y=y_{0}+\lambda b, \quad z=z_{0}+\lambda c .

Figure 9.9: The vector equation of a line in 3D coordinate system.

Note that if one of a,ba, b, or cc is zero in the symmetric equations (9.28), we can still write them down. For instance, suppose a=0a=0; then, we have

yy0b=zz0c,x=x0\frac{y-y_{0}}{b}=\frac{z-z_{0}}{c}, \quad x=x_{0}

Example 9.4 Determine the vector equation of the straight line passing through the point P1P_{1} with coordinates (3,1,5)(3,-1,5) and P2P_{2} with coordinates (1,4,2)(-1,-4,2).

Solution First we obtain the position vector of P1P_{1}, as OP1=(3,1,5)\overrightarrow{O P_{1}}=(3,-1,5). Next, we need the direction given by P1P2\overrightarrow{P_{1} P_{2}} as (4,3,3)(-4,-3,-3). The vector equation of a line is then given by

r=3ij+5kλ(4i+3j+3k)\boldsymbol{r}=3 \mathbf{i}-\mathbf{j}+5 \mathbf{k}-\lambda(4 \mathbf{i}+3 \mathbf{j}+3 \mathbf{k})

where λR\lambda \in \mathbb{R}.

Vector equation of a plane

Here we derive a general equation for planes. We start with a point P0P_{0} which is known to be on the plane, as shown in Fig. 9.10 . The point PP is an arbitrary point on the plane and r\boldsymbol{r} and r0\boldsymbol{r}_{\mathbf{0}} are the position vectors of PP and P0P_{0}, as before. We also show a vector, n\boldsymbol{n} which is perpendicular to the plane; this is known as the normal vector. Notice that the vector rr0\boldsymbol{r}-\boldsymbol{r}_{\mathbf{0}} lies completely in the plane. Since n\boldsymbol{n} is orthogonal to the plane, it is also orthogonal to any vector that lies in the plane. Using the dot product, we have n(rr0)=0\boldsymbol{n} \cdot\left(\boldsymbol{r}-\boldsymbol{r}_{\mathbf{0}}\right)=0 which gives

nr=nr0n \cdot r=n \cdot r_{0}

Figure 9.10: The vectors r\boldsymbol{r} and r0\boldsymbol{r}_{\mathbf{0}} are position vectors, the points P0P_{0} and PP are on the plane and rr0\boldsymbol{r}-\boldsymbol{r}_{\mathbf{0}} lies completely in the plane. Also, n\boldsymbol{n} is the normal vector which is perpendicular to the plane.

as the vector equation of the plane.

Starting from n(rr0)=0\boldsymbol{n} \cdot\left(\boldsymbol{r}-\boldsymbol{r}_{\mathbf{0}}\right)=0 with n=(a,b,c),r=(x,y,z)\boldsymbol{n}=(a, b, c), \boldsymbol{r}=(x, y, z), and r0=(x0,y0,z0)\boldsymbol{r}_{\mathbf{0}}=\left(x_{0}, y_{0}, z_{0}\right) we have

(a,b,c)(xx0,yy0,zz0)=0(a, b, c) \cdot\left(x-x_{0}, y-y_{0}, z-z_{0}\right)=0

which yields

a(xx0)+b(yy0)+c(zz0)=0,a\left(x-x_{0}\right)+b\left(y-y_{0}\right)+c\left(z-z_{0}\right)=0,

known as the scalar equation of plane. This is often written as

ax+by+cz=d,a x+b y+c z=d,

where d=ax0+by0+cz0d=a x_{0}+b y_{0}+c z_{0}.

Alternatively, we may also specify a plane by a point on the plane, P0P_{0} with position vector r0\boldsymbol{r}_{\mathbf{0}} and two direction vectors, say u\boldsymbol{u} and v\boldsymbol{v} which are not parallel or anti-parallel. In this way, the definition is similar to that describing the vector equation of the line. This is written in parametric form as

r=r0+λu+μv\boldsymbol{r}=\boldsymbol{r}_{0}+\lambda \boldsymbol{u}+\mu \boldsymbol{v}

where λ,μR\lambda, \mu \in \mathbb{R}. Example 9.5 Give the equation of the plane containing the points (0,0,2)(0,0,2), (0,2,3)(0,2,3), and (1,1,1)(1,1,1) in vector and Cartesian form.

Solution We can start with the vector form given by Eq. (9.33). We define the position vector r0\boldsymbol{r}_{\mathbf{0}} is using the point (0,0,2)(0,0,2) such that r0=(0,0,2)\boldsymbol{r}_{\mathbf{0}}=(0,0,2). Next, since (0,0,2),(0,2,3)(0,0,2),(0,2,3), and (1,1,1)(1,1,1) all lie on the plane, then any vector between them is also in the plane. We define

u=(00,20,32)=(0,2,1),v=(10,10,12)=(1,1,1)\boldsymbol{u}=(0-0,2-0,3-2)=(0,2,1), \quad \boldsymbol{v}=(1-0,1-0,1-2)=(1,1,-1)

The equation of the plane is then defined by

r=(0,0,2)+λ(0,2,1)+μ(1,1,1)\boldsymbol{r}=(0,0,2)+\lambda(0,2,1)+\mu(1,1,-1)

This can also be expressed as

x=μ,y=2λ+μz=2+λμ.x=\mu, \quad y=2 \lambda+\mu \quad z=2+\lambda-\mu .

Now, for the scalar form, since the direction vectors u,v\boldsymbol{u}, \boldsymbol{v} lie in the plane then n\boldsymbol{n}, which is normal to the plane, is defined by taking the cross product of the direction vectors. This is given by

n=u×v=3i+j2k\boldsymbol{n}=\boldsymbol{u} \times \boldsymbol{v}=-3 \mathbf{i}+\mathbf{j}-2 \mathbf{k}

Finally, taking the dot product as in Eq. (9.31) with a=3,b=1,c=2a=-3, b=1, c=-2 and (x0,y0,z0)=(0,0,2)\left(x_{0}, y_{0}, z_{0}\right)=(0,0,2), we obtain the Cartesian form of the equation of the plane as,

(3,1,2)(x,y,z2)=3x+y2z4=0,(-3,1,-2) \cdot(x, y, z-2)=-3 x+y-2 z-4=0,

yielding

3xy+2z=4.3 x-y+2 z=4 .