P4.7 - Vectors

Syllabus
2019
Topic
P4.7
Level
A2

Learning objectives

Represent direction and displacement with vectors

A vector records both magnitude and direction. In two dimensions it has two components; in three dimensions it has three. The components measure the signed change parallel to each coordinate axis.

Form Three-dimensional example
column vector (325)\displaystyle\begin{pmatrix}3\\-2\\5\end{pmatrix}
unit-vector form 3i2j+5k3\mathbf i-2\mathbf j+5\mathbf k
displacement move 33 in xx, 2-2 in yy, and 55 in zz

Two vectors are equal when their corresponding components are equal, even if they start at different points. Thus (325)\begin{pmatrix}3\\-2\\5\end{pmatrix} and 3i2j+5k3\mathbf i-2\mathbf j+5\mathbf k represent the same vector.

A point describes a location; a vector describes a displacement or direction. They may use the same ordered numbers, but their meanings differ. Preserve component order and signs: the third component is the zz-change, not an extra label.

Find a vector's length and direction

The magnitude a|\mathbf a| is the length of a vector. It follows from Pythagoras in two or three dimensions. Dividing a non-zero vector by its magnitude keeps its direction but changes its length to 11.

(a1a2a3)=a12+a22+a32,a^=aa(a0)\left|\begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix}\right|=\sqrt{a_1^2+a_2^2+a_3^2},\qquad \widehat{\mathbf a}=\frac{\mathbf a}{|\mathbf a|}\quad(\mathbf a\ne\mathbf0)

For a=(442)\mathbf a=\begin{pmatrix}4\\-4\\2\end{pmatrix}, a=42+(4)2+22=6.|\mathbf a|=\sqrt{4^2+(-4)^2+2^2}=6. A unit vector in the same direction is a^=16(442)=(2/32/31/3).\widehat{\mathbf a}=\frac16\begin{pmatrix}4\\-4\\2\end{pmatrix}=\begin{pmatrix}2/3\\-2/3\\1/3\end{pmatrix}. Its magnitude is 11, which checks the calculation.

Magnitude is never negative, but vector components may be. Squaring removes component signs inside the length calculation. The zero vector has magnitude 00 and no defined direction, so it cannot be divided by its magnitude to make a unit vector.

Combine and scale vectors

Vector addition combines successive displacements, while scalar multiplication changes a vector's length and possibly its direction. Both operations are performed component by component.

(a1a2a3)+(b1b2b3)=(a1+b1a2+b2a3+b3),k(a1a2a3)=(ka1ka2ka3)\begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix}+\begin{pmatrix}b_1\\b_2\\b_3\end{pmatrix}=\begin{pmatrix}a_1+b_1\\a_2+b_2\\a_3+b_3\end{pmatrix},\qquad k\begin{pmatrix}a_1\\a_2\\a_3\end{pmatrix}=\begin{pmatrix}ka_1\\ka_2\\ka_3\end{pmatrix}

If a=(213)\mathbf a=\begin{pmatrix}2\\-1\\3\end{pmatrix} and b=(451)\mathbf b=\begin{pmatrix}-4\\5\\1\end{pmatrix}, then a+b=(244),2ab=(875).\mathbf a+\mathbf b=\begin{pmatrix}-2\\4\\4\end{pmatrix},\qquad 2\mathbf a-\mathbf b=\begin{pmatrix}8\\-7\\5\end{pmatrix}. Geometrically, addition places vectors head-to-tail; the resultant joins the starting point to the finishing point.

Multiplying by a positive scalar preserves direction, multiplying by a negative scalar reverses it, and multiplying by zero gives the zero vector. Do not add magnitudes in place of components: vector addition depends on direction.

Use position vectors to connect points

The position vector of a point runs from the fixed origin to that point. If OA=a\overrightarrow{OA}=\mathbf a and OB=b\overrightarrow{OB}=\mathbf b, the displacement from AA to BB is found by subtracting start from finish.

AB=OBOA=ba\overrightarrow{AB}=\overrightarrow{OB}-\overrightarrow{OA}=\mathbf b-\mathbf a

If A=(2,3,5)A=(2,-3,5) and B=(8,1,1)B=(8,1,-1), then AB=(811)(235)=(646).\overrightarrow{AB}=\begin{pmatrix}8\\1\\-1\end{pmatrix}-\begin{pmatrix}2\\-3\\5\end{pmatrix}=\begin{pmatrix}6\\4\\-6\end{pmatrix}. Reversing the journey gives BA=AB\overrightarrow{BA}=-\overrightarrow{AB}.

Position vectors also encode division of a segment. If BB lies one third of the way from AA to CC, then b=a+13(ca),\mathbf b=\mathbf a+\frac13(\mathbf c-\mathbf a), so c=3b2a\mathbf c=3\mathbf b-2\mathbf a. The coefficients reflect the stated direction and ratio.

Always subtract the position vector of the starting point from that of the finishing point. Coordinates and position-vector components match relative to the fixed origin, but AB\overrightarrow{AB} is not normally the position vector of either endpoint.

Calculate distance in three dimensions

The distance between two points is the magnitude of the displacement vector joining them. Subtract corresponding coordinates, square the changes, add them, and take the non-negative square root.

d=P1P2=(x2x1)2+(y2y1)2+(z2z1)2d=|\overrightarrow{P_1P_2}|=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}

For P=(1,2,4)P=(1,-2,4) and Q=(5,1,8)Q=(5,1,-8), PQ=(4312),\overrightarrow{PQ}=\begin{pmatrix}4\\3\\-12\end{pmatrix}, so PQ=42+32+(12)2=169=13.PQ=\sqrt{4^2+3^2+(-12)^2}=\sqrt{169}=13. The same distance results from QP\overrightarrow{QP} because every component is squared.

Distance is a scalar and cannot be negative. Do not omit the square root when the question asks for distance rather than distance squared, and do not add coordinate changes before squaring them.

Describe and classify vector lines

A vector line is determined by one point and one non-zero direction vector. The parameter moves through every real value, generating every point on the line.

Given information Vector equation
point with position vector a\mathbf a, direction b\mathbf b r=a+tb\mathbf r=\mathbf a+t\mathbf b
points with position vectors c\mathbf c and d\mathbf d r=c+t(dc)\mathbf r=\mathbf c+t(\mathbf d-\mathbf c)

Through C=(1,2,0)C=(1,2,0) and D=(3,1,4)D=(3,-1,4), a direction is CD=(2,3,4)\overrightarrow{CD}=(2,-3,4), so r=(120)+t(234).\mathbf r=\begin{pmatrix}1\\2\\0\end{pmatrix}+t\begin{pmatrix}2\\-3\\4\end{pmatrix}. At t=1t=1 this gives DD, providing a quick check.

Direction-vector test Simultaneous coordinate equations Relationship
scalar multiples parallel (or the same line if they share a point)
not scalar multiples one consistent pair of parameters satisfies all three coordinates intersecting
not scalar multiples no pair satisfies all three coordinates skew

Use different parameters for different lines. Solving only two coordinate equations is not enough: substitute the resulting parameters into the third. In three dimensions, lines that are not parallel need not intersect; they may be skew.

Use the scalar product for angles

The scalar product converts two vectors into a number that measures directional alignment. Its component form calculates the value; its geometric form connects that value to the angle between the vectors.

ab=a1b1+a2b2+a3b3=abcosθ\mathbf a\cdot\mathbf b=a_1b_1+a_2b_2+a_3b_3=|\mathbf a||\mathbf b|\cos\theta

For non-zero a=(122)\mathbf a=\begin{pmatrix}1\\2\\2\end{pmatrix} and b=(201)\mathbf b=\begin{pmatrix}2\\0\\1\end{pmatrix}, ab=4,a=3,b=5,\mathbf a\cdot\mathbf b=4,\quad |\mathbf a|=3,\quad|\mathbf b|=\sqrt5, so θ=cos1 ⁣(435)53.4.\theta=\cos^{-1}\!\left(\frac{4}{3\sqrt5}\right)\approx53.4^\circ. For the acute angle between two lines, use the absolute value of the cosine because either direction vector may be reversed.

If non-zero vectors satisfy ab=0\mathbf a\cdot\mathbf b=0, then cosθ=0\cos\theta=0 and they are perpendicular. For example, (1,2,2)(2,1,2)=2+24=0(1,2,2)\cdot(2,1,-2)=2+2-4=0. This condition can locate the foot of a perpendicular by making a displacement vector dot a line's direction equal to zero.

The dot product is a scalar, not a vector. The angle formula requires two non-zero vectors. When an angle is attached to named points, form both vectors from the angle's vertex before taking their scalar product.