Skip to content
IB Diploma ProgrammeSL & HL

Scalar and vector products

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Scalar and vector products notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Scalar and vector products notes as text: skim, search, and jump between subtopics.

~10 min read

1. The scalar product

The scalar product of two vectors, written v·w, is a scalar: one number, not a vector.

To calculate it, multiply the matching components and add. It can also be found from the lengths of the vectors and the angle θ between them, with the vectors placed tail to tail. Both forms give the same number.

The scalar product can be negative. It is negative when cosθ<0, which means θ is obtuse.

v·w=v₁w₁+v₂w₂+v₃w₃

v·w=|v||w|cosθ

Worked example 12 marks

Given p=3i+2j-k and q=i-4j+2k, calculate p·q.

  1. 1

    M1: multiply the matching components and add, 3×1+2×(-4)+(-1)×2=3-8-2 [1]

  2. 2

    A1: p·q=-7, a scalar [1]

2. The angle between two vectors and between two lines

Rearrange the scalar product to find the angle between two non-zero vectors v and w. Put the GDC in degree mode and take the inverse cosine of the fraction.

For the angle between two lines, use their direction vectors. The position vectors are not needed.

The inverse cosine of a negative number is an obtuse angle. The acute angle between two lines is the smaller of θ and 180^(°)-θ. So if cosθ is negative, subtract θ from 180^(°).

cosθ=(v·w)/(|v||w|)

θ_acute=180^(°)-θ when cosθ<0

Worked example 14 marks

Two lines, l₁ and l₂, in three-dimensional space have general vector boldsymbolr₁ and boldsymbolr₂ respectively, given by

boldsymbolr₁ = beginpmatrix1 -8 6endpmatrix + λbeginpmatrix-1 -3 2endpmatrix and boldsymbolr₂ = beginpmatrix8 -5 3endpmatrix + μbeginpmatrix-10 6 -2endpmatrix.

Find the acute angle between l₁ and l₂.

  1. 1

    M1: attempt to apply the formula for the angle between two vectors, using the direction vectors beginpmatrix-1 -3 2endpmatrix and beginpmatrix-10 6 -2endpmatrix [1]

  2. 2

    M1: a correct dot product or magnitude: 10-18-4=-12, √14, √(140) [1]

  3. 3

    A1: cosθ=(-12)/(√14√(140)), so θ=105.726…^(°), which is obtuse [1]

  4. 4

    A1: the acute angle is 180^(°)-105.726…^(°)=74.3^(°) [1]

3. Perpendicular vectors

Two non-zero vectors are perpendicular when θ=90^(°). Then cosθ=0, so the scalar product is zero.

To show that two vectors are perpendicular, work out v·w, show that it equals 0, and say so. An answer of 90^(°) with no mention that the scalar product is zero scores no marks.

To find the point C on a line that is closest to a point B, write C in terms of the line's parameter. Then make overrightarrowBC perpendicular to the direction vector of the line.

v·w=0 Longleftrightarrow v⊥w (non-zero vectors)

Worked example 17 marks

Two lines, l₁ and l₂, in three-dimensional space have general vector boldsymbolr₁ and boldsymbolr₂ respectively, given by

boldsymbolr₁ = beginpmatrix1 -8 6endpmatrix + λbeginpmatrix-1 -3 2endpmatrix and boldsymbolr₂ = beginpmatrix8 -5 3endpmatrix + μbeginpmatrix-10 6 -2endpmatrix.

Point B has coordinates (-17, 10, -2).

Point C is the point on l₁ that is closest to point B.

Find the coordinates of point C.

  1. 1

    M1: attempt to find a direction vector for CB, taking C on l₁ as (1-λ, -8-3λ, 6+2λ) and subtracting B [1]

  2. 2

    A1: overrightarrowBC=beginpmatrix18-λ -18-3λ 8+2λendpmatrix [1]

  3. 3

    M1: equate the scalar product of this vector and the direction vector of l₁ to zero [1]

  4. 4

    M1: correct expansion, (18-λ)(-1)+(-18-3λ)(-3)+(8+2λ)(2)=0 [1]

  5. 5

    A1: 52+14λ=0, so λ=-52/14=-26/7 [1]

  6. 6

    M1: substitute this λ back into l₁ [1]

  7. 7

    A1: C=(33/7,22/7,-10/7), which is (4.71, 3.14, -1.43) [1]

4. The vector product

The vector product v×w is a vector. Its magnitude uses sinθ, where θ is the angle between v and w. Its direction is the unit normal vector n, given by the right-hand screw rule.

So v×w is perpendicular to both v and w. Turning v towards w gives the direction of n. Swap the order and n points the other way, so every component changes sign.

In components, work through the three lines of the formula. Take care with the middle component: it is v₃w₁-v₁w₃, not v₁w₃-v₃w₁.

v×w=|v||w|sinθ n

v×w=beginpmatrixv₂w₃-v₃w₂ v₃w₁-v₁w₃ v₁w₂-v₂w₁endpmatrix

sinθ=(|v×w|)/(|v||w|)

Worked example 15 marks

P has position vector overrightarrowOP = boldsymbolp = beginpmatrix0 0 6endpmatrix and N has position vector overrightarrowON = boldsymboln = beginpmatrix0 6 0endpmatrix.

Point A, which is also on the equator, has position vector boldsymbola = beginpmatrix6 0 0endpmatrix.

P, N and A, and the arcs connecting them, form a spherical triangle. The angle at vertex A is defined as the angle between the vectors boldsymbola × boldsymbolp and boldsymbola × boldsymboln.

(i) Find the vector boldsymbola × boldsymbolp.

(ii) Show that the angle at vertex A in the spherical triangle is 90^(°).

  1. 1

    (i) (M1): attempt to find the cross product, for example correct except for a sign error [1]

  2. 2

    A1: boldsymbola×boldsymbolp=beginpmatrix0 -36 0endpmatrix [1]

  3. 3

    (ii) A1: boldsymbola×boldsymboln=beginpmatrix0 0 36endpmatrix [1]

  4. 4

    M1: choose to use the scalar product of boldsymbola×boldsymbolp and boldsymbola×boldsymboln [1]

  5. 5

    A1: (boldsymbola×boldsymbolp)·(boldsymbola×boldsymboln)=0 [1]

  6. 6

    AG: so the angle is 90^(°)

5. The area of a parallelogram and a triangle

The magnitude |v×w|=|v||w|sinθ is the area of the parallelogram with v and w as adjacent sides.

A diagonal cuts the parallelogram into two equal triangles. The area of the triangle with sides v and w is half of the parallelogram.

For a triangle ABC, take the two sides from one vertex, overrightarrowAB and overrightarrowAC. Do not forget the half.

A_parallelogram=|v×w|

A_triangle=1/2|v×w|

Worked example 15 marks

The points A, B and C have coordinates (2, 1, 0), (3, 3, 2) and (5, 2, 1). Find the area of triangle ABC.

  1. 1

    M1: find two sides from A, overrightarrowAB=B-A and overrightarrowAC=C-A [1]

  2. 2

    A1: overrightarrowAB=beginpmatrix1 2 2endpmatrix, overrightarrowAC=beginpmatrix3 1 1endpmatrix [1]

  3. 3

    M1: overrightarrowAB×overrightarrowAC=beginpmatrix2×1-2×1 2×3-1×1 1×1-2×3endpmatrix [1]

  4. 4

    A1: beginpmatrix0 5 -5endpmatrix, so |overrightarrowAB×overrightarrowAC|=√50=5√2, the area of the parallelogram [1]

  5. 5

    A1: area of the triangle =(5√2)/2=3.54 square units [1]

6. Components of vectors

The component of a in the direction of b is the length of the shadow of a on the line of b. It is |a|cosθ, so it uses the scalar product and divides by |b|.

The component of a perpendicular to b, in the plane of the two vectors, is |a|sinθ. It uses the vector product and divides by |b|.

The first component is negative when θ is obtuse: a then points away from b. The two components are the shorter sides of a right-angled triangle with |a| as hypotenuse. Use this as a check.

component alongb=(a·b)/(|b|)=|a|cosθ

component perpendicular tob=(|a×b|)/(|b|)=|a|sinθ

Worked example 15 marks

Let a=beginpmatrix6 -2 3endpmatrix and b=beginpmatrix1 2 2endpmatrix.

(a) Find the component of a in the direction of b.

(b) Find the component of a perpendicular to b, in the plane of the two vectors.

  1. 1

    (a) M1: (a·b)/(|b|) with a·b=6-4+6=8 and |b|=√(1+4+4)=3 [1]

  2. 2

    A1: 8/3 [1]

  3. 3

    (b) M1: a×b=beginpmatrix(-2)(2)-(3)(2) (3)(1)-(6)(2) (6)(2)-(-2)(1)endpmatrix=beginpmatrix-10 -9 14endpmatrix [1]

  4. 4

    A1: |a×b|=√(100+81+196)=√(377) [1]

  5. 5

    A1: (√(377))/3=6.47 [1]

  6. 6

    Check: (8/3)²+377/9=441/9=49=|a|²

Recap

  • v·w=v₁w₁+v₂w₂+v₃w₃=|v||w|cosθ. The result is a scalar.
  • cosθ=(v·w)/(|v||w|). For lines, use the direction vectors. If cosθ<0, the acute angle is 180^(°)-θ.
  • Perpendicular vectors have v·w=0. Show the zero, then state the 90^(°).
  • v×w=|v||w|sinθ n is a vector perpendicular to both. Swapping the order reverses it.
  • |v×w| is the area of the parallelogram. The triangle is half of it.
  • Component of a along b: (a·b)/(|b|). Perpendicular to b: (|a×b|)/(|b|).

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the value of a·b for a=2i-j+3k and b=4i+5j+k.1 mark
    Answer
    1. 2×4+(-1)×5+3×1=8-5+3=6.

    Trap: Writing the answer as a vector. The scalar product is a single number.

  2. Determine which pair of vectors is perpendicular. A. (1, 2, 5) and (2, -1, 3) B. (2, -4, 6) and (-1, 2, -3) C. (3, 2, -1) and (1, -2, -1) D. (2, 3, 1) and (3, -2, -1)1 mark
    Answer
    1. The answer is C: 3×1+2×(-2)+(-1)×(-1)=3-4+1=0.
    2. A gives 2-2+15=15. The first two components cancel, but the third was ignored.
    3. B gives -2-8-18=-28. These vectors are parallel, so their vector product is zero, not their scalar product.
    4. D gives 6-6-1=-1, not 0: the last product is 1×(-1)=-1.

    Trap: Confusing parallel with perpendicular. Perpendicular means v·w=0.

  3. Calculate the angle between a=i+2j+2k and b=2i-3j+6k. Give your answer in degrees, correct to 3 significant figures.3 marks
    Answer
    1. a·b=2-6+12=8, |a|=3, |b|=√(4+9+36)=7.
    2. cosθ=8/21, so θ=67.6^(°).

    Trap: GDC in radian mode gives 1.18, which is not in degrees.

  4. The vectors beginpmatrixk 2 -3endpmatrix and beginpmatrix4 k 1endpmatrix are perpendicular. Find the value of k.3 marks
    Answer
    1. Perpendicular, so the scalar product is zero: 4k+2k+(-3)(1)=0.
    2. 6k-3=0, so k=1/2.

    Trap: Losing the sign of the -3. Writing 6k+3=0 gives k=-1/2.

  5. Line l₁ has equation boldsymbolr=beginpmatrix1 0 2endpmatrix+sbeginpmatrix2 -1 2endpmatrix and line l₂ has equation boldsymbolr=beginpmatrix3 1 0endpmatrix+tbeginpmatrix3 0 -4endpmatrix. Find the acute angle between l₁ and l₂.4 marks
    Answer
    1. Use the direction vectors: d₁·d₂=6+0-8=-2.
    2. |d₁|=3 and |d₂|=5, so cosθ=-2/15 and θ=97.66…^(°).
    3. The acute angle is 180^(°)-97.66…^(°)=82.3^(°).

    Trap: Giving 97.7^(°), the obtuse angle. A negative cosine means the acute angle is 180^(°)-θ.

  6. Let a=2i+j-k and b=i+3j+2k. (a) Find a×b. (b) Show that a×b is perpendicular to a.4 marks
    Answer
    1. (a)
    2. a×b=beginpmatrix1×2-(-1)×3 (-1)×1-2×2 2×3-1×1endpmatrix=beginpmatrix5 -5 5endpmatrix.
    3. (b)
    4. (a×b)·a=5×2+(-5)×1+5×(-1)=10-5-5=0.
    5. The scalar product is zero, so the vectors are perpendicular.

    Trap: Reversing the middle component. It is a₃b₁-a₁b₃=-1-4=-5, not +5.

  7. The points A(0, 1, 1), B(2, 1, 4) and C(1, 3, 1) are the vertices of a triangle. Find the exact area of triangle ABC.4 marks
    Answer
    1. overrightarrowAB=beginpmatrix2 0 3endpmatrix and overrightarrowAC=beginpmatrix1 2 0endpmatrix.
    2. overrightarrowAB×overrightarrowAC=beginpmatrix0×0-3×2 3×1-2×0 2×2-0×1endpmatrix=beginpmatrix-6 3 4endpmatrix.
    3. |overrightarrowAB×overrightarrowAC|=√(36+9+16)=√61.
    4. Area =(√61)/2 (which is 3.91).

    Trap: Giving √61, the area of the parallelogram. The triangle is half of it.

  8. Let a=4i-3j+2k and b=2i+j+2k. Calculate the component of a in the direction of b, and the component of a perpendicular to b.4 marks
    Answer
    1. a·b=8-3+4=9 and |b|=3.
    2. Component along b =9/3=3.
    3. a×b=beginpmatrix-8 -4 10endpmatrix, so |a×b|=√(180)=6√5.
    4. Component perpendicular to b =(6√5)/3=2√5 (which is 4.47).
    5. Check: 3²+(2√5)²=9+20=29=|a|².

    Trap: Dividing by |b|² instead of |b|. That gives 1, not 3.

  9. A triangular shade sail is fixed at three corners. The corners are A(2, 0, 1), B(5, 4, 1) and C(3, 2, 3), with distances in metres. (a) Find the angle AhatBC. [4] (b) Find the area of the sail. [3] (c) The edge AB is a straight cable. Find the shortest distance from C to the cable. [2]9 marks
    Answer
    1. (a)
    2. Both vectors start at B: overrightarrowBA=beginpmatrix-3 -4 0endpmatrix and overrightarrowBC=beginpmatrix-2 -2 2endpmatrix.
    3. overrightarrowBA·overrightarrowBC=6+8+0=14, |overrightarrowBA|=5, |overrightarrowBC|=√12.
    4. cosAhatBC=14/(5√12), so AhatBC=36.1^(°) (36.070…^(°)).
    5. (b)
    6. overrightarrowAB=beginpmatrix3 4 0endpmatrix and overrightarrowAC=beginpmatrix1 2 2endpmatrix.
    7. overrightarrowAB×overrightarrowAC=beginpmatrix4×2-0×2 0×1-3×2 3×2-4×1endpmatrix=beginpmatrix8 -6 2endpmatrix, with magnitude √(104).
    8. Area =(√(104))/2=5.10 m².
    9. (c)
    10. The distance is the component of overrightarrowAC perpendicular to overrightarrowAB: (|overrightarrowAC×overrightarrowAB|)/(|overrightarrowAB|)=(√(104))/5=2.04 m.
    11. Check: |overrightarrowBC|sin36.070…^(°)=√12×0.58878…=2.04.

    Trap: Using overrightarrowAB and overrightarrowBC for the angle at B flips the sign of the scalar product and gives the obtuse 143.9^(°).

  10. A ramp is a flat surface. The vector u=4i+3k points straight up the ramp and v=5j points across it. A box on the ramp has weight w=-49k N. (a) Find u×v. [2] (b) Determine the component of w in the direction of u, and state what its sign shows. [3] (c) Show that the component of w perpendicular to u, in the plane of w and u, has the same size as the component of w in the direction of u×v. [3]8 marks
    Answer
    1. (a)
    2. u×v=beginpmatrix0×0-3×5 3×0-4×0 4×5-0×0endpmatrix=beginpmatrix-15 0 20endpmatrix.
    3. (b)
    4. w·u=-147 and |u|=5, so the component is (-147)/5=-29.4 N.
    5. The sign is negative, so the component acts opposite to u: down the ramp.
    6. (c)
    7. w×u=beginpmatrix0 -196 0endpmatrix, so the perpendicular component is 196/5=39.2 N.
    8. w·(u×v)=-980 and |u×v|=√(225+400)=25, so that component is (-980)/25=-39.2 N, of size 39.2 N.
    9. Both are 39.2 N. Check: 29.4²+39.2²=2401=49².

    Trap: Dividing w·u by |u|² gives -5.88 N, and dropping the minus sign hides that the component acts down the ramp.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The angle is 90^(°), with no mention of the scalar product.boldsymbolp·boldsymboln=0, so the angle is 90^(°).
θ=105.7^(°) for the acute angle between two lines.The acute angle is 180^(°)-105.7^(°)=74.3^(°).
boldsymbola×boldsymbolp=beginpmatrix0 36 0endpmatrix, correct except for a sign error: method mark only.boldsymbola×boldsymbolp=beginpmatrix0 -36 0endpmatrix, every component with its correct sign.

Frequently asked questions

How do I calculate the scalar product of two vectors?
Multiply the matching components and add: v·w=v₁w₁+v₂w₂+v₃w₃. The scalar product is a scalar, one number, not a vector. For p=3i+2j-k and q=i-4j+2k, p·q=3-8-2=-7. It is negative when cosθ<0, which means θ is obtuse.
How do I find the acute angle between two lines?
Use the direction vectors of the lines, not the position vectors, in cosθ=(v·w)/(|v||w|), with the GDC in degree mode. If cosθ is negative, θ is obtuse, so the acute angle is 180^(°)-θ. For two lines with direction vectors beginpmatrix-1 -3 2endpmatrix and beginpmatrix-10 6 -2endpmatrix, θ=105.7^(°) and the acute angle is 74.3^(°).
How do I show that two vectors are perpendicular?
Two non-zero vectors are perpendicular when θ=90^(°), so cosθ=0 and the scalar product is zero. Work out v·w, show that it equals 0, and say so. An answer of 90^(°) with no mention of the scalar product scores no marks. For a×p and a×n, the scalar product is 0, so the angle is 90^(°).
How do I find the vector product of two vectors?
The vector product v×w is a vector, perpendicular to both v and w, with magnitude |v||w|sinθ. Use v×w=beginpmatrixv₂w₃-v₃w₂ v₃w₁-v₁w₃ v₁w₂-v₂w₁endpmatrix. For a=6i and p=6k, a×p=beginpmatrix0 -36 0endpmatrix. Swapping the order changes every sign.
How do I find the area of a triangle using vectors?
Take two sides from one vertex, overrightarrowAB and overrightarrowAC. The magnitude |overrightarrowAB×overrightarrowAC| is the area of the parallelogram with those sides, so the area of the triangle is half of it. For A(2, 1, 0), B(3, 3, 2) and C(5, 2, 1), the cross product is beginpmatrix0 5 -5endpmatrix, so the area is (5√2)/2=3.54 square units.
What mistake is most often made when writing out the components of a vector product?
The most common error is the middle component, which is v₃w₁-v₁w₃, not v₁w₃-v₃w₁. A sign error in any component loses the mark for that component. Check each component with its correct sign, for example boldsymbola×boldsymbolp=beginpmatrix0 -36 0endpmatrix, not beginpmatrix0 36 0endpmatrix, which is only a method mark.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters