Mathwords logoMathwords

Vector Formulas — Operations, Dot Product & Cross Product

A complete reference of vector formulas. Covers vector arithmetic, magnitude and unit vectors, dot and cross products, vector projection, the angle between vectors, and a primer on vector calculus (velocity, acceleration, line integrals).

Vector Notation & Basics

2D Vector
v⃗=⟨v1, v2⟩\vec{v} = \langle v_1,\ v_2 \rangle
3D Vector
v⃗=⟨v1, v2, v3⟩\vec{v} = \langle v_1,\ v_2,\ v_3 \rangle
Unit Vector Form (3D)
v⃗=v1i^+v2j^+v3k^\vec{v} = v_1 \hat{i} + v_2 \hat{j} + v_3 \hat{k}
Vector from Two Points
AB→=⟨xB−xA, yB−yA, zB−zA⟩\overrightarrow{AB} = \langle x_B - x_A,\ y_B - y_A,\ z_B - z_A \rangle
Zero Vector
0⃗=⟨0,0⟩\vec{0} = \langle 0, 0 \rangle

Magnitude & Unit Vectors

Magnitude (2D)
∣v⃗∣=v12+v22|\vec{v}| = \sqrt{v_1^2 + v_2^2}
Magnitude (3D)
∣v⃗∣=v12+v22+v32|\vec{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}
Unit Vector
v^=v⃗∣v⃗∣\hat{v} = \frac{\vec{v}}{|\vec{v}|}
Direction Angle (2D)
θ=tan⁡−1 ⁣(v2v1)\theta = \tan^{-1}\!\left(\tfrac{v_2}{v_1}\right)
Component Form (from magnitude & angle)
v⃗=⟨∣v⃗∣cos⁡θ, ∣v⃗∣sin⁡θ⟩\vec{v} = \langle |\vec{v}| \cos\theta,\ |\vec{v}| \sin\theta \rangle

Vector Arithmetic

Addition
u⃗+v⃗=⟨u1+v1, u2+v2⟩\vec{u} + \vec{v} = \langle u_1 + v_1,\ u_2 + v_2 \rangle
Subtraction
u⃗−v⃗=⟨u1−v1, u2−v2⟩\vec{u} - \vec{v} = \langle u_1 - v_1,\ u_2 - v_2 \rangle
Scalar Multiplication
cv⃗=⟨cv1, cv2⟩c \vec{v} = \langle c v_1,\ c v_2 \rangle
Magnitude of Scaled Vector
∣cv⃗∣=∣c∣⋅∣v⃗∣|c \vec{v}| = |c| \cdot |\vec{v}|

Dot Product

Dot Product (Component)
u⃗⋅v⃗=u1v1+u2v2+u3v3\vec{u} \cdot \vec{v} = u_1 v_1 + u_2 v_2 + u_3 v_3
Dot Product (Geometric)
u⃗⋅v⃗=∣u⃗∣∣v⃗∣cos⁡θ\vec{u} \cdot \vec{v} = |\vec{u}| |\vec{v}| \cos\theta
Angle Between Vectors
cos⁡θ=u⃗⋅v⃗∣u⃗∣∣v⃗∣\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}| |\vec{v}|}
Orthogonal Test
u⃗⊥v⃗  ⟺  u⃗⋅v⃗=0\vec{u} \perp \vec{v} \iff \vec{u} \cdot \vec{v} = 0
Dot Product with Self
v⃗⋅v⃗=∣v⃗∣2\vec{v} \cdot \vec{v} = |\vec{v}|^2

Cross Product (3D Only)

Cross Product (Determinant)
u⃗×v⃗=∣i^j^k^u1u2u3v1v2v3∣\vec{u} \times \vec{v} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ u_1 & u_2 & u_3 \\ v_1 & v_2 & v_3 \end{vmatrix}
Cross Product (Components)
u⃗×v⃗=⟨u2v3−u3v2, u3v1−u1v3, u1v2−u2v1⟩\vec{u} \times \vec{v} = \langle u_2 v_3 - u_3 v_2,\ u_3 v_1 - u_1 v_3,\ u_1 v_2 - u_2 v_1 \rangle
Magnitude of Cross Product
∣u⃗×v⃗∣=∣u⃗∣∣v⃗∣sin⁡θ|\vec{u} \times \vec{v}| = |\vec{u}| |\vec{v}| \sin\theta
Anti-Commutative
u⃗×v⃗=−(v⃗×u⃗)\vec{u} \times \vec{v} = -(\vec{v} \times \vec{u})
Area of Parallelogram
A=∣u⃗×v⃗∣A = |\vec{u} \times \vec{v}|
Area of Triangle
A=12∣u⃗×v⃗∣A = \tfrac{1}{2}|\vec{u} \times \vec{v}|
Volume of Parallelepiped
V=∣u⃗⋅(v⃗×w⃗)∣V = |\vec{u} \cdot (\vec{v} \times \vec{w})|

Projections

Scalar Projection
compv⃗ u⃗=u⃗⋅v⃗∣v⃗∣\text{comp}_{\vec{v}}\,\vec{u} = \frac{\vec{u} \cdot \vec{v}}{|\vec{v}|}
Vector Projection
projv⃗ u⃗=u⃗⋅v⃗∣v⃗∣2 v⃗\text{proj}_{\vec{v}}\,\vec{u} = \frac{\vec{u} \cdot \vec{v}}{|\vec{v}|^2}\,\vec{v}
Orthogonal Component
u⃗⊥=u⃗−projv⃗ u⃗\vec{u}_\perp = \vec{u} - \text{proj}_{\vec{v}}\,\vec{u}

Lines & Planes

Line (Vector Form)
r⃗(t)=r⃗0+tv⃗\vec{r}(t) = \vec{r}_0 + t \vec{v}
Line (Parametric Form)
x=x0+at, y=y0+bt, z=z0+ctx = x_0 + a t,\ y = y_0 + b t,\ z = z_0 + c t
Plane (Vector Equation)
n⃗⋅(r⃗−r⃗0)=0\vec{n} \cdot (\vec{r} - \vec{r}_0) = 0
Plane (Scalar Equation)
a(x−x0)+b(y−y0)+c(z−z0)=0a(x - x_0) + b(y - y_0) + c(z - z_0) = 0
Distance Point to Plane
d=∣ax0+by0+cz0+d∣a2+b2+c2d = \frac{|a x_0 + b y_0 + c z_0 + d|}{\sqrt{a^2 + b^2 + c^2}}

Vector Calculus Basics

Velocity
v⃗(t)=r⃗ ′(t)=⟨x′(t),y′(t),z′(t)⟩\vec{v}(t) = \vec{r}\,'(t) = \langle x'(t), y'(t), z'(t) \rangle
Speed
∣v⃗(t)∣=(x′(t))2+(y′(t))2+(z′(t))2|\vec{v}(t)| = \sqrt{(x'(t))^2 + (y'(t))^2 + (z'(t))^2}
Acceleration
a⃗(t)=r⃗ ′′(t)\vec{a}(t) = \vec{r}\,''(t)
Arc Length
L=∫ab∣r⃗ ′(t)∣ dtL = \int_a^b |\vec{r}\,'(t)|\,dt
Unit Tangent
T⃗(t)=r⃗ ′(t)∣r⃗ ′(t)∣\vec{T}(t) = \frac{\vec{r}\,'(t)}{|\vec{r}\,'(t)|}

Related Pages