Study Guide

2D and 3D vectors, dot product and lines

IB Mathematics AA SLΒ· 25 min read

1. Vectors in 2D and 3D Coordinatesβ˜…β˜…β˜†β˜†β˜†β± 10 min

πŸ“˜ Definition

Vector

A quantity with both magnitude (size) and direction, represented as an ordered pair in 2D or triplet in 3D.

Example:

A displacement of 3 units right and 4 units up is written .

Vectors are translation-invariant: two vectors are equal if they have the same components, regardless of their starting point. A position vector is fixed relative to the origin, with components equal to the coordinates of its endpoint.

πŸ“ Worked Example

Find the magnitude of the 3D position vector .

  1. 1

    The formula for the magnitude of a 3D vector is:

  2. 2
    ∣aβƒ—βˆ£=a12+a22+a32|\vec{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}
  3. 3

    Substitute the components of :

  4. 4
    ∣aβƒ—βˆ£=22+(βˆ’3)2+62=4+9+36=49|\vec{a}| = \sqrt{2^2 + (-3)^2 + 6^2} = \sqrt{4 + 9 + 36} = \sqrt{49}
  5. 5

    Simplify to get the final magnitude:

  6. 6
    ∣aβƒ—βˆ£=7|\vec{a}| = 7

2. The Dot Product of Two Vectorsβ˜…β˜…β˜…β˜†β˜†β± 15 min

πŸ“˜ Definition

Dot Product (Scalar Product)

A scalar value calculated from two vectors, using either their components or their magnitudes and the angle between them.

  • Algebraic form (3D):

  • Geometric form: , where is the angle between the vectors

  • Angle formula:

πŸ“ Worked Example

Find the angle between vectors and , correct to 1 decimal place.

  1. 1

    First calculate the dot product:

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

    Calculate magnitudes of each vector:

  4. 4
    ∣aβƒ—βˆ£=12+22+(βˆ’1)2=6β‰ˆ2.449,∣bβƒ—βˆ£=32+(βˆ’1)2+22=14β‰ˆ3.742|\vec{a}| = \sqrt{1^2 + 2^2 + (-1)^2} = \sqrt{6} \approx 2.449, \quad |\vec{b}| = \sqrt{3^2 + (-1)^2 + 2^2} = \sqrt{14} \approx 3.742
  5. 5

    Substitute into the angle formula:

  6. 6
    cos⁑θ=βˆ’1614β‰ˆβˆ’0.1091\cos\theta = \frac{-1}{\sqrt{6}\sqrt{14}} \approx -0.1091
  7. 7

    Take inverse cosine (angles are between 0Β° and 180Β°):

  8. 8
    ΞΈβ‰ˆ96.3∘\theta \approx 96.3^\circ

3. Vector Equations of Linesβ˜…β˜…β˜…β˜†β˜†β± 15 min

Any line can be uniquely defined by one known point on the line and a direction vector that describes the line's orientation. This gives a flexible vector form that works for both 2D and 3D lines.

πŸ“˜ Definition

Vector equation of a line

= position vector of any point on the line, = position vector of a known point on the line, = direction vector, = scalar parameter.

πŸ“ Worked Example

Find the vector equation of the line passing through points and .

  1. 1

    First calculate the direction vector from A to B:

  2. 2
    ABβƒ—=Bβˆ’A=(4βˆ’1βˆ’1βˆ’22βˆ’(βˆ’3))=(3βˆ’35)\vec{AB} = B - A = \begin{pmatrix} 4-1 \\ -1-2 \\ 2 - (-3) \end{pmatrix} = \begin{pmatrix} 3 \\ -3 \\ 5 \end{pmatrix}
  3. 3

    Use point A as the known fixed point, so

  4. 4

    Write the full equation with parameter :

  5. 5
    rβƒ—=(12βˆ’3)+t(3βˆ’35),t∈R\vec{r} = \begin{pmatrix} 1 \\ 2 \\ -3 \end{pmatrix} + t\begin{pmatrix} 3 \\ -3 \\ 5 \end{pmatrix}, \quad t \in \mathbb{R}

4. Intersections and Angles Between Linesβ˜…β˜…β˜…β˜…β˜†β± 20 min

To find if two lines intersect, set their position vectors equal and solve for the scalar parameters. In 3D space, there are three possible cases for two lines: intersecting, parallel, or skew.

πŸ“ Worked Example

Classify lines and .

  1. 1

    Set components equal to get a system of equations:

  2. 2
    1βˆ’s=2+2t,2+s=1βˆ’t,1+s=4+t1 - s = 2 + 2t, \quad 2 + s = 1 - t, \quad 1 + s = 4 + t
  3. 3

    Solve the first two equations: add them to get , so .

  4. 4

    Check if satisfies the third equation: Left = , Right = . , so no solution.

  5. 5

    Check if direction vectors are parallel: is not a scalar multiple of , so lines are skew.

To find the angle between two lines, use their direction vectors in the dot product formula, and take the acute angle (0Β° to 90Β°), since the angle between two lines is defined as the smallest angle between them.

5. Common Pitfalls

Wrong move:

Assuming all non-parallel 3D lines intersect

Why:

3D space allows non-parallel lines that never meet (skew lines)

Correct move:

Always check the third equation when solving for intersections of 3D lines to confirm the solution is consistent

Wrong move:

Not taking the absolute value of the dot product for the angle between two lines

Why:

The dot product can give a negative cosine, but the angle between two lines is always acute

Correct move:

Use for the angle between lines

Wrong move:

Mixing up position vectors and direction vectors in the line equation

Why:

This leads to incorrect points on the line and wrong intersection results

Correct move:

Remember: is a fixed point on the line, is the direction vector multiplied by the parameter

Wrong move:

Calculating magnitude of a sum as

Why:

This only holds for parallel vectors, it is not true for most vectors

Correct move:

First add the components of and , then calculate the magnitude of the resulting vector

Wrong move:

Writing the dot product as a vector instead of a scalar

Why:

The dot product always outputs a single number, not another vector

Correct move:

Confirm your result for a dot product is a single scalar value before proceeding to further calculations

6. Quick Reference Cheatsheet

Concept

Formula / Rule

Magnitude (2D)

Magnitude (3D)

Dot Product (algebraic)

Dot Product (geometric)

Angle between vectors

Angle between lines

Vector line equation

Perpendicular vectors

Parallel vectors

for scalar

Skew lines (3D)

Non-parallel, no intersection

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

    Intersection of two 3D lines

  • 2021 Β· 1

    Dot product for perpendicular vectors

Going deeper

What's Next

Mastering 2D and 3D vectors is a core foundation for all further geometry topics in IB AA SL. This subtopic regularly appears in both Paper 1 and Paper 2, often combined with trigonometry and coordinate geometry to create multi-part, multi-mark questions. The skills you learn here will also support any further study of mathematics, including vector calculus and 3D geometry for IB AA HL. Consistent practice of solving intersection and angle problems will build the speed and accuracy you need for exam day.