Modules › Systems of linear equations
Systems of linear equations
Augmented matrices, elementary row operations, Gauss and Gauss–Jordan elimination, solution types, systems with a parameter.
Lecture 1 · Exercise Sheet 1 · Systems of linear equations
Textbook sections: Elementary Linear Algebra (8th ed.) ch. 1 §1.1–1.3 · Strang ch. 2 §2.1–2.3 and §3.3–3.4
Textbook sections: Elementary Linear Algebra (8th ed.) ch. 1 §1.1–1.3 · Strang ch. 2 §2.1–2.3 and §3.3–3.4
Worked examples from the course problems
Worked example 1 · Systems with a parameter (Exercise Sheet 1, Ex. 4)
Consider $$\begin{cases}x + 2y - 3z = 4 \\ 3x - y + 5z = 2 \\ 4x + y + \left(a^{2} - 14\right)z = a + 2\end{cases}$$
For which real $a$ does the system have no solution?
Show the answer and the solution
Answer: $a=-4$
$\det\begin{bmatrix}1&2&-3\\3&-1&5\\4&1&a^2-14\end{bmatrix}=-7(a^2-16)$, so only $a=\pm4$ need checking. Row 3 equals row 1 + row 2 in the coefficients; the right-hand sides then agree iff $a+2=6$, i.e. $a=4$. Hence $a=4$: infinitely many solutions; $a=-4$: none; otherwise unique.
Worked example 2 · Reading an RREF (Exercise Sheet 1, Ex. 2)
The augmented matrix of a system in $x_1,\dots,x_4$ is already in reduced row-echelon form:
$$\left[\begin{array}{cccc|c}1 & 0 & 0 & 4 & -1 \\ 0 & 1 & 0 & 2 & 6 \\ 0 & 0 & 1 & 3 & 2\end{array}\right]$$
Which vector is a solution of the system?
Show the answer and the solution
Answer: $(-5, 4, -1, 1)$
Give values to the free variables and solve for the pivot variables; $(-5, 4, -1, 1)$ satisfies every row.
Worked example 3 · Solving systems (Exercise Sheet 1, Ex. 3.3)
Solve the system by Gauss–Jordan elimination.
$$\begin{cases}x + 2y - t + w = 1 \\ 3y + z - w = 2 \\ z + 7t = 1\end{cases}$$
Which vector $(x,y,z,t,w)$ is a solution?
Show the answer and the solution
Answer: $(\frac{2}{3}, - \frac{4}{3}, 8, -1, 2)$
Gauss–Jordan on the augmented matrix gives $\left[\begin{array}{ccccc|c}1 & 0 & 0 & \frac{11}{3} & \frac{5}{3} & \frac{1}{3} \\ 0 & 1 & 0 & - \frac{7}{3} & - \frac{1}{3} & \frac{1}{3} \\ 0 & 0 & 1 & 7 & 0 & 1\end{array}\right]$. There are 2 free variable(s), so there are infinitely many solutions; substituting each option into the equations, only $(\frac{2}{3}, - \frac{4}{3}, 8, -1, 2)$ satisfies all of them.
Worked example 4 · Row operations (Linear Algebra Summary (Gen 16), I.2 (note on row operations))
In the course notation, which single elementary row operation replaces $R_2$ by $R_2-R_1$?
Show the answer and the solution
Answer: $-R_1+R_2\to R_2$
The allowed forms are $R_i\leftrightarrow R_j$, $kR_i\to R_i$ and $kR_i+R_j\to R_j$. To subtract a row, add $(-1)$ times it: $-R_1+R_2\to R_2$. Writing $R_1-R_2\to R_2$ gives the opposite row $R_1-R_2$ (it needs two steps: $-R_1+R_2\to R_2$ and then $-R_2\to R_2$); $R_2-R_1\to R_1$ changes the wrong row; a swap only exchanges rows.
Practice
Quiz set A Quiz set B Quiz set C Practice bank (this chapter) Written mode Lab: Solve Ax = b

