P4.8 Vectors in two and three dimensions
⤓ Presentation⤓ PowerPointPresentation: opens offline in any browser, simulations live. PowerPoint: editable.
Pure Mathematics 4 (A2), specification sections 7.1–7.7. The vector (cross) product and the equations of planes are not part of this unit; vectors for velocity and force are on the Mechanics pages.
What this page covers
7 points
- Vectors in two and three dimensions in \(\mathbf i,\mathbf j,\mathbf k\) and column form; magnitude and unit vectors
- Adding vectors, multiplying by scalars, parallel vectors and collinear points
- Position vectors, \(\overrightarrow{AB}=\mathbf b-\mathbf a\), dividing a line segment in a ratio, and the distance between two points
- The vector equation of a line, \(\mathbf r=\mathbf a+t\mathbf d\), and testing whether a point lies on it
- Parallel, intersecting and skew lines, and the point of intersection
- The scalar product: angles between vectors and between lines, perpendicular vectors
- The foot of the perpendicular from a point to a line, the shortest distance to a line, and areas of triangles
In one minute
6 points
- Almost every vector question reduces to three moves: subtract position vectors to get a direction, set components equal to find where things meet, and use the scalar product to test for right angles and find angles.
- Magnitude: \(|x\mathbf i+y\mathbf j+z\mathbf k|=\sqrt{x^2+y^2+z^2}\). A unit vector is the vector divided by its magnitude.
- Position vectors: \(\overrightarrow{AB}=\mathbf b-\mathbf a\); the distance \(AB=|\mathbf b-\mathbf a|\). Parallel vectors are scalar multiples of each other.
- Line: \(\mathbf r=\mathbf a+t\mathbf d\), through the point with position vector \(\mathbf a\) in the direction \(\mathbf d\). Through \(A\) and \(B\): use \(\mathbf d=\mathbf b-\mathbf a\).
- Two lines: parallel if the directions are multiples; otherwise solve two component equations for the two parameters and test the third: it works, they intersect; it fails, they are skew.
- Scalar product: \(\mathbf a\cdot\mathbf b=a_1b_1+a_2b_2+a_3b_3=|\mathbf a||\mathbf b|\cos\theta\). Perpendicular \(\Leftrightarrow\mathbf a\cdot\mathbf b=0\). Foot of the perpendicular: \(\overrightarrow{PF}\cdot\mathbf d=0\).
Contents
13 sections
- How do you describe a vector and find its magnitude?
- How do position vectors give directions, distances and ratios?
- What is the vector equation of a line?
- Are two lines parallel, intersecting or skew?
- What is the scalar product, and how does it give angles?
- How do you find the foot of the perpendicular from a point to a line?
- How do you find the area of a triangle with vectors?
- Exam tips
- Common misconceptions
- How this topic connects
- Key formulae
- Check your understanding
- Specification checklist
How do you describe a vector and find its magnitude?
A vector has a size (magnitude) and a direction. In three dimensions we use three perpendicular unit vectors: \(\mathbf i\) along the \(x\)-axis, \(\mathbf j\) along the \(y\)-axis and \(\mathbf k\) along the \(z\)-axis. The same vector can be written in either of two forms: \(2\mathbf i+3\mathbf j+6\mathbf k=\begin{pmatrix}2\\3\\6\end{pmatrix}\). In two dimensions there is no \(\mathbf k\): \(5\mathbf i-12\mathbf j=\begin{pmatrix}5\\-12\end{pmatrix}\).
The magnitude comes from Pythagoras, used twice in 3D: once across the floor, once up the vertical edge. A unit vector has magnitude 1; the unit vector in the direction of \(\mathbf a\) is \(\hat{\mathbf a}=\frac{\mathbf a}{|\mathbf a|}\), and a vector of magnitude \(k\) in the direction of \(\mathbf a\) is \(k\hat{\mathbf a}\). In 2D the direction can also be given as an angle: \(5\mathbf i-12\mathbf j\) makes \(\tan^{-1}\frac{12}5=67.4°\) with \(\mathbf i\), measured below it.
The point \(P\) has coordinates \((2,3,6)\) and \(O\) is the origin. (a) Find \(|\overrightarrow{OP}|\). (b) Find a unit vector in the direction of \(\overrightarrow{OP}\). (c) Find the vector of magnitude 21 in the same direction as \(\overrightarrow{OP}\). (d) Given that \(|p\mathbf i+4\mathbf j-4\mathbf k|=9\), find the possible values of the constant \(p\).
(a) \(|\overrightarrow{OP}|=\sqrt{2^2+3^2+6^2}=\sqrt{49}=\) 7.
(b) Divide by the magnitude: \(\frac17(2\mathbf i+3\mathbf j+6\mathbf k)\) (check: \(\frac{4+9+36}{49}=1\) ✓).
(c) \(21\times\) the unit vector \(=3\overrightarrow{OP}=\) \(6\mathbf i+9\mathbf j+18\mathbf k\).
(d) Square both sides: \(p^2+16+16=81\Rightarrow p^2=49\Rightarrow\) \(p=7\) or \(p=-7\).
Squaring a negative component as a negative: \(|3\mathbf i-4\mathbf j|=\sqrt{9-16}\) is wrong. Every component is squared, so the magnitude is \(\sqrt{9+16}=5\). Use brackets on the calculator: \((-4)^2\).
How do position vectors give directions, distances and ratios?
The position vector of a point \(A\) is \(\overrightarrow{OA}=\mathbf a\), the vector from the origin to \(A\); its components are the coordinates of \(A\). To go from \(A\) to \(B\), go back to \(O\) and out to \(B\): \(\overrightarrow{AB}=-\mathbf a+\mathbf b=\mathbf b-\mathbf a\) ("end minus start"). The distance between the points is \(AB=|\mathbf b-\mathbf a|=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}\); for example, \((1,2,-2)\) to \((4,6,10)\) is \(\sqrt{9+16+144}=13\).
Vectors are added and multiplied by scalars component by component. Parallel vectors are scalar multiples: \(6\mathbf i-3\mathbf j\) and \(-2\mathbf i+\mathbf j\) are parallel (\(-3\) times). Points \(A\), \(B\), \(C\) are collinear if \(\overrightarrow{AC}\) is a multiple of \(\overrightarrow{AB}\); the shared point \(A\) rules out two separate parallel lines. The point \(P\) on \(AB\) with \(AP:PB=\lambda:\mu\) has \(\overrightarrow{OP}=\mathbf a+\frac{\lambda}{\lambda+\mu}(\mathbf b-\mathbf a)\); the midpoint is \(\frac12(\mathbf a+\mathbf b)\).
Relative to a fixed origin \(O\), the points \(A\) and \(B\) have position vectors \(\mathbf i+4\mathbf j\) and \(7\mathbf i+\mathbf j\) respectively. (a) Find \(\overrightarrow{AB}\) and the exact distance \(AB\). (b) The point \(P\) lies on \(AB\) with \(AP:PB=2:1\). Find the position vector of \(P\). (c) The point \(C\) has position vector \(9\mathbf i\). Show that \(A\), \(B\) and \(C\) are collinear and find the ratio \(AB:BC\). (d) Find the angle between \(\overrightarrow{AB}\) and \(\mathbf i\).
(a) End minus start: \(\overrightarrow{AB}=(7\mathbf i+\mathbf j)-(\mathbf i+4\mathbf j)=\) \(6\mathbf i-3\mathbf j\), and \(AB=\sqrt{36+9}=\sqrt{45}=\) \(3\sqrt5\).
(b) Two thirds of the way from \(A\): \(\overrightarrow{OP}=(\mathbf i+4\mathbf j)+\frac23(6\mathbf i-3\mathbf j)=\) \(5\mathbf i+2\mathbf j\).
(c) \(\overrightarrow{BC}=9\mathbf i-(7\mathbf i+\mathbf j)=2\mathbf i-\mathbf j\), and \(\overrightarrow{AB}=3(2\mathbf i-\mathbf j)=3\overrightarrow{BC}\). \(\overrightarrow{AB}\) and \(\overrightarrow{BC}\) are parallel and share the point \(B\), so \(A\), \(B\), \(C\) are collinear, with \(AB:BC=3:1\).
(d) Right-angled triangle with sides 6 and 3: \(\tan^{-1}\frac36=\) 26.6°, measured below \(\mathbf i\).
For collinearity, write the multiple explicitly (\(\overrightarrow{AB}=3\overrightarrow{BC}\)) and name the common point. "The vectors are parallel" on its own only shows that the lines are parallel.
What is the vector equation of a line?
Start at a known point on the line (position vector \(\mathbf a\)) and move any multiple of a direction vector \(\mathbf d\). Every point on the line has position vector
The equation is not unique: any point on the line can replace \(\mathbf a\), and any non-zero multiple of \(\mathbf d\) is still a direction vector. To test whether a point is on the line, set \(\mathbf a+t\mathbf d\) equal to its position vector, find \(t\) from one component, then check that the same \(t\) works in the other two. Each value of \(t\) gives one point; if \(|\mathbf d|=3\), consecutive integer values of \(t\) are 3 units apart. Where the line crosses a coordinate plane, one component is zero: \(z=0\) on the \(xy\)-plane.
The points \(A\) and \(B\) have coordinates \((4,1,5)\) and \((3,3,3)\). The line \(l\) passes through \(A\) and \(B\). (a) Find a vector equation of \(l\). (b) Show that the point \(C(2,5,1)\) lies on \(l\), and find the distance \(AC\). (c) Determine whether the point \(D(5,-1,6)\) lies on \(l\). (d) Find the coordinates of the point where \(l\) meets the \(xy\)-plane.
(a) Direction \(=\overrightarrow{AB}=(3-4)\mathbf i+(3-1)\mathbf j+(3-5)\mathbf k=-\mathbf i+2\mathbf j-2\mathbf k\). So \(\mathbf r=(4\mathbf i+\mathbf j+5\mathbf k)+t(-\mathbf i+2\mathbf j-2\mathbf k)\).
(b) \(x\): \(4-t=2\Rightarrow t=2\). \(y\): \(1+2(2)=5\) ✓. \(z\): \(5-2(2)=1\) ✓. So \(C\) lies on \(l\). \(AC=|2\mathbf d|=2\times\sqrt{1+4+4}=\) 6.
(c) \(x\): \(4-t=5\Rightarrow t=-1\). \(y\): \(1-2=-1\) ✓. \(z\): \(5+2=7\ne6\). So \(D\) is not on \(l\).
(d) On the \(xy\)-plane \(z=0\): \(5-2t=0\Rightarrow t=\frac52\), giving \((1.5,6,0)\).
Using the position vector of \(B\) as the direction: \(\mathbf r=\mathbf a+t\mathbf b\) is a line through \(A\) parallel to \(\overrightarrow{OB}\), not the line \(AB\). The direction is always a difference of two position vectors.
Are two lines parallel, intersecting or skew?
| Test | Result | Conclusion |
|---|---|---|
| Are the direction vectors multiples of each other? | yes, and a point of one line lies on the other | the same line |
| yes, but no shared point | parallel (distinct) | |
| If not parallel: equate components, solve two equations for \(\lambda\) and \(\mu\) | the third equation is satisfied | intersecting: substitute \(\lambda\) (or \(\mu\)) for the point |
| the third equation fails | skew: not parallel and never meet |
Use different parameters for the two lines (\(\lambda\) and \(\mu\)): the lines meet when the same point is reached, not at the same parameter value. Skew lines exist only in three dimensions; in a plane, two non-parallel lines always meet. After finding a point of intersection, substitute \(\mu\) into the second line as a check: both lines must give the same coordinates.
The lines \(l_1\), \(l_2\), \(l_3\) and \(l_4\) have equations \(l_1:\ \mathbf r=(\mathbf i+2\mathbf j-\mathbf k)+\lambda(2\mathbf i-\mathbf j+3\mathbf k)\), \(l_2:\ \mathbf r=(2\mathbf i+6\mathbf j+2\mathbf k)+\mu(\mathbf i-2\mathbf j+\mathbf k)\), \(l_3:\ \mathbf r=(\mathbf j+2\mathbf k)+s(4\mathbf i-2\mathbf j+6\mathbf k)\), \(l_4:\ \mathbf r=(3\mathbf i+\mathbf j)+v(\mathbf i+\mathbf j+\mathbf k)\). (a) Show that \(l_1\) and \(l_2\) intersect, and find the coordinates of their point of intersection. (b) Show that \(l_1\) and \(l_3\) are parallel but are not the same line. (c) Show that \(l_2\) and \(l_4\) are skew.
(a) Equate components. \(\mathbf i\): \(1+2\lambda=2+\mu\). \(\mathbf j\): \(2-\lambda=6-2\mu\). \(\mathbf k\): \(-1+3\lambda=2+\mu\). From \(\mathbf i\): \(\mu=2\lambda-1\). Into \(\mathbf j\): \(2-\lambda=6-4\lambda+2\Rightarrow3\lambda=6\Rightarrow\lambda=2\), \(\mu=3\). Check \(\mathbf k\): \(-1+3(2)=5\) and \(2+3=5\) ✓, so the lines intersect at \((5,0,5)\).
(b) \(4\mathbf i-2\mathbf j+6\mathbf k=2(2\mathbf i-\mathbf j+3\mathbf k)\), so \(l_3\parallel l_1\). Is \((0,1,2)\) on \(l_1\)? \(x\): \(1+2\lambda=0\Rightarrow\lambda=-\frac12\); then \(y=2+\frac12=2.5\ne1\). So the lines are parallel but distinct.
(c) Not parallel (\(\mathbf i+\mathbf j+\mathbf k\) is not a multiple of \(\mathbf i-2\mathbf j+\mathbf k\)). Equate components. \(\mathbf i\): \(2+\mu=3+v\). \(\mathbf j\): \(6-2\mu=1+v\). Subtracting: \(3\mu-4=2\), so \(\mu=2\), \(v=1\). \(\mathbf k\): \(2+\mu=4\) but \(v=1\); \(4\ne1\), so the lines do not meet. Not parallel and not meeting: skew.
A conclusion about skew lines needs both halves in writing: "the direction vectors are not parallel" and "the third equation is not satisfied, so the lines do not intersect". Either half alone is incomplete.
What is the scalar product, and how does it give angles?
For non-zero vectors, perpendicular means \(\mathbf a\cdot\mathbf b=0\) (\(\cos90°=0\)), the 3D version of \(m_1m_2=-1\). Also \(\mathbf a\cdot\mathbf a=|\mathbf a|^2\); \(\mathbf i\cdot\mathbf i=\mathbf j\cdot\mathbf j=\mathbf k\cdot\mathbf k=1\) and \(\mathbf i\cdot\mathbf j=\mathbf j\cdot\mathbf k=\mathbf k\cdot\mathbf i=0\).
For the angle between two lines, use their direction vectors only. If the scalar product is negative, \(\theta\) is obtuse and the acute angle between the lines is \(180°-\theta\). For the angle at a vertex of a triangle, \(\angle BAC\), use \(\overrightarrow{AB}\) and \(\overrightarrow{AC}\), both starting at \(A\); using \(\overrightarrow{BA}\) with \(\overrightarrow{AC}\) gives \(180°-\angle BAC\). Finally, \(|\mathbf b|\cos\theta\) is the length of the projection of \(\mathbf b\) onto the direction of \(\mathbf a\), the idea behind the foot of a perpendicular in the next section.
(a) Find the angle between the vectors \(6\mathbf i+2\mathbf j\) and \(2\mathbf i+4\mathbf j\). (b) Find the value of the constant \(p\) for which \(p\mathbf i+2\mathbf j-\mathbf k\) and \(3\mathbf i+p\mathbf j+4\mathbf k\) are perpendicular. (c) Find the acute angle between the lines \(l_1\) and \(l_2\) of worked example 4. (d) Find the acute angle between two lines with direction vectors \(\mathbf i+2\mathbf j-2\mathbf k\) and \(3\mathbf i+4\mathbf k\).
(a) \(12+8=20\); \(\sqrt{40}\times\sqrt{20}=\sqrt{800}=20\sqrt2\). So \(\cos\theta=\frac1{\sqrt2}\) and \(\theta=45°\).
(b) Perpendicular \(\Leftrightarrow\) scalar product zero: \(3p+2p-4=0\Rightarrow\) \(p=\frac45\).
(c) Use the directions \(2\mathbf i-\mathbf j+3\mathbf k\) and \(\mathbf i-2\mathbf j+\mathbf k\): \(2+2+3=7\); \(\sqrt{14}\times\sqrt6=\sqrt{84}\). \(\cos\theta=\frac7{\sqrt{84}}=0.7638\), so \(\theta=40.2°\).
(d) \(3+0-8=-5\); \(|\mathbf i+2\mathbf j-2\mathbf k|=3\), \(|3\mathbf i+4\mathbf k|=5\). \(\cos\theta=-\frac13\Rightarrow\theta=109.5°\). Acute angle between the lines \(=180°-109.5°=\) 70.5°.
Using the position vectors of points on the lines (such as \(\mathbf i+2\mathbf j-\mathbf k\)) instead of the direction vectors when finding the angle between two lines. The angle depends only on the directions.
How do you find the foot of the perpendicular from a point to a line?
The foot \(F\) is the point on the line nearest to \(P\); there, \(\overrightarrow{PF}\) is perpendicular to the line. Method: (1) write the general point of the line, \(F=\mathbf a+t\mathbf d\), in components; (2) form \(\overrightarrow{PF}=\overrightarrow{OF}-\overrightarrow{OP}\) in terms of \(t\); (3) solve \(\overrightarrow{PF}\cdot\mathbf d=0\) for \(t\); (4) substitute back for \(F\). The shortest distance from \(P\) to the line is \(|\overrightarrow{PF}|\). The image (reflection) of \(P\) in the line is \(P'\), with \(F\) as the midpoint of \(PP'\): \(\overrightarrow{OP'}=2\overrightarrow{OF}-\overrightarrow{OP}\).
The line \(l\) has equation \(\mathbf r=(2\mathbf i+\mathbf j-\mathbf k)+t(\mathbf i+2\mathbf j+2\mathbf k)\). The point \(P\) has coordinates \((0,9,1)\). (a) Find the coordinates of the foot of the perpendicular from \(P\) to \(l\). (b) Find the shortest distance from \(P\) to \(l\). (c) Find the coordinates of the image of \(P\) in the line \(l\).
(a) General point \(F=(2+t,1+2t,-1+2t)\), so \(\overrightarrow{PF}=(2+t)\mathbf i+(-8+2t)\mathbf j+(-2+2t)\mathbf k\). Perpendicular to \(\mathbf i+2\mathbf j+2\mathbf k\): \((2+t)+2(-8+2t)+2(-2+2t)=9t-18=0\Rightarrow t=2\), so \(F(4,5,3)\).
(b) \(\overrightarrow{PF}=4\mathbf i-4\mathbf j+2\mathbf k\), so \(|\overrightarrow{PF}|=\sqrt{16+16+4}=\) 6.
(c) \(F\) is the midpoint of \(PP'\): \(\overrightarrow{OP'}=2(4,5,3)-(0,9,1)\), so \(P'(8,1,5)\).
Check with Pythagoras: the point \((2,1,-1)\) on \(l\) is \(\sqrt{72}\) from \(P\) and \(2\times3=6\) from \(F\) along the line; \(6^2+6^2=72\) ✓.
Set \(\overrightarrow{PF}\cdot\mathbf d=0\) with the direction vector of the line, never with the position vector \(\mathbf a\). Write \(\overrightarrow{PF}\) in full, in terms of \(t\), before taking the scalar product; a sign slip in that subtraction carries through to every later answer.
How do you find the area of a triangle with vectors?
Find two sides from the same vertex, \(\overrightarrow{AB}\) and \(\overrightarrow{AC}\), and the angle \(\theta=\angle BAC\) from the scalar product. Then area \(=\frac12|\overrightarrow{AB}||\overrightarrow{AC}|\sin\theta\); for an exact answer, get \(\sin\theta\) from \(\cos\theta\) with \(\sin^2\theta=1-\cos^2\theta\). Alternatively, area \(=\frac12\times\) base \(\times\) perpendicular height, with the height from the foot of the perpendicular from \(C\) to the line \(AB\). A parallelogram with adjacent sides \(AB\) and \(AC\) has twice the area of the triangle; its fourth vertex is \(D\) with \(\overrightarrow{OD}=\mathbf b+\mathbf c-\mathbf a\).
The points \(A\), \(B\) and \(C\) have coordinates \((1,0,2)\), \((3,4,6)\) and \((4,1,4)\). (a) Show that triangle \(ABC\) is isosceles. (b) Find the size of angle \(BAC\), in degrees to 1 decimal place. (c) Find a vector equation of the line \(AB\), and the coordinates of the foot \(F\) of the perpendicular from \(C\) to \(AB\). (d) Find the exact area of triangle \(ABC\). (e) The point \(D\) is such that \(ABDC\) is a parallelogram. Find the coordinates of \(D\) and the area of the parallelogram, to 3 significant figures.
(a) \(\overrightarrow{AB}=2\mathbf i+4\mathbf j+4\mathbf k\), \(\overrightarrow{AC}=3\mathbf i+\mathbf j+2\mathbf k\), \(\overrightarrow{BC}=\mathbf i-3\mathbf j-2\mathbf k\). \(AB=\sqrt{36}=6\), \(AC=\sqrt{14}\), \(BC=\sqrt{1+9+4}=\sqrt{14}\). So \(AC=BC\): isosceles.
(b) \(\overrightarrow{AB}\cdot\overrightarrow{AC}=6+4+8=18\), so \(\cos\theta=\frac{18}{6\sqrt{14}}=\frac3{\sqrt{14}}\) and \(\theta=36.7°\).
(c) Use the direction \(\frac12\overrightarrow{AB}=\mathbf i+2\mathbf j+2\mathbf k\): \(\mathbf r=(\mathbf i+2\mathbf k)+t(\mathbf i+2\mathbf j+2\mathbf k)\). Then \(\overrightarrow{CF}=(t-3)\mathbf i+(2t-1)\mathbf j+(2t-2)\mathbf k\), and \((t-3)+2(2t-1)+2(2t-2)=9t-9=0\Rightarrow t=1\): \(F(2,2,4)\), the midpoint of \(AB\).
(d) Height \(CF=|-2\mathbf i+\mathbf j|=\sqrt5\), so area \(=\frac12\times6\times\sqrt5=\) \(3\sqrt5\). Check: \(\sin\theta=\sqrt{1-\frac9{14}}=\sqrt{\frac5{14}}\), and \(\frac12\times6\times\sqrt{14}\times\sqrt{\frac5{14}}=3\sqrt5\) ✓.
(e) \(AB\) and \(AC\) are adjacent sides, so \(\overrightarrow{BD}=\overrightarrow{AC}\): \(\overrightarrow{OD}=(3,4,6)+(3,1,2)\), giving \(D(6,5,8)\); area \(=2\times3\sqrt5=6\sqrt5=\) 13.4.
Using \(\frac12|\overrightarrow{AB}||\overrightarrow{AC}|\cos\theta\) for the area, or the angle between \(\overrightarrow{BA}\) and \(\overrightarrow{AC}\). The area formula uses sine, and the two vectors must both start at the vertex whose angle you want.
Exam tips for P4.8
For any question about a point on a line (intersection, foot of a perpendicular, a point at a given distance), start by writing the general point in components, such as \((2+t,1+2t,-1+2t)\). Everything else is substitution.
When two lines are tested, two of the component equations find \(\lambda\) and \(\mu\); the third decides the answer. Always show the third substitution with both values, even when the question says the lines meet.
"Exact" means surds such as \(3\sqrt5\) and fractions such as \(\frac45\). Angles are usually asked for in degrees to 1 decimal place; keep the full calculator value of \(\cos\theta\) until the last step.
A direction vector can be divided by a common factor: \(2\mathbf i+4\mathbf j+4\mathbf k\) can be replaced by \(\mathbf i+2\mathbf j+2\mathbf k\). Smaller numbers mean fewer slips, and the angle and the line are unchanged.
Vector answers are easy to check: substitute an intersection point into both lines, confirm \(\overrightarrow{PF}\cdot\mathbf d=0\) with your final \(F\), or compare an area found with \(\sin\theta\) against \(\frac12\times\) base \(\times\) height.
Common misconceptions
| Misconception | Why it is wrong | Correct idea |
|---|---|---|
| \(\overrightarrow{AB}=\mathbf a-\mathbf b\). | From \(A\) to \(B\) you go back along \(\mathbf a\) and out along \(\mathbf b\). | \(\overrightarrow{AB}=\mathbf b-\mathbf a\): end minus start. |
| Two lines that do not meet must be parallel. | In three dimensions, non-parallel lines can pass each other at different heights. | Lines that are not parallel and do not meet are skew. |
| Two lines meet if \(\lambda=\mu\) at some point. | The parameters belong to different lines and need not be equal. | Lines meet if some pair of values gives the same point in all three components. |
| The scalar product of two vectors is a vector. | Multiplying matching components and adding gives a single number. | \(\mathbf a\cdot\mathbf b\) is a scalar; it is zero exactly when non-zero vectors are perpendicular. |
| The angle between two lines can be obtuse. | Two crossing lines make two angles that add to 180°; the convention is the smaller one. | If \(\cos\theta<0\), the angle between the lines is \(180°-\theta\). |
| A vector equation of a line is unique. | Any point on the line and any multiple of the direction describe the same line. | Check equivalence: parallel directions and a shared point. |
How this topic connects
P1 straight lines and trigonometry
The distance formula and midpoint extend to three dimensions with a \(z\) term; \(m_1m_2=-1\) becomes \(\mathbf a\cdot\mathbf b=0\); and the cosine rule gives the same angles as the scalar product when all three sides are known.
Mechanics
Displacement, velocity and force are vectors in \(\mathbf i\) and \(\mathbf j\); position = initial position + time × velocity, \(\mathbf r=\mathbf r_0+t\mathbf v\), is exactly the vector equation of a line with time as the parameter. Work done by a constant force is a scalar product, and closest-approach problems use the same perpendicular condition as the foot of a perpendicular.
IAL Physics
Resolving forces, work \(=\mathbf F\cdot\mathbf s\) and the components of velocity in projectile motion all use the vector ideas on this page.
Key formulae
| Formula | Use | In the formulae list? |
|---|---|---|
| \(|x\mathbf i+y\mathbf j+z\mathbf k|=\sqrt{x^2+y^2+z^2}\) | magnitude of a vector | No — learn it |
| \(\hat{\mathbf a}=\mathbf a\div|\mathbf a|\) | unit vector in the direction of \(\mathbf a\) | No — learn it |
| \(\overrightarrow{AB}=\mathbf b-\mathbf a\); \(AB=|\mathbf b-\mathbf a|\) | vector and distance between two points | No — learn it |
| \(\overrightarrow{OP}=\mathbf a+\frac{\lambda}{\lambda+\mu}(\mathbf b-\mathbf a)\) | point dividing \(AB\) in the ratio \(\lambda:\mu\) | No — derive it |
| \(\mathbf r=\mathbf a+t\mathbf d\) | vector equation of a line | No — learn it |
| \(\mathbf a\cdot\mathbf b=a_1b_1+a_2b_2+a_3b_3=|\mathbf a||\mathbf b|\cos\theta\) | angle between vectors or lines; \(\mathbf a\cdot\mathbf b=0\) for perpendicular vectors | No — learn it |
| Area \(=\frac12|\overrightarrow{AB}||\overrightarrow{AC}|\sin\theta\) | area of a triangle from two sides and the included angle | No — learn it |
Check your understanding
1. Find the magnitude of \(2\mathbf i-3\mathbf j+6\mathbf k\).
\(\sqrt{4+9+36}=\sqrt{49}=7\).
2. Show that \(\mathbf i+2\mathbf j+3\mathbf k\) and \(4\mathbf i-5\mathbf j+2\mathbf k\) are perpendicular.
Scalar product: \(4-10+6=0\), and neither vector is zero, so they are perpendicular.
3. Does the point \((5,1,9)\) lie on the line \(\mathbf r=(\mathbf i-\mathbf j+3\mathbf k)+t(2\mathbf i+\mathbf j+3\mathbf k)\)?
\(x\): \(1+2t=5\) gives \(t=2\); then \(y=-1+2=1\) ✓ and \(z=3+6=9\) ✓. Yes, at \(t=2\).
4. Explain why lines with direction vectors \(2\mathbf i-4\mathbf j+6\mathbf k\) and \(-\mathbf i+2\mathbf j-3\mathbf k\) are parallel.
\(2\mathbf i-4\mathbf j+6\mathbf k=-2(-\mathbf i+2\mathbf j-3\mathbf k)\): one direction is a scalar multiple of the other. (They could still be the same line; test a point.)
5. Find the distance between the points \((2,4,7)\) and \((5,0,7)\).
The difference is \(3\mathbf i-4\mathbf j+0\mathbf k\), so the distance is \(\sqrt{9+16+0}=5\).
Specification checklist
- (P4 7.1) I can write vectors in two and three dimensions using \(\mathbf i\), \(\mathbf j\) and \(\mathbf k\) or as column vectors, and switch between the two forms.
- (P4 7.2) I can find the magnitude of a vector, the unit vector in its direction, and a vector of a given magnitude in a given direction.
- (P4 7.3) I can add and subtract vectors and multiply them by scalars, and I know that parallel vectors are scalar multiples of each other.
- (P4 7.4) I can use position vectors and \(\overrightarrow{AB}=\mathbf b-\mathbf a\), find the point dividing a segment in a given ratio, and show that three points are collinear.
- (P4 7.5) I can find the distance between two points in two or three dimensions.
- (P4 7.6) I can write a vector equation of a line through a point in a given direction, or through two points, and decide whether a given point lies on it.
- (P4 7.6) I can decide whether two lines are the same, parallel, intersecting or skew, and find the point where two lines intersect.
- (P4 7.7) I can calculate a scalar product and use it to find the angle between two vectors or the acute angle between two lines, and to show that vectors are perpendicular.
- (P4 7.7) I can find the foot of the perpendicular from a point to a line, the shortest distance from the point to the line, and the area of a triangle using vectors.