Skip to main content
ScotlandMathsSyllabus dot point

How do you describe position and direction in three dimensions, and how does the scalar product reveal the angle between two vectors?

Vectors in three dimensions, the magnitude and unit vector, addition and scalar multiplication, the section formula and collinearity, and the scalar product including its use to find the angle between two vectors and to test for perpendicularity.

A focused answer to the SQA Higher Mathematics vectors content, covering three-dimensional vectors, magnitude and unit vectors, addition and scalar multiplication, collinearity and the section formula, and the scalar product used to find the angle between vectors and test perpendicularity.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Magnitude and unit vectors
  3. Collinearity and the section formula
  4. The scalar product
  5. Examples in context
  6. Try this

What this dot point is asking

The SQA wants you to handle vectors in three dimensions, find a magnitude and a unit vector, add and scale vectors, test for collinearity and use the section formula, and apply the scalar product to find the angle between two vectors and to test whether they are perpendicular.

Magnitude and unit vectors

A vector in three dimensions records a displacement in the xx, yy and zz directions. Its magnitude (length) comes from a three-dimensional Pythagoras, and a unit vector is a vector of length 11 pointing the same way, obtained by dividing by the magnitude.

Collinearity and the section formula

Three points are collinear when one connecting vector is a scalar multiple of another and they share a common point. So to test collinearity of AA, BB, CC, form AB\overrightarrow{AB} and BC\overrightarrow{BC} (or AC\overrightarrow{AC}) and check whether one is a scalar multiple of the other. The section formula gives the point dividing ABAB in a given ratio by combining the position vectors in proportion: the point dividing ABAB in ratio m:nm : n has position vector na+mbm+n\dfrac{n\mathbf{a} + m\mathbf{b}}{m + n}.

The scalar product

The scalar (dot) product turns two vectors into a single number, and crucially that number is also abcosθ|\mathbf{a}||\mathbf{b}|\cos\theta. Equating the two forms lets you extract the angle between the vectors, and a zero scalar product signals perpendicularity.

Examples in context

In three-dimensional design and physics the scalar product tests whether two struts meet at a right angle. If two beams point along p=(231)\mathbf{p} = \begin{pmatrix} 2 \\ 3 \\ -1 \end{pmatrix} and q=(111)\mathbf{q} = \begin{pmatrix} 1 \\ -1 \\ -1 \end{pmatrix}, then pq=23+1=0\mathbf{p} \cdot \mathbf{q} = 2 - 3 + 1 = 0, so the beams are perpendicular and the joint is square, a conclusion an engineer reaches with one quick calculation rather than measuring an angle.

Try this

Q1. Find the magnitude of (236)\begin{pmatrix} 2 \\ -3 \\ 6 \end{pmatrix}. [2 marks]

  • Cue. 4+9+36=49=7\sqrt{4 + 9 + 36} = \sqrt{49} = 7.

Q2. Show that (121)\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} and (311)\begin{pmatrix} 3 \\ -1 \\ 1 \end{pmatrix} are perpendicular. [2 marks]

  • Cue. Scalar product =321=0= 3 - 2 - 1 = 0, so they are perpendicular.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA Higher 20205 marksThe points A(1,1,2)A(1, -1, 2), B(3,0,4)B(3, 0, 4) and C(7,2,8)C(7, 2, 8) are given. Show that AA, BB and CC are collinear, and state the ratio in which BB divides ACAC.
Show worked answer →

Find direction vectors. AB=BA=(212)\overrightarrow{AB} = B - A = \begin{pmatrix} 2 \\ 1 \\ 2 \end{pmatrix} and AC=CA=(636)\overrightarrow{AC} = C - A = \begin{pmatrix} 6 \\ 3 \\ 6 \end{pmatrix} (2 marks).

Observe AC=3AB\overrightarrow{AC} = 3\overrightarrow{AB}, so the vectors are parallel; since they share the common point AA, the three points are collinear (2 marks).

Because AC=3AB\overrightarrow{AC} = 3\overrightarrow{AB}, BB is one third of the way from AA to CC, so AB:BC=1:2\overrightarrow{AB} : \overrightarrow{BC} = 1 : 2 (1 mark). Markers reward both direction vectors, the scalar-multiple link plus the common-point statement, and the ratio.

SQA Higher 20225 marksVectors are given by u=(312)\mathbf{u} = \begin{pmatrix} 3 \\ -1 \\ 2 \end{pmatrix} and v=(142)\mathbf{v} = \begin{pmatrix} 1 \\ 4 \\ -2 \end{pmatrix}. Calculate the size of the angle between u\mathbf{u} and v\mathbf{v}, giving your answer to the nearest degree.
Show worked answer →

Scalar product: uv=3(1)+(1)(4)+2(2)=344=5\mathbf{u} \cdot \mathbf{v} = 3(1) + (-1)(4) + 2(-2) = 3 - 4 - 4 = -5 (1 mark).

Magnitudes: u=9+1+4=14|\mathbf{u}| = \sqrt{9 + 1 + 4} = \sqrt{14} and v=1+16+4=21|\mathbf{v}| = \sqrt{1 + 16 + 4} = \sqrt{21} (2 marks).

Then cosθ=51421=52940.2916\cos\theta = \dfrac{-5}{\sqrt{14}\sqrt{21}} = \dfrac{-5}{\sqrt{294}} \approx -0.2916 (1 mark), so θ=cos1(0.2916)107\theta = \cos^{-1}(-0.2916) \approx 107^\circ (1 mark). Markers reward the scalar product, both magnitudes, and the angle from the cosine, noting the negative value gives an obtuse angle.

Related dot points

Sources & how we know this