New
✓ Official Syllabus VerifiedStandards & Rigor ↗
2

Matrices & Vectors

📐 ACT Math Level 2 · Matrices & Vectors Level 2 · 2  ·  Matrices & Vectors

A matrix is just a rectangular table of numbers — but that simple idea packs an entire system of linear equations into one object you can add, scale, and multiply. This chapter builds the algebra of 2\times2 matrices from scratch, then uses it to solve linear systems a genuinely new way, and closes with the vector tools (magnitude, dot product, angle) AIST Math 2 pairs with it.

● Definition 2.1 — Matrix, addition, and scalar multiplication

An m times n matrix is a rectangular array of numbers with \( m \) rows and \( n \) columns, written \( A=[a_{ij}] \) where \( a_{ij} \) is the entry in row \( i \), column \( j \). Two matrices of the same dimensions add entrywise, and a scalar \( k \) multiplies every entry:

\[ (A+B)_{ij}=a_{ij}+b_{ij}, \qquad (kA)_{ij}=k\,a_{ij}. \]

Coordinate grid showing geometric action of a linear transformation mapping △ABC to its image △A'B'C'.
Worked example 2.A — Add and scale
Problem. Let \( A=\begin{bmatrix}3&-2\\5&1\end{bmatrix} \) and \( B=\begin{bmatrix}-4&6\\2&-3\end{bmatrix} \). Find \( A+B \) and \( 3A \).
▸ Show step-by-step solution

\[ A+B=\begin{bmatrix}3+(-4)&-2+6\\5+2&1+(-3)\end{bmatrix}=\begin{bmatrix}-1&4\\7&-2\end{bmatrix}. \]

\[ 3A=\begin{bmatrix}9&-6\\15&3\end{bmatrix}. \]

● Definition 2.2 — Matrix multiplication

If \( A \) is \( m\times n \) and \( B \) is \( n\times p \) (the inner dimensions must match), the product \( AB \) is the \( m\times p \) matrix whose \( (i,j) \) entry is the dot product of row \( i \) of \( A \) with column \( j \) of \( B \):

\[ (AB)_{ij}=\sum_{k=1}^{n} a_{ik}b_{kj}. \]

Matrix multiplication is not commutative in general — \( AB\neq BA \) even when both products are defined.

Worked example 2.B — Multiply two matrices, and a matrix by a vector
Problem. Let \( A=\begin{bmatrix}2&1\\0&3\end{bmatrix} \), \( B=\begin{bmatrix}4&-1\\2&5\end{bmatrix} \), and \( \mathbf{v}=\begin{bmatrix}5\\-2\end{bmatrix} \).
▸ Show step-by-step solution

\[ AB=\begin{bmatrix}(2)(4)+(1)(2)&(2)(-1)+(1)(5)\\(0)(4)+(3)(2)&(0)(-1)+(3)(5)\end{bmatrix}=\begin{bmatrix}10&3\\6&15\end{bmatrix}. \]

\[ A\mathbf{v}=\begin{bmatrix}(2)(5)+(1)(-2)\\(0)(5)+(3)(-2)\end{bmatrix}=\begin{bmatrix}8\\-6\end{bmatrix}. \]

● Definition 2.3 — Determinant and the identity matrix

For a \( 2\times2 \) matrix \( A=\begin{bmatrix}a&b\\c&d\end{bmatrix} \), the determinant is the scalar \[ \det A=ad-bc. \] The \( 2\times2 \) identity matrix \( I=\begin{bmatrix}1&0\\0&1\end{bmatrix} \) satisfies \( IA=AI=A \) for every \( 2\times2 \) matrix \( A \) — it's the multiplicative identity.

▲ Theorem 2.1 — The \( 2\times2 \) inverse formula

If \( A=\begin{bmatrix}a&b\\c&d\end{bmatrix} \) and \( \det A=ad-bc\neq0 \), then \( A \) is invertible, with

\[ A^{-1}=\frac{1}{\det A}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}. \]

If \( \det A=0 \), no inverse exists.

Proof

Let \( A=\begin{bmatrix}a&b\\c&d\end{bmatrix} \) and \( d_0=ad-bc\neq0 \). Multiply \( A \) by the claimed inverse \( \tfrac{1}{d_0}\begin{bmatrix}d&-b\\-c&a\end{bmatrix} \) (Definition 2.2):

\[ A\cdot\frac{1}{d_0}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}=\frac{1}{d_0}\begin{bmatrix}ad-bc&-ab+ba\\cd-dc&-cb+da\end{bmatrix}=\frac{1}{d_0}\begin{bmatrix}d_0&0\\0&d_0\end{bmatrix}=\begin{bmatrix}1&0\\0&1\end{bmatrix}=I. \]

The same computation in the other order gives \( \tfrac{1}{d_0}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}\cdot A=I \) as well, so this matrix is a genuine two-sided inverse. When \( \det A=0 \), suppose toward contradiction some matrix \( B \) satisfied \( AB=I \); a short computation (or the fact that \( \det(AB)=\det A\cdot\det B \)) would force \( \det A\cdot\det B=\det I=1 \), impossible since \( \det A=0 \) makes the left side \( 0 \). So no inverse exists. \( \blacksquare \)

Worked example 2.C — Invert a matrix and solve a system with it
Problem. Solve \( \begin{cases}2x+3y=16\\x-y=-2\end{cases} \) by writing it as \( A\mathbf{x}=\mathbf{b} \) and inverting \( A \).
▸ Show step-by-step solution

Here \( A=\begin{bmatrix}2&3\\1&-1\end{bmatrix} \), \( \mathbf{b}=\begin{bmatrix}16\\-2\end{bmatrix} \). \( \det A=(2)(-1)-(3)(1)=-5 \), so by Theorem 2.1:

\[ A^{-1}=\frac{1}{-5}\begin{bmatrix}-1&-3\\-1&2\end{bmatrix}=\begin{bmatrix}\tfrac{1}{5}&\tfrac{3}{5}\\[2pt]\tfrac{1}{5}&-\tfrac{2}{5}\end{bmatrix}. \]

Then \( \mathbf{x}=A^{-1}\mathbf{b} \): \[ x=\tfrac{1}{5}(16)+\tfrac{3}{5}(-2)=\tfrac{16-6}{5}=2, \qquad y=\tfrac{1}{5}(16)+\left(-\tfrac{2}{5}\right)(-2)=\tfrac{16+4}{5}=4. \] Check: \( 2(2)+3(4)=4+12=16 \) ✓ and \( 2-4=-2 \) ✓.

⊙ Explorer · Determinant as signed area
interactive
\(\det A = ad -bc\)\(-5.000\)
A is...invertible
\(A^{-1}\) (rows)\((0.200, 0.600), (0.200, -0.400)\)

The indigo arrow is column 1 of A \((a, c)\); the amber arrow is column \(2 (b, d)\). The shaded parallelogram they span has area \(|\det A|\) — amber-tinted when \(\det A\) < 0, indigo when det A > 0. By Theorem 2.1, A has an inverse exactly when \(\det A \ne 0\).

● Definition 2.4 — Vectors: magnitude and dot product

A vector \( \mathbf{u}=\langle u_1,u_2\rangle \) in the plane has magnitude \( |\mathbf{u}|=\sqrt{u_1^2+u_2^2} \). The dot product of \( \mathbf{u}=\langle u_1,u_2\rangle \) and \( \mathbf{v}=\langle v_1,v_2\rangle \) is the scalar \[ \mathbf{u}\cdot\mathbf{v}=u_1v_1+u_2v_2. \]

▲ Theorem 2.2 — Angle between two vectors

For nonzero vectors \( \mathbf{u},\mathbf{v} \) with angle \( \theta \) between them, \[ \cos\theta=\frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}|\,|\mathbf{v}|}. \]

Proof

Place \( \mathbf{u} \) and \( \mathbf{v} \) tail-to-tail; the vector from the tip of \( \mathbf{u} \) to the tip of \( \mathbf{v} \) is \( \mathbf{v}-\mathbf{u} \), and the three sides \( |\mathbf{u}|,|\mathbf{v}|,|\mathbf{v}-\mathbf{u}| \) form a triangle with included angle \( \theta \) at the shared tail. The Law of Cosines gives \[ |\mathbf{v}-\mathbf{u}|^2=|\mathbf{u}|^2+|\mathbf{v}|^2-2|\mathbf{u}||\mathbf{v}|\cos\theta. \] Expand the left side using \( |\mathbf{v}-\mathbf{u}|^2=(\mathbf{v}-\mathbf{u})\cdot(\mathbf{v}-\mathbf{u})=|\mathbf{v}|^2-2\,\mathbf{u}\cdot\mathbf{v}+|\mathbf{u}|^2 \) (dot product distributes like ordinary multiplication). Setting the two expressions for \( |\mathbf{v}-\mathbf{u}|^2 \) equal and cancelling \( |\mathbf{u}|^2+|\mathbf{v}|^2 \) from both sides leaves \( -2\,\mathbf{u}\cdot\mathbf{v}=-2|\mathbf{u}||\mathbf{v}|\cos\theta \), i.e. \( \cos\theta=\dfrac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}||\mathbf{v}|} \). \( \blacksquare \)

Worked example 2.D — Find the angle between two vectors
Problem. Find the angle between \( \mathbf{u}=\langle4,3\rangle \) and \( \mathbf{v}=\langle-1,2\rangle \).
▸ Show step-by-step solution

\[ \mathbf{u}\cdot\mathbf{v}=(4)(-1)+(3)(2)=-4+6=2. \qquad |\mathbf{u}|=\sqrt{16+9}=5, \qquad |\mathbf{v}|=\sqrt{1+4}=\sqrt5. \]

\[ \cos\theta=\frac{2}{5\sqrt5}\approx0.1789 \quad\Rightarrow\quad \theta=\cos^{-1}(0.1789)\approx79.7^\circ. \]

Quick reference

Determinant test
\( A \) invertible \( \iff \det A\neq0 \)
2×2 inverse
swap diagonal, negate off-diagonal, divide by \( \det A \)
Perpendicular vectors
\( \mathbf{u}\cdot\mathbf{v}=0 \iff \mathbf{u}\perp\mathbf{v} \) (for nonzero vectors)
Geometric vector triangle representation: vectors \(u\) and \(v\) placed tail-to-tail, with included angle \(\theta\) and difference vector \(v - u\).
⚠ Matrix & Vector Exam Traps
Matrix Multiplication is Non-Commutative: In general, \(AB \neq BA\). For dimensions \(m \times n\) and \(n \times p\), the inner dimensions must match to multiply. Swapping them may not even be defined.

Inverse Invertibility Condition: A matrix \(A = \begin{pmatrix}a & b\\ c & d\end{pmatrix}\) is invertible if and only if \(\det(A) = ad - bc \neq 0\). If \(\det(A) = 0\), the system has either no unique solution or infinitely many solutions.

Dot Product vs Vector: The dot product \(\mathbf{u}\cdot\mathbf{v}\) is a scalar (a single real number), not a vector. The vectors are orthogonal if and only if \(\mathbf{u}\cdot\mathbf{v} = 0\).
Error Diagnosis — Common Student Traps vs. Exam-Board Method (Matrices & Vectors)
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Computing angle at \(B\) using \(\overrightarrow{AB}\cdot\overrightarrow{BC}\)Vectors are head-to-tail instead of tail-to-tail, giving \(180^\circ - \theta\).Reverse \(\overrightarrow{AB}\) so both emanate from \(B\): use \(\overrightarrow{BA}\cdot\overrightarrow{BC}\).
Using the same parameter \(t\) for two intersecting 3D lines \(\mathbf{r}_1(t) = \mathbf{r}_2(t)\)Tests for a simultaneous collision at time \(t\) rather than geometric intersection of paths.Assign distinct parameters \(\lambda\) and \(\mu\) to the two lines before equating components.
Assuming \((AB)^{-1} = A^{-1}B^{-1}\)Multiplying \((AB)(A^{-1}B^{-1})\) does not cancel inner factors when \(AB \ne BA\).Use the shoe-sock reversal law: \((AB)^{-1} = B^{-1}A^{-1}\).
▲ Exam Pacing & Verification Strategy — Matrices & Vectors

Fast Matrix & Vector Verification (ACT International Subject Test — Math 2): Check every \(2\times 2\) or \(3\times 3\) eigenvalue computation using the trace and determinant invariants: \(\sum \lambda_i = \operatorname{tr}(A)\) (sum of diagonal entries) and \(\prod \lambda_i = \det(A)\).

Let \( A = \begin{pmatrix} 3 & 1 \\ 5 & 2 \end{pmatrix} \). Find \( A^{-1} \) and use it to solve the linear system: \[ 3x + y = 7 \] \[ 5x + 2y = 12 \]
💡 Hint 1 of 3
Compute the determinant of \( A \): \(\det(A) = ad - bc = (3)(2) - (1)(5) = 6 - 5\).
💡 Hint 2 of 3
Construct the inverse \( A^{-1} \): Swap the main diagonal entries, negate the off-diagonal entries, and divide by \( \det(A) = 1 \): \(A^{-1} = \frac{1}{1} \begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix} = \mathbf{\begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix}}\).
💡 Hint 3 of 3
Thus \(x = 2\) and \(y = 1\). (Check: \(3(2) + 1 = 7\) ✓ and \(5(2) + 2(1)\) ✓).

Step 1: Compute the determinant of \( A \):
\[ \det(A) = ad - bc = (3)(2) - (1)(5) = 6 - 5 = 1. \]

Step 2: Construct the inverse \( A^{-1} \):
Swap the main diagonal entries, negate the off-diagonal entries, and divide by \( \det(A) = 1 \):
\[ A^{-1} = \frac{1}{1} \begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix} = \mathbf{\begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix}}. \]

Step 3: Solve the matrix equation \( A\mathbf{x} = \mathbf{b} \):
\[ \begin{pmatrix} x \\ y \end{pmatrix} = A^{-1}\mathbf{b} = \begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix} \begin{pmatrix} 7 \\ 12 \end{pmatrix} = \begin{pmatrix} 2(7) + (-1)(12) \\ -5(7) + 3(12) \end{pmatrix} = \begin{pmatrix} 14 - 12 \\ -35 + 36 \end{pmatrix} = \mathbf{\begin{pmatrix} 2 \\ 1 \end{pmatrix}}. \]

Thus \( \mathbf{x = 2} \) and \( \mathbf{y = 1} \). (Check: \( 3(2) + 1 = 7 \) ✓ and \( 5(2) + 2(1) = 12 \) ✓).

Given 3D vectors \( \mathbf{u} = \langle 2, -3, 6 \rangle \) and \( \mathbf{v} = \langle 1, 4, 2 \rangle \):
(a) Find the unit vector in the direction of \( \mathbf{u} \).
(b) Calculate the angle \( \theta \) between \( \mathbf{u} \) and \( \mathbf{v} \) to the nearest degree.
💡 Hint 1 of 3
Part (a): Find the unit vector \( \hat{\mathbf{u}} \): 1. Magnitude of \( \mathbf{u} \):.
💡 Hint 2 of 3
Rewrite and simplify to obtain: \(|\mathbf{u}| = \sqrt{2^2 + (-3)^2 + 6^2} = \sqrt{4 + 9 + 36} = \sqrt{49} = 7\) Unit vector: \(\hat{\mathbf{u}} = \frac{\mathbf{u}}{|\mathbf{u}|} = \mathbf{\left\langle \frac{2}{7}, -\frac{3}{7}, \frac{6}{7} \right\rangle}\).
💡 Hint 3 of 3
Use the resulting form to finish: \(\theta = \cos^{-1}(0.06235)\).

Part (a): Find the unit vector \( \hat{\mathbf{u}} \):
1. Magnitude of \( \mathbf{u} \): \[ |\mathbf{u}| = \sqrt{2^2 + (-3)^2 + 6^2} = \sqrt{4 + 9 + 36} = \sqrt{49} = 7. \]
2. Unit vector: \[ \hat{\mathbf{u}} = \frac{\mathbf{u}}{|\mathbf{u}|} = \mathbf{\left\langle \frac{2}{7}, -\frac{3}{7}, \frac{6}{7} \right\rangle}. \]

Part (b): Find the angle \( \theta \):
1. Dot product \( \mathbf{u}\cdot\mathbf{v} \): \[ \mathbf{u}\cdot\mathbf{v} = (2)(1) + (-3)(4) + (6)(2) = 2 - 12 + 12 = 2. \]
2. Magnitude of \( \mathbf{v} \): \[ |\mathbf{v}| = \sqrt{1^2 + 4^2 + 2^2} = \sqrt{1 + 16 + 4} = \sqrt{21}. \]
3. Angle \( \theta \): \[ \cos\theta = \frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}||\mathbf{v}|} = \frac{2}{7\sqrt{21}} \approx \frac{2}{32.078} \approx 0.06235. \]
\[ \theta = \cos^{-1}(0.06235) \approx \mathbf{86^\circ}. \]

Find all real values of the constant \( k \) for which the matrix \( M = \begin{pmatrix} k+2 & 4 \\ 3 & k-2 \end{pmatrix} \) is singular (has no inverse).
💡 Hint 1 of 3
Set the determinant to zero: A matrix is singular if and only if \( \det(M) = 0 \):.
💡 Hint 2 of 3
Rewrite and simplify to obtain: \(\det(M) = (k+2)(k-2) - (4)(3) = 0\) Solve the algebraic equation: \((k^2 - 4) - 12 = 0 \implies k^2 - 16 = 0\).
💡 Hint 3 of 3
For \(k = -4\), \(M = \begin{pmatrix} -2 & 4 \\ 3 & -6 \end{pmatrix}\), \(\det = 12 - 12\) ✓.

Step 1: Set the determinant to zero:
A matrix is singular if and only if \( \det(M) = 0 \):
\[ \det(M) = (k+2)(k-2) - (4)(3) = 0. \]

Step 2: Solve the algebraic equation:
\[ (k^2 - 4) - 12 = 0 \implies k^2 - 16 = 0. \]

Step 3: Extract roots:
\[ (k - 4)(k + 4) = 0 \implies \mathbf{k = 4 \quad\text{or}\quad k = -4}. \]

Check: For \( k = 4 \), \( M = \begin{pmatrix} 6 & 4 \\ 3 & 2 \end{pmatrix} \), \( \det = 12 - 12 = 0 \) ✓.
For \( k = -4 \), \( M = \begin{pmatrix} -2 & 4 \\ 3 & -6 \end{pmatrix} \), \( \det = 12 - 12 = 0 \) ✓.

Vectors \( \mathbf{a} = \langle 4, k \rangle \) and \( \mathbf{b} = \langle 6, -8 \rangle \) are perpendicular. Find the value of \( k \), and compute the projection of \( \mathbf{c} = \langle 10, 5 \rangle \) onto \( \mathbf{b} \).
💡 Hint 1 of 3
Use the orthogonality condition \( \mathbf{a} \cdot \mathbf{b} = 0 \): \(\mathbf{a}\cdot\mathbf{b} = (4)(6) + (k)(-8) = 24 - 8k = 0 \implies 8k = 24 \implies \mathbf{k = 3}\).
💡 Hint 2 of 3
Compute the vector projection of \( \mathbf{c} \) onto \( \mathbf{b} \): The scalar projection is \( \operatorname{comp}_{\mathbf{b}}\mathbf{c} = \frac{\mathbf{c}\cdot\mathbf{b}}{|\mathbf{b}|} \). \(\mathbf{c}\cdot\mathbf{b} = (10)(6) + (5)(-8) = 60 - 40\).
💡 Hint 3 of 3
Vector projection: \(\operatorname{proj}_{b}c = \left(\frac{c\cdot b}{|b|^2}\right)b = \left(\frac{20}{100}\right)\langle 6, -8 \rangle = \frac{1}{5}\langle 6, -8 \rangle\).

Step 1: Use the orthogonality condition \( \mathbf{a} \cdot \mathbf{b} = 0 \):
\[ \mathbf{a}\cdot\mathbf{b} = (4)(6) + (k)(-8) = 24 - 8k = 0 \implies 8k = 24 \implies \mathbf{k = 3}. \]

Step 2: Compute the vector projection of \( \mathbf{c} \) onto \( \mathbf{b} \):
The scalar projection is \( \operatorname{comp}_{\mathbf{b}}\mathbf{c} = \frac{\mathbf{c}\cdot\mathbf{b}}{|\mathbf{b}|} \).
1. \( \mathbf{c}\cdot\mathbf{b} = (10)(6) + (5)(-8) = 60 - 40 = 20 \).
2. \( |\mathbf{b}| = \sqrt{6^2 + (-8)^2} = \sqrt{36 + 64} = \sqrt{100} = 10 \).
3. Vector projection: \[ \operatorname{proj}_{\mathbf{b}}\mathbf{c} = \left(\frac{\mathbf{c}\cdot\mathbf{b}}{|\mathbf{b}|^2}\right)\mathbf{b} = \left(\frac{20}{100}\right)\langle 6, -8 \rangle = \frac{1}{5}\langle 6, -8 \rangle = \mathbf{\left\langle \frac{6}{5}, -\frac{8}{5} \right\rangle}. \]

Given the vectors \( \mathbf{u} = \langle 3, -4 \rangle \) and \( \mathbf{v} = \langle -2, 5 \rangle \), what is the vector \( 2\mathbf{u} + \mathbf{v} \)?
💡 Hint 1 of 3
To find \( 2\mathbf{u} + \mathbf{v} \), first perform the scalar multiplication on \( \mathbf{u} \): \(2\mathbf{u} = 2\langle 3, -4 \rangle = \langle 2(3), 2(-4) \rangle = \langle 6, -8 \rangle\).
💡 Hint 2 of 3
Next, add the corresponding components of \( 2\mathbf{u} \) and \( \mathbf{v} \): \(2u + v\). Rewrite and substitute: \(2u + v = \langle 6 + (-2), -8 + 5 \rangle\).
💡 Hint 3 of 3
Evaluate \(\langle 6 + (-2), -8 + 5 \rangle\) to obtain the final answer.
To find \( 2\mathbf{u} + \mathbf{v} \), first perform the scalar multiplication on \( \mathbf{u} \): \[ 2\mathbf{u} = 2\langle 3, -4 \rangle = \langle 2(3), 2(-4) \rangle = \langle 6, -8 \rangle \] Next, add the corresponding components of \( 2\mathbf{u} \) and \( \mathbf{v} \): \[ 2\mathbf{u} + \mathbf{v} = \langle 6 + (-2), -8 + 5 \rangle = \langle 4, -3 \rangle \] - \( \langle 1, 1 \rangle \) is incorrect because it represents \( \mathbf{u} + \mathbf{v} \), omitting the scalar factor of 2. - \( \langle 4, 1 \rangle \) is incorrect because the scalar 2 was only distributed to the horizontal component. - \( \langle 8, -13 \rangle \) is incorrect because it calculates \( 2\mathbf{u} - \mathbf{v} \) instead of \( 2\mathbf{u} + \mathbf{v} \).
📝 Chapter Quiz