Vectors are written in bold here: a, b. |a| is the length (magnitude) of a.
Scalar (dot) product
- Definition: a·b = |a| |b| cos θ
- Angle: cos θ = a·b / (|a| |b|)
- Components: a = (x₁, y₁), b = (x₂, y₂): a·b = x₁x₂ + y₁y₂
- Unit vectors: i·i = j·j = 1, i·j = j·i = 0
- Perpendicular: a·b = 0
- Parallel: a = mb for some scalar m
- Commutative: a·b = b·a; a·a = a² = |a|²
- Squares: (a ± b)² = a² + b² ± 2a·b; (a + b)·(a − b) = a² − b²
- Position vectors: AB = OB − OA = b − a
Laws of vector addition
- Triangle law: AB + BC = AC.
- Parallelogram law: in parallelogram ABCD, AB + AD = AC (the diagonal from the same point).
- Polygon law: AB + BC + CD + DE = AE (the closing side, taken the opposite way).
Section formulas
A and B have position vectors a and b; P divides AB in the ratio m₁ : m₂.
- Internal division: p = (m₁b + m₂a)/(m₁ + m₂)
- External division: p = (m₁b − m₂a)/(m₁ − m₂)
- Mid-point: m = (a + b)/2
- Centroid of triangle ABC: OG = (a + b + c)/3
Theorems often proved with vectors
- The segment joining the mid-points of two sides of a triangle is parallel to the third side and half its length.
- The mid-point of the hypotenuse of a right-angled triangle is equidistant from all three vertices.
- Joining the mid-points of the sides of any quadrilateral in order gives a parallelogram.
- The angle in a semicircle is a right angle (90°).
Worked example
Find the angle between a = (1, √3) and b = (√3, 1).
- a·b = √3 + √3 = 2√3; |a| = |b| = 2
- cos θ = 2√3/4 = √3/2, θ = 30°