NebulaNumerica

The dot product

The ship is to dock at a space station, and it must come in straight, at a right angle to the station's docking arm. The dot product is the tool that tells whether two directions are at right angles.

Working it out

Multiply the matching coordinates, and add:

the vector 1, 2, dot the vector 3, minus 4, equals 1 times 3 plus 2 times minus 4

which is 3 minus 8, so minus 5. The dot product of two vectors is a number, not a vector. In space, there is one more product to add.

What it means

For two vectors u and w, the dot product is also |u| · |w| · cos v, where v is the angle between them. The lengths are positive, so the sign comes from cos v:

  • positive when the angle is less than 90°,
  • 0 when it is exactly 90°,
  • negative when it is more than 90°.

How to find the angle itself is in The angle between two vectors.

Perpendicular

So two vectors are perpendicular, at right angles, exactly when their dot product is 0. The docking arm points along the vector 3, minus 2; is the vector 2, 3 a straight approach? 2 times 3 plus 3 times minus 2 is 6 minus 6, which is 0, so yes.

When a coordinate is a letter, setting the dot product to 0 gives an equation. For which t are the vector t, 2 and the vector 4, minus 6 perpendicular?

the vector t, 2, dot the vector 4, minus 6, equals 4 t minus 12

and 4 t minus 12 equals 0 gives t equals 3.

A right angle at a point

The angle BAC is the angle at A, the letter in the middle. It is 90° when the vectors from A are perpendicular:

the vector A B dot the vector A C equals 0
A B C

AB is the vector 3, 4 and AC is the vector minus 3, a plus 3, so minus 9 plus 4 the quantity a plus 3, equals 0, which is 4 a plus 3 equals 0, and a equals minus 3 over 4. The vectors must both start at the corner: from B, or one into A and one out, gives a different angle.

Multiply matching coordinates and add. The dot product is 0 exactly when the vectors are perpendicular, and its sign tells whether the angle is under or over 90°.

Practise Vectors

How was this article?

0 of 2000