Find the unit vector v̂ in the direction of any 2D vector v = ⟨a, b⟩. Uses the formula v̂ = v / |v|, computes the magnitude |v| = √(a² + b²), normalizes each component, verifies |v̂| = 1, and shows a live canvas diagram with the unit circle — with full step-by-step work.
Input
Quick Examples
Results
What Is a Unit Vector?
v̂ = v / |v| where |v| = √(a² + b²)
A unit vector is a vector with magnitude (length) exactly equal to 1. It points in the same direction as the original vector v, but is scaled so that its length is 1.
To find it, divide every component by the magnitude |v|. If v = ⟨a, b⟩ then v̂ = ⟨a/|v|, b/|v|⟩. The magnitude |v| = √(a² + b²) is the denominator (the normalizing factor).
The tip of v̂ always lies on the unit circle — the circle of radius 1 centered at the origin. The direction angle θ = atan2(b, a) is the same for both v and v̂.
The zero vector ⟨0, 0⟩ has no unit vector because its magnitude is 0 and division by zero is undefined.
Why Unit Vectors Matter
v̂ = ⟨cos θ, sin θ⟩ for any direction angle θ
Direction without scale. In physics and engineering, forces, velocities, and displacements often need to be described by direction alone. A unit vector captures that direction cleanly — multiply it by any scalar to get a vector of that exact magnitude pointing the same way.
Component form of direction cosines. The components of v̂ are exactly the cosines of the angles the vector makes with the positive x- and y-axes: v̂ = ⟨cos α, cos β⟩. In 3D this extends to direction cosines used throughout mechanics and computer graphics.
Normal vectors. Unit vectors perpendicular to a surface or curve are called unit normals. They are foundational in lighting calculations (dot product with a unit light direction), force decomposition (normal force), and defining planes in 3D geometry.
Basis of the dot product formula. The geometric dot product formula u · v = |u||v|cos θ simplifies beautifully when u or v is a unit vector: the projection of v onto a unit vector û is simply û · v — no magnitude correction needed.
Work through unit vectors, dot products, and applications live with a tutor — step by step, at your pace.