Linear Algebra Midterm 2

MATH 1850U · built from the live Canvas announcement + Weeks 5–8 lecture notes
🗓️ Nov 11 (40311) · Nov 12 (40312/40313/43713) · Nov 13 (46519)
📝 15 MC + 3 written · 35 marks
⏱️ 65 minutes · in person, on paper
📕 Ch 3 + Ch 4.1–4.6 + Wronskian
Formula sheet provided · scientific calculator only

0 · Rusty-algebra reset

Think “vectors = ingredient lists; scalars = recipe amounts”

A linear combination is just scaling ingredients and adding them. Everything in this test keeps asking: can these ingredients build a target, are any ingredients redundant, and how many independent directions remain?

Equation housekeeping

To test whether \(b\) is made from columns \(v_1,\dots,v_k\), solve \(c_1v_1+\cdots+c_kv_k=b\). Put the vectors as columns: \([v_1\;\cdots\;v_k]c=b\).

Legal move reminder

Row operations preserve solutions of a linear system. When testing independence, row-reduce the matrix whose columns are the vectors; a pivot in every vector-column means independent. A missing pivot means a free coefficient and dependence.

Warm-up example

Is \((5,1)\) in the span of \((1,1)\) and \((2,-1)\)? Set \(a+2b=5\), \(a-b=1\). Subtract: \(3b=4\), so \(b=4/3\), \(a=7/3\). Yes: \((5,1)=\tfrac73(1,1)+\tfrac43(2,-1)\).

Trap: Don’t set up vectors as rows if coefficients represent the combination; make each listed vector a column.

1 · Chapter 3: vectors (quick review, not the weight center)

A vector is a displacement. Dot product measures alignment; cross product makes a perpendicular vector whose length is area.

Dot product, length, angle

\(u\cdot v=\sum u_iv_i\), \(\|u\|=\sqrt{u\cdot u}\). Orthogonal iff dot product is zero. Unit vector in direction \(u\): \(u/\|u\|\).

Projection

Let \(u=(2,1,0)\), \(a=(1,1,0)\). Then \(u\cdot a=3\), \(a\cdot a=2\), so \(\operatorname{proj}_a u=\frac32(1,1,0)=(3/2,3/2,0)\). Orthogonal part: \(u-\operatorname{proj}_a u=(1/2,-1/2,0)\).

Denominator is \(a\cdot a=\|a\|^2\), not \(\|a\|\).

Cross product, lines, planes

\((1,2,0)\times(0,1,1)=(2,-1,1)\); check by dotting with both inputs = 0. Its length is parallelogram area. A line: \(r=p+tv\). A plane: \(n\cdot(r-p)=0\); in \(ax+by+cz=d\), normal is \((a,b,c)\).

Swap cross-product order and the sign flips: \(u\times v=-(v\times u)\).

Mini-check answers

For \(u=(1,0,1),v=(1,2,-1)\), \(u\cdot v=0\), so orthogonal. \(\|u\|=\sqrt2\). Plane \(2x-y+3z=7\) has normal \((2,-1,3)\).

2 · 4.1–4.2: vector spaces and subspaces

A vector space is a universe where adding allowed objects and scaling them never breaks the rules. A subspace is a smaller universe inside it that still contains zero and stays closed under those two operations.

Subspace test (the fast exam method)

  1. Check the zero vector belongs. If not, stop: not a subspace.
  2. Take arbitrary \(u,v\in W\); show \(u+v\in W\).
  3. Take arbitrary scalar \(c\) and \(u\in W\); show \(cu\in W\).
  4. Or use the combined test: for arbitrary \(u,v\in W\), \(a,b\in\mathbb R\), show \(au+bv\in W\).

Example: homogeneous condition

\(W=\{(x,y,z):x+2y-z=0\}\). Zero is in \(W\). If \(u,v\) satisfy the equation, then \(a u+b v\) gives \(a(0)+b(0)=0\); closed. Thus subspace.

Fast counterexamples

Line not through origin: zero fails. Vectors with all coordinates positive: multiplying by \(-1\) leaves set. Matrices with \(\det A=1\): not closed under scalar multiplication (\(0A\) has determinant 0). Degree-exactly-2 polynomials: zero is excluded.

Homogeneous systems always make subspaces

\(N(A)=\{x:Ax=0\}\) is the nullspace and is a subspace of \(\mathbb R^n\). Why: \(A(au+bv)=aAv+bAu=0\). A nonhomogeneous solution set \(Ax=b\), \(b\ne0\), is generally an affine translate, not a subspace.

3 · 4.3: span and linear combinations

The span is the full set of outputs your chosen ingredients can build. Testing “does this target belong?” is a system-solving question.

Worked membership example

Check whether \((1,2,3)\in\operatorname{span}\{(1,0,1),(0,1,1)\}\). Solve \(a(1,0,1)+b(0,1,1)=(1,2,3)\). Coordinates give \(a=1,b=2\); third coordinate checks \(a+b=3\). Yes, coefficients are \((1,2)\).

Testing whether vectors span a space

Put candidate vectors in columns of \(A\). To span \(\mathbb R^m\), every \(b\in\mathbb R^m\) must be reachable, equivalently \(Ax=b\) consistent for every \(b\), equivalently a pivot in every row. For square matrices: nonzero determinant is a shortcut.

Counting sanity checks

  • Fewer than \(n\) vectors cannot span \(\mathbb R^n\).
  • More than \(n\) vectors in \(\mathbb R^n\) must be dependent.
  • Having at least \(n\) vectors does not guarantee spanning: they may lie in a smaller subspace.

4 · 4.4: linear independence + Wronskian

Independent means no ingredient is redundant. Set a combination equal to zero: if the only recipe that makes zero is “use none,” the vectors are independent.

The procedure

  1. Write \(c_1v_1+\cdots+c_kv_k=0\).
  2. Make the vectors columns of a matrix and solve the homogeneous system.
  3. Only \(c_1=\cdots=c_k=0\) → independent. Any nonzero solution → dependent.

Worked example

For \(v_1=(1,0,1),v_2=(0,1,1),v_3=(1,1,2)\), observe \(v_1+v_2-v_3=0\). Coefficients \((1,1,-1)\) are nontrivial, so dependent; also \(v_3=v_1+v_2\).

Wronskian — explicitly on the exam list

For three functions \(f,g,h\), form \(W(x)=\det\begin{bmatrix}f&g&h\\f'&g'&h'\\f''&g''&h''\end{bmatrix}\). To prove independence, find one point \(x_0\) where \(W(x_0)\ne0\). A zero at one point does not prove dependence; it only means this test didn’t certify independence.

Course-style example: \(f=1-2x^2,g=3+4x,h=7+2x\). At \(x=0\), columns are \((1,0,-4),(3,4,0),(7,2,0)\). Determinant \((-4)\det\begin{bmatrix}3&7\\4&2\end{bmatrix}=(-4)(6-28)=88\ne0\). Therefore independent.

Wronskian limitation: nonzero determinant at any one point is decisive for independence; determinant identically zero is not a universal proof of dependence for arbitrary functions.

5 · 4.5: basis and coordinates

A basis is a minimal complete set of directions: it spans the whole space and has no redundant vector. Once the basis is fixed, every vector has one unique coordinate recipe.

Basis tests

A set is a basis iff it is both independent and spanning. For exactly \(n\) vectors in an \(n\)-dimensional space, either property proves the other. Put vectors in columns: square matrix with nonzero determinant → basis for \(\mathbb R^n\).

Coordinates relative to a basis

Let \(b_1=(1,1),b_2=(1,-1)\). Write \((4,2)=c_1b_1+c_2b_2\): \(c_1+c_2=4\), \(c_1-c_2=2\). Hence \(c_1=3,c_2=1\), and coordinate vector is \([ (4,2)]_B=(3,1)\) in the stated order.

Coordinates are coefficients in the chosen ordered basis, not necessarily the vector’s usual components.

6 · 4.6: dimension

Dimension counts independent directions, not how many points or objects a space contains.

Common dimensions

\(\dim\mathbb R^n=n\); \(\dim P_n=n+1\); \(\dim M_{m\times n}=mn\). Diagonal 3×3 matrices have dimension 3. Trace-zero 2×2 matrices have dimension 3.

Plus/minus and size rules

  • Independent set + vector outside its span → add it, still independent.
  • Remove a vector that is a combination of the others → span unchanged.
  • In an \(n\)-dimensional space: more than \(n\) vectors dependent; fewer than \(n\) cannot span.

Worked: dimension of a constrained matrix space

Trace-zero matrices \(\begin{bmatrix}a&b\\c&d\end{bmatrix}\), with \(a+d=0\), have form \(\begin{bmatrix}a&b\\c&-a\end{bmatrix}=a\begin{bmatrix}1&0\\0&-1\end{bmatrix}+b\begin{bmatrix}0&1\\0&0\end{bmatrix}+c\begin{bmatrix}0&0\\1&0\end{bmatrix}\). The three displayed matrices are independent; dimension 3.

7 · Wronskian checklist (don’t leave the independent-study item out)

  1. List the functions and differentiate each once, then twice.
  2. Put function values in row 1, first derivatives in row 2, second derivatives in row 3 (for three functions).
  3. Evaluate at a convenient point, often \(x=0\).
  4. Nonzero determinant → independent. Show the determinant calculation and conclusion.

For \(\{1,x,x^2\}\), at zero the Wronskian matrix is \(\begin{bmatrix}1&0&0\\0&1&0\\0&0&2\end{bmatrix}\), determinant \(2\ne0\): independent.

8 · Exact exam intel (Canvas announcement Nov 3)

  • CRN 40311: Wed Nov 11 · 40312/40313/43713: Thu Nov 12 · 46519: Fri Nov 13; regular section time/place. Check your registered CRN in MyOntarioTech.
  • In person, on paper; 65 minutes; 15 multiple choice (15 marks) plus 3 written questions (20 marks). Could include computations, applications, and proofs. More marks from Chapter 4 than Chapter 3.
  • Coverage: Chapter 3 and Chapter 4.1–4.6, including independent-study Wronskian. Later 4.8–4.9 and Chapter 1 transformations are not on this midterm.
  • Closed book. Formula sheet is supplied; don’t bring your own. Scientific non-graphing, non-programmable calculator allowed.
  • Bring pencil for scantron, government photo ID, and memorize student number. Leave phone in belongings at front—not on you. Write in your registered section: wrong section carries 25% penalty.
  • Suggested pace: ~30 min MC + ~30 min written + 5 min checking. Past Fall 2017 Midterm #2: try for exactly 70 minutes, then check solutions.
Canvas files: Modules Week 6–8 lecture notes; Midterm and Exam Resources page has the Fall 2017 Midterm #2 and solutions, plus the provided formula sheet. The live Google Drive token was expired during this refresh, so Drive materials could not be checked.

9 · Exam-style final drill (answers hidden—try first)

1. Is \(W=\{(x,y,z):x-y+2z=0\}\) a subspace? Justify with the test.
2. Is \(W=\{(x,y):x+y=1\}\) a subspace? Give the fastest reason.
3. Decide if \((2,1,3)\) is in \(\operatorname{span}\{(1,0,1),(0,1,1)\}\).
4. Are \((1,2,0),(0,1,1),(1,3,1)\) independent?
5. Find a basis and dimension of \(P_2\).
6. Dimension of 2×2 matrices with trace zero?
7. Use a Wronskian to test \(1,x,x^2\).
8. For a 3×5 matrix of rank 2, find nullity and max rank.
9. Project \((2,1)\) onto \((1,1)\).
10. Is \(\{(1,0),(0,1),(1,1)\}\) a basis for \(\mathbb R^2\)? Why?
ANSWERS — open after attempting
  1. Yes: homogeneous linear equation; zero and linear combinations preserve it.
  2. No: zero is not in the set since 0+0≠1.
  3. Yes: coefficients \(a=2,b=1\), third coordinate \(a+b=3\).
  4. Dependent: third vector is the sum of first two.
  5. \(\{1,x,x^2\}\), dimension 3.
  6. 3; form \(\begin{bmatrix}a&b\\c&-a\end{bmatrix}\).
  7. At zero, determinant of \(\begin{bmatrix}1&0&0\\0&1&0\\0&0&2\end{bmatrix}\) is 2, so independent.
  8. Nullity = 5−2=3; maximum rank = min(3,5)=3.
  9. Dot ratio \((2+1)/2=3/2\); projection \((3/2,3/2)\).
  10. No: dependent (third is first+second), though they span \(\mathbb R^2\).