Study Guide

Vector fundamentals and dot product

IB Mathematics: Analysis and Approaches HLΒ· IB AA HL Syllabus 3.12Β· 15 min read

1. Vector Fundamentals in 2D and 3Dβ˜…β˜…β˜†β˜†β˜†β± 4 min

πŸ“˜ Definition

Position Vector

v⃗=(vxvyvz)=vxi^+vyj^+vzk^\vec{v} = \begin{pmatrix} v_x \\ v_y \\ v_z \end{pmatrix} = v_x \hat{i} + v_y \hat{j} + v_z \hat{k}

A position vector connects the origin to a point in 3D space, with components equal to the coordinates of the point.

Example:

The position vector of point is .

The magnitude (length) of a vector is calculated using the 3D extension of Pythagoras' theorem:

∣vβƒ—βˆ£=vx2+vy2+vz2|\vec{v}| = \sqrt{v_x^2 + v_y^2 + v_z^2}

A unit vector in the direction of oxed{\vec{v}} is found by dividing oxed{\vec{v}} by its own magnitude.

πŸ“ Worked Example

Find the unit vector in the direction of

  1. 1

    First calculate the magnitude of :

  2. 2
    ∣vβƒ—βˆ£=22+(βˆ’1)2+42=4+1+16=21|\vec{v}| = \sqrt{2^2 + (-1)^2 + 4^2} = \sqrt{4 + 1 + 16} = \sqrt{21}
  3. 3

    Divide each component of by the magnitude to get the unit vector:

  4. 4
    v^=121(2i^βˆ’j^+4k^)=221i^βˆ’121j^+421k^\hat{v} = \frac{1}{\sqrt{21}} (2\hat{i} - \hat{j} + 4\hat{k}) = \frac{2}{\sqrt{21}}\hat{i} - \frac{1}{\sqrt{21}}\hat{j} + \frac{4}{\sqrt{21}}\hat{k}

2. Algebraic Definition of the Dot Productβ˜…β˜…β˜†β˜†β˜†β± 5 min

πŸ“˜ Definition

Dot Product (Scalar Product)

v⃗⋅w⃗\vec{v} \cdot \vec{w}

For two vectors and , the dot product is the sum of the products of corresponding components.

Example:

If and , then .

v⃗⋅w⃗=vxwx+vywy+vzwz\vec{v} \cdot \vec{w} = v_x w_x + v_y w_y + v_z w_z

The dot product follows standard algebraic properties: it is commutative () and distributive over vector addition ().

πŸ“ Worked Example

Calculate where and

  1. 1

    Write out all components, including the zero -component for : ,

  2. 2

    Multiply corresponding components and sum the results:

  3. 3
    aβƒ—β‹…bβƒ—=(3)(βˆ’1)+(0)(4)+(βˆ’2)(1)=βˆ’3+0βˆ’2=βˆ’5\vec{a} \cdot \vec{b} = (3)(-1) + (0)(4) + (-2)(1) = -3 + 0 - 2 = -5

3. Geometric Interpretation: Angles Between Vectorsβ˜…β˜…β˜…β˜†β˜†β± 6 min

The geometric definition of the dot product connects it to the angle between two vectors placed tail-to-tail, where :

vβƒ—β‹…wβƒ—=∣vβƒ—βˆ£βˆ£wβƒ—βˆ£cos⁑θ\vec{v} \cdot \vec{w} = |\vec{v}||\vec{w}|\cos\theta

Rearranging this formula gives us a way to calculate the angle between any two non-zero vectors:

cos⁑θ=vβƒ—β‹…wβƒ—βˆ£vβƒ—βˆ£βˆ£wβƒ—βˆ£\cos\theta = \frac{\vec{v} \cdot \vec{w}}{|\vec{v}||\vec{w}|}
πŸ“ Worked Example

Find the angle between and , to the nearest degree

  1. 1

    Calculate the dot product of the two vectors:

  2. 2
    pβƒ—β‹…qβƒ—=(2)(1)+(1)(βˆ’1)+(βˆ’1)(1)=2βˆ’1βˆ’1=0\vec{p} \cdot \vec{q} = (2)(1) + (1)(-1) + (-1)(1) = 2 - 1 - 1 = 0
  3. 3

    Since the dot product is zero and both vectors are non-zero, they are perpendicular:

  4. 4
    θ=90∘\theta = 90^\circ
βœ“ Quick check

Test your understanding:

  1. What is the angle between two non-zero vectors with ?

    • 0Β°

    • 90Β°

    • 180Β°

    • 45Β°

    Reveal answer
    180Β° β€”

    Correct! Rearranging gives , so , meaning the vectors point in opposite directions.

4. Scalar Projection of Vectorsβ˜…β˜…β˜…β˜†β˜†β± 5 min

πŸ“˜ Definition

Scalar Projection

The scalar projection of onto is the signed length of the component of that lies along the direction of .

projwβƒ—vβƒ—=vβƒ—β‹…wβƒ—βˆ£wβƒ—βˆ£\text{proj}_{\vec{w}} \vec{v} = \frac{\vec{v} \cdot \vec{w}}{|\vec{w}|}

A positive projection means the component points in the same direction as , while a negative projection means it points in the opposite direction.

πŸ“ Worked Example

Calculate the scalar projection of onto

  1. 1

    First calculate the dot product and magnitude of :

  2. 2
    vβƒ—β‹…wβƒ—=(3)(1)+(4)(1)+0=7,∣wβƒ—βˆ£=12+12=2\vec{v} \cdot \vec{w} = (3)(1) + (4)(1) + 0 = 7, \quad |\vec{w}| = \sqrt{1^2 + 1^2} = \sqrt{2}
  3. 3

    Substitute into the projection formula and rationalize:

  4. 4
    projw⃗v⃗=72=722\text{proj}_{\vec{w}} \vec{v} = \frac{7}{\sqrt{2}} = \frac{7\sqrt{2}}{2}

5. Common Pitfalls

Wrong move:

Forgetting to include zero components when calculating the dot product

Why:

Vectors written only with non-zero components still have zero components for missing axes that contribute to the calculation

Correct move:

Always write out all components (including zeros) for 3D vectors before calculating the dot product

Wrong move:

Treating the dot product result as a vector instead of a scalar

Why:

The dot product (scalar product) always outputs a single number, not a multi-component vector

Correct move:

Remember the name: scalar product outputs a scalar, cross product outputs a vector

Wrong move:

Using the wrong calculator angle mode for angle questions

Why:

Calculators output different results for radians vs degrees, leading to incorrect final answers

Correct move:

Always check your calculator's angle mode matches the requirement stated in the question

Wrong move:

Assuming a zero dot product means one vector is the zero vector

Why:

The most common case of a zero dot product is two non-zero perpendicular vectors

Correct move:

If the dot product is zero and both vectors are non-zero, conclude they are perpendicular

6. Quick Reference Cheatsheet

Concept

Formula

Vector magnitude

Unit vector

Dot product (algebraic)

Dot product (geometric)

Angle between vectors

Perpendicular condition

Scalar projection

7. Frequently Asked

Is the dot product of two vectors a vector or a scalar?

The dot product (also called the scalar product) always produces a scalar value, unlike the cross product which produces a vector. This is a key distinction you must remember for exams.

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2022 Β· 1

    Find angle between two 3D vectors

  • 2023 Β· 2

    Prove two lines are perpendicular

  • 2024 Β· 1

    Calculate scalar projection of vector

Going deeper

What's Next

Vector fundamentals and the dot product form the foundation for all further vector topics in IB AA HL. You will use the dot product constantly when working with lines and planes in 3D space, from finding angles between lines to calculating distances from points to planes. These skills also underpin cross product calculations, which are used for finding areas of parallelograms and normals to planes. Mastery of these core concepts will make more advanced vector geometry problems much more manageable, as almost all vector problems rely on correctly calculating dot products and interpreting their results.