
Mathematics for Master Students
Which tasks gave you trouble? Bring them up now. We take the time to work through them before moving on.
Question
Minimise the cost \(C(q) = q^2 - 8q + 20\). Where is the minimum, and how do you know it is a minimum?
An equation is linear when every unknown appears on its own, to the first power, nothing more exotic.

A single equation like \(x + y = 5\) has infinitely many solutions: \((1,4)\), \((2,3)\), \((3,2)\), …, every point on one line.
Question
Which point lies on the line \(\;2x + 3y = 13\)?
| (a) \((2, 3)\) | (b) \((3, 2)\) |
| (c) \((4, 1)\) | (d) \((1, 4)\) |
(a): \(2 \cdot 2 + 3 \cdot 3 = 13\) ✓. The others give \(12\), \(11\) and \(14\).
Checking a point is always cheap: substitute and compare. Remember \((2, 3)\), it returns in a moment.
One condition leaves a whole line of choices. Add a second condition and the freedom shrinks.
A furniture workshop makes chairs (\(x\)) and tables (\(y\)) and wants to use its resources fully this week:
\[2x + 3y = 13 \qquad\qquad x + y = 5\]
Solve one equation for one variable, then substitute into the other.
Scale the equations so one variable cancels when you subtract.
Question
Two trucks carry \(10\) pallets in total, and the first carries \(4\) more than the second: \(\;x + y = 10, \quad x - y = 4\). Shout the solution \((x, y)\).
Adding instead of subtracting is elimination too: whichever move makes a variable cancel.

Always check: \(2(2) + 3(3) = 4 + 9 = 13\) ✓ and \(2 + 3 = 5\) ✓, the point sits on both lines.
A roaster blends beans at €8/kg and €12/kg into \(20\) kg costing €9/kg on average. How much of each?
Setting up the equations is the real work; solving them is Method 2 on autopilot.
Question
Is \(\;3xy = 12\;\) a linear equation in \(x\) and \(y\)?
For three unknowns, substitution gets messy. Our example for this section:
\[x + y + z = 9, \qquad x + 2y + 2z = 16, \qquad 2x + y + 3z = 17\]
Three conditions, three unknowns, and a lot of repetitive writing ahead. What we need first is a compact bookkeeping shorthand.
The system is just its numbers, the augmented matrix (coefficients, then the right-hand side):
\[\left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 1 & 2 & 2 & 16 \\ 2 & 1 & 3 & 17 \end{array}\right]\]
Each row is an equation; the bar just separates the left from the right side. No matrix algebra, pure bookkeeping.
We reshape the system with three row operations, each keeps the solution unchanged:
The goal: create zeros below the diagonal, a triangular staircase we can read off from the bottom up.
Question
Which of these is not an allowed row operation?
| (a) Swap \(R_1\) and \(R_3\) | (b) Replace \(R_2\) by \(R_2 - 3R_1\) |
| (c) Multiply \(R_3\) by \(0\) | (d) Divide \(R_2\) by \(2\) |
(c): scaling by zero wipes the equation out, \(0 = 0\), and with it a condition on the unknowns. The solution set would change.
The other three moves only rewrite the same conditions in a new form: no information is lost, so the solution set cannot change.
Start from the augmented matrix and knock out the \(x\)-terms below the top row:
\[\left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 1 & 2 & 2 & 16 \\ 2 & 1 & 3 & 17 \end{array}\right] \;\xrightarrow[\;R_3 \,\to\, R_3 - 2R_1\;]{\;R_2 \,\to\, R_2 - R_1\;}\; \left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & -1 & 1 & -1 \end{array}\right]\]
Question
Rows \(R_1 = (1, 2, -1 \,|\, 3)\) and \(R_2 = (2, 5, 1 \,|\, 9)\). Compute \(R_2 - 2R_1\). Shout the new row.
\[(2, 5, 1 \,|\, 9) - 2 \cdot (1, 2, -1 \,|\, 3) = (2 - 2,\; 5 - 4,\; 1 + 2 \,|\, 9 - 6) = (0, 1, 3 \,|\, 3)\]
Common Mistake
\(1 - 2 \cdot (-1) = 1 + 2 = 3\), not \(-1\): subtracting a negative adds. And the right-hand side \(9 - 6 = 3\) must come along.
Now use the new second row to clear the entry beneath it, then scale to a leading \(1\):
\[\left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & -1 & 1 & -1 \end{array}\right] \;\xrightarrow[\;R_3 \,\to\, R_3 / 2\;]{\;R_3 \,\to\, R_3 + R_2\;}\; \left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & 0 & 1 & 3 \end{array}\right]\]
The matrix is now triangular, zeros fill the lower-left corner. Read it from the bottom up:
\[x + y + z = 9, \qquad y + z = 7, \qquad z = 3\]
Question
A system is already triangular: \(\;x + 2y + z = 10, \quad y - z = 1, \quad z = 2\). What is \(x\)? Shout the number.
Solution \((2, 3, 2)\). Bottom-up is the only sensible order: each row hands one known value to the row above.
Plug the triple \((2, 4, 3)\) back into the original three equations:
Common Mistake
When you apply a row operation, act on the whole row, the right-hand side included. Subtracting \(2R_1\) from \(R_3\) but forgetting to also do \(17 - 2 \cdot 9 = -1\) silently corrupts the whole solve.
Work on one column at a time and write every intermediate matrix down. Elimination fails through slips, not through difficulty.
Question
Halfway through, you swap two rows of the augmented matrix. Does that change the system’s solution?
A linear system has exactly one of three fates, there is no other possibility:
Geometry tells the story cleanly for two lines in the plane.

\(x + y = 4\) and \(x + y = 6\) are parallel, same slope, different heights. They never meet, so no pair \((x, y)\) satisfies both.

\(2x + 2y = 8\) is just \(x + y = 4\) doubled, the same line. Every point on it solves both; there are infinitely many solutions.
When one equation adds nothing new, we describe all solutions with a free parameter.
For \(x + y = 4\) with a redundant partner:
Question
The solution set is \((x, y) = (4 - t,\; t)\). Which point belongs to it?
| (a) \((5, 1)\) | (b) \((1, 3)\) |
| (c) \((3, 2)\) | (d) \((2, 4)\) |
(b): \(t = 3\) gives \((4 - 3, 3) = (1, 3)\). Equivalently, \(1 + 3 = 4\) ✓.
The quick test is the original equation \(x + y = 4\): the other three sum to \(6\), \(5\) and \(6\).
With three unknowns, each equation is a plane in space, but the same three fates return:
You do not need the picture, the triangular form tells you which fate you have:
Change the last equation of our \(3 \times 3\) system to \(\;2x + 3y + 3z = 20\):
\[\left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 1 & 2 & 2 & 16 \\ 2 & 3 & 3 & 20 \end{array}\right] \;\xrightarrow[\;R_3 \,\to\, R_3 - 2R_1\;]{\;R_2 \,\to\, R_2 - R_1\;}\; \left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & 1 & 1 & 2 \end{array}\right] \;\xrightarrow{\;R_3 \,\to\, R_3 - R_2\;}\; \left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & 0 & 0 & -5 \end{array}\right]\]
The last row reads \(0 = -5\): impossible. The second and third equations demand \(y + z = 7\) and \(y + z = 2\) at once, so there is no solution.
Now with right-hand side \(25\) instead: \(\;2x + 3y + 3z = 25\)
\[\left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 1 & 2 & 2 & 16 \\ 2 & 3 & 3 & 25 \end{array}\right] \;\xrightarrow[\;R_3 \,\to\, R_3 - 2R_1\;]{\;R_2 \,\to\, R_2 - R_1\;}\; \left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & 1 & 1 & 7 \end{array}\right] \;\xrightarrow{\;R_3 \,\to\, R_3 - R_2\;}\; \left[\begin{array}{ccc|c} 1 & 1 & 1 & 9 \\ 0 & 1 & 1 & 7 \\ 0 & 0 & 0 & 0 \end{array}\right]\]
Question
\(\;x + 2y = 6\;\) and \(\;2x + 4y = 8\). How many solutions does the system have?
| (a) Exactly one | (b) None |
| (c) Infinitely many | (d) Exactly two |
(b): doubling the first equation gives \(2x + 4y = 12\), but the second demands \(2x + 4y = 8\). Same slope, different height: parallel lines.
Elimination says the same: \(R_2 - 2R_1\) leaves \(\;0 = -4\). And (d) is never an option: two distinct lines cross at most once.
Common Mistake
A vanished row \(\;0 = 0\;\) means the equation was redundant, the system has infinitely many solutions, not “no solution”. “No solution” only appears as \(\;0 = (\text{non-zero})\), a genuine contradiction. Read the right-hand side before you decide.
Question
During elimination a row collapses to \(\;0 = 0\). Does the system have a unique solution, no solution, or infinitely many?
A market clears where supply meets demand, quantity offered equals quantity wanted.
For a product at price \(p\), suppose
Both express \(q\), so set them equal, or eliminate \(q\) from the system \[q + 2p = 120, \qquad q - 3p = -30.\]
Question
Another market: demand \(q = 100 - p\), supply \(q = 2p - 20\). What is the equilibrium price? Shout the number.
\[100 - p = 2p - 20 \quad \Rightarrow \quad 120 = 3p \quad \Rightarrow \quad p = 40, \qquad q = 100 - 40 = 60\]
Check the supply side: \(2 \cdot 40 - 20 = 60\) ✓. Price €40, quantity \(60\) units.

Below €30 buyers outnumber sellers (shortage); above it sellers outnumber buyers (surplus). The lines cross where the market balances.
Question
The price is set at €40, above the equilibrium of €30. Is there excess supply or excess demand?
Remember the system we solved by elimination? It was a production plan all along.
A workshop makes three products \(x, y, z\) and wants to use every resource fully:
We already found the unique solution by Gaussian elimination: \[(x, y, z) = (2, 4, 3)\]
Question
A colleague proposes the plan \((x, y, z) = (3, 3, 3)\) instead. Which resource does it exceed?
| (a) Packaging (\(9\)) | (b) Labour (\(16\) h) |
| (c) Machine (\(17\) h) | (d) None, it also works |
(c): packaging \(3 + 3 + 3 = 9\) ✓, labour \(3 + 6 + 6 = 15 \leq 16\), but machine time \(6 + 3 + 9 = 18 > 17\).
A linear system with a unique solution has exactly one plan that uses every resource fully; any other plan breaks a limit, leaves something idle, or, as here, both.
That’s it for today.
Any Questions?
To round off the tutorial, there is a voluntary mock exam covering Sessions 1–6.
Six sessions, one steadily growing toolkit for the maths behind your M.Sc. courses:
You are ready for the mock exam, and for the maths your degree will lean on.
Session 06 - Systems of Linear Equations | Dr. Tobias Vlcek | Home