| |

2: Vectors

Vectors are the fundamental language of multivariable calculus and physics.


Vector Basics

A vector has magnitude and direction. In R3\mathbb{R}^3:

v=โŸจv1,v2,v3โŸฉ=v1i+v2j+v3k\mathbf{v} = \langle v_1, v_2, v_3 \rangle = v_1\mathbf{i} + v_2\mathbf{j} + v_3\mathbf{k}

Magnitude

โˆฃvโˆฃ=โˆฅvโˆฅ=v12+v22+v32|\mathbf{v}| = \|\mathbf{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2}

Unit Vector

A vector with magnitude 1. To normalize:

v^=vโˆฃvโˆฃ\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|}

Vector Operations

Addition: u+v=โŸจu1+v1,u2+v2,u3+v3โŸฉ\mathbf{u} + \mathbf{v} = \langle u_1 + v_1, u_2 + v_2, u_3 + v_3 \rangle

Scalar multiplication: cv=โŸจcv1,cv2,cv3โŸฉc\mathbf{v} = \langle cv_1, cv_2, cv_3 \rangle


Dot Product

uโ‹…v=u1v1+u2v2+u3v3\mathbf{u} \cdot \mathbf{v} = u_1v_1 + u_2v_2 + u_3v_3

Geometric Interpretation

uโ‹…v=โˆฃuโˆฃโˆฃvโˆฃcosโกฮธ\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta

where ฮธ\theta is the angle between the vectors.

Properties

  • uโ‹…v=0\mathbf{u} \cdot \mathbf{v} = 0 iff uโŠฅv\mathbf{u} \perp \mathbf{v} (orthogonal)
  • uโ‹…u=โˆฃuโˆฃ2\mathbf{u} \cdot \mathbf{u} = |\mathbf{u}|^2
  • Commutative: uโ‹…v=vโ‹…u\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}
  • Distributive: uโ‹…(v+w)=uโ‹…v+uโ‹…w\mathbf{u} \cdot (\mathbf{v} + \mathbf{w}) = \mathbf{u} \cdot \mathbf{v} + \mathbf{u} \cdot \mathbf{w}

Projection

The projection of u\mathbf{u} onto v\mathbf{v}:

projvu=uโ‹…vโˆฃvโˆฃ2v=uโ‹…vvโ‹…vv\text{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2}\mathbf{v} = \frac{\mathbf{u} \cdot \mathbf{v}}{\mathbf{v} \cdot \mathbf{v}}\mathbf{v}

Scalar component: compvu=uโ‹…vโˆฃvโˆฃ\text{comp}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|}


Cross Product

Only defined in R3\mathbb{R}^3:

uร—v=โˆฃijku1u2u3v1v2v3โˆฃ\mathbf{u} \times \mathbf{v} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ u_1 & u_2 & u_3 \\ v_1 & v_2 & v_3 \end{vmatrix} =โŸจu2v3โˆ’u3v2,โ€…โ€Šu3v1โˆ’u1v3,โ€…โ€Šu1v2โˆ’u2v1โŸฉ= \langle u_2v_3 - u_3v_2, \; u_3v_1 - u_1v_3, \; u_1v_2 - u_2v_1 \rangle

Geometric Interpretation

  • uร—v\mathbf{u} \times \mathbf{v} is perpendicular to both u\mathbf{u} and v\mathbf{v}
  • Direction given by right-hand rule
  • Magnitude: โˆฃuร—vโˆฃ=โˆฃuโˆฃโˆฃvโˆฃsinโกฮธ|\mathbf{u} \times \mathbf{v}| = |\mathbf{u}||\mathbf{v}|\sin\theta
  • Equals the area of the parallelogram formed by u\mathbf{u} and v\mathbf{v}

Properties

  • uร—v=0\mathbf{u} \times \mathbf{v} = \mathbf{0} iff uโˆฅv\mathbf{u} \parallel \mathbf{v} (parallel)
  • Anti-commutative: uร—v=โˆ’(vร—u)\mathbf{u} \times \mathbf{v} = -(\mathbf{v} \times \mathbf{u})
  • uร—u=0\mathbf{u} \times \mathbf{u} = \mathbf{0}
  • Distributive: uร—(v+w)=uร—v+uร—w\mathbf{u} \times (\mathbf{v} + \mathbf{w}) = \mathbf{u} \times \mathbf{v} + \mathbf{u} \times \mathbf{w}

Triple Products

Scalar Triple Product

uโ‹…(vร—w)=โˆฃu1u2u3v1v2v3w1w2w3โˆฃ\mathbf{u} \cdot (\mathbf{v} \times \mathbf{w}) = \begin{vmatrix} u_1 & u_2 & u_3 \\ v_1 & v_2 & v_3 \\ w_1 & w_2 & w_3 \end{vmatrix}

Geometric meaning: Volume of the parallelepiped formed by u,v,w\mathbf{u}, \mathbf{v}, \mathbf{w}.

Vector Triple Product

uร—(vร—w)=(uโ‹…w)vโˆ’(uโ‹…v)w\mathbf{u} \times (\mathbf{v} \times \mathbf{w}) = (\mathbf{u} \cdot \mathbf{w})\mathbf{v} - (\mathbf{u} \cdot \mathbf{v})\mathbf{w}

(BAC-CAB rule)


Lines and Planes

Line in 3D

Through point P0=(x0,y0,z0)P_0 = (x_0, y_0, z_0) with direction v=โŸจa,b,cโŸฉ\mathbf{v} = \langle a, b, c \rangle:

Vector form: r(t)=r0+tv\mathbf{r}(t) = \mathbf{r}_0 + t\mathbf{v}

Parametric form:

x=x0+at,y=y0+bt,z=z0+ctx = x_0 + at, \quad y = y_0 + bt, \quad z = z_0 + ct

Symmetric form:

xโˆ’x0a=yโˆ’y0b=zโˆ’z0c\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}

Plane in 3D

Through point P0=(x0,y0,z0)P_0 = (x_0, y_0, z_0) with normal n=โŸจa,b,cโŸฉ\mathbf{n} = \langle a, b, c \rangle:

Vector form: nโ‹…(rโˆ’r0)=0\mathbf{n} \cdot (\mathbf{r} - \mathbf{r}_0) = 0

Scalar form:

a(xโˆ’x0)+b(yโˆ’y0)+c(zโˆ’z0)=0a(x - x_0) + b(y - y_0) + c(z - z_0) = 0

General form:

ax+by+cz=dax + by + cz = d

Distance from Point to Plane

Distance from point (x1,y1,z1)(x_1, y_1, z_1) to plane ax+by+cz=dax + by + cz = d:

D=โˆฃax1+by1+cz1โˆ’dโˆฃa2+b2+c2D = \frac{|ax_1 + by_1 + cz_1 - d|}{\sqrt{a^2 + b^2 + c^2}}

Summary

OperationFormulaResultGeometric Meaning
Dot productuโ‹…v\mathbf{u} \cdot \mathbf{v}Scalar$
Cross productuร—v\mathbf{u} \times \mathbf{v}VectorNormal to both, area of parallelogram
Scalar tripleuโ‹…(vร—w)\mathbf{u} \cdot (\mathbf{v} \times \mathbf{w})ScalarVolume of parallelepiped