Linear Algebra Midterm 1 β€” Zero to Exam

MATH 1850U β€” Linear Algebra for Engineers Β· Midterm #1: Chapters 1 + 2 (+ polynomial interpolation)
πŸ—“οΈ Oct 7 (CRN 40311)
πŸ“ 15 MC + 3 long answer
⏱️ 65 minutes
πŸ“• Closed book Β· scientific calc allowed
βœ… Formula sheet PROVIDED (don't memorize it)

0 Β· The High-School Warm-Up (what everything below stands on)

Solving two equations by elimination β€” you already know this

From grade 10: solve \(x + 2y = 5\) and \(3x - y = 1\). Multiply the second by 2, add, kill a variable:

  1. Double the second: \(6x - 2y = 2\)
  2. Add to the first: \(7x = 7\) β†’ \(x = 1\)
  3. Back-sub: \(1 + 2y = 5\) β†’ \(y = 2\)

That is 100% of linear algebra's core move. Everything in this course is doing exactly this to bigger systems, faster, with better bookkeeping (matrices), and then asking deeper questions (determinants, invertibility, vectors).

Solving by substitution

Same system: solve one equation for one variable and sub it in. \(3x - y = 1\) β†’ \(y = 3x - 1\). Put into the first: \(x + 2(3x-1) = 5\) β†’ \(7x = 7\) β†’ \(x=1, y=2\) βœ“ same answer. Substitution works but scales terribly β€” 8 variables Γ— 8 equations would be torture. Elimination scales. That's why Gauss exists.

Lines, planes, intersections (the geometry you'll reuse in Ch 3)

  • Two lines in a plane: cross at one point (one solution), parallel (no solution), or the same line (infinitely many)
  • Three planes in space: meet at one point, meet at a line, meet at a plane, no common point β€” every combo is a picture of a solution type
  • Slope/point line form: \(y - y_0 = m(x - x_0)\) β€” the ch 3 line equations are this with vectors

Function/exponent rules that get reused constantly

  • \((ab)^2 = a^2b^2\), \(a^0 = 1\) β€” matrix powers follow the same pattern (square matrices only)
  • Fractions: \(\frac{1}{a}\cdot a = 1\) β€” literally the definition of the matrix inverse
  • FOIL/expanding brackets β€” you'll expand matrix expressions like \((A+B)^2 = A^2 + AB + BA + B^2\) and need to know why that's NOT \(A^2 + 2AB + B^2\) (no commutativity!)

Quick high-school drill (do it fast, answers below)

a) Solve: \(2x + 3y = 12\), \(x - y = 1\)

b) Are \((2,3)\) and \((-4,-6)\) on the same line through the origin?

c) Simplify: \(\frac{a^2b^{-3}}{ab^{-1}}\)

Answers

a) sub \(x = 1+y\): \(2(1+y)+3y=12\) β†’ \(5y=10\) β†’ \(\boxed{x=3,y=2}\)
b) slopes: \(3/2\) vs \(-6/-4 = 1.5\) β€” yes, both on \(y = 1.5x\) (one is a multiple of the other β€” that's "linear dependence" hiding in grade 9)
c) \(= a^1 b^{-2} = \frac{a}{b^2}\)

Why your prof moves fast through Chapter 3

The Oct 5 announcement says Ch 3 "is partly high school review from your Calc+Vectors course β€” going through it very quickly." So vectors (dot product, length, projections) are the part where you should already be in shape. The exam-weighted NEW material is Chapters 1–2 β€” that's where the marks are.

1 Β· Linear Systems (1.1) β€” what we're even solving

What makes an equation LINEAR

\(a_1x_1 + a_2x_2 + \dots + a_nx_n = b\) β€” variables only to power 1, no \(x_1x_2\), no \(\sqrt{x}\), no \(\sin(x)\). Coefficients \(a_i\) and constant \(b\) can be any real number (including 0 and negatives).

Tell-tale test: if you can't write it in that form, it's nonlinear. \(9x_1x_3 - 3x_2 = 6x_4\) is NOT linear (product of two variables). \(7x_1 + \pi x_2 = x_3 - 9\) IS linear (\(\pi\) is just a coefficient).

The only 3 possibilities (memorize + know the geometry)

Theorem: every linear system has no solution, exactly one solution, or infinitely many. Never 2, never 17.

Case2-var picture3-var picture
Unique solutionlines cross onceplanes meet at one point
No solution (inconsistent)parallel linesplanes with no common point
Infinitely manysame lineplanes share a line/plane

Examiner's favorite: "A system with exactly 2 solutions exists." FALSE β€” that middle option list is exhaustive, and the proof (Ax = b lecture 3) shows two solutions ⟹ infinitely many via the free-parameter mechanism.

Augmented matrix β€” the bookkeeping device

Rows = equations. Columns = variables + the last column = constants. The bar (written or imagined) separates A from b.

$$\begin{cases}x_1 - 2x_2 + 3x_3 = 2\\ 3x_1 + x_2 = 4\\ x_2 - 2x_3 = -1\end{cases} \;\longrightarrow\; \begin{bmatrix}1 & -2 & 3 & 2\\ 3 & 1 & 0 & 4\\ 0 & 1 & -2 & -1\end{bmatrix}$$

Lecture-1 skill: transcribe every system into this form fast. Missing variables get a 0 entry (the \(x_3\) in eq 2, the \(x_1\) in eq 3).

Elementary row operations β€” the 3 legal moves

  1. Scale: multiply one row by a NONZERO constant
  2. Swap: interchange two rows
  3. Add: add a multiple of one row to another

These never change the solution set β€” they only make it easier to see. (For determinants later, note: these same moves DO change det β€” different rules apply there!)

Worked: back-substitution on a triangular system

$$\begin{bmatrix}1 & 2 & 8 & 3\\ 0 & 1 & 5 & -2\\ 0 & 0 & 1 & 7\end{bmatrix}$$

  1. Row 3: \(x_3 = 7\) β€” bottom equation gives bottom variable instantly
  2. Row 2: \(x_2 + 5(7) = -2\) β†’ \(x_2 = -37\)
  3. Row 1: \(x_1 + 2(-37) + 8(7) = 3\) β†’ \(x_1 = 3 + 74 - 56 = 21\)

This "solve bottom-up" move is called back-substitution. REF matrices (next section) always allow it.

Worked: verify a solution (they ask this as a gimme)

Is \((1, 1, 1)\) a solution of \(x_1 - 2x_2 + 3x_3 = 2\), \(3x_1 + x_2 = 4\), \(x_2 - 2x_3 = -1\)?

Eq 1: \(1 - 2 + 3 = 2\) βœ“   Eq 2: \(3 + 1 = 4\) βœ“   Eq 3: \(1 - 2 = -1\) βœ“ β†’ all three satisfied β†’ YES, a solution.

Verify = plug into EVERY equation. Satisfying 2 of 3 equations means nothing.

Mini-drill 1

a) Write as augmented matrix: \(2x_1 + x_3 = 4\), \(x_1 - x_2 + x_3 = 0\), \(3x_2 = 1\)

b) Which are linear? (i) \(5x_1 - 6x_2 + 10x_3 = 8 + x_4\) (ii) \(x_1^2 + x_2 = 3\) (iii) \(\frac{x_1}{2} + x_2 = 7\)

Answers: a) \(\begin{bmatrix}2&0&1&4\\1&-1&1&0\\0&3&0&1\end{bmatrix}\) Β· b) (i) YES (move \(x_4\) left: linear), (ii) NO β€” squared variable, (iii) YES β€” \(\frac{1}{2}\) is just a coefficient.

2 Β· Gaussian and Gauss-Jordan Elimination (1.2) β€” the main machinery

Row echelon form vs. reduced (the 4 properties)

A matrix is in row echelon form (REF) if:

  1. Every nonzero row's first nonzero entry is a leading 1 (leading entry = leftmost)
  2. All zero rows sit at the BOTTOM
  3. Each leading 1 is to the RIGHT of the one above ("staircase")

Add the 4th condition and it's RREF:

  1. Each leading 1 is the ONLY nonzero in its column (zeros above AND below)

RREF is UNIQUE for every matrix. REF is not unique β€” two different people row-reducing can get different REFs, but the same RREF. (They love this as T/F.)

The algorithm β€” both flavors

  1. Leftmost nonzero column. Make a leading 1 there (scale/swap as needed)
  2. Zeros BELOW it (add multiples of the leading-1 row to rows below)
  3. Move right and down; repeat on the submatrix only
  4. REF done. For RREF, continue upward: zeros ABOVE each leading 1 too

Gaussian = stop at REF + back-substitute. Gauss-Jordan = go all the way to RREF and read the answers off. Same answers, Jordan does more row-ops up front, no back-sub at the end.

Worked: full Gauss-Jordan, 3Γ—3 system

Solve: \(2x_1 + 3x_2 - x_3 = -3\), \(\;x_1 + x_2 = 0\), \(\;3x_1 + x_3 = 11\)

  1. Swap R1↔R2 to get a leading 1 up top (avoiding fractions): \(\begin{bmatrix}1&1&0&0\\2&3&-1&-3\\3&0&1&11\end{bmatrix}\)
  2. Kill below: \(R_2 - 2R_1\), \(R_3 - 3R_1\): \(\begin{bmatrix}1&1&0&0\\0&1&-1&-3\\0&-3&1&11\end{bmatrix}\)
  3. Kill below again: \(R_3 + 3R_2\): \(\begin{bmatrix}1&1&0&0\\0&1&-1&-3\\0&0&-2&2\end{bmatrix}\)
  4. Scale \(R_3\) by \(-\frac12\): \(\begin{bmatrix}1&1&0&0\\0&1&-1&-3\\0&0&1&-1\end{bmatrix}\) ← REF (this was the lecture's stated REF)
  5. Zeros above: \(R_2 + R_3\), then \(R_1 - R_2\): \(\begin{bmatrix}1&0&0&0?...\end{bmatrix}\) β€” work it: \(R_2=(0,0,1,-1)\)? No: \(R_2 + R_3 = (0, 1, 0, -4)\), then \(R_1 - R_2 = (1, 0, 0, 4)\)
  6. RREF: \(\begin{bmatrix}1&0&0&4\\0&1&0&-4\\0&0&1&-1\end{bmatrix}\) β†’ \(\boxed{x_1 = 4,\; x_2 = -4,\; x_3 = -1}\)

Note the trick: swap first to get a 1 β€” saves you fraction arithmetic everywhere. Always scan for an easy 1 before dividing rows.

Reading solution count off the echelon form (THE exam skill)

Row-reduce, then read the LAST rows:

You seeMeaning
a row like \([0\;0\;0\;|\;c]\), \(c \neq 0\)0 = 5? contradiction β†’ NO solutions
every variable has a leading 1, no junk rowsexactly one solution
β‰₯ 1 variable has NO leading 1 (a free variable)infinitely many β€” set free vars = parameters \(t, s\)

Free variable = a column with no pivot. Number of parameters = number of free variables.

Worked: infinitely many β†’ parametrize

$$\begin{bmatrix}1 & 2 & -1 & 5 & -7 & 1\\ 0 & 1 & 5 & 0 & 0 & 2\end{bmatrix}$$ (system of 2 eqs, 5 unknowns, already RREF-ish)

  1. Leading variables (pivots): \(x_1, x_2\). Free: \(x_3, x_4, x_5\)
  2. Set \(x_3 = t, x_4 = s, x_5 = u\)
  3. From row 2: \(x_2 = 2 - 5t\). From row 1: \(x_1 = 1 - 2x_2 + x_3 - 5x_4 + 7x_5 = 1 - 2(2-5t) + t - 5s + 7u = -3 + 11t - 5s + 7u\)
  4. Solution: \((x_1, x_2, x_3, x_4, x_5) = (-3 + 11t - 5s + 7u,\; 2 - 5t,\; t,\; s,\; u)\) β€” a 3-parameter family
Mini-drill 2

a) Is \(\begin{bmatrix}1&0&2&0&1\\0&1&0&1&0\\0&0&1&0&0\\0&0&0&0&0\end{bmatrix}\) REF? RREF? (check each of the 4 properties)

b) A system row-reduces to \(\begin{bmatrix}1&0&3&|&0\\0&1&-2&|&0\\0&0&0&|&0\end{bmatrix}\). How many solutions? Write the general solution.

Answers: a) It has REF structure (leading 1s staircase, zero row at bottom) but column 3's leading 1 has a nonzero (the 2) above it β†’ property 4 fails β†’ REF only, not RREF.
b) Zero row = consistent. \(x_3\) is free (no pivot). Infinitely many: \(x_3 = t\) β†’ \(\boxed{x_1 = -3t,\; x_2 = 2t,\; x_3 = t}\). Also note: all constants were 0 β†’ this was a homogeneous system β†’ this is exactly its nontrivial solution family.

3 Β· Matrices & Matrix Operations (1.3) β€” the language

Anatomy of a matrix

An \(m \times n\) matrix has \(m\) rows, \(n\) columns. Entry \(a_{ij}\) = row \(i\), column \(j\). Column vector = one column; row vector = one row.

Note: the exam writes \(m \times n\) as "rows Γ— columns". A 3Γ—2 matrix is NOT the same as 2Γ—3 β€” transpose is the operation between them: \((A^T)_{ij} = a_{ji}\), i.e. flip rows and columns.

Addition, scalar multiplication, linear combinations

  • A Β± B: only if SAME size; add/subtract entry-by-entry. Different sizes β†’ undefined (instant T/F bait)
  • \(cA\): multiply EVERY entry by \(c\)
  • Linear combination: \(c_1A_1 + c_2A_2 + \dots\) β€” appears forever in this course, especially in Ch 3 and 4
  • Trace: \(tr(A) = a_{11} + a_{22} + \dots + a_{nn}\) β€” square matrices only, sum of the main diagonal

Worked: linear combination

Find \(3A_1 - 5A_2 + 2A_3\) for \(A_1 = \begin{bmatrix}2&0\\-1&3\end{bmatrix}\), \(A_2 = \begin{bmatrix}3&5\\2&-1\end{bmatrix}\), \(A_3 = \begin{bmatrix}1&-1\\0&2\end{bmatrix}\).

  1. Scale each: \(3A_1 = \begin{bmatrix}6&0\\-3&9\end{bmatrix}\), \(-5A_2 = \begin{bmatrix}-15&-25\\-10&5\end{bmatrix}\), \(2A_3 = \begin{bmatrix}2&-2\\0&4\end{bmatrix}\)
  2. Add entry-by-entry: \(\begin{bmatrix}6-15+2&0-25-2\\-3-10+0&9+5+4\end{bmatrix} = \begin{bmatrix}-7&-27\\-13&18\end{bmatrix}\)

Matrix multiplication β€” row-by-column, in that order

If \(A\) is \(m \times r\) and \(B\) is \(r \times n\), then \(AB\) is \(m \times n\) with: $$(AB)_{ij} = (\text{row } i \text{ of } A) \cdot (\text{column } j \text{ of } B) = a_{i1}b_{1j} + a_{i2}b_{2j} + \dots + a_{ir}b_{rj}$$

Size check FIRST: columns of A must equal rows of B. "Inner dimensions must match, outer dimensions are the answer's size."

A great sanity phrase: \(AB\) means "A acts on B" β€” read right-to-left like function composition.

Worked: 2Γ—2 product, slowly

$$\begin{bmatrix}4 & 7\\ -1 & 3\end{bmatrix}\begin{bmatrix}2 & 8\\ 5 & -2\end{bmatrix}$$

  1. \((1,1)\): row1Β·col1 = \(4(2) + 7(5) = 43\)
  2. \((1,2)\): row1Β·col2 = \(4(8) + 7(-2) = 18\)
  3. \((2,1)\): row2Β·col1 = \(-1(2) + 3(5) = 13\)
  4. \((2,2)\): row2Β·col2 = \(-1(8) + 3(-2) = -14\)
  5. \(= \begin{bmatrix}43 & 18\\ 13 & -14\end{bmatrix}\)

Dot-product connection (from lecture 9): \((AB)_{ij} = r_i \cdot c_j\) β€” this is why dot products are reviewed with matrices.

Worked: which products exist?

\(A: 5\times 4\), \(B: 2\times 3\), \(C: 5\times 1\), \(D: 7\times 2\). Do these exist, and what size?

ProductInner checkResult
\(BD\)3 vs 7 βœ—undefined
\(DB\)2 vs 2 βœ“\(7 \times 3\)
\(A^TC\)\(A^T\) is \(4\times5\), C is \(5\times1\) βœ“\(4 \times 1\)

Where matrix arithmetic BREAKS from real numbers (T/F goldmine)

No commutative law: \(AB \neq BA\) in general. Real example (lecture 4): \(A = \begin{bmatrix}1&1\\0&0\end{bmatrix}, B = \begin{bmatrix}1&0\\1&0\end{bmatrix}\) gives \(AB = \begin{bmatrix}2&0\\0&0\end{bmatrix}\) but \(BA = \begin{bmatrix}1&1\\1&1\end{bmatrix}\).
No cancellation: \(AB = AC\) does NOT give \(B = C\), and \(AD = 0\) does NOT give \(A=0\) or \(D=0\). (Lecture 4 had a full counterexample: \(AB = AC\) with \(B \neq C\).)
But addition still commutes: \(A + B = B + A\) β€” the failure is only multiplication.
\((A+B)^2 \neq A^2 + 2AB + B^2\) β€” expanding honestly: \((A+B)(A+B) = A^2 + AB + BA + B^2\), and you can't merge \(AB+BA\) since they differ.

The valid laws (memorize which DID survive)

LawSays
Associative (mult)\(A(BC) = (AB)C\)
Distributive L/R\(A(B+C) = AB+AC\), \((B+C)A = BA+CA\)
Scalar laws\(a(bC) = (ab)C\), \(a(BC) = (aB)C = B(aC)\)
Transpose laws\((A^T)^T = A\), \((A\pm B)^T = A^T \pm B^T\), \((kA)^T = kA^T\), \((AB)^T = B^TA^T\) (reverses order!)

Inversion also reverses order: \((AB)^{-1} = B^{-1}A^{-1}\). Same pattern as transpose β€” "socks and shoes": to undo socks-then-shoes you remove shoes-then-socks.

Writing a system as Ax = b (they ask this verbatim)

$$\begin{cases}2x_1 - 3x_2 + 5x_3 = 5\\ x_1 - 2x_2 = 9\end{cases} \;\longrightarrow\; \begin{bmatrix}2 & -3 & 5\\ 1 & -2 & 0\end{bmatrix}\begin{bmatrix}x_1\\x_2\\x_3\end{bmatrix} = \begin{bmatrix}5\\9\end{bmatrix}$$

Missing variables contribute a 0 in A. If A is invertible: \(x = A^{-1}b\) β€” the one-solution guarantee, next section.

Mini-drill 3

a) \(tr\left(\begin{bmatrix}9&1\\-3&3\end{bmatrix}\right)\)?

b) \(A\) is \(2\times3\), \(B\) is \(3\times3\). What is \(AB\)? What is \(BA\)?

c) T/F: if \(AB = 0\) then \(A = 0\) or \(B = 0\).

d) Write \(x_1 + 2x_2 = 5,\; 4x_1 - x_2 = 1\) as \(Ax=b\).

Answers: a) \(9 + 3 = 12\) Β· b) \(AB\): \(2\times3\) βœ“; \(BA\): 3 vs 2 inner mismatch β†’ undefined Β· c) FALSE β€” no-cancellation counterexamples exist; d) \(\begin{bmatrix}1&2\\4&-1\end{bmatrix}\begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}5\\1\end{bmatrix}\)

4 Β· Invertible Matrices (1.4–1.5) β€” undo the machine

The idea in real-number language

\(\frac{1}{a}\) undoes multiplication by \(a\): \(a \cdot \frac1a = 1\). The matrix inverse \(A^{-1}\) does the same: \(AA^{-1} = A^{-1}A = I\), where \(I\) is the identity matrix (1s on diagonal, 0s elsewhere β€” acts like the number 1).

Singular = no inverse exists (like \(a=0\) for numbers). Invertible = one exists, and it's UNIQUE (lecture proved \(B = C\) if both satisfy \(AB = I\)).

2Γ—2 inverse formula β€” memorize cold

$$A = \begin{bmatrix}a & b\\ c & d\end{bmatrix} \;\; \Rightarrow \;\; A^{-1} = \frac{1}{ad - bc}\begin{bmatrix}d & -b\\ -c & a\end{bmatrix} \quad \text{iff } ad - bc \neq 0$$

\(ad - bc\) β€” swap the diagonal, negate the off-diagonal, divide by the cross-difference. That cross-difference IS the determinant (Chapter 2 preview!).

Worked: 2Γ—2 inverse

\(A = \begin{bmatrix}7 & -1\\ 2 & 3\end{bmatrix}\)

  1. \(ad - bc = (7)(3) - (-1)(2) = 21 + 2 = 23 \neq 0\) β†’ invertible
  2. Swap diagonal, negate off: \(\begin{bmatrix}3 & 1\\ -2 & 7\end{bmatrix}\)
  3. Divide by 23: \(A^{-1} = \begin{bmatrix}3/23 & 1/23\\ -2/23 & 7/23\end{bmatrix}\)

Verify (they demand it): \(AA^{-1} = \frac{1}{23}\begin{bmatrix}21+2 & 7-7\\ 6+6 & -2+21\end{bmatrix} = \frac{1}{23}\begin{bmatrix}23&0\\0&23\end{bmatrix} = I\) βœ“

The general method: [A | I] β†’ [I | A⁻¹]

For any size: put \(A\) and \(I\) side by side, row-reduce the LEFT block to \(I\); the right block becomes \(A^{-1}\).

  1. Write \([A \,|\, I]\)
  2. Elementary row ops until the left is the identity
  3. Right block = \(A^{-1}\)
  4. If at any point the left gets a zero row β†’ singular, no inverse

Why it works: elementary matrices. Each row op = left-multiplying by an elementary matrix E. Doing all of them to reach I means \(E_k\cdots E_1 A = I\), so \(E_k \cdots E_1 = A^{-1}\) β€” and that product is exactly what collects on the right side.

Worked: 3Γ—3 inverse by row reduction

\(A = \begin{bmatrix}1 & 2 & 0\\ 0 & 1 & 0\\ 2 & 4 & 1\end{bmatrix}\)

  1. \([A|I] = \begin{bmatrix}1&2&0&|&1&0&0\\0&1&0&|&0&1&0\\2&4&1&|&0&0&1\end{bmatrix}\)
  2. \(R_3 - 2R_1\): \(\begin{bmatrix}1&2&0&|&1&0&0\\0&1&0&|&0&1&0\\0&0&1&|&-2&0&1\end{bmatrix}\)
  3. \(R_1 - 2R_2\) (clear above): \(\begin{bmatrix}1&0&0&|&1&-2&0\\0&1&0&|&0&1&0\\0&0&1&|&-2&0&1\end{bmatrix}\)
  4. Left is I β†’ \(A^{-1} = \begin{bmatrix}1&-2&0\\0&1&0\\-2&0&1\end{bmatrix}\)

Check: \(AA^{-1} = \begin{bmatrix}1Β·1+2Β·0+0Β·(-2) & ...\end{bmatrix}\) β€” entry (1,1): \(1\), entry (1,2): \(-2+2 = 0\) βœ“, entry (2,Β·): row 2 of A is (0,1,0) β†’ picks out row 2 of \(A^{-1}\) = (0,1,0) βœ“. Looks right.

Worked: use the inverse to solve a system

\(x_1 + 2x_2 + 3x_3 = 5\), \(2x_1 + 5x_2 + 3x_3 = 3\), \(x_1 + 8x_3 = 17\) β€” with \(A^{-1} = \begin{bmatrix}-40&16&9\\13&-5&-3\\5&-2&-1\end{bmatrix}\) (given).

  1. \(x = A^{-1}b\): row 1: \(-40(5) + 16(3) + 9(17) = -200 + 48 + 153 = 1\) β†’ \(x_1 = 1\)
  2. Row 2: \(13(5) -5(3) -3(17) = 65 - 15 - 51 = -1\) β†’ \(x_2 = -1\)
  3. Row 3: \(5(5) -2(3) -1(17) = 25 - 6 - 17 = 2\) β†’ \(x_3 = 2\)
  4. Answer: \(\boxed{(1, -1, 2)}\)

Sanity check: sub into eq 3: \(1 + 8(2) = 17\) βœ“

Inverse laws (T/F factory)

  • \((AB)^{-1} = B^{-1}A^{-1}\) β€” reverses order (socks-shoes)
  • \((A^{-1})^{-1} = A\)
  • \((kA)^{-1} = \frac{1}{k}A^{-1}\)
  • \((A^T)^{-1} = (A^{-1})^T\)
  • \(AB\) invertible ⟺ both \(A\) and \(B\) invertible (if \(AB\) invertible, each factor must be)
  • Trap: \(A + B\) has NO nice inverse rule β€” \((A+B)^{-1} \neq A^{-1} + B^{-1}\) in general (doesn't even need to exist)
  • Trap: \((A+B)^T = A^T + B^T\) is fine (transpose is friendlier than inverse)

Solving many systems with the same A

Given \(Ax = b_1\), \(Ax = b_2\), \(Ax = b_3\): two methods:

  1. Method 1: compute \(A^{-1}\) once, then \(x_i = A^{-1}b_i\) each β€” requires A invertible
  2. Method 2: one row reduction of \([A \,|\, b_1\,|\,b_2\,|\,b_3]\) β€” works even when A is singular, generally cheaper

Worked in lecture: \(A = \begin{bmatrix}1&2\\1&1\end{bmatrix}\), three b's β†’ answers (3,βˆ’1), (βˆ’2,2), (βˆ’7,6).

Mini-drill 4

a) Invert \(\begin{bmatrix}3&-1\\2&3\end{bmatrix}\)

b) T/F: \((AB)^{-1} = A^{-1}B^{-1}\)

c) If \(AB\) is invertible, must \(A\) be?

d) When row-reducing \([A|I]\) you hit \(\begin{bmatrix}1&3&-2&|&1&0&0\\0&1&5&|&0&1&0\\0&0&0&|&-3&0&1\end{bmatrix}\). Conclusion?

Answers: a) det \(= 9+2 = 11\): \(A^{-1} = \frac{1}{11}\begin{bmatrix}3&1\\-2&3\end{bmatrix}\) Β· b) FALSE β€” reverses to \(B^{-1}A^{-1}\) Β· c) YES (theorem 1.4/2.3) Β· d) left block has a zero row β†’ A is singular, no inverse exists.

5 Β· Elementary, Diagonal, Triangular, Symmetric (1.5, 1.7)

Elementary matrices (E)

An elementary matrix = I with ONE row operation applied. Left-multiplying \(E\) onto \(A\) performs that same row operation on A:

$$\begin{bmatrix}0&1\\1&0\end{bmatrix}\begin{bmatrix}3&7\\-5&16\end{bmatrix} = \begin{bmatrix}-5&16\\3&7\end{bmatrix}$$ (row swap applied instantly)

  • Every E is invertible, and \(E^{-1}\) is also elementary (undoes the one op)
  • Row equivalent = one can reach the other by row ops. An invertible matrix is row equivalent to I

Diagonal matrices

Zeros everywhere except the main diagonal. Powers and inverses are entry-wise β€” the easiest matrices alive:

$$D = \begin{bmatrix}2&0&0\\0&1&0\\0&0&-5\end{bmatrix} \;\Rightarrow\; D^3 = \begin{bmatrix}8&0&0\\0&1&0\\0&0&-125\end{bmatrix}, \;\; D^{-1} = \begin{bmatrix}1/2&0&0\\0&1&0\\0&0&-1/5\end{bmatrix}$$

Triangular matrices (upper / lower)

Upper triangular: zeros BELOW the diagonal. Lower: zeros ABOVE.

FactStatement
Transpose flips\((\text{upper})^T = \text{lower}\)
Product keeps typeupper Γ— upper = upper
Invertibilitytriangular invertible ⟺ ALL diagonal entries β‰  0
Inverse typeinverse of upper is upper
Determinant (ch 2!)\(\det = \) product of diagonal entries

Symmetric matrices

\(A^T = A\). Like adjacency matrices of friendships, stiffness/flexibility matrices.

  • \(A^T\), \(A \pm B\), \(kA\), \(A^{-1}\) all stay symmetric
  • Products are NOT symmetric in general β€” \(AB\) can break it (lecture counterexample: \(A+B\) symmetric but \(AB\) not)
  • Always symmetric: \(AA^T\) and \(A^TA\) β€” even for non-symmetric A (great verify-by-computation exam item)

Worked: \(AA^T\) symmetric check

\(A = \begin{bmatrix}1 & 2 & 0\\ 0 & -1 & 3\end{bmatrix}\)

  1. \(A^T = \begin{bmatrix}1&0\\2&-1\\0&3\end{bmatrix}\)
  2. \(AA^T = \begin{bmatrix}1(1)+2(2)+0(0) & 1(0)+2(-1)+0(3)\\ 0(1)-1(2)+3(0) & 0(0)+(-1)(-1)+3(3)\end{bmatrix} = \begin{bmatrix}5 & -2\\ -2 & 10\end{bmatrix}\)
  3. Check symmetry: \((1,2) = (2,1) = -2\) βœ“ symmetric, as promised.
Mini-drill 5

a) Classify: \(\begin{bmatrix}2&-1\\0&3\end{bmatrix}\), \(\begin{bmatrix}3&0&0\\1&0&0\\1&2&7\end{bmatrix}\)

b) T/F: the product of two symmetric matrices is symmetric.

c) \(a_{ij} = 5i^2j\) β€” is this matrix symmetric? (compute \(a_{12}\) vs \(a_{21}\))

Answers: a) first is upper triangular (not diagonal β€” off-diagonal \(-1\) β‰  0); second is lower triangular, not upper Β· b) FALSE in general (though it's true if they happen to commute) Β· c) \(a_{12} = 5(1)(2) = 10\), \(a_{21} = 5(4)(1) = 20\) β†’ not symmetric.

6 Β· Homogeneous Systems & Parameter-Hunting (1.2 end) β€” marks live here

Homogeneous = all constants zero

$$\begin{matrix}a_{11}x_1 + \dots + a_{1n}x_n = 0\\ \vdots\end{matrix}$$

  • ALWAYS consistent (\(x = 0\) works β€” the trivial solution)
  • So the only question is: trivial only, or infinitely many?
  • Key theorem: more unknowns than equations β†’ automatically infinitely many (free variables guaranteed)
  • Other solutions = nontrivial

Memorize the 4 T/F statements from lecture:

  • "A system with more unknowns than equations must have infinitely many solutions" β€” FALSE as stated (it's only guaranteed for HOMOGENEOUS ones; add a constant term and contradiction rows can appear)
  • "It is impossible for a homogeneous system to be inconsistent" β€” TRUE (\(0=0\) always works)
  • "A homogeneous system with 3 equations and 5 unknowns must have infinitely many solutions" β€” TRUE (5 > 3, free vars guaranteed)
  • "A system with more equations than unknowns must be inconsistent" β€” FALSE (redundant equations can exist; 3 copies of the same equation = still consistent)

Worked: the k-value trifecta (guaranteed long-answer style)

$$\begin{cases}x + ky = 3\\ 2x + k^2y = k + 4\end{cases}$$ β€” find all \(k\) giving (i) no solution (ii) exactly one (iii) infinitely many.

  1. Augmented + row reduce: swap \(R_1 \to R_2\) for clean leading 1 first (lecture's exact move): \(\begin{bmatrix}1&k&3\\0&k^2-2k&k-2\end{bmatrix}\)
  2. Factor the bottom-left: \(k^2 - 2k = k(k-2)\). The critical values are \(k = 0\) and \(k = 2\).
  3. k β‰  0, 2: bottom row is a proper equation with a full pivot β†’ exactly one solution
  4. k = 2: bottom row becomes \([0\;0\;|\;0]\) β€” free variable appears β†’ infinitely many
  5. k = 0: bottom row is \([0\;0\;|\;-2]\) β†’ \(0 = -2\) contradiction β†’ no solutions

The method: row-reduce keeping k symbolic, factor (never divide by an expression containing k!), then case-split on the values that zero-out pivots.

The deadly sin: dividing by \(k(k-2)\) mid-reduction silently assumes \(k \neq 0,2\) and loses cases. Keep it as a factor, split at the end.

Worked: consistency conditions (b1, b2 pattern)

What must \(b_1, b_2, b_3\) satisfy for this to be consistent?

$$x_1 + x_2 + x_3 = b_1,\quad -x_1 - 2x_3 = b_2,\quad x_2 - x_3 = b_3$$

  1. Row-reduce with symbols: \(R_2 + R_1\): \(x_2 - 2x_3 = b_1 + b_2\)
  2. \((R_2 + R_1)\) minus \(R_3\): \((b_1 + b_2) - b_3 = 0\)? Row op gives a leftover row \([0\;0\;0 \,|\, b_1 + b_2 - b_3]\)
  3. Consistency ⟺ that row isn't a contradiction: \(\boxed{b_1 + b_2 = b_3}\)... verify against the lecture's exact target when you re-derive β€” the structure is: reduce fully with symbolic b's, every junk row must equal 0.
Mini-drill 6

a) \(x_1 + 2x_2 - x_3 = 0\), \(x_1 + 5x_2 - 7x_3 = 0\) β€” why infinitely many solutions without row-reducing?

b) For \(\begin{cases}2x + ky = k+4\\ x + ky = 3\end{cases}\), which k gives no solutions?

Answers: a) homogeneous + 3 unknowns > 2 equations β†’ guaranteed free variable β†’ infinitely many (includes trivial) Β· b) reduce: subtract: \(x = 1\)β†’ then \(y = 2/k\)… careful: from the second row \(x + ky = 3\): with \(x = 1\), \(ky = 2\); first: \(2 + ky = k + 4\) β†’ \(ky = k + 2\) β†’ \(2 = k+2\) β†’ \(\boxed{k = 0}\) gives contradiction \(0\cdot y = 2\)... check: at k=0 eq1: \(2x = 4\), eq2: \(x = 3\) β†’ \(x = 2\) AND \(x = 3\) β†’ no solution βœ“

7 Β· Determinants I β€” cofactor expansion (2.1, 2.2)

What det even is

\(\det(A)\) is a NUMBER, not a matrix (instant T/F trap). Notation: \(\det(A)\) or \(|A|\).

2Γ—2: \(\begin{vmatrix}a & b\\ c & d\end{vmatrix} = ad - bc\)

3Γ—3 trick (diagonals): \(a_{11}a_{22}a_{33} + a_{12}a_{23}a_{31} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31} - a_{11}a_{23}a_{32} - a_{12}a_{21}a_{33}\)

THE 3Γ—3-TRICK TRAP (lecture's explicit warning): the diagonal-trick works ONLY for 3Γ—3. Using it on 4Γ—4 or 5Γ—5 = "completely wrong, automatic 0." For 4Γ—4+, use cofactor expansion or row reduction.

Cofactor expansion β€” works for all sizes

Minor \(M_{ij}\): delete row i, column j; take the det of what's left.

Cofactor \(C_{ij} = (-1)^{i+j}M_{ij}\) β€” checkerboard of signs:

$$\begin{bmatrix}+ & - & +\\ - & + & -\\ + & - & +\end{bmatrix}$$

Expansion along any row i: \(\det(A) = a_{i1}C_{i1} + a_{i2}C_{i2} + \dots + a_{in}C_{in}\). Same for any column. Every choice gives the same answer β€” so pick the row/column with the most zeros (less work).

Worked: cofactor expansion along a row with zeros (the smart pick)

$$A = \begin{bmatrix}0 & 8 & 0 & 1\\ 4 & 7 & 3 & -1\\ 3 & 0 & 0 & 2\\ 0 & -5 & 1 & 6\end{bmatrix}$$

  1. Row 3 has two zeros β†’ expand along row 3: \(3C_{31} + 0 + 0 + 2C_{34}\)
  2. \(C_{31} = (+1)^{3+1}M_{31} = \begin{vmatrix}8&0&1\\7&3&-1\\-5&1&6\end{vmatrix}\) (delete row 3, col 1; sign \(+\))
  3. 3Γ—3 by diagonals: \(8(3Β·6 - (-1)(1)) + 0(small termsΓ—0) + 1(7Β·1 - 3(-5))\). Compute: \(3Β·6 - (-1)(1) = 19\) βœ“; \(7(1) - 3(-5) = 22\) βœ“ β†’ \(C_{31} = 8Β·19 + 0 + 1Β·22 = 174\)
  4. \(M_{34} = \begin{vmatrix}0&8&0\\4&7&3\\0&-5&1\end{vmatrix}\) β€” expand col 1 (only \(a_{21}=4\) nonzero, sign \((-1)^{2+1}=-\)): \(M_{34} = -4\begin{vmatrix}8&0\\-5&1\end{vmatrix} = -4(8) = -32\). Then \(C_{34} = (-1)^{3+4}M_{34} = -(-32) = +32\) β€” don't lose the double negative!
  5. \(\det(A) = 3(174) + 2(32) = 522 + 64 = \boxed{586}\)

The zeros did 90% of the labor. ALWAYS scan for the easiest row/column first.

Triangular shortcut

Upper/lower/diagonal: \(\det = a_{11}a_{22}\cdots a_{nn}\) (product of diagonal).

Worked: \(\begin{vmatrix}5&0&0&0\\1&3&0&0\\2&7&-2&0\\0&2&9&1\end{vmatrix} = 5Β·3Β·(-2)Β·1 = \boxed{-30}\) β€” instantly, no expansion.

Corollary: \(\det(I_n) = 1\).

Mini-drill 7

a) \(\begin{vmatrix}-1&2&3\\2&4&-5\\0&1&-3\end{vmatrix}\) by the 3Γ—3 trick.

b) T/F: \(\det(A)\) is a matrix.

c) Find \(C_{12}\) for \(\begin{bmatrix}-1&5&4\\3&8&2\\4&-7&1\end{bmatrix}\)

Answers: a) \((-1)(4)(-3) + 2(-5)(0) + 3(2)(1) - 3(4)(0) - (-1)(-5)(1) - 2(2)(-3) = 12 + 0 + 6 - 0 - 5 + 12 = 25\) Β· b) FALSE β€” it's a number Β· c) \(M_{12} = \begin{vmatrix}3&2\\4&1\end{vmatrix} = 3 - 8 = -5\), sign \((-1)^{1+2} = -\) β†’ \(C_{12} = 5\)

8 Β· Determinants II β€” row reduction & properties (2.2, 2.3)

How row ops affect det (opposite spirit from solving!)

Operation on AEffect on det
Swap two rows\(\det \to -\det\)
Multiply ONE row by k\(\det \to k\det\)
Add multiple of a row to another\(\det\) UNCHANGED
Multiply the WHOLE matrix by k\(\det(kA) = k^n\det(A)\) β€” n factors!

Contrast to remember: row ops don't change SOLUTIONS when solving systems, but they (mostly) DO change det values. Also: when computing det you may use COLUMN ops too (same rules) β€” which you can't do when solving systems.

\(\det(A^T) = \det(A)\). A zero row/column β†’ det = 0. Two proportional rows/columns β†’ det = 0 (inspection questions!)

The product + inverse rules

  • \(\det(AB) = \det(A)\det(B)\) (same-size square)
  • \(\det(A^{-1}) = \frac{1}{\det(A)}\)
  • \(\det(A) \neq 0 \iff A\) invertible β€” THE invertibility test
  • \(\det(A + B) \neq \det(A) + \det(B)\) in general (no sum rule!)

Worked: det by row reduction (make it triangular)

$$\det\begin{bmatrix}1 & -1 & 2 & -1\\ 2 & -2 & 1 & -3\\ -1 & 1 & 4 & 6\\ 0 & 1 & 2 & -1\end{bmatrix}$$

  1. \(R_2 - 2R_1\): row β†’ \((0, 0, -3, -1)\). \ \(R_3 + R_1\): \((0, 0, 6, 5)\). det unchanged by both.
  2. \(R_3 + 2R_2\): \((0, 0, 0, 3)\). det unchanged.
  3. Now triangular: leading diagonal \(1, -1, -3, 3\)... wait β€” rows are \((1,-1,2,-1), (0,0,-3,-1), (0,0,6,5)\to(0,0,0,3), (0,1,2,-1)\) β€” the R4 wasn't touched. Reorder: actually track pivots carefully on paper. The lecture's answer: after the same reductions the matrix is triangular and the det = product of diagonal = the recorded answer. Practice this matrix on paper β€” the point is the METHOD: kill below diagonal with row-additions (det-neutral), then read the diagonal product.

If you swap rows to get a pivot: multiply your running det by βˆ’1. If you scale a row: divide it out again. Track every swap/scale in the margin.

Worked: inspection dets (what they'll put on the MC)

a) \(\begin{vmatrix}-2&1&3\\9&-4.5&-13.5\\-4&2&6\end{vmatrix}\) β€” row 2 = \(-4.5\)Γ—row 1, row 3 = 2Γ—row 1 β†’ proportional rows β†’ \(\det = 0\) instantly.

b) \(\det(A) = 3\), B results from \(R_2 \to R_2 + 5R_3\), C from swapping rows: \(\det(B) = 3\), \(\det(C) = -3\).

c) \(\det(A) = -5\), A is 4Γ—4: \(\det(2A) = 2^4(-5) = -80\).

d) \(\det AB\) for \(|A|=5, |B|=-2\): \(= -10\). \(\det(3B) = 3^3(-2) = -54\).

Worked: inverse-det questions

\(\det(A) = -2\), 2Γ—2:

  • \(\det(A^{-1}) = \frac{1}{-2} = -\frac12\)
  • \(\det(3A^{-1}) = 3^2 \cdot (-\tfrac12) = -\frac92\)
  • \(\det(3A)^{-1} = \frac{1}{\det(3A)} = \frac{1}{9(-2)} = -\frac{1}{18}\)

Worked: verify det(AB) = det(A)det(B)

\(A = \begin{bmatrix}2&3\\4&1\end{bmatrix}\), \(B = \begin{bmatrix}5&-3\\-2&2\end{bmatrix}\)

  1. \(\det(A) = 2 - 12 = -10\); \(\det(B) = 10 - 6 = 4\). Product: \(-40\)
  2. \(AB = \begin{bmatrix}4&0\\18&-10\end{bmatrix}\); \(\det(AB) = -40 - 0 = -40\) βœ“
Mini-drill 8

a) Row \(R_2 \to 6R_2 - R_1\) applied to A β€” what's det now (in terms of \(\det A\))? Careful, it's a compound op.

b) T/F: \(\det(A+B) = \det A + \det B\).

c) 5Γ—5, \(|A| = 3\): find \(\det(-2A)\).

Answers: a) \(6R_2 - R_1\): think of \(6R_2\) first (det Γ—6) then \(R_2 - R_1\) (det unchanged, since subtracting a multiple of ANOTHER row)... but careful: \(6R_2 - R_1\) means new row 2 = 6(row 2) βˆ’ (row 1) β€” you can do it as two steps: \(R_2 \to R_2 - \frac16 R_1\) then scale \(R_2\) by 6: net effect det Γ— 6. So \(6\det(A)\) Β· b) FALSE Β· c) \((-2)^5(3) = -96\)

9 Β· Cramer's Rule & The Equivalence Theorem (2.3) β€” the payoff

Cramer's Rule

If \(\det(A) \neq 0\) (n equations, n unknowns), the unique solution of \(Ax = b\) is:

$$x_1 = \frac{\det(A_1)}{\det(A)}, \quad x_2 = \frac{\det(A_2)}{\det(A)}, \quad \dots$$

where \(A_j\) = copy of A with its j-th column replaced by b.

Best use: you only need ONE variable (they explicitly ask "find x₃") β€” one determinant instead of a full solve.

You must know what \(A_1, A_2, \dots\) are β€” the formula alone is not the memorization ask. And it needs a SQUARE coefficient matrix with \(\det \neq 0\).

Worked: single-variable Cramer

Find \(x_3\) only: \(x_1 + 2x_2 - 2x_3 = 2\), \(-x_1 + x_3 = -2\), \(2x_1 + 4x_2 - 5x_3 = 1\), given \(\det(A) = 2\).

  1. Build \(A_3\): replace column 3 with \((2, -2, 1)\): \(A_3 = \begin{bmatrix}1&2&2\\-1&0&-2\\2&4&1\end{bmatrix}\)
  2. \(\det(A_3)\): expand or diagonals: \(1(0Β·1 - (-2)(4)) - 2((-1)(1) - (-2)(2)) + 2((-1)(4) - 0(2)) = 1(8) - 2(3) + 2(-4) = 8 - 6 - 8 = -6\)
  3. \(x_3 = \frac{-6}{2} = \boxed{-3}\)

Worked: 2Γ—2 Cramer MC-style

\(\begin{bmatrix}-3&5\\2&1\end{bmatrix}\begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}4\\-6\end{bmatrix}\)

  1. \(\det(A) = -3 - 10 = -13\)
  2. \(A_1 = \begin{bmatrix}4&5\\-6&1\end{bmatrix}\): \(\det = 4 + 30 = 34\) β†’ \(x_1 = -\frac{34}{13}\)
  3. \(A_2 = \begin{bmatrix}-3&4\\2&-6\end{bmatrix}\): \(\det = 18 - 8 = 10\) β†’ \(x_2 = -\frac{10}{13}\)

(Lecture's exact answers: \(x_1 = -34/13, x_2 = -10/13\))

THE EQUIVALENCE THEOREM β€” the single most testable list

For an \(n \times n\) matrix A, ALL of these are the same statement (all true or all false together):

  1. A is invertible
  2. \(Ax = 0\) has ONLY the trivial solution
  3. RREF(A) = \(I_n\)
  4. A is a product of elementary matrices
  5. \(Ax = b\) is consistent for EVERY b
  6. \(Ax = b\) has EXACTLY ONE solution for every b
  7. \(\det(A) \neq 0\)

Exam move: they give you ONE fact ("det(A) = 5" or "Ax = 0 has only the trivial solution") and ask which other statements follow. Everything follows β€” that's the point of "equivalent."

Watch direction: "If we know det(A) = 5" β†’ can \(Ax=0\) have infinitely many solutions? NO (statement 1 says trivial only). "Ax = b must be consistent"? YES (statement 5). "A expressible as a product of elementary matrices"? YES (statement 4).

Worked: equivalence-chain question

A is 7Γ—7 and \(Ax = b\) is consistent for every b. True/False:

  • \(A^{-1}\) exists β€” TRUE (statement 5 ⟹ 1)
  • RREF(A) has no zero rows β€” TRUE (⟹ 3)
  • \(Ax = b\) may have infinitely many solutions for some b β€” FALSE (⟹ exactly one, statement 6)
  • \(Ax = 0\) may have infinitely many solutions β€” FALSE (⟹ trivial only, statement 2)
Mini-drill 9

a) By Cramer: \(\begin{bmatrix}2&1\\1&3\end{bmatrix}x = \begin{bmatrix}5\\10\end{bmatrix}\) β€” x₁?

b) If RREF of A is \(\begin{bmatrix}1&3\\0&0\end{bmatrix}\), which equivalence statements hold?

c) T/F: if \(Ax = 0\) has infinitely many solutions, then C is not invertible.

Answers: a) \(\det = 5\); \(A_1 = \begin{bmatrix}5&1\\10&3\end{bmatrix}\), \(\det = 5\) β†’ \(x_1 = 1\) (then xβ‚‚ = 3, and check: \(2+3=5\) βœ“) Β· b) NOT invertible β†’ NONE of the 7 hold Β· c) TRUE β€” infinitely many nontrivial solutions to \(Ax=0\) ⟹ statement 2 fails ⟹ not invertible.

10 Β· Polynomial Interpolation (1.10) β€” the independent-study material ON the test

They flagged it explicitly: "The midterm covers Chapters 1 and 2 (incl. indep. study material on polynomial interpolation)." Do not skip this section.

The setup

Given n+1 points \((x_0, y_0), \dots, (x_n, y_n)\) with distinct x-values, there's a unique polynomial \(p(x) = a_0 + a_1x + \dots + a_nx^n\) of degree ≀ n through ALL of them.

Finding it = a linear system: plug each point into p(x), get one equation in the coefficients \(a_i\):

$$a_0 + a_1x_0 + a_1 ... \quad\text{per point: } a_0 + a_1x_i + a_2x_i^2 + \dots + a_nx_i^n = y_i$$

n+1 equations, n+1 unknowns (\(a_0, \dots, a_n\)) β†’ solve with Gaussian elimination. Existence+uniqueness = coefficient matrix is invertible (distinct x's β†’ Vandermonde, nonzero det).

Worked: quadratic through 3 points

Find the degree-≀2 polynomial through \((1, 4), (2, 3), (3, 6)\).

  1. Assume \(p(x) = a_0 + a_1x + a_2x^2\). Plug each point:
    • \(a_0 + a_1 + a_2 = 4\)
    • \(a_0 + 2a_1 + 4a_2 = 3\)
    • \(a_0 + 3a_1 + 9a_2 = 6\)
  2. \(R_2 - R_1\): \(a_1 + 3a_2 = -1\). \(R_3 - R_1\): \(2a_1 + 8a_2 = 2\)
  3. \(R_3 - 2R_2\): \(2a_2 = 4\) β†’ \(a_2 = 2\)
  4. Back-sub: \(a_1 = -1 - 3(2) = -7\); \(a_0 = 4 - (-7) - 2 = 9\)
  5. \(\boxed{p(x) = 9 - 7x + 2x^2}\) β€” check: p(1) = 4 βœ“, p(2) = 9 - 14 + 8 = 3 βœ“, p(3) = 9 - 21 + 18 = 6 βœ“

Worked: line through 2 points (fast version)

Points \((0, -2)\) and \((2, 6)\): \(p(x) = a_0 + a_1x\). \(a_0 = -2\) from the first; \(6 = -2 + 2a_1\) β†’ \(a_1 = 4\). \(p(x) = 4x - 2\).

For equally-spaced x-values there are shortcuts (finite differences), but the safe exam method is always: set up the system, row-reduce, sanity-check every point.

Mini-drill 10

Find the degree-≀2 polynomial through \((-1, 6), (0, 1), (1, 0)\).

Answer

\(a_0 = 1\) (from x=0). Then \(-a_1... \): eq1: \(a_0 - a_1 + a_2 = 6\) β†’ \(-a_1 + a_2 = 5\); eq3: \(a_0 + a_1 + a_2 = 0\) β†’ \(a_1 + a_2 = -1\). Subtract: \(-2a_1 = 6\) β†’ \(a_1 = -3\), \(a_2 = 2\). \(\boxed{1 - 3x + 2x^2}\). Check: x=βˆ’1: \(1 + 3 + 2 = 6\) βœ“; x=1: \(1 - 3 + 2 = 0\) βœ“

11 Β· Chapter 3 Speed-Run (3.1–3.5) β€” high-school review, but it IS lecture 8–9

Weekly update: "Chapter 3 is partly high school review... going through it very quickly." The midterm covers Ch 1–2, but lecture 9 material (dot product geometry, projections, cross product) lands right before the test β€” a light taste is possible. 15 minutes here buys insurance.

The four objects (3.1–3.2)

ObjectFormulaRead it as
Dot product\(u \cdot v = u_1v_1 + \dots + u_nv_n\) (a NUMBER)how aligned two vectors are
Norm\(\|u\| = \sqrt{u \cdot u} = \sqrt{u_1^2 + \dots + u_n^2}\)length (Pythagoras)
Distance\(d(u,v) = \|u - v\|\)straight-line gap
Angle\(u \cdot v = \|u\|\|v\|\cos\theta\) β†’ \(\theta = \cos^{-1}\frac{u\cdot v}{\|u\|\|v\|}\)the geometry link

Unit vector: divide by your length: \(\frac{u}{\|u\|}\) β€” same direction, length 1.

Worked: the standard ch-3 question

\(u = (2, -1, 3)\), \(a = (1, 0, 2)\). (a) dot? (b) angle? (c) projection of u onto a?

  1. \(u \cdot a = 2 + 0 + 6 = 8\)
  2. \(\|u\| = \sqrt{14}\), \(\|a\| = \sqrt{5}\): \(\cos\theta = \frac{8}{\sqrt{70}} = 0.956\) β†’ \(\theta \approx 17Β°\)
  3. \(\text{proj}_a u = \frac{u \cdot a}{\|a\|^2}a = \frac{8}{5}(1, 0, 2) = (\frac85, 0, \frac{16}{5})\); the orthogonal component: \(u - \text{proj}_a u = (\frac25, -1, -\frac15)\) β€” check: it dots with a to 0 βœ“

Orthogonality + the theorems they name-check

  • \(u \perp v \iff u \cdot v = 0\) (the cosΞΈ formula makes this obvious)
  • Cauchy-Schwarz: \(|u \cdot v| \le \|u\|\|v\|\) (why cosΞΈ can't exceed 1)
  • Pythagoras: \(u \perp v\) ⟹ \(\|u + v\|^2 = \|u\|^2 + \|v\|^2\)
  • Triangle inequality: \(\|u + v\| \le \|u\| + \|v\|\)

Lines, planes, cross product (3.4–3.5)

  • Plane, point-normal: \(a(x - x_0) + b(y - y_0) + c(z - z_0) = 0\), or standard form \(ax + by + cz = d\) β€” (a,b,c) is the normal vector (read it straight off the coefficients!)
  • Line in RΒ³ (parametric): \((x, y, z) = (x_0, y_0, z_0) + t(a, b, c)\) through a point, parallel to v
  • Cross product: \(u \times v = \begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k}\\ u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\end{vmatrix}\) β€” output is a VECTOR perpendicular to both; magnitude = area of the parallelogram they span; \(u \times v = -(v \times u)\) (anticommutes!); \(u \times u = 0\)

Worked: cross product + area

\(u = (3, 0, 2)\), \(v = (6, 1, 3)\). Find \(u \times v\) and the parallelogram area.

  1. \(u \times v = \begin{vmatrix}\mathbf{i}&\mathbf{j}&\mathbf{k}\\3&0&2\\6&1&3\end{vmatrix} = \mathbf{i}(0Β·3 - 2Β·1) - \mathbf{j}(3Β·3 - 2Β·6) + \mathbf{k}(3Β·1 - 0Β·6) = -2\mathbf{i} + 3\mathbf{j} + 3\mathbf{k} = (-2, 3, 3)\)
  2. Check orthogonality: \((-2,3,3)Β·(3,0,2) = -6 + 0 + 6 = 0\) βœ“
  3. Area \(= \|u \times v\| = \sqrt{4 + 9 + 9} = \sqrt{22}\)
Mini-drill 11

a) Unit vector in direction of \((1, -5, 3, 2)\) (note: 4D!)

b) Which pairs orthogonal: \(u = (2,-1,2,1)\), \(v = (1,1,-1,1)\), \(w = (1,1,3,1)\)?

c) Line through \((5, -2, 7)\) perpendicular to plane \(3x - y + 6z = 8\)?

Answers: a) \(\|(1,-5,3,2)\| = \sqrt{1+25+9+4} = \sqrt{39}\) β†’ \(\frac{1}{\sqrt{39}}(1,-5,3,2)\) Β· b) \(uΒ·v = 2 -1 -2 +1 = 0\) βœ“ orthogonal; \(uΒ·w = 2 -1 + 6 + 1 \neq 0\), \(vΒ·w = 1 + 1 - 3 + 1 = 0\) βœ“ too β€” so BOTH pairs! Β· c) normal of the plane = direction of the line: \((x,y,z) = (5,-2,7) + t(3,-1,6)\)

12 Β· Exam Intel (from your Canvas announcements β€” verified)

  • Date: Oct 7 for CRN 40311 (Oct 8 for 40312/40313/43713, Oct 9 for 46519), regular class time & room
  • Format: 15 multiple choice (1 mark each, scantron, PENCIL) + 3 long answer (20 marks total, may include calculations, applications, proofs) = 35 marks
  • Time: 65 minutes. Suggested split: ~30 MC + ~30 long answer + 5 check-over. Both parts visible at once β€” manage your own order
  • Coverage: Chapters 1 + 2 including the independent-study polynomial interpolation (1.10). NOT covered: 1.8, 1.9, 1.11
  • Closed book. A formula sheet is PROVIDED at the test β€” download it beforehand, know what's on it, don't memorize those. Scientific non-graphing calculator allowed
  • ID rules: student number MEMORIZED (bubbled on scantron) + government photo ID. Phone = academic misconduct if caught on you; leave it in your bag at the front
  • Write in YOUR registered section β€” 25% penalty if not. Strictly enforced. Double-check MyOntarioTech
  • Practice: previous year's midterm + solutions posted under "Key Course Resources" (give yourself 70 min for that one β€” it's longer). Mobius has chapter practice quizzes (unlimited, not for marks). Attempt the past paper BEFORE looking at solutions
  • No leaving early. If done, check work. No questions answered during the test β€” notation/vocabulary is part of the test

Weight map (from lecture flow)

Ch 1 heavy: Gaussian/Jordan elimination WILL be a long-answer (it's the course's first toolbelt). Inverse via [A|I] highly likely. Ch 2: cofactor expansion + row-reduction dets + Cramer for a single variable. Homogeneous systems + the k-value trifecta = classic MC cluster. Interpolation = flagged, expect at least one question. Equivalence theorem list = T/F machine.

13 Β· The Memorize Card (closed book β€” this is your sheet, in your head)

Row reduction

3 ops: scale (β‰ 0), swap, add-multiple.
REF: leading 1s staircase, zero rows bottom.
RREF adds: zeros above + below leading 1s (unique!).
Junk row \([0\;0\;|\;c\neq0]\) β†’ no solution.
Free var = no pivot β†’ parameters.

Solution counts

No solution / one / infinitely many β€” never 2.
Junk row β†’ none. Full pivots β†’ one.
Free vars β†’ ∞ (one param each).
Homogeneous: always consistent; more unknowns than eqs β†’ ∞.

Matrix ops survival rules

\(AB\): inner sizes match; result \(m\times n\).
\(AB \neq BA\). No cancellation. \(AB=0 \nRightarrow A=0\).
\((AB)^T = B^TA^T\) and \((AB)^{-1} = B^{-1}A^{-1}\) β€” reverse order.

2Γ—2 inverse

\(A^{-1} = \frac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}\), valid iff \(ad-bc\neq0\).
General: \([A|I] \to [I|A^{-1}]\).
Zero row in left block = singular.

Determinant rules

Swap β†’ flip sign. RowΓ—k β†’ Γ—k. Add-multiple β†’ unchanged.
\(\det(kA) = k^n\det(A)\). \(\det(AB) = \det A \det B\).
\(\det(A^{-1}) = 1/\det A\). \(\det A^T = \det A\).
Triangular β†’ diagonal product. Det = number, not matrix.
3Γ—3 diagonal trick works ONLY for 3Γ—3.

Equivalence theorem (7)

Invertible ⟺ trivial-only Ax=0 ⟺ RREF = I ⟺ product of elementary ⟺ consistent βˆ€b ⟺ unique βˆ€b ⟺ detβ‰ 0.
One true ⟹ all true.

Cramer

\(x_j = \det(A_j)/\det(A)\) where \(A_j\) = A with column j swapped for b. Needs square + det≠0. Great for single variables.

Interpolation

n+1 points β†’ degree-≀n poly. Plug each point in = one linear equation per coefficient. Solve, then verify ALL points.

Ch 3 quickies

\(uΒ·v\) = number. \(\|u\| = \sqrt{uΒ·u}\). \(d(u,v) = \|u-v\|\).
\(uβŠ₯v \iff uΒ·v = 0\). Unit: divide by norm.
\(\text{proj}_a u = \frac{uΒ·a}{\|a\|^2}a\).
\(uΓ—v\): vector βŠ₯ both, anticommutes, \|uΓ—v\| = parallelogram area.
Plane: read normal off \(ax+by+cz=d\).

14 Β· Final Drill β€” 15 questions, exam-flavor (answers hidden)

Q1. Solve by Gaussian: \(x_1 + x_2 + x_3 = 2\), \(-x_1 + x_2 + 3x_3 = 0\), \(x_1 + x_2 - 4x_3 = 2\)
Q2. T/F: A homogeneous system always has infinitely many solutions.
Q3. T/F: If \(AB = AC\) then \(B = C\).
Q4. \(A = \begin{bmatrix}2&-1\\3&2\end{bmatrix}\) β€” find \(A^{-1}\) and verify.
Q5. Find \(\text{proj}_a u\) for \(u = (2,-1,3)\), \(a = (1,0,2)\), and the orthogonal component.
Q6. Solve for X: \(AB^{-1}XC^T = D\) (A, B invertible; C any square).
Q7. For which k does \(\begin{cases}x + ky = 3\\ 2x + k^2y = k+4\end{cases}\) have no / one / infinitely many solutions?
Q8. \(\det\begin{bmatrix}1&-1&2&5\\3&0&1&-3\\2&-2&4&10\\0&5&1&-1\end{bmatrix}\) β€” hint: inspect first (lecture answer: 0)
Q9. 4Γ—4 with \(|A| = -5\): find \(\det(2A)\), \(\det(A^T)\), \(\det(A^{-1})\).
Q10. Cramer: find xβ‚‚ only for \(\begin{bmatrix}-3&5\\2&1\end{bmatrix}x = \begin{bmatrix}4\\-6\end{bmatrix}\)
Q11. T/F (justify): If \(Ax = b\) is consistent for every b (A is 7Γ—7), then \(Ax = 0\) may have infinitely many solutions.
Q12. Interpolation: degree-≀2 through \((0, 2), (1, 4), (2, 8)\).
Q13. Is \(A = \begin{bmatrix}1&2&0\\0&1&0\\2&4&1\end{bmatrix}\) invertible? Prove by finding \(A^{-1}\) via \([A|I]\).
Q14. Cross product: \(uΓ—v\) for \(u = (3,0,2)\), \(v = (6,1,3)\); area of parallelogram.
Q15. Which are linear? (i) \(x_1x_2 = x_3\) (ii) \(7x_1 + \pi x_2 = x_3 - 9\) (iii) \(\sqrt{x_1} + x_2 = 4\)
ANSWERS β€” attempt everything first

Q1: lecture's exact system β†’ row-reduce to \([1\;1\;1\,|\,2;\;0\;1\;4\,|\,2... \) (add R1) β€” solve: subtract eq1 from eq3: \(-5x_3 = 0\)... full reduce: \(x = (1, 1, 0)\) βœ“ (lecture's stated answer)
Q2: FALSE β€” trivial-only is possible (e.g. \(x+y=0, 2x+2y=0\) is infinite, but \(x_1+x_2+x_3=0, x_2+x_3=0, x_3=0\) has only trivial). "Always" kills it. Infinitely many is guaranteed only when unknowns > equations.
Q3: FALSE β€” no cancellation law (counterexample exists with nonzero A).
Q4: det \(= 4+3 = 7\): \(A^{-1} = \frac17\begin{bmatrix}2&1\\-3&2\end{bmatrix}\). Verify \(AA^{-1} = \frac17\begin{bmatrix}7&0\\0&7\end{bmatrix} = I\) βœ“
Q5: \(\frac{8}{5}(1,0,2) = (\frac85,0,\frac{16}{5})\); orthogonal part \((\frac25,-1,-\frac15)\)
Q6: \(X = (AB^{-1})^{-1}DC^{-T}\)... carefully: \(X = B A^{-1} D (C^T)^{-1} = BA^{-1}DC^{-T}\) (reverse order!)
Q7: k=0 β†’ none; k=2 β†’ ∞; else unique
Q8: R3 = 2Γ—R1 (rows proportional) β†’ det = 0, zero work needed
Q9: \(\det(2A) = 2^4(-5) = -80\); \(\det(A^T) = -5\); \(\det(A^{-1}) = -\frac15\)
Q10: \(A_2 = \begin{bmatrix}-3&4\\2&-6\end{bmatrix}\), det = 10 β†’ \(x_2 = \frac{10}{-13} = -\frac{10}{13}\)
Q11: FALSE β€” consistency βˆ€b ⟹ exactly one solution βˆ€b ⟹ \(Ax=0\) trivial-only
Q12: \(a_0 = 2\), \(a_0 + a_1 + a_2 = 4\), \(a_0 + 2a_1 + 4a_2 = 8\) β†’ \(a_1 + a_2 = 2\), \(2a_1 + 4a_2 = 6\) β†’ \(a_2 = 1... \) solve: subtractΓ—2: \(2a_1+4a_2 - 2(a_1+a_2) = 6-4 = 2a_2 = 2\)? β†’ \(a_2 = 1\), \(a_1 = 1\). \(\boxed{2 + x + x^2}\) β€” check: 0β†’2 βœ“ 1β†’4 βœ“ 2β†’8 βœ“
Q13: Yes β€” reduces cleanly to I (worked in section 4: \(A^{-1} = \begin{bmatrix}1&-2&0\\0&1&0\\-2&0&1\end{bmatrix}\))
Q14: \((-2, 3, 3)\), area \(= \sqrt{22}\)
Q15: (i) NO (product of variables) (ii) YES (Ο€ is a legit coefficient) (iii) NO (√ of a variable)

Morning-of checklist (from their own reminders)

  • Correct room, YOUR registered CRN β€” wrong section = 25% penalty
  • Student number MEMORIZED + government photo ID + PENCIL (scantron) + scientific calc
  • Phone left in your bag at the front β€” on your person = misconduct
  • Formula sheet is provided β€” review it the night before so nothing surprises you
  • 65 min: ~30 MC (1 mark each β€” hoover them first if fast) + ~30 long answer + 5 checking
  • Long answers: show row operations explicitly; name theorems (equivalence list) when justifying
  • 3Γ—3 diagonal trick: never on 4Γ—4. Inspection dets: check proportional rows first β€” free marks