Skip to content

Vectors and Matrices

Vectors and Matrices

Higher Vectors

Vector Fundamentals

A vector has both magnitude and direction. A scalar has only magnitude.

A vector in 2D can be written as a=(a1a2)\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \end{pmatrix} or as the Column vector (a1,a2)(a_1, a_2). In 3D: a=(a1a2a3)\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix}.

Magnitude (Modulus):

a=a12+a22|\mathbf{a}| = \sqrt{a_1^2 + a_2^2}

In 3D: a=a12+a22+a32|\mathbf{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}.

Unit Vector:

a^=aa\hat{\mathbf{a}} = \frac{\mathbf{a}}{|\mathbf{a}|}

A unit vector has magnitude 1. The standard unit vectors are i=(100)\mathbf{i} = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} j=(010)\mathbf{j} = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} k=(001)\mathbf{k} = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}.

Any vector in 3D can be written as a=a1i+a2j+a3k\mathbf{a} = a_1\mathbf{i} + a_2\mathbf{j} + a_3\mathbf{k}.

Example: Find the unit vector in the direction of a=(3,4)\mathbf{a} = (3, -4).

a=9+16=5|\mathbf{a}| = \sqrt{9 + 16} = 5

a^=(35,45)\hat{\mathbf{a}} = \left(\frac{3}{5}, -\frac{4}{5}\right)

Vector Arithmetic

Addition:

(a1a2)+(b1b2)=(a1+b1a2+b2)\begin{pmatrix} a_1 \\ a_2 \end{pmatrix} + \begin{pmatrix} b_1 \\ b_2 \end{pmatrix} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \end{pmatrix}

Vector addition is commutative (a+b=b+a\mathbf{a} + \mathbf{b} = \mathbf{b} + \mathbf{a}) and associative ((a+b)+c=a+(b+c)( \mathbf{a} + \mathbf{b}) + \mathbf{c} = \mathbf{a} + (\mathbf{b} + \mathbf{c})).

Scalar Multiplication:

K(a1a2)=(ka1ka2)K\begin{pmatrix} a_1 \\ a_2 \end{pmatrix} = \begin{pmatrix} ka_1 \\ ka_2 \end{pmatrix}

Scalar multiplication distributes over vector addition: k(a+b)=ka+kbk(\mathbf{a} + \mathbf{b}) = k\mathbf{a} + k\mathbf{b}.

Scalar Product (Dot Product):

ab=a1b1+a2b2+a3b3=abcosθ\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 = |\mathbf{a}||\mathbf{b}|\cos\theta

Where θ\theta is the angle between a\mathbf{a} and b\mathbf{b}.

Proof of the dot product formula. By the cosine rule in the triangle formed by a\mathbf{a} b\mathbf{b}And ab\mathbf{a} - \mathbf{b}:

ab2=a2+b22abcosθ|\mathbf{a} - \mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 - 2|\mathbf{a}||\mathbf{b}|\cos\theta

Expanding the left side: (ab)(ab)=a22ab+b2(\mathbf{a} - \mathbf{b}) \cdot (\mathbf{a} - \mathbf{b}) = |\mathbf{a}|^2 - 2\mathbf{a} \cdot \mathbf{b} + |\mathbf{b}|^2.

Comparing: 2ab=2abcosθ-2\mathbf{a} \cdot \mathbf{b} = -2|\mathbf{a}||\mathbf{b}|\cos\thetaHence ab=abcosθ\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta.

Example: Find the angle between a=(2,1,1)\mathbf{a} = (2, 1, -1) and b=(1,3,2)\mathbf{b} = (1, -3, 2).

ab=2(1)+1(3)+(1)(2)=232=3\mathbf{a} \cdot \mathbf{b} = 2(1) + 1(-3) + (-1)(2) = 2 - 3 - 2 = -3 a=4+1+1=6|\mathbf{a}| = \sqrt{4 + 1 + 1} = \sqrt{6} b=1+9+4=14|\mathbf{b}| = \sqrt{1 + 9 + 4} = \sqrt{14} cosθ=3614=384=3221\cos\theta = \frac{-3}{\sqrt{6}\sqrt{14}} = \frac{-3}{\sqrt{84}} = \frac{-3}{2\sqrt{21}} θ=arccos(3221)109.1°\theta = \arccos\left(\frac{-3}{2\sqrt{21}}\right) \approx 109.1°

Position Vectors and Displacement

The position vector of point AA relative to an origin OO is OA=a\overrightarrow{OA} = \mathbf{a}.

The displacement from AA to BB is AB=ba\overrightarrow{AB} = \mathbf{b} - \mathbf{a}.

Triangle law of vector addition: AB+BC=AC\overrightarrow{AB} + \overrightarrow{BC} = \overrightarrow{AC}.

Example: Given OA=(3,1,2)\overrightarrow{OA} = (3, 1, -2) and OB=(1,4,3)\overrightarrow{OB} = (-1, 4, 3)Find AB\overrightarrow{AB} and the distance ABAB.

AB=OBOA=(13,41,3(2))=(4,3,5)\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA} = (-1 - 3, 4 - 1, 3 - (-2)) = (-4, 3, 5) AB=AB=16+9+25=50=52AB = |\overrightarrow{AB}| = \sqrt{16 + 9 + 25} = \sqrt{50} = 5\sqrt{2}

Properties of the Scalar Product

  • aa=a2\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2
  • ab=0\mathbf{a} \cdot \mathbf{b} = 0 if and only if a\mathbf{a} is perpendicular to b\mathbf{b} (for non-zero vectors)
  • ab=ba\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a} (commutative)
  • a(b+c)=ab+ac\mathbf{a} \cdot (\mathbf{b} + \mathbf{c}) = \mathbf{a} \cdot \mathbf{b} + \mathbf{a} \cdot \mathbf{c} (distributive)
  • a(kb)=k(ab)\mathbf{a} \cdot (k\mathbf{b}) = k(\mathbf{a} \cdot \mathbf{b})

Example: Determine the value of kk for which the vectors a=(k,2,1)\mathbf{a} = (k, 2, -1) and b=(3,k,4)\mathbf{b} = (3, k, 4) are perpendicular.

ab=0\mathbf{a} \cdot \mathbf{b} = 0

3k+2k4=03k + 2k - 4 = 0

5k=45k = 4

K=45K = \frac{4}{5}

Section Formula (Higher)

The position vector of a point that divides the line segment from AA to BB in the ratio m:nm : n Is:

r=na+mbm+n\mathbf{r} = \frac{n\mathbf{a} + m\mathbf{b}}{m + n}

The midpoint of ABAB (when m=n=1m = n = 1):

r=a+b2\mathbf{r} = \frac{\mathbf{a} + \mathbf{b}}{2}

Example: Find the position vector of the point dividing the line from A(1,2,3)A(1, 2, 3) to B(7,2,5)B(7, -2, 5) in the ratio 2:12:1.

r=1(7,2,5)+2(1,2,3)3=(7,2,5)+(2,4,6)3=(9,2,11)3=(3,23,113)\mathbf{r} = \frac{1 \cdot (7, -2, 5) + 2 \cdot (1, 2, 3)}{3} = \frac{(7, -2, 5) + (2, 4, 6)}{3} = \frac{(9, 2, 11)}{3} = (3, \frac{2}{3}, \frac{11}{3})

Collinearity

Three points AA, BB, CC are collinear if and only if AB\overrightarrow{AB} is parallel to AC\overrightarrow{AC}I.e., AB=kAC\overrightarrow{AB} = k\overrightarrow{AC} for some scalar kk.

Example: Determine whether A(1,2,1)A(1, 2, -1), B(3,5,1)B(3, 5, 1)And C(5,8,3)C(5, 8, 3) are collinear.

AB=(2,3,2)\overrightarrow{AB} = (2, 3, 2) AC=(4,6,4)=2(2,3,2)=2AB\overrightarrow{AC} = (4, 6, 4) = 2(2, 3, 2) = 2\overrightarrow{AB}.

Since AC=2AB\overrightarrow{AC} = 2\overrightarrow{AB}The points are collinear. BB is the midpoint of ACAC.


Higher Matrices

Matrix Notation and Operations

A matrix is a rectangular array of numbers. An m×nm \times n matrix has mm rows and nn columns.

A=(a11a12a1na21a22a2nam1am2amn)A = \begin{pmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{pmatrix}

Addition: C=A+BC = A + B where cij=aij+bijc_{ij} = a_{ij} + b_{ij} (matrices must have the same dimensions).

Scalar Multiplication: kAkA has entries kaijka_{ij}.

Matrix Multiplication: If AA is m×nm \times n and BB is n×pn \times pThen C=ABC = AB is m×pm \times p where:

Cij=k=1naikbkjC_{ij} = \sum_{k=1}^{n} a_{ik} b_{kj}

Why the dimensions must match. The entry cijc_{ij} is the dot product of row ii of AA with Column jj of BB. For this dot product to be defined, row ii of AA and column jj of BB must Have the same length, which means the number of columns of AA equals the number of rows of BB.

Matrix multiplication is associative ((AB)C=A(BC)(AB)C = A(BC)) and distributive over addition (A(B+C)=AB+ACA(B+C) = AB + AC), but not commutative (ABBAAB \neq BA).

Example: Calculate ABAB where A=(2113)A = \begin{pmatrix} 2 & 1 \\ -1 & 3 \end{pmatrix} and B=(1402)B = \begin{pmatrix} 1 & 4 \\ 0 & -2 \end{pmatrix}.

AB=(2(1)+1(0)2(4)+1(2)1(1)+3(0)1(4)+3(2))=(26110)AB = \begin{pmatrix} 2(1) + 1(0) & 2(4) + 1(-2) \\ -1(1) + 3(0) & -1(4) + 3(-2) \end{pmatrix} = \begin{pmatrix} 2 & 6 \\ -1 & -10 \end{pmatrix}

Verify non-commutativity:

BA=(1(2)+4(1)1(1)+4(3)0(2)+(2)(1)0(1)+(2)(3))=(21326)ABBA = \begin{pmatrix} 1(2) + 4(-1) & 1(1) + 4(3) \\ 0(2) + (-2)(-1) & 0(1) + (-2)(3) \end{pmatrix} = \begin{pmatrix} -2 & 13 \\ 2 & -6 \end{pmatrix} \neq AB

Determinant and Inverse of a 2×22 \times 2 Matrix

Determinant:

detA=A=abcd=adbc\det A = |A| = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

The determinant measures the area scaling factor of the linear transformation represented by AA. If detA=0\det A = 0The transformation collapses the plane onto a line (or a point), and the matrix is not Invertible.

Inverse:

A1=1detA(dbca)A^{-1} = \frac{1}{\det A}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

The inverse exists if and only if detA0\det A \neq 0.

Verification: AA1=1adbc(abcd)(dbca)=1adbc(adbc00adbc)=IAA^{-1} = \frac{1}{ad-bc}\begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} = \frac{1}{ad-bc}\begin{pmatrix} ad-bc & 0 \\ 0 & ad-bc \end{pmatrix} = I.

Example: Find the inverse of A=(3512)A = \begin{pmatrix} 3 & 5 \\ 1 & 2 \end{pmatrix}.

detA=3(2)5(1)=65=1\det A = 3(2) - 5(1) = 6 - 5 = 1

A1=(2513)A^{-1} = \begin{pmatrix} 2 & -5 \\ -1 & 3 \end{pmatrix}

Solving Systems of Linear Equations

A system Ax=bA\mathbf{x} = \mathbf{b} has solution x=A1b\mathbf{x} = A^{-1}\mathbf{b} (provided AA is Invertible). If detA=0\det A = 0The system has either no solutions or infinitely many solutions.

Example: Solve the system:

3x+5y=113x + 5y = 11 x+2y=5x + 2y = 5

(xy)=(3512)1(115)=(2513)(115)=(222511+15)=(34)\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 3 & 5 \\ 1 & 2 \end{pmatrix}^{-1}\begin{pmatrix} 11 \\ 5 \end{pmatrix} = \begin{pmatrix} 2 & -5 \\ -1 & 3 \end{pmatrix}\begin{pmatrix} 11 \\ 5 \end{pmatrix} = \begin{pmatrix} 22 - 25 \\ -11 + 15 \end{pmatrix} = \begin{pmatrix} -3 \\ 4 \end{pmatrix}

Solution: x=3x = -3, y=4y = 4.

Transformations Using Matrices

2D Transformations:

TransformationMatrix
Reflection in xx-axis(1001)\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}
Reflection in yy-axis(1001)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}
Rotation by θ\theta about origin(cosθsinθsinθcosθ)\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}
Enlargement by scale factor kk(k00k)\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}

The determinant of a transformation matrix gives the area scale factor. A negative determinant Indicates the transformation involves a reflection.

Example: Rotate the point (3,2)(3, 2) by 9090^\circ anticlockwise about the origin.

(0110)(32)=(23)\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} 3 \\ 2 \end{pmatrix} = \begin{pmatrix} -2 \\ 3 \end{pmatrix}

The image is (2,3)(-2, 3).

Example: Reflect the point (4,1)(4, -1) in the yy-axis.

(1001)(41)=(41)\begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 4 \\ -1 \end{pmatrix} = \begin{pmatrix} -4 \\ -1 \end{pmatrix}

The image is (4,1)(-4, -1).

Example: Use the matrix (3003)\begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} to describe the Transformation.

This is an enlargement by scale factor 3 centred at the origin. The determinant is 9>09 > 0 Confirming it is a pure enlargement (no reflection). Every point (x,y)(x, y) maps to (3x,3y)(3x, 3y).

The relationship with the identity matrix (1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} is that This matrix represents an enlargement by scale factor 1 (i.e., the identity/no transformation).


Advanced Higher Vectors

Vector Product (Cross Product)

The vector product of a=(a1,a2,a3)\mathbf{a} = (a_1, a_2, a_3) and b=(b1,b2,b3)\mathbf{b} = (b_1, b_2, b_3) is:

a×b=ijka1a2a3b1b2b3=(a2b3a3b2a3b1a1b3a1b2a2b1)\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} = \begin{pmatrix} a_2 b_3 - a_3 b_2 \\ a_3 b_1 - a_1 b_3 \\ a_1 b_2 - a_2 b_1 \end{pmatrix}

Properties:

  • a×b=(b×a)\mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a}) (anti-commutative)
  • a×b=absinθ|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta
  • a×b\mathbf{a} \times \mathbf{b} is perpendicular to both a\mathbf{a} and b\mathbf{b}
  • a×b=0\mathbf{a} \times \mathbf{b} = \mathbf{0} if a\mathbf{a} and b\mathbf{b} are parallel

Geometric interpretation: a×b|\mathbf{a} \times \mathbf{b}| is the area of the parallelogram with Sides a\mathbf{a} and b\mathbf{b}. The area of the triangle is 12a×b\frac{1}{2}|\mathbf{a} \times \mathbf{b}|.

Example: Find a×b\mathbf{a} \times \mathbf{b} where a=(1,2,3)\mathbf{a} = (1, 2, 3) and b=(4,1,2)\mathbf{b} = (4, -1, 2).

a×b=((2)(2)(3)(1)(3)(4)(1)(2)(1)(1)(2)(4))=(4+312218)=(7109)\mathbf{a} \times \mathbf{b} = \begin{pmatrix} (2)(2) - (3)(-1) \\ (3)(4) - (1)(2) \\ (1)(-1) - (2)(4) \end{pmatrix} = \begin{pmatrix} 4 + 3 \\ 12 - 2 \\ -1 - 8 \end{pmatrix} = \begin{pmatrix} 7 \\ 10 \\ -9 \end{pmatrix}

Verification: a(a×b)=1(7)+2(10)+3(9)=7+2027=0\mathbf{a} \cdot (\mathbf{a} \times \mathbf{b}) = 1(7) + 2(10) + 3(-9) = 7 + 20 - 27 = 0. Confirmed perpendicular.

Triple Scalar Product

[a,b,c]=a(b×c)[\mathbf{a}, \mathbf{b}, \mathbf{c}] = \mathbf{a} \cdot (\mathbf{b} \times \mathbf{c})

This equals the volume of the parallelepiped formed by vectors a\mathbf{a}, b\mathbf{b}And c\mathbf{c}.

The three vectors are coplanar if and only if [a,b,c]=0[\mathbf{a}, \mathbf{b}, \mathbf{c}] = 0.

Properties:

  • [a,b,c]=[b,c,a]=[c,a,b][\mathbf{a}, \mathbf{b}, \mathbf{c}] = [\mathbf{b}, \mathbf{c}, \mathbf{a}] = [\mathbf{c}, \mathbf{a}, \mathbf{b}] (cyclic permutation)
  • [a,b,c]=[b,a,c][\mathbf{a}, \mathbf{b}, \mathbf{c}] = -[\mathbf{b}, \mathbf{a}, \mathbf{c}] (swapping two vectors negates)

Example: Show that the vectors (1,2,1)(1, 2, -1), (3,1,2)(3, 1, 2)And (0,5,5)(0, 5, -5) are coplanar.

b×c=(1(5)2520(1)(5)3510)=(51005150)=(15515)\mathbf{b} \times \mathbf{c} = \begin{pmatrix} 1 \cdot (-5) - 2 \cdot 5 \\ 2 \cdot 0 - (-1) \cdot (-5) \\ 3 \cdot 5 - 1 \cdot 0 \end{pmatrix} = \begin{pmatrix} -5 - 10 \\ 0 - 5 \\ 15 - 0 \end{pmatrix} = \begin{pmatrix} -15 \\ -5 \\ 15 \end{pmatrix} a(b×c)=1(15)+2(5)+(1)(15)=151015=40\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}) = 1(-15) + 2(-5) + (-1)(15) = -15 - 10 - 15 = -40

Wait, that is not zero. Let me recompute. b=(3,1,2)\mathbf{b} = (3, 1, 2), c=(0,5,5)\mathbf{c} = (0, 5, -5).

b×c=(1(5)2(5)2(0)3(5)3(5)1(0))=(151515)\mathbf{b} \times \mathbf{c} = \begin{pmatrix} 1(-5) - 2(5) \\ 2(0) - 3(-5) \\ 3(5) - 1(0) \end{pmatrix} = \begin{pmatrix} -15 \\ 15 \\ 15 \end{pmatrix}

Wait, let me be careful. The cross product formula gives:

b×c=(b2c3b3c2,b3c1b1c3,b1c2b2c1)\mathbf{b} \times \mathbf{c} = (b_2 c_3 - b_3 c_2, b_3 c_1 - b_1 c_3, b_1 c_2 - b_2 c_1) =(1(5)25,203(5),3510)= (1 \cdot (-5) - 2 \cdot 5, 2 \cdot 0 - 3 \cdot (-5), 3 \cdot 5 - 1 \cdot 0) =(15,15,15)= (-15, 15, 15).

a(b×c)=1(15)+2(15)+(1)(15)=15+3015=0\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}) = 1(-15) + 2(15) + (-1)(15) = -15 + 30 - 15 = 0.

Confirmed coplanar. \blacksquare

Lines and Planes in 3D

Equation of a plane: rn=d\mathbf{r} \cdot \mathbf{n} = dWhere n\mathbf{n} is the normal vector And dd is a constant.

In Cartesian form: ax+by+cz=dax + by + cz = d.

The normal vector n=(a,b,c)\mathbf{n} = (a, b, c) is perpendicular to every vector in the plane.

Angle between two planes: The angle between their normal vectors.

cosθ=n1n2n1n2\cos\theta = \frac{|\mathbf{n}_1 \cdot \mathbf{n}_2|}{|\mathbf{n}_1||\mathbf{n}_2|}

Angle between a line and a plane: If the line has direction d\mathbf{d} and the plane has Normal n\mathbf{n}The angle ϕ\phi between the line and the plane satisfies:

sinϕ=dndn\sin\phi = \frac{|\mathbf{d} \cdot \mathbf{n}|}{|\mathbf{d}||\mathbf{n}|}

Distance from a point to a plane:

D=nr0d0nD = \frac{|\mathbf{n} \cdot \mathbf{r}_0 - d_0|}{|\mathbf{n}|}

Where r0\mathbf{r}_0 is the position vector of the point and d0d_0 is the constant in the plane Equation.

Example: Find the equation of the plane through (1,2,1)(1, 2, -1), (3,0,2)(3, 0, 2)And (0,1,4)(0, 1, 4).

AB=(2,2,3),AC=(1,1,5)\overrightarrow{AB} = (2, -2, 3), \quad \overrightarrow{AC} = (-1, -1, 5) n=AB×AC=((2)(5)(3)(1)(3)(1)(2)(5)(2)(1)(2)(1))=(10+331022)=(7134)\mathbf{n} = \overrightarrow{AB} \times \overrightarrow{AC} = \begin{pmatrix} (-2)(5) - (3)(-1) \\ (3)(-1) - (2)(5) \\ (2)(-1) - (-2)(-1) \end{pmatrix} = \begin{pmatrix} -10 + 3 \\ -3 - 10 \\ -2 - 2 \end{pmatrix} = \begin{pmatrix} -7 \\ -13 \\ -4 \end{pmatrix}

Using point (1,2,1)(1, 2, -1): 7x13y4z=7(1)13(2)4(1)=726+4=29-7x - 13y - 4z = -7(1) - 13(2) - 4(-1) = -7 - 26 + 4 = -29.

7x+13y+4z=297x + 13y + 4z = 29

Line of Intersection of Two Planes

Two non-parallel planes intersect in a line. To find the line of intersection:

  1. The direction vector is d=n1×n2\mathbf{d} = \mathbf{n}_1 \times \mathbf{n}_2
  2. Find a point on both planes by setting one variable (e.g., z=0z = 0) and solving the resulting 2×22 \times 2 system

Example: Find the line of intersection of x+y+z=6x + y + z = 6 and 2xy+z=32x - y + z = 3.

Direction: d=(1,1,1)×(2,1,1)=(1+1,21,12)=(2,1,3)\mathbf{d} = (1, 1, 1) \times (2, -1, 1) = (1+1, 2-1, -1-2) = (2, 1, -3).

Set z=0z = 0: x+y=6x + y = 6 and 2xy=32x - y = 3. Adding: 3x=93x = 9So x=3x = 3, y=3y = 3.

Line: r=(3,3,0)+t(2,1,3)\mathbf{r} = (3, 3, 0) + t(2, 1, -3).

Example: Find the shortest distance from the point (2,1,3)(2, 1, 3) to the plane 2xy+2z=52x - y + 2z = 5.

n=(2,1,2)\mathbf{n} = (2, -1, 2), n=4+1+4=3|\mathbf{n}| = \sqrt{4 + 1 + 4} = 3.

D=2(2)1(1)+2(3)53=41+653=43D = \frac{|2(2) - 1(1) + 2(3) - 5|}{3} = \frac{|4 - 1 + 6 - 5|}{3} = \frac{4}{3}

Example: Find the angle between the planes 2xy+2z=52x - y + 2z = 5 and x+3yz=2x + 3y - z = 2.

n1=(2,1,2)\mathbf{n}_1 = (2, -1, 2), n2=(1,3,1)\mathbf{n}_2 = (1, 3, -1).

n1=3|\mathbf{n}_1| = 3, n2=11|\mathbf{n}_2| = \sqrt{11}.

n1n2=232=3\mathbf{n}_1 \cdot \mathbf{n}_2 = 2 - 3 - 2 = -3.

cosθ=3311=1110.3015\cos\theta = \frac{|-3|}{3\sqrt{11}} = \frac{1}{\sqrt{11}} \approx 0.3015 θ72.5°\theta \approx 72.5°

Advanced Higher Matrices

3×33 \times 3 Determinants

detA=abcdefghi=a(eifh)b(difg)+c(dheg)\det A = \begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix} = a(ei - fh) - b(di - fg) + c(dh - eg)

This is the cofactor expansion along the first row. You can expand along any row or column; choose The one with the most zeros for efficiency.

Properties of determinants:

  • det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B)
  • det(A1)=1det(A)\det(A^{-1}) = \frac{1}{\det(A)}
  • det(AT)=det(A)\det(A^T) = \det(A)
  • Swapping two rows negates the determinant
  • A row of zeros gives determinant zero
  • If two rows are equal, the determinant is zero

3×33 \times 3 Inverse

A^{-1} = \frac{1}{\det A}\mathrm{adj(A)

Where \mathrm{adj(A) is the adjugate (transpose of the cofactor matrix).

The cofactor CijC_{ij} is (1)i+j(-1)^{i+j} times the determinant of the 2×22 \times 2 matrix obtained by Deleting row ii and column jj.

Example: Find the inverse of A=(102131210)A = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 2 & 1 & 0 \end{pmatrix}.

detA=1(01)0(02)+2(16)=1+014=15\det A = 1(0 - 1) - 0(0 - 2) + 2(-1 - 6) = -1 + 0 - 14 = -15.

Cofactor matrix:

C=(127241633)C = \begin{pmatrix} -1 & 2 & -7 \\ 2 & -4 & -1 \\ -6 & -3 & 3 \end{pmatrix}

\mathrm{adj(A) = C^T = \begin{pmatrix} -1 & 2 & -6 \\ 2 & -4 & -3 \\ -7 & -1 & 3 \end{pmatrix}.

A1=115(126243713)=(115215252154151571511515)A^{-1} = \frac{1}{-15}\begin{pmatrix} -1 & 2 & -6 \\ 2 & -4 & -3 \\ -7 & -1 & 3 \end{pmatrix} = \begin{pmatrix} \frac{1}{15} & -\frac{2}{15} & \frac{2}{5} \\ -\frac{2}{15} & \frac{4}{15} & \frac{1}{5} \\ \frac{7}{15} & \frac{1}{15} & -\frac{1}{5} \end{pmatrix}

Eigenvalues and Eigenvectors (Advanced Higher)

A scalar λ\lambda is an eigenvalue of AA if there exists a non-zero vector v\mathbf{v} such That:

Av=λvA\mathbf{v} = \lambda\mathbf{v}

The vector v\mathbf{v} is called an eigenvector corresponding to λ\lambda.

Geometric interpretation: When AA acts on v\mathbf{v}It only stretches or compresses v\mathbf{v} (by factor λ\lambda) without changing its direction.

Finding Eigenvalues: Solve the characteristic equation det(AλI)=0\det(A - \lambda I) = 0.

Example: Find the eigenvalues and eigenvectors of A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

det(4λ123λ)=0\det\begin{pmatrix} 4 - \lambda & 1 \\ 2 & 3 - \lambda \end{pmatrix} = 0 (4λ)(3λ)2=0(4 - \lambda)(3 - \lambda) - 2 = 0 127λ+λ22=012 - 7\lambda + \lambda^2 - 2 = 0 λ27λ+10=0\lambda^2 - 7\lambda + 10 = 0 (λ5)(λ2)=0(\lambda - 5)(\lambda - 2) = 0

λ=5\lambda = 5 or λ=2\lambda = 2.

For λ=5\lambda = 5: (A5I)v=0(A - 5I)\mathbf{v} = \mathbf{0}:

(1122)(v1v2)=(00)\begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}

v1+v2=0-v_1 + v_2 = 0So v1=v2v_1 = v_2. Eigenvector: (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix}.

For λ=2\lambda = 2: (A2I)v=0(A - 2I)\mathbf{v} = \mathbf{0}:

(2121)(v1v2)=(00)\begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}

2v1+v2=02v_1 + v_2 = 0So v2=2v1v_2 = -2v_1. Eigenvector: (12)\begin{pmatrix} 1 \\ -2 \end{pmatrix}.

Example: Find the eigenvalues and eigenvectors of (5214)\begin{pmatrix} 5 & 2 \\ 1 & 4 \end{pmatrix}.

det(5λ214λ)=(5λ)(4λ)2=λ29λ+18=0\det\begin{pmatrix} 5 - \lambda & 2 \\ 1 & 4 - \lambda \end{pmatrix} = (5 - \lambda)(4 - \lambda) - 2 = \lambda^2 - 9\lambda + 18 = 0 (λ6)(λ3)=0(\lambda - 6)(\lambda - 3) = 0

λ=6\lambda = 6 or λ=3\lambda = 3.

For λ=6\lambda = 6: (1212)v=0\begin{pmatrix} -1 & 2 \\ 1 & -2 \end{pmatrix}\mathbf{v} = \mathbf{0}Giving v1=2v2v_1 = 2v_2. Eigenvector: (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}.

For λ=3\lambda = 3: (2211)v=0\begin{pmatrix} 2 & 2 \\ 1 & 1 \end{pmatrix}\mathbf{v} = \mathbf{0}Giving v1=v2v_1 = -v_2. Eigenvector: (11)\begin{pmatrix} 1 \\ -1 \end{pmatrix}.

Diagonalisation (Advanced Higher)

If an n×nn \times n matrix AA has nn linearly independent eigenvectors, it can be diagonalised: A=PDP1A = PDP^{-1}Where DD is a diagonal matrix containing the eigenvalues and PP has the Eigenvectors as columns.

Applications:

  • Computing Ak=PDkP1A^k = PD^kP^{-1} is efficient because DkD^k is trivial (just raise diagonal entries to power kk).
  • Solving systems of differential equations.

Worked Examples

See the examples integrated throughout the sections above.

Common Pitfalls

  1. Confusing scalar and vector products: The scalar product gives a scalar (number); the vector product gives a vector perpendicular to both inputs.

  2. Matrix multiplication is not commutative: , ABBAAB \neq BA. Always multiply in the specified order.

  3. Dimension mismatch: You can only multiply an m×nm \times n matrix by an n×pn \times p matrix. The “inner dimensions” must match.

  4. Forgetting the determinant in the inverse: The inverse is \dfrac{1}{\det A} \mathrm{adj(A) not just \mathrm{adj(A). Forgetting the 1/detA1/\det A factor gives a wrong answer unless detA=1\det A = 1.

  5. Normal vector direction: The normal to a plane can point in either direction; check consistency when computing angles. The angle between planes should be between 00 and π/2\pi/2.

  6. Eigenvector scaling: Eigenvectors are not unique — any non-zero scalar multiple is also an eigenvector. Always state the direction, not a specific magnitude.

  7. Sign errors in the cross product: The cross product is anti-commutative: a×b=(b×a)\mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a}). Getting the order wrong negates the result.

  8. Cofactor sign errors: The cofactor CijC_{ij} includes a factor of (1)i+j(-1)^{i+j}. For position (2,3)(2, 3)This is (1)5=1(-1)^5 = -1. Getting the sign wrong invalidates the entire inverse.

  9. Confusing rotation direction: A positive angle in the rotation matrix represents anticlockwise rotation. For clockwise rotation by θ\thetaUse θ-\theta or swap the signs of the off-diagonal entries.


Practice Questions

  1. Given a=(2,1,3)\mathbf{a} = (2, -1, 3) and b=(4,2,1)\mathbf{b} = (4, 2, -1)Find \mathbf{a} \cdot \mathbf{b}$$|\mathbf{a}|$$|\mathbf{b}|And the angle between them.

  2. Find the equation of the plane containing the points (1, 0, 2)$$(3, 1, -1)And (0,2,4)(0, 2, 4).

  3. Calculate a×b\mathbf{a} \times \mathbf{b} for a=(1,3,2)\mathbf{a} = (1, 3, -2) and b=(4,1,5)\mathbf{b} = (4, -1, 5). Verify that a×b\mathbf{a} \times \mathbf{b} is perpendicular to both a\mathbf{a} and b\mathbf{b}.

  4. Find the eigenvalues and eigenvectors of (5214)\begin{pmatrix} 5 & 2 \\ 1 & 4 \end{pmatrix}.

  5. Compute the determinant and inverse of (201132111)\begin{pmatrix} 2 & 0 & 1 \\ -1 & 3 & 2 \\ 1 & 1 & -1 \end{pmatrix}.

  6. Show that the vectors (1, 2, -1)$$(3, 1, 2)And (0,5,5)(0, 5, -5) are coplanar.

  7. Find the shortest distance from the point (2,1,3)(2, 1, 3) to the plane 2xy+2z=52x - y + 2z = 5.

  8. Solve the system of equations using matrices:

2x+yz=82x + y - z = 8 xy+3z=1x - y + 3z = 1 3x+2y+z=113x + 2y + z = 11

  1. Find the line of intersection of the planes x+2yz=4x + 2y - z = 4 and 3xy+2z=13x - y + 2z = 1.

  2. Find the angle between the planes 2xy+2z=52x - y + 2z = 5 and x+3yz=2x + 3y - z = 2.

  3. Use the matrix (3003)\begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} to describe the transformation. What is the relationship between this matrix and (1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}?

  4. Find the area of the triangle with vertices A(1,0,2)A(1, 0, 2), B(3,1,4)B(3, -1, 4)And C(0,2,1)C(0, 2, -1).

  5. Given OA=(1,1,3)\overrightarrow{OA} = (1, -1, 3) and OB=(4,2,1)\overrightarrow{OB} = (4, 2, -1)Find the position vector of the point PP on ABAB such that AP:PB=3:1AP : PB = 3 : 1.

  6. Find the angle between the lines r=(0,0,0)+s(1,2,1)\mathbf{r} = (0, 0, 0) + s(1, 2, -1) and r=(1,1,0)+t(2,1,3)\mathbf{r} = (1, 1, 0) + t(2, -1, 3).

  7. A 2×22 \times 2 matrix AA has eigenvalues λ1=2\lambda_1 = 2 and λ2=5\lambda_2 = 5 with corresponding eigenvectors (11)\begin{pmatrix} 1 \\ 1 \end{pmatrix} and (12)\begin{pmatrix} 1 \\ -2 \end{pmatrix}. Find AA and use it to compute A3A^3.

  8. Reflect the point (2,5)(2, 5) in the line y=xy = x using a matrix method. Verify your answer geometrically.

Summary

This topic covers the mathematical techniques and concepts related to vectors and matrices, including key theorems, methods, and problem-solving approaches.

Key concepts include:

  • fundamental definitions and theorems
  • algebraic and graphical methods
  • proof and logical reasoning
  • problem-solving strategies
  • applications and modelling

Regular practice with a variety of question types is essential to build fluency and confidence in applying these mathematical techniques.