Linear Algebra — 00 · Vectors and Systems of Linear Equations
Linear algebra is the study of vectors, of the linear equations that tie them together, and of the maps that preserve their structure. It is the working language of numerical computing, statistics, machine learning, graphics, quantum mechanics and control, and it is the first course where most students meet mathematics built from definitions and proofs rather than from formulas. This six-post series is written for a reader who knows high-school algebra and wants the full senior-undergraduate picture: computation first, then the abstract theory, with proofs of the key theorems. Post 00 starts at the very beginning — vectors in , linear combinations, span, the dot product, systems of linear equations and Gaussian elimination — and ends with the structure of a solution set and a first look at linear independence. Posts 01–05 cover matrix algebra and LU, vector spaces and dimension, linear maps and determinants, eigenvalues, and inner products through the spectral theorem and the SVD. The standard textbooks behind the series are Strang (computation and the four subspaces), Lay (clear worked examples), Axler (the abstract, determinant-free view) and Hoffman–Kunze (the classical rigorous treatment).
Series map: 00 Vectors & Linear Systems (this post) → 01 Matrix Algebra, Inverses & LU → 02 Vector Spaces, Basis & Dimension → 03 Linear Maps, Change of Basis & Determinants → 04 Eigenvalues & Diagonalization → 05 Inner Products, Spectral Theorem & SVD.
Learning Outcome
- Add and scale vectors in , and describe a linear combination both algebraically and geometrically.
- Describe the span of one, two or three vectors in as a point, a line, a plane or all of space.
- Compute dot products, lengths and angles, and recognise orthogonal vectors.
- Read a system in two ways: the row picture (intersecting lines or planes) and the column picture (a combination of columns).
- Apply the three elementary row operations and explain why they never change the solution set.
- Run Gaussian elimination and Gauss–Jordan elimination by hand, and bring a matrix to row echelon form and to reduced row echelon form.
- Identify pivots and free variables, decide consistency, and write every solution in parametric vector form.
- Prove that a solution set is "one particular solution plus all homogeneous solutions".
- Test a small set of vectors for linear independence.
Notation used in the whole series
| Symbol | Meaning |
|---|---|
| , | real numbers; column vectors with real entries |
| vectors (bold lower case), always columns unless stated | |
| the -th entry of | |
| matrices (capital letters); is the entry in row , column | |
| rows, columns | |
| column of | |
| transpose (rows become columns) | |
| the zero vector | |
| standard basis vector: 1 in position , 0 elsewhere |
Chapter 1 — Vectors in n-space
Terminology
- Scalar — a single real number. Later in the series scalars may come from any field (see Linear Algebra 02), but for now they are real.
- Vector in — an ordered list of real numbers, written as a column. The numbers are its entries or components.
- Zero vector — the vector whose entries are all 0.
- Vector addition — add entry by entry. Only defined for two vectors of the same length.
- Scalar multiplication — multiply every entry by the same scalar.
Algebraic rules
For all and all scalars :
- and .
- and .
- and .
- and .
Each rule follows from the matching rule for real numbers, applied one entry at a time. These eight rules are exactly the axioms of a vector space; Linear Algebra 02 turns them into a definition, and then polynomials, functions and matrices become "vectors" too.
The geometric picture
In and a vector is an arrow from the origin to the point with those coordinates.
- Addition is the parallelogram rule: place the tail of at the head of ; the sum ends where ends.
- Scaling stretches the arrow by and reverses it when .
- is the arrow from the head of to the head of .
For there is no picture, but every algebraic fact still holds. The habit to build is: reason with the algebra, check the intuition in or .
Watch out: a point and a vector are written the same way in , but they play different roles. A point is a location; a vector is a displacement. The distinction matters in Chapter 7, where a solution set can be a plane that does not pass through the origin.
Chapter 2 — Linear combinations and span
Terminology
- Linear combination of — any vector with scalars (the weights or coefficients).
- Span — the set of all linear combinations:
The span always contains (take every weight 0) and each itself (weight 1 on it, 0 elsewhere).
Geometric picture of a span in R³
| Vectors | Span |
|---|---|
| only | the single point |
| one nonzero | the line through the origin in direction |
| two vectors, neither a multiple of the other | the plane through the origin containing both |
| two vectors, one a multiple of the other | still only a line |
| three vectors not in one plane | all of |
| three vectors in one plane | only that plane (or a line) |
The pattern "adding a vector enlarges the span only if the new vector is not already inside it" is the seed of linear independence (Chapter 8) and of dimension (Linear Algebra 02).
Worked example — is b in the span?
Is a combination of and ? We need with
Adding the two equations gives , so and . Check: . So is in the span. In fact, since and are not parallel, their span is the whole plane .
The key lesson: "is in the span of these vectors?" is the same question as "does this linear system have a solution?" Everything in this post comes back to that sentence.
Chapter 3 — Dot product and length
This chapter is brief; inner products get their full treatment in Linear Algebra 05.
Definitions
- Dot product: . It takes two vectors and returns a scalar.
- Length (norm): .
- Unit vector: a vector of length 1. For , the vector is the unit vector in the same direction.
- Orthogonal: and are orthogonal (perpendicular) when .
Properties
The dot product is symmetric (), linear in each argument, and positive definite: , with equality only for . Two inequalities hold for all (proofs in Linear Algebra 05):
Cauchy–Schwarz is what makes the angle formula legitimate: for nonzero vectors the ratio below lies in , so it is the cosine of exactly one angle .
Worked example
Let and . Then , so is a unit vector. And , so and are orthogonal.
Trick: the dot product gives a second reading of one equation. The equation says . When , the solutions are exactly the vectors orthogonal to — a line in , a plane in , a "hyperplane" in general.
Chapter 4 — Systems of linear equations
Terminology
- Linear equation in — an equation with constant coefficients and constant . No products , no powers, no .
- System of linear equations — a finite list of linear equations in the same unknowns.
- Solution — a vector that satisfies every equation at once. The solution set is the set of all solutions.
- Consistent — has at least one solution. Inconsistent — has none.
- Equivalent systems — systems with the same solution set.
- Coefficient matrix — the array of the . Augmented matrix — with attached as an extra column.
Matrix times vector
Write the columns of as . The product is defined as a combination of the columns, with the entries of as weights:
Entry of that combination is , which is the dot product of row of with . So there are two ways to compute — by columns and by rows — and they always agree. A system of equations in unknowns is therefore one vector equation , with of size , and .
Two rules follow straight from the definition and are used constantly: and .
Row picture and column picture
Take the system from Chapter 2:
- Row picture. Each equation is a line in the -plane: and . A solution is a point on both lines. They cross at .
- Column picture. The same system asks for weights on the columns and that produce . The answer is of the first column plus of the second.
The same numbers , appear in both pictures, but they mean different things: a point where lines cross, or weights in a combination.
In the row picture has three planes, and a solution is a point common to all three. The column picture has three column vectors in , and the question is whether is a combination of them. The column picture scales to any size and becomes the main point of view from Linear Algebra 02 onwards (column space).
How many solutions can there be?
Theorem (zero, one or infinitely many). A linear system has either no solution, exactly one solution, or infinitely many solutions.
Proof. Suppose and are two different solutions, so . For every real , put . Then
Since , different values of give different vectors , so there are infinitely many solutions.
Geometrically: the whole line through two solutions consists of solutions. Two lines in the plane cannot meet in exactly two points.
Chapter 5 — Elimination
Elementary row operations
Three operations on the rows of an augmented matrix:
- Replacement — add a multiple of one row to another row: (with ).
- Interchange — swap two rows: .
- Scaling — multiply a row by a nonzero constant: , .
Two matrices are row equivalent if one can be turned into the other by a finite sequence of these operations.
Theorem. If two augmented matrices are row equivalent, the corresponding systems have the same solution set.
Proof. It is enough to check one operation at a time. Any that satisfies the old equations also satisfies the new ones: a swap or a scaling changes nothing essential, and if satisfies equations and it satisfies their sum "". Conversely, each operation can be undone by an operation of the same type — replacement by , interchange by the same swap, scaling by (this is why is required). So any solution of the new system also solves the old one.
Common pitfall: multiplying a row by is not allowed. It destroys an equation and can create new "solutions". Scaling needs precisely so the step is reversible.
Gaussian elimination on a 3 × 3 system
Solve
Step 1 — clear column 1 below the first pivot. The first pivot is the 1 in position (1,1). Row 2 needs multiplier ; row 3 already has a 0, so .
Step 2 — clear column 2 below the second pivot. The second pivot is 2 in position (2,2). Multiplier .
The coefficient part is now upper triangular, with pivots .
Step 3 — back substitution. From the bottom up: gives . Then gives , so . Then gives .
Check in the original equations: , , . The unique solution is .
The multipliers are not thrown away in practice — Linear Algebra 01 stores them in a lower triangular matrix and gets the factorization .
When elimination breaks down
- Zero in a pivot position, nonzero below it — swap rows and continue. This is a temporary breakdown.
- Zero in a pivot position and zeros all the way down — there is no pivot in that column. The matrix is singular (Linear Algebra 01) and the system has either no solution or infinitely many. Chapter 6 handles this case completely.
Watch out: on a computer, a pivot that is merely small is as dangerous as a zero one, because dividing by it magnifies rounding error. Software therefore swaps in the largest available entry of the column (partial pivoting). By hand, with exact numbers, any nonzero pivot is fine.
Chapter 6 — Echelon forms, pivots and free variables
Terminology
- Leading entry of a row — its leftmost nonzero entry.
- Row echelon form (REF) — (i) all zero rows are at the bottom; (ii) each leading entry is in a column to the right of the leading entry of the row above; (iii) all entries below a leading entry are zero.
- Reduced row echelon form (RREF) — REF, plus (iv) every leading entry is 1, and (v) each leading 1 is the only nonzero entry in its column.
- Pivot position — a position that holds a leading entry in an echelon form of the matrix. Pivot column — a column containing a pivot position.
- Basic variable — a variable whose column is a pivot column. Free variable — any other variable.
Gauss–Jordan elimination continues past REF: scale each pivot to 1, then clear the entries above each pivot, working from the bottom pivot up.
Uniqueness of the RREF
Theorem. Each matrix is row equivalent to one and only one matrix in reduced row echelon form.
Existence is the Gauss–Jordan algorithm. Uniqueness takes a careful induction on the number of columns; see Lay, Appendix A, or Hoffman–Kunze, Chapter 1. It has an important consequence: the pivot positions — and so the pivot columns, the number of pivots and the split into basic and free variables — do not depend on which row operations you chose. An REF is not unique (you can always scale a row by 2), but its pivot positions are.
A worked 3 × 4 example
Solve with
Forward elimination, and :
Column 2 has no pivot (zeros from row 2 down), so move to column 3; its pivot is the 2 in row 2. Then :
Gauss–Jordan: , then :
Pivot columns are 1 and 3, so are basic and are free. The RREF reads
Parametric vector form
Write the free variables as parameters , and collect terms:
The solution set is a 2-dimensional plane inside , one parameter per free variable. Check the first vector: .
Consistency
The zero row of the augmented RREF above ended in 0, so it said — harmless. Change to and the same steps end with the row , which says . That system is inconsistent. In general:
Theorem (existence and uniqueness). A linear system is consistent if and only if the last column of its augmented matrix is not a pivot column — that is, no echelon form has a row with . If it is consistent, then it has exactly one solution when there are no free variables, and infinitely many when there is at least one free variable.
Proof. Row operations do not change the solution set, so study the RREF. A row with is the equation , which nothing satisfies. If there is no such row, every nonzero row of the RREF has a leading 1 in a coefficient column and expresses one basic variable in terms of the free ones; choosing any values for the free variables produces a solution. With no free variables that solution is forced and unique; with at least one free variable each choice of its value gives a different solution.
For and our , the condition works out to : row 3 of is row 1 plus row 2, so the right-hand sides must obey the same relation.
Trick: count before you compute. If is and has pivots, then and , and there are free variables. Here , , : two free variables, and a solution for only when passes one test (one zero row).
Chapter 7 — Homogeneous systems and the shape of the solution set
Terminology
- Homogeneous system — . It always has the trivial solution .
- Nontrivial solution — a solution .
Theorem. A homogeneous system with more unknowns than equations () has a nontrivial solution.
Proof. There are at most pivots, one per row, so at least variables are free. The system is consistent (it has ), so by the existence-and-uniqueness theorem it has infinitely many solutions, and in particular a nonzero one.
For the matrix above, has the same RREF with a zero last column, and its solutions are
The two vectors are the special solutions: set one free variable to 1, the others to 0, and solve. This set is a plane through the origin — the null space of , studied in Linear Algebra 02.
Particular plus homogeneous
Theorem. Suppose . Then the solution set of is exactly
Proof. If then . Conversely, if , put ; then and .
Compare with the parametric form in Chapter 6: is a particular solution, and the and terms are exactly the homogeneous solutions. Geometrically, the solution set of is the null-space plane shifted by — parallel to it, but not through the origin (unless ).
Common pitfall: the solution set of with is not closed under addition: if then . Only the homogeneous solution set is a "subspace". The particular solution is not unique either — any solution can play that role.
This is the same structure as linear differential equations ("general solution = particular solution + solution of the homogeneous equation"), and for the same reason: the operator is linear.
Chapter 8 — Linear independence, a first look
Terminology
- Linearly independent — vectors such that the only solution of is .
- Linearly dependent — not independent: some combination with not all weights zero gives . Such an equation is a linear dependence relation.
Put the vectors as the columns of . Then , so:
The columns of are linearly independent has only the trivial solution every column of is a pivot column (no free variables).
Worked example
Are , , independent? Row reduce
Column 3 is not a pivot column, so the vectors are dependent. The free variable gives , so , and , so . The dependence relation is
Check: . Geometrically, the three vectors lie in one plane through the origin, so their span is that plane, not all of .
Quick facts
Theorem.
- Any set containing is dependent ( is a nontrivial relation).
- Two vectors are dependent if and only if one is a scalar multiple of the other.
- A set of vectors is dependent if and only if at least one of them is a linear combination of the others.
- More than vectors in are always dependent.
Proof of 3. If with some , divide by and solve for in terms of the others. Conversely, if , then is a relation with weight on . Statement 2 is the case .
Proof of 4. With vectors as columns, is with more unknowns than equations, so by the Chapter 7 theorem has a nontrivial solution.
Watch out: statement 3 says some vector is a combination of the others, not every vector. In the first two are dependent, but is not a combination of them.
Linear Algebra 02 makes independence and span precise in any vector space and combines them into the idea of a basis.
Practice Exercises
Exercise 1 — Span
Is in the span of and ? If yes, give the weights.
Solution
Solve : the equations are , , . They agree: , . So , and is in the span. (Three equations, two unknowns: consistency was not guaranteed; with it would fail.)
Exercise 2 — Dot product
Find a unit vector in the direction of and a nonzero vector orthogonal to it.
Solution
The length is , so the unit vector is . Any with is orthogonal, for example : .
Exercise 3 — Elimination
Solve by Gaussian elimination and back substitution: , , .
Solution
gives . gives . gives . Back substitution: ; so ; so . Pivots . Check: and .
Exercise 4 — RREF and parametric form
Bring to RREF and write the solution set in parametric vector form.
Solution
gives . Then gives . Pivot columns 1 and 3; is free. So , :
A line in that does not pass through the origin.
Exercise 5 — Consistency condition
For which is the system , consistent? How many solutions does it have then?
Solution
gives . Consistent exactly when . Then is free and there are infinitely many solutions, . In the row picture the two lines are parallel, and they coincide only when .
Exercise 6 — Independence
Are , , linearly independent? What is their span?
Solution
Row reduce the matrix with these columns: . Three pivots, so the columns are independent. Every row has a pivot too, so is solvable for every : the span is all of .
Exercise 7 — Proof
Prove: if and both solve , then so does every linear combination . Does the same hold for with ?
Solution
. For it fails: , which equals only when . (Combinations with weights summing to 1 are called affine combinations; they are exactly what the Chapter 4 proof used.)
Cheat-sheet
| Idea | Key fact |
|---|---|
| Linear combination | |
| Span | all linear combinations; always contains |
| (columns), or row dot (rows) | |
| in span of columns | is consistent |
| Length, angle | ; |
| Row operations | replace, swap, scale by — all reversible |
| Number of solutions | 0, 1 or infinitely many |
| REF vs RREF | REF not unique; RREF unique; pivot positions unique |
| Inconsistent | a row with |
| Free variables | for pivots; each gives one parameter |
| Homogeneous, | always a nontrivial solution |
| Solution set | + (all solutions of ) |
| Columns independent | a pivot in every column |
| More than vectors in | always dependent |
What's next
Linear Algebra 01 treats matrices as objects in their own right. It multiplies them four different ways, explains why , writes each row operation as an elementary matrix, defines the inverse and computes it by Gauss–Jordan, lists the first equivalent conditions for invertibility, and turns the elimination in Chapter 5 into the factorization — the form in which every serious linear solver actually works.
References
- Gilbert Strang, Introduction to Linear Algebra, 6th edition, Wellesley-Cambridge Press, 2023 — Chapters 1–2 (vectors, the row and column pictures, elimination). Book site: math.mit.edu/linearalgebra.
- David C. Lay, Steven R. Lay and Judi J. McDonald, Linear Algebra and Its Applications, 6th edition, Pearson, 2021 — Chapter 1 (row reduction, echelon forms, solution sets, linear independence); Appendix A proves uniqueness of the RREF.
- Sheldon Axler, Linear Algebra Done Right, 4th edition, Springer (Undergraduate Texts in Mathematics), 2024 — open access at linear.axler.net. Chapter 1 for and .
- Kenneth Hoffman and Ray Kunze, Linear Algebra, 2nd edition, Prentice-Hall, 1971 — Chapter 1 (linear equations, row-reduced echelon matrices).
- MIT OpenCourseWare, 18.06 Linear Algebra, Spring 2010 (Gilbert Strang) — Lectures 1–2: the geometry of linear equations, elimination with matrices.
Note: this post is in progress. Planned additions: a short section on the geometry of three planes in (all the ways they can fail to meet), an operation count for elimination by hand, and a worked example of partial pivoting with rounding to three digits.










