How much do these two agree?
Two vectors, and the answer is a plain number with no direction at all — which is why it is also called the scalar product. From components: , read aloud a dot b equals a-x b-x plus a-y b-y, where are the components of the first arrow and those of the second — the subscript names the axis, the letter names the arrow. Like with like, then add.
From lengths and the angle between them: . Two doors, one room — and setting them equal is how the next lesson finds an angle. What the number MEANS is the cosine: it is the two lengths multiplied, then taxed by how far apart they point. Same direction, , full value. Perpendicular, , and the dot product is exactly zero — the cleanest perpendicularity test in mathematics, and one you will reach for constantly. Past it goes negative, meaning the two broadly disagree. A negative dot product is information, not a mistake.