Systems of Linear Equations
00 · Symbol Glossary
The compact form of a system of linear equations. is the coefficient matrix, is the unknown vector, is the right-hand side vector. Solving this equation is the central problem of linear algebra.
The matrix formed by appending as an extra column to , separated by a vertical bar. Encodes the entire system in one object. Row operations on transform the system without changing its solution set.
The unknown real numbers to be determined. Subscripts label which position in the solution vector . is the first unknown, the last. These are variables, not fixed values.
Logical equivalence. means is true exactly when is true — both directions hold simultaneously. Used to state conditions that are both necessary and sufficient.
The set with no elements. A system with no solution has solution set . An inconsistent system's solution set is the empty set — there is no vector satisfying .
01 · What is a System of Linear Equations
A system of linear equations is a collection of equations, each expressing a linear constraint on the same set of unknowns. "Linear" means each unknown appears at most to the first power, with no products of unknowns like .
A portfolio construction problem is a system: given target return, target risk, and a budget constraint, find the weights. Each constraint is one equation; the weights are the unknowns.
A system of equations in unknowns :
— the coefficient of unknown in equation .
— the right-hand side constant of equation .
A solution is an assignment of real values to that satisfies all equations simultaneously.
Find satisfying:
From equation 2: . Substitute into equation 1: . Then . Solution: .
Verify: Equation 1: ✓. Equation 2: ✓.
02 · Matrix Form
Every system of linear equations can be written as a single matrix equation . This compact form is not just notation — it connects the system to every matrix tool from Chapter 2.
The system of equations in unknowns is equivalent to:
— coefficient matrix.
— unknown vector, the object to be found.
— right-hand side vector of constants.
Read off the coefficient matrix : the coefficient of in equation goes in position . Equation 1 contributes row . Equation 2 contributes row . Equation 3 contributes row .
.
Read off the right-hand side : the constant from each equation in order. .
Write : the unknown vector in the same order as the columns of . .
Verify the multiplication recovers the original system:
The system has two equations and three unknowns. Equation 1 has no term. The coefficient of in row 1 is , not missing:
.
Leaving a blank or writing (a matrix) misrepresents the system as having only 2 unknowns. Every unknown must have a column, even if its coefficient is zero in some equations.
03 · The Augmented Matrix
To solve , we work simultaneously on and . The augmented matrix combines them into one object.
For and , the augmented matrix is:
The vertical bar separates the coefficient columns from the right-hand side column. Row operations on transform the system into an equivalent one with the same solution set.
Three elementary row operations preserve the solution set:
— swap rows and .
— multiply row by a nonzero scalar . (Multiplying by zero would destroy information.)
— replace row with itself plus times row . (Row is unchanged.)
System: , .
Augmented matrix: .
Apply : subtract 2 times row 1 from row 2.
Row 1 unchanged: . Row 2: .
New matrix: .
Apply : multiply row 2 by .
Row 2: . Matrix: .
From row 2: . Back-substitute into row 1: . Solution: .
04 · Types of Solutions
A system has exactly one of three outcomes. There is no fourth possibility.
Consistent — there exists at least one solution.
Inconsistent — no solution exists; the equations contradict each other.
The geometry: in , two equations define two lines. Unique solution = lines intersect at one point. Infinite solutions = lines are identical (same equation). No solution = lines are parallel but distinct.
Form the augmented matrix: .
Apply : row 2 becomes .
New matrix: .
Read row 2: , which simplifies to . This is a contradiction — no values of can make true.
Conclusion: The system is inconsistent. Solution set . Geometrically, the two lines are parallel (same direction vector ) but pass through different points, so they never intersect.
Form the augmented matrix: . Two equations, three unknowns — expect infinitely many solutions.
Apply : .
Matrix: .
Apply : .
Matrix: .
Identify free variable: has no leading 1 in its column — it is a free variable, assigned any real value .
Express solution: From row 1: . From row 2: . .
In the system above, is free — it can be any real number. Arbitrarily setting gives one particular solution but misses the entire family. If asked "find all solutions," writing only is incomplete — the answer is an infinite set parameterised by .
05 · Homogeneous Systems
The system (right-hand side all zeros) is called homogeneous. It always has at least one solution: (plug in zero — every equation gives ). The interesting question is whether there are other solutions.
The system is homogeneous. Its solution set:
is called the null space (or kernel) of . It is always a subspace of — it contains , is closed under addition, and closed under scalar multiplication.
has only the trivial solution .
. Row 2 is exactly row 1 — the rows are linearly dependent.
Augmented: . Apply : row 2 becomes .
Matrix: . Free variable . Row 1: .
— a line through the origin. Every point on this line satisfies .
06 · Practice Exercises
Write the coefficient of each unknown (, , ) in its column position. If a variable is absent in an equation, its coefficient is 0.
Equation 1: gives row with right-hand side .
Equation 2: — no term, so coefficient of is 0. Row with right-hand side .
Equation 3: gives row with right-hand side .
, .
.
Write the system in matrix form and form the augmented matrix : ; ; .
Apply to eliminate from equation 2. Then read off from the resulting row 2 and back-substitute.
Augmented matrix: .
: . Matrix: .
: row 2 becomes . Matrix: .
: row 1 becomes .
Solution: , .
Verify: eq 1: ✓. Eq 2: ✓.
Solve using row operations on the augmented matrix. Show every row operation applied. Verify your solution in both equations.
After forming the augmented matrix, look at what happens in the last row after elimination. A row of the form with signals inconsistency.
Augmented: .
: . Row 2: .
Row 2 reads , i.e. . Contradiction.
The system is inconsistent — solution set is . No need to process row 3.
Geometric interpretation: all three equations define planes in . Equations 1 and 2 define parallel planes (equation 2 is equation 1 shifted), so they do not intersect.
Classify (consistent/inconsistent) and solve if consistent: ; ; . Show all row operations.
A system with more unknowns than equations and at least one non-contradiction row typically has free variables. After row reduction, count how many columns lack a leading 1.
Augmented: .
: . Row 3 equals row 2 — subtract: .
Reduced: (ignoring zero row).
Pivots in columns 1 and 2. Free variables: , .
Row 2: . Row 1: .
, . Infinitely many solutions.
Find all solutions: ; ; . Express the answer in vector parametric form.
Find the null space of by solving . Then, if is any particular solution of , the complete solution set is .
. Null space from Section 05: .
For with : augmented . : . Matrix: . free, . Particular solution (at ): .
Complete solution: .
For : : . Row 2: . Inconsistent — no solution.
For : (a) Solve and express the complete solution set. (b) Explain why has no solution.
Set up three equations: weights sum to 1 (budget), the expected return equation, and the volatility-contribution equation. Write as and solve.
Three equations: (1) (budget). (2) (return target). (3) (risk target).
Augmented: .
: . : .
: . So .
Back-sub into : . Row 1: .
Solution: , , . The target return and risk are matched by holding 100% in asset 2 — a degenerate solution. This result tells the manager the targets are achievable only by concentrating entirely in asset 2.
A portfolio manager wants weights (summing to 1) for three assets with expected returns and risk contributions . Targets: portfolio return , portfolio risk contribution , weights sum to 1. Write the system and solve.
07 · Summary
| Term | Definition |
|---|---|
| System of equations | linear constraints on unknowns. Solution: values satisfying all simultaneously. |
| Matrix form | . coefficient matrix, RHS. |
| Augmented matrix | — combines and for row operations. |
| Row operations | Swap rows; scale row; add multiple of one row to another. Preserve solution set. |
| Consistent | At least one solution exists. |
| Inconsistent | No solution. Row reduces to a row , . |
| Unique solution | Consistent, no free variables. |
| Infinite solutions | Consistent, at least one free variable. Parameterised by . |
| Null space | . Always a subspace. Always contains . |
Next: Gaussian Elimination & Row Reduction — the systematic algorithm for reducing any augmented matrix to a solved form, with formal definitions of pivot positions, rank, and free variables.