Enter two 2D vectors u = ⟨a, b⟩ and v = ⟨c, d⟩ to compute the dot product, find the angle between them in degrees and radians, determine their relationship, and calculate the projection of u onto v — with an interactive diagram and full step-by-step work.
The dot product (scalar product) of two vectors combines their components into a single number:
| Algebraic | u · v = ac + bd |
| Geometric | u · v = |u| |v| cos θ |
| Solve for θ | cos θ = (u·v) / (|u| |v|) |
| |u| = | √(a² + b²) |
| |v| = | √(c² + d²) |
Orthogonality test: u · v = 0 means the vectors are perpendicular (cos 90° = 0).
Parallel test: |cos θ| = 1 means the vectors point in the same or opposite direction.
The projection of u onto v decomposes u into two perpendicular parts: one parallel to v and one perpendicular.
| Unit vector v̂ | v / |v| |
| Scalar proj | comp_v(u) = u·v / |v| |
| Vector proj | proj_v(u) = (u·v / |v|²) · v |
| Perp. part | u − proj_v(u) |
| Check | proj + perp = u ✓ |
The scalar projection is the signed length of u's shadow onto v. Multiply by the unit vector of v to get the actual vector projection.
Book a live session with a Naruhodo tutor — we'll work through dot products, vector projections, and all things Precalculus together.