Vector Algebra
Vectors and Components
A vector has both magnitude and direction (e.g. displacement, force), unlike a scalar which has magnitude only. In space a vector is written $\vec{a}=a_1\hat{i}+a_2\hat{j}+a_3\hat{k}$.
Magnitude and unit vectors
The magnitude is $|\vec a|=\sqrt{a_1^2+a_2^2+a_3^2}$. A unit vector in the direction of $\vec a$ is $\hat a=\dfrac{\vec a}{|\vec a|}$.
Types of vectors
- Zero vector $\vec 0$: magnitude $0$, no definite direction.
- Unit vector: magnitude $1$.
- Equal vectors: same magnitude and direction.
- Collinear/parallel: $\vec a=\lambda\vec b$ for some scalar $\lambda$.
Addition and scalar multiplication
Add componentwise; scalar $\lambda$ multiplies each component (triangle/parallelogram law geometrically). The position vector of a point $P(x,y,z)$ is $x\hat i+y\hat j+z\hat k$, and the vector from $A$ to $B$ is $\overrightarrow{AB}=\vec b-\vec a$ (position vector of $B$ minus that of $A$). The section formula gives the point dividing $AB$ in ratio $m:n$ as $\dfrac{m\vec b+n\vec a}{m+n}$.
$|\vec a|=\sqrt{3^2+0^2+4^2}=\sqrt{25}=5.$
$|\vec a|=\sqrt{4+9+36}=\sqrt{49}=7$. So $\hat a=\dfrac{1}{7}(2\hat i+3\hat j+6\hat k).$
$\overrightarrow{AB}=\vec b-\vec a=(4-1)\hat i+(6-2)\hat j+(3-3)\hat k=3\hat i+4\hat j.$
Midpoint $=\dfrac{\vec a+\vec b}{2}=\dfrac{(2\hat i+4\hat k)+(2\hat j)}{2}=\hat i+\hat j+2\hat k.$
- $\vec a=a_1\hat i+a_2\hat j+a_3\hat k$; $|\vec a|=\sqrt{a_1^2+a_2^2+a_3^2}$.
- Unit vector $\hat a=\dfrac{\vec a}{|\vec a|}$.
- $\overrightarrow{AB}=\vec b-\vec a$; section formula $\dfrac{m\vec b+n\vec a}{m+n}$.
- Parallel vectors satisfy $\vec a=\lambda\vec b$.
Dot (Scalar) Product
The dot product of two vectors produces a scalar:
$$\vec a\cdot\vec b=|\vec a||\vec b|\cos\theta = a_1b_1+a_2b_2+a_3b_3,$$
where $\theta$ is the angle between them.
Key consequences
- Angle: $\cos\theta=\dfrac{\vec a\cdot\vec b}{|\vec a||\vec b|}$.
- Perpendicularity: $\vec a\perp\vec b \iff \vec a\cdot\vec b=0$.
- $\vec a\cdot\vec a=|\vec a|^2$.
- Projection of $\vec a$ on $\vec b$: $\dfrac{\vec a\cdot\vec b}{|\vec b|}$.
The dot product is commutative ($\vec a\cdot\vec b=\vec b\cdot\vec a$) and distributive over addition.
$=1\cdot2+2\cdot(-1)+3\cdot1=2-2+3=3.$
$\vec a\cdot\vec b=1\cdot1+1\cdot(-1)=0$. Since the dot product is $0$, yes, they are perpendicular.
$\cos\theta=\dfrac{\vec a\cdot\vec b}{|\vec a||\vec b|}=\dfrac{1}{1\cdot\sqrt2}=\dfrac{1}{\sqrt2}$, so $\theta=45^\circ.$
Projection $=\dfrac{\vec a\cdot\vec b}{|\vec b|}=\dfrac{2}{1}=2.$
- $\vec a\cdot\vec b=|\vec a||\vec b|\cos\theta=a_1b_1+a_2b_2+a_3b_3$ (a scalar).
- $\vec a\perp\vec b \iff \vec a\cdot\vec b=0$; $\ \vec a\cdot\vec a=|\vec a|^2$.
- $\cos\theta=\dfrac{\vec a\cdot\vec b}{|\vec a||\vec b|}$.
- Projection of $\vec a$ on $\vec b$ is $\dfrac{\vec a\cdot\vec b}{|\vec b|}$.
Cross (Vector) Product
The cross product of two vectors produces a vector perpendicular to both:
$$\vec a\times\vec b=|\vec a||\vec b|\sin\theta\,\hat n = \begin{vmatrix}\hat i&\hat j&\hat k\\a_1&a_2&a_3\\b_1&b_2&b_3\end{vmatrix},$$
where $\hat n$ is the unit vector perpendicular to the plane of $\vec a,\vec b$ (right-hand rule).
Key consequences
- Anti-commutative: $\vec a\times\vec b=-(\vec b\times\vec a)$.
- Parallel test: $\vec a\parallel\vec b \iff \vec a\times\vec b=\vec 0$.
- $|\vec a\times\vec b|$ is the area of the parallelogram with sides $\vec a,\vec b$; half of it is the triangle's area.
- $\sin\theta=\dfrac{|\vec a\times\vec b|}{|\vec a||\vec b|}$.
$\vec a\times\vec b=\begin{vmatrix}\hat i&\hat j&\hat k\\1&1&0\\0&1&1\end{vmatrix}=\hat i(1\cdot1-0\cdot1)-\hat j(1\cdot1-0\cdot0)+\hat k(1\cdot1-1\cdot0)=\hat i-\hat j+\hat k.$
From Example 1, $\vec a\times\vec b=\hat i-\hat j+\hat k$, so area $=|\vec a\times\vec b|=\sqrt{1+1+1}=\sqrt3$ square units.
$\vec a=2\vec b$, so they are parallel. Check: $\vec a\times\vec b=\begin{vmatrix}\hat i&\hat j&\hat k\\2&4&0\\1&2&0\end{vmatrix}=\vec 0$, confirming parallelism.
Area $=\tfrac12|\vec a\times\vec b|=\tfrac12\sqrt3=\dfrac{\sqrt3}{2}$ square units.
- $\vec a\times\vec b$ is a vector $\perp$ both, magnitude $|\vec a||\vec b|\sin\theta$.
- Anti-commutative: $\vec a\times\vec b=-\vec b\times\vec a$.
- $\vec a\parallel\vec b \iff \vec a\times\vec b=\vec 0$.
- $|\vec a\times\vec b|=$ area of parallelogram; triangle area $=\tfrac12|\vec a\times\vec b|$.