In this guide
← Maths AA guides

Geometry & trigonometry · AA HL

Vector lines and products

Represent directions and lines with vectors, then use dot and cross products for angles, projections and geometry.

Course focus: AA HL: this guide develops additional higher-level content; it is not required for AA SL.

Before you start: Coordinates, simultaneous equations and trigonometry.

Start with a small example

Build it from the beginning

HL content

A vector records displacement: how far to move in each coordinate direction. Its position on the page is less important than its components. Subtract positions to obtain a displacement; use Pythagoras to find its length.

A first walkthrough

Find the displacement from A=(1,2) to B=(4,6) and its length.

  1. Subtract start from finish: \(\overrightarrow{AB}=(4-1,6-2)=(3,4)\).
  2. The length is \(\sqrt{3^2+4^2}\).
  3. Thus the displacement is (3,4) and its magnitude is 5.
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

A position vector identifies a point relative to an origin; a displacement vector goes between points. A line needs a point and a nonzero direction. Its parameter changes position along the line and can take any real value unless the problem restricts it to a segment or ray.

How the ideas connect

The dot product measures how much one vector points along another. It is zero for perpendicular nonzero vectors. For intersections, give each line its own parameter and solve every coordinate equation; satisfying only two coordinates in three dimensions is insufficient. Parallel lines may be coincident or distinct.

01

Start with the idea

Build your understanding

Vectors describe displacement without requiring a particular origin. A position vector identifies a point relative to an origin; subtracting positions gives the displacement between them. Dot and cross products extract different geometric information.

Parameter versus position

A line parameter scales its direction vector. Two intersecting lines generally need independent parameters; setting them equal imposes an extra restriction.

Parallel versus perpendicular

Parallel vectors are scalar multiples. Perpendicular nonzero vectors have zero dot product; those are distinct tests.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

Dot product

When it helpsUse projections, perpendicularity and angles.

Check before using itAn angle formula needs nonzero vector lengths.

Cross product

When it helpsUse a perpendicular vector or parallelogram area.

Check before using itSwapping the order reverses the direction.

Your method plan

  1. Form displacement or direction vectors carefully.
  2. Choose the product or simultaneous parameter equations.
  3. Check all components and distinguish parallel, intersecting and skew lines.
02

Learn the methods

Learn step by step

1. Position and displacement

A position vector locates a point from the origin. The displacement from A to B is \(b-a\). A line \(r=a+td\) passes through a with direction d; multiplying d by a nonzero scalar describes the same line. Each line has its own parameter when solving an intersection.

2. Dot product

The dot product measures alignment. It is zero for perpendicular nonzero vectors, positive for an acute angle and negative for an obtuse angle. For the acute angle between two undirected lines, use the absolute dot product. For the angle between directed vectors, retain its sign.

The dot product sees the parallel component

b = (3,2)a = (4,0)Projection (3,0)
Vector b = (3,2) projects onto the horizontal direction a = (4,0) as (3,0). The perpendicular component contributes nothing to a · b; the product is 4 × 3 = 12.

Products

Why this formula works

Expanding \(|a-b|^{2}\) from components gives \(|a|^{2}+|b|^{2}-2(a\cdot b)\). Comparing with the cosine rule for the triangle made by the vectors identifies a·\(b=|a||b|\cos \theta \). This also explains why a zero dot product corresponds to perpendicular vectors, provided neither vector has zero length.

The formula

\(a\cdot b=a_xb_x+a_yb_y+a_zb_z=|a||b|\cos\theta\).

Quick example

For \(a=(1,2,0)\), \(b=(2,-1,0)\), the dot product is \(2-2=0\). Both are nonzero, so the angle is 90°.

Worked example: Products and area

For \(a=(1,2,2)\), \(b=(2,-1,2)\), find their dot product and parallelogram area.

  1. The dot product is \(2-2+4=4\); both moduli are 3.
  2. The cross product is \((6,2,-5)\), with modulus \(\sqrt{65}\).
  3. The area is \(\sqrt{65}\). The vector angle is \(\arccos (\frac{4}{9})\), approximately 63.6°.

3. Projection

The scalar projection of a onto d is a·\(d/|d|\); the vector projection is \((a\cdot d/|d|^{2})d\). A closest point on a line is found by requiring the connecting displacement to be perpendicular to the line direction. This converts a geometric minimum into one linear equation in t.

Projection

Why this formula works

The projected vector is a multiple λd. Require the leftover \(a-\lambda d\) to be perpendicular to d, so \((a-\lambda d)\cdot \)\(d=0\). Solving gives \(\lambda =(a\cdot d)/|d|^{2}\), provided \(d\ne 0\). The remaining component is perpendicular to the chosen direction, giving a practical check of the result.

The formula

\(\operatorname{proj}_d a=(a\cdot d/|d|^2)d\) \(d\ne 0\). If supplied in an investigation, parallelepiped volume is \(|a\cdot(b\times c)|\).

Quick example

Project \(a=(2,3,0)\) onto \(d=(1,1,0)\). \(\lambda=\frac52\), so the projection is \((2.5,2.5,0)\); the leftover \((-0.5,0.5,0)\) is perpendicular to d.

Worked example: Closest point on a line

Find the point closest to the origin on \(r=(1,2,0)+t(1,0,0)\).

  1. The general point is \((1+t,2,0)\). Its position must be perpendicular to direction \((1,0,0)\).
  2. Their dot product is \(1+t=0\), giving \(t=-1\).
  3. The closest point is \((0,2,0)\), distance 2 from the origin.
Worked example: A projection

Find the projection of \(a=(3,4,0)\) onto \(d=(1,0,0)\).

  1. The dot product a·\(d=3\) and \(|d|^{2}=1\).
  2. The vector projection is \((\frac{3}{1})d=(3,0,0)\).
  3. The remaining component \(a-\text{projection}=(0,4,0)\) is perpendicular to d, confirming the decomposition.

4. Cross product

The cross product is perpendicular to both original vectors. Its magnitude is the area of their parallelogram; half that is the triangle area. Reversing its order reverses the vector. Parallel nonzero vectors have zero cross product. Use a normalised cross product when a unit perpendicular vector is requested.

Cross product

Why this formula works

The component formula constructs a vector perpendicular to both inputs. Its magnitude is the base \(|a|\) times perpendicular height \(|b|\sin \theta \), matching parallelogram area. Order sets the normal direction but not the area.

The formula

\(a\times b=(a_yb_z-a_zb_y,a_zb_x-a_xb_z,a_xb_y-a_yb_x)\), with magnitude \(|a||b|\sin\theta\).

Quick example

\((1,0,0)\times (0,2,0)=(0,0,2)\). Its magnitude 2 is the area of the corresponding 1-by-2 parallelogram.

5. Intersections and skew lines

Equate three coordinate components and solve two for the parameters, then check the third. If no parameters satisfy all three and directions are not parallel, the lines are skew. Meeting in a two-dimensional projection does not prove the spatial lines intersect.

Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

Products

\(a\cdot b=a_xb_x+a_yb_y+a_zb_z=|a||b|\cos\theta\).

Return to the explanation →

Cross product

\(a\times b=(a_yb_z-a_zb_y,a_zb_x-a_xb_z,a_xb_y-a_yb_x)\), with magnitude \(|a||b|\sin\theta\).

Return to the explanation →

Projection

\(\operatorname{proj}_d a=(a\cdot d/|d|^2)d\), \(d\ne 0\). If supplied in an investigation, parallelepiped volume is \(|a\cdot(b\times c)|\).

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

Two direction vectors with equal magnitudes are parallel.

Explain and repair the mistake

Parallel vectors must be scalar multiples. Vectors (1,0,0) and (0,1,0) both have magnitude 1 but are perpendicular, since their dot product is zero.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

Two parameters, one intersection

Lines are \(\mathbf r=(1,0,2)+s(1,2,0)\) and \(\mathbf r=(3,4,5)+t(0,0,1)\). Find their intersection.

  1. From the first coordinate, \(1+s=3\), so \(s=2\). The second gives \(2s=4\), agreeing.
  2. The third coordinate is \(2=5+t\), giving \(t=-3\). There is no reason the two parameter values should agree.
  3. The common point is \((3,4,2)\). Substitution into both full vector equations confirms it.
  4. All three components must agree. Solving only two can give a candidate that fails the third and indicates skew lines.
Pause and explain

Are the lines perpendicular at the intersection?

Check your reasoning

Yes. Their direction dot product is \((1,2,0)\cdot(0,0,1)=0\), and both direction vectors are nonzero.

Common mistakes and how to avoid them

  • Use different parameters for different lines.
  • Check all three component equations for an intersection.
  • Cross-product order changes direction, but not area.
  • Distinguish scalar and vector projections.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    HL extension

    Find the unit vector in the direction (6,8).

    Need a starting point?

    Divide by the vector length.

    Show the worked solution
    1. Its magnitude is 10.
    2. The unit vector is \((3/5,4/5)\), whose magnitude is 1.
  2. 2

    Apply and explain

    HL extension

    Are (1,2,0) and (2,-1,3) perpendicular?

    Need a starting point?

    Calculate their scalar product.

    Show the worked solution
    1. The dot product is \(1(2)+2(-1)+0(3)=0\).
    2. Since both vectors are nonzero, a zero dot product establishes perpendicularity.
  3. 3

    Check your understanding

    Find the vector from A=(1,2,3) to B=(4,0,5).

    Show the worked solution

    Subtract A from B to obtain (3,-2,2). Its magnitude is \(\sqrt{17}\). Reversing the subtraction reverses the direction.

  4. 4

    Use the method

    Find a unit vector perpendicular to both \((1,0,0)\) and \((0,1,0)\).

    Show the worked solution

    Their cross product is \((0,0,1)\), already a unit vector. Its negative is also a valid unit perpendicular vector.

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AA Paper 1

No calculator

Practise the algebra and exact values by hand. Keep fractions, surds and multiples of π exact where required. Show the steps that justify the result.

AA Paper 2

GDC required

Use graphing, numerical solving or statistical tools when appropriate. Write the setup before giving the output, and keep extra precision until the final answer.

For this topic: Sketch and label the relevant triangle or curve. Show which angle and radius a formula uses, check degree or radian mode, and give length, area and volume in the correct units.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AA HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AA. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.