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=xBxA, yByA, zBzA\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^=vv\hat{v} = \frac{\vec{v}}{|\vec{v}|}
Direction Angle (2D)
θ=tan1 ⁣(v2v1)\theta = \tan^{-1}\!\left(\tfrac{v_2}{v_1}\right)
Component Form (from magnitude & angle)
v=vcosθ, vsinθ\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
uv=u1v1, u2v2\vec{u} - \vec{v} = \langle u_1 - v_1,\ u_2 - v_2 \rangle
Scalar Multiplication
cv=cv1, cv2c \vec{v} = \langle c v_1,\ c v_2 \rangle
Magnitude of Scaled Vector
cv=cv|c \vec{v}| = |c| \cdot |\vec{v}|

Dot Product

Dot Product (Component)
uv=u1v1+u2v2+u3v3\vec{u} \cdot \vec{v} = u_1 v_1 + u_2 v_2 + u_3 v_3
Dot Product (Geometric)
uv=uvcosθ\vec{u} \cdot \vec{v} = |\vec{u}| |\vec{v}| \cos\theta
Angle Between Vectors
cosθ=uvuv\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}| |\vec{v}|}
Orthogonal Test
uv    uv=0\vec{u} \perp \vec{v} \iff \vec{u} \cdot \vec{v} = 0
Dot Product with Self
vv=v2\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=u2v3u3v2, u3v1u1v3, u1v2u2v1\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=uvsinθ|\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×vA = |\vec{u} \times \vec{v}|
Area of Triangle
A=12u×vA = \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
compvu=uvv\text{comp}_{\vec{v}}\,\vec{u} = \frac{\vec{u} \cdot \vec{v}}{|\vec{v}|}
Vector Projection
projvu=uvv2v\text{proj}_{\vec{v}}\,\vec{u} = \frac{\vec{u} \cdot \vec{v}}{|\vec{v}|^2}\,\vec{v}
Orthogonal Component
u=uprojvu\vec{u}_\perp = \vec{u} - \text{proj}_{\vec{v}}\,\vec{u}

Lines & Planes

Line (Vector Form)
r(t)=r0+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(rr0)=0\vec{n} \cdot (\vec{r} - \vec{r}_0) = 0
Plane (Scalar Equation)
a(xx0)+b(yy0)+c(zz0)=0a(x - x_0) + b(y - y_0) + c(z - z_0) = 0
Distance Point to Plane
d=ax0+by0+cz0+da2+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=abr(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