Linear Algebra I: Vector Spaces and Linear Maps
Part I of a six-part lecture series converging on the singular value decomposition and geometric algebra.
This lecture includes interactive SymPy cells that verify key results symbolically. SymPy is a Python library for symbolic mathematics. Loading it fetches a WebAssembly Python runtime (approx. 15 MB, cached after first load). You can also load it on demand from any code cell below.
0. Why this series exists
A chemistry student is asked to balance the combustion of methane. She writes down the skeleton
and then juggles the coefficients until the carbon, hydrogen and oxygen counts agree, arriving at . She is told this is bookkeeping. It is linear algebra. Element conservation is three linear equations in four unknowns; the balanced reaction is a vector in the null space of a matrix; the balance is unique up to overall scale because that null space is one-dimensional. Every fact she was asked to accept as a knack is a theorem, and the theorem is proved in this lecture.
The same student, two chapters later, draws an ICE table for the Haber process and solves for the extent of reaction. The table records the amounts
which is a straight line in the space of species amounts, and the equilibrium condition that cuts that line is a quartic. Both objects live in the same little table, in the same variable , and they could not be more different in kind. Nobody says so. The words that would say so have been worn smooth.
That is the thesis of this series. The subject is taught as matrix manipulation, and the manipulation hides the linear maps. Row-reduce, invert, multiply, take a determinant: a curriculum of procedures on arrays of numbers, in which the objects the arrays represent are never named. The cost is paid later, in every application area the reader will meet. A chemical engineer calls an ICE table linear. A deep-learning framework calls an array a tensor. A textbook calls a linear layer. A paper calls attention scores an inner product. Each of these is false, each has a true statement standing right behind it, and the true statement is more useful.
The arc. Part I builds vector spaces, bases, dimension, linear maps, rank-nullity, matrices as coordinate representations, the four fundamental subspaces, and the solution set of , applied to stoichiometry. Part II builds eigenstructure, the Jordan form and the matrix exponential, applied to linear systems of ordinary differential equations. Part III builds inner products, orthogonality and the spectral theorem, applied to the attention mechanism. Part IV builds tensors and the calculus of matrix functions, applied to backpropagation. Part V proves the singular value decomposition and applies it to principal component analysis and low-rank adaptation. Part VI builds geometric algebra, and the six parts converge on one theorem. A linear map moves vectors, and it also moves the areas and volumes they span. Part VI extends so that it acts on all of these at once. If the singular values of are , that extension stretches a -dimensional piece by a product of of the , and it stretches -dimensional volume by , which is . Rotation, stretch, area, volume and determinant turn out to be one object. That is where the series ends, and every part is aimed at it.
What is assumed. Arithmetic, and the concept of a function as a rule assigning one output to each input. Nothing else. Matrices are constructed here rather than presumed, and no result is used before it is proved.
Relation to the manifolds series. Analysis on Manifolds is self-contained: it builds the linear algebra it needs, exactly as much of it as the derivative and exterior algebra require, and it builds it from scratch. This series is the fuller account of the linear side, running far past what an analysis course has room for, and the two are complementary. A reader may take either first.
0.1. Terminology
Before any mathematics, four words. The series uses them in one sense each, and never in any other.
- Function. A rule assigning one output to each input. Its domain and codomain are sets. No structure is assumed, and none is preserved.
- Map. Reserved for a structure-preserving function, and always qualified: linear map, affine map, multilinear map, smooth map. An unqualified "map" is never written.
- Linear. A function between vector spaces satisfying for all scalars and all vectors , and nothing else. In particular with is affine, and is named affine every single time it appears.
- Nonlinear. A statement about a function relative to a nominated vector-space structure: the function fails on that structure. The word is empty until the structure is named, and it never means "complicated".
- Matrix. The coordinate representation of a linear map with respect to a chosen pair of bases. A matrix is never identified with the map it represents, and an array of numbers is never called a tensor.
These definitions pay for themselves in every application the series touches. In each one, the loose word hides a fact worth knowing.
| Area | What these definitions force you to say |
|---|---|
| Chemistry | Element conservation is linear. The equilibrium condition is nonlinear. An ICE table is the affine set cut by a nonlinear variety, and the two are different objects sharing one variable. |
| ODEs | "Linear ODE" means the operator is linear on a function space. Superposition is that linearity. The solution set of the inhomogeneous equation is affine. |
| Transformers | is affine. The attention score is a bilinear form that is neither symmetric nor positive definite, so it is not an inner product. Softmax is where the nonlinearity lives. |
| Backpropagation | The derivative is the linear map; the network is not. Reverse mode is the adjoint of the tangent map. A gradient is a covector until a metric intervenes. |
| Tensors | An array carries no transformation law, so it is not a tensor. A PyTorch tensor is an array. |
Each row is a promissory note, settled in the part that owns it. The chemistry row is settled in §7 of this lecture.
1. Vector spaces
This section fixes the arena. Everything the series proves is a statement about vector spaces and the linear maps between them, so the axioms come first and the examples come immediately after, to show how little the axioms demand.
1.1. Fields
Vectors are scaled by numbers, and the numbers must themselves be well behaved. A field is exactly the amount of good behaviour required.
A field is a set with two operations, addition and multiplication, and two distinguished elements , such that for all :
- Addition is associative and commutative, , and every has an additive inverse .
- Multiplication is associative and commutative, , and every has a multiplicative inverse .
- Multiplication distributes over addition: .
The rationals , the reals and the complex numbers are fields. The integers are not: has no multiplicative inverse in . This failure is the whole reason §7 has to work to get integer coefficients out of a chemical balance: the linear algebra hands us a line of solutions over , and picking the integer point on it is an extra step.
Throughout, denotes a field, and the reader who prefers may read everywhere without losing anything until Part II, where the complex numbers become unavoidable.
1.2. The vector space axioms
A vector space over is a set with an addition and a scalar multiplication such that, for all and all :
- and .
- There is a zero vector with .
- Every has an additive inverse with .
- and .
- and .
Elements of are called vectors; elements of are called scalars.
Nothing here mentions arrows, lengths, angles or coordinates. A vector space has no notion of the length of a vector and no notion of the angle between two of them; those arrive in Part III with an inner product, which is extra structure and is not free. Everything in this lecture is proved without them, which is why every theorem here holds for polynomial spaces and function spaces as readily as for .
In any vector space, and .
Proof
By axiom 5, . Adding to both sides gives . Then , so is the additive inverse of .
- Coordinate space. , the set of -tuples with componentwise operations. This is the example everyone meets first, and it is the least interesting of the four.
- Polynomials. , the real polynomials of degree at most , with pointwise addition and scaling. The sum of two such polynomials is one, and a scalar multiple of one is one, so the axioms hold.
- Functions. , all functions from a set to , with and . The zero vector is the function that is identically zero.
- Solutions of a homogeneous linear ODE. The set of twice-differentiable with . If and solve it, so does , by inspection of the equation. That closure property is exactly axioms 1 to 5 restricted to this subset of .
Example 4 is the one to keep. The principle of superposition, which physics courses present as a physical fact about waves, is the statement that a certain solution set is a vector space. It is a theorem about the operator , namely that is linear and that its solution set is , which §3 proves is a subspace of the function space. Part II takes this apart in full and identifies the dimension of that solution space as the order of the equation.
1.3. Subspaces
A subset is a subspace of if is itself a vector space under the operations inherited from .
A subset is a subspace if and only if and for all and all scalars .
Proof
If is a subspace, both conditions hold by definition. Conversely, suppose both hold. Associativity, commutativity and distributivity are inherited from , since they are identities satisfied by all elements of and therefore by all elements of . The closure condition with gives closure under scaling and with gives closure under addition, so the operations restrict to . Additive inverses lie in because by [zero-times-v], and by hypothesis.
In , the plane is a subspace. The plane is not, because it misses the origin. The second set is the affine set that §6 is about, and the distinction between the two is the distinction between linear and affine.
The intersection of any collection of subspaces of is a subspace of .
Proof
Let be subspaces and . Each contains , so . If then both lie in every , hence for every , hence . Apply [subspace-test].
2. Span, independence, basis
This section fixes what it means to give coordinates to a space, and proves the one fact that makes coordinates trustworthy: every basis of a given space has the same number of elements. That fact is the Steinitz exchange lemma, and it is the first real theorem of the subject.
2.1. Span
Let . A linear combination of them is a vector with . Their span is the set of all such:
By convention . If , the list spans , and is finite-dimensional.
is a subspace of , and it is the smallest subspace containing every .
Proof
It contains (take every ) and is closed under linear combinations, since , so [subspace-test] applies. Any subspace containing every is closed under linear combinations of them, so it contains the span.
2.2. Linear independence
A list is linearly independent if the only scalars with
are . Otherwise the list is linearly dependent, and any relation [eq:eq-independence] with some is a dependence relation.
A list with is linearly dependent if and only if some lies in the span of the others.
Proof
If with , then , which lies in the span of the others. Conversely, if , then is a dependence relation with coefficient on .
2.3. Basis and the Steinitz exchange
A basis of is a list of vectors that is linearly independent and spans .
The list is a basis of if and only if every has exactly one expression . The scalars are the coordinates of with respect to , written .
Proof
Suppose is a basis. Spanning gives at least one expression. If , then , so independence forces for every , giving exactly one. Conversely, existence of an expression for every is spanning, and uniqueness applied to (whose obvious expression has every coefficient zero) is independence.
[coordinates-unique] is the entire content of the phrase "choose coordinates". A basis is a labelling scheme, chosen by us, and is the label. The vector is indifferent to it. Hold on to this: §4 is one long consequence.
The next theorem is the one everything rests on. It says that an independent list can never be longer than a spanning list, and everything about dimension follows.
Let be a vector space. Suppose is linearly independent and spans . Then , and after reordering the 's, the list
also spans .
Proof
We prove by induction on the statement : for , we have and, after a reordering of the 's, the list
spans . The theorem is .
Base case. is the hypothesis that spans , with no 's exchanged in.
Induction step. Assume with . The spanning list of contains in its span, so there are scalars with
Some is nonzero. Suppose otherwise: then is a linear combination of , contradicting the independence of by [dependence-redundancy]. In particular the index range is nonempty, so .
Reorder the 's so that . Solving [eq:eq-steinitz-step] for ,
so lies in the span of . Every vector of is a combination of by , and each of those vectors is in turn a combination of the new list, so the new list spans . This is .
The induction runs to , and at each step it produced , so .
If is finite-dimensional, any two bases of have the same length. That common length is the dimension .
Proof
Let and be bases of lengths and . Since is independent and spans, [steinitz] gives . Exchanging the roles gives .
, with the standard basis , where has a in slot and zeros elsewhere. And , with the basis . The function space is not finite-dimensional: the monomials are independent for every , so no finite list can span it, by [steinitz].
Let . Every linearly independent list in has length at most and extends to a basis. Every spanning list has length at least and contains a basis. Any independent list of length is already a basis, and so is any spanning list of length .
Proof
The length bounds are [steinitz] against a basis. For extension: given an independent , if it spans we are done; otherwise pick , which keeps the list independent by [dependence-redundancy], and repeat. The process halts by the length bound. For reduction: given a spanning list, delete any vector lying in the span of the others ([dependence-redundancy]), which preserves spanning, and repeat until the list is independent. If an independent list has length and failed to span, extending it would give an independent list of length greater than , which is impossible; the dual argument handles a spanning list of length .
3. Linear maps
The objects are in place. This section introduces the linear maps between them, and proves the theorem that governs every one of them.
3.1. Definition, kernel, image
Let be vector spaces over . A function is a linear map if
The set of linear maps is written , and it is itself a vector space under pointwise operations.
Every linear map satisfies .
Proof
Take in [eq:eq-linearity].
Fix and with , and let . Then , so is not linear by [linear-fixes-zero]. It is affine: a linear map followed by a translation. The failure is quantitative as well as qualitative, since
which vanishes exactly on the coefficient pairs with . An affine map preserves those combinations, the ones whose coefficients sum to one, and no others. That surviving structure is what an affine space is, and it is the structure an ICE table carries in §7.
The layer at the heart of every neural network is this . It is affine, it is named affine here, and it will be named affine in Parts III and IV.
For , the kernel and image are
The rank of is , and the nullity is .
is a subspace of and is a subspace of .
Proof
puts in both. If then . If then . Apply [subspace-test] twice.
A linear map is injective if and only if .
Proof
If is injective and , then . Conversely, if and , then , so , so .
This is the reason the kernel is worth naming. For a general function, injectivity is a statement about every pair of points. For a linear map, it collapses to a statement about a single subspace, because linearity converts the difference of two collisions into one collision with zero.
3.2. Rank-nullity
Let be finite-dimensional and . Then
Proof
Let and let be a basis of , so . Being independent in , it extends by [extend-to-basis] to a basis
We claim is a basis of , which gives and hence [eq:eq-rank-nullity].
They span the image. Let . Write in the basis above. Applying and using ,
so lies in their span.
They are independent. Suppose . By linearity , so , so it is a combination of the kernel basis:
That is a dependence relation among , which is a basis of and therefore independent. Hence every (and every ).
Let and . Then is injective if and only if it is surjective, and either condition makes it bijective.
Proof
By [injective-iff-kernel-zero], injectivity says , which by [eq:eq-rank-nullity] says , which says is a subspace of of full dimension, hence by [extend-to-basis]. Each step reverses.
[square-injective-surjective] fails without finite dimension. On the space of real sequences, the right shift is injective and not surjective. Dimension is doing real work in [eq:eq-rank-nullity], and it is available to us only because [dimension-well-defined] made it well defined.
4. Matrices as coordinates
Now the central point of the lecture. A matrix has not appeared yet, and it appears now for one reason: a linear map, once bases are chosen at both ends, is determined by finitely many scalars. Those scalars are the matrix. They belong to the pair of bases as much as to the map, and changing the bases changes every one of them while changing nothing about the map.
4.1. The matrix of a linear map
Let be a basis of . For any vectors there is exactly one linear map with for every .
Proof
Existence: define , which is well defined because the coordinates are unique ([coordinates-unique]), and is linear by inspection. Uniqueness: two linear maps agreeing on a basis agree on every linear combination of it, hence on .
Let , let be a basis of and a basis of . Expand each image in :
The array is the matrix of with respect to and . Its -th column is .
With the notation of [matrix-of-map], for every
where the right-hand side is the usual matrix-times-column product. Moreover, for with a basis of ,
Proof
Write . Then by linearity and [eq:eq-matrix-def], , and the bracket is the -th entry of . Uniqueness of coordinates gives the first claim. Applying it twice, for every , and a matrix is determined by its action on the coordinate vectors .
Matrix multiplication is forced: it is the unique rule that makes the array of a composition equal the product of the arrays. The associativity of matrix multiplication, verified by index gymnastics in most courses, is the associativity of composition of functions, which is free.
4.2. Change of basis and similarity
Let and be bases of . The change-of-basis matrix has -th column , so that for every .
is invertible, with .
Proof
By [matrix-acts-on-coordinates], , and symmetrically in the other order.
Let and let be bases of with change-of-basis matrix . Write and . Then
Two square matrices related in this way are called similar, and similarity is precisely the relation "these are the same linear map, written in two coordinate systems".
Proof
Write and apply [matrix-acts-on-coordinates] to the composition, reading the bases right to left:
Read [eq:eq-similarity] in those terms. The left side and the right side are two arrays of numbers with, in general, not a single entry in common. They represent one linear map. Nothing about changed when the basis was turned; only our description of it changed. Any number computed from that deserves to be a statement about must therefore be invariant under [eq:eq-similarity]. The trace and the determinant are two such numbers, and the eigenvalues are another, which is what Part II is about. The entries of are not.
Three panels, three separate things. Panel one draws the linear map with no frame present at all: the image of the unit sphere under , with the directions leaves invariant. Panel two is a basis you may rotate. Panel three is the array of components. Turn the frame and watch: the nine numbers churn under [eq:eq-similarity], and the object in panel one does not stir, because the map never heard of your basis. The trace and the determinant sit still while the entries move.
One control is offered here, and a second is held back until Part IV. Rotations are gentle: an orthogonal change of basis is the special case in which several inequivalent transformation laws happen to agree, which is exactly why an array can be mistaken for a tensor indefinitely. Part IV unlocks the shear, the agreement collapses, and the array is caught.
5. The four fundamental subspaces
Given a matrix, four subspaces come for free, two in the source and two in the target. This section defines them and proves the one theorem tying them together, which is that a matrix has the same rank read by rows as read by columns.
Let , regarded as the linear map from to in the standard bases.
- The column space , which is .
- The null space .
- The row space .
- The left null space .
The column space is the image, so is solvable exactly when : that is §6. The left null space is the set of linear relations satisfied by the rows of : a vector in it says that the combination vanishes. Read that sentence again in §7, where the rows will be reactions and the relations will be conservation laws.
Courses often draw these four subspaces with right angles between them, since and are orthogonal complements. That picture needs an inner product, which we do not have and do not need here. Orthogonality is deferred to Part III, and every statement below is proved without it.
For any , . The common value is the rank of .
Proof
Let and let be a basis of the column space. Assemble them as the columns of a matrix .
Every column of lies in the column space, so it has an expansion for unique scalars . Collecting the coefficients into , this reads
Now read [eq:eq-rank-factorisation] by rows. The -th row of is , so every row of lies in the span of the rows of . Hence
The bound holds for every matrix, so apply it to , whose row space is the column space of and whose column space is the row space of :
The two inequalities force equality.
The factorisation [eq:eq-rank-factorisation] is worth more than the theorem it just proved. It says every rank- matrix is a product of a tall matrix and a wide one, with the inner dimension equal to the rank. That is the shape of a low-rank approximation, of a bottleneck layer, and of the update in low-rank adaptation. Part V returns to it with the singular value decomposition, which picks the best such factorisation of each rank.
, and by [eq:eq-rank-nullity] applied to and to ,
Proof
Immediate from [row-rank-col-rank] and [rank-nullity], the latter applied to the linear map on and to on .
6. Solving
Everything proved so far collapses into one clean statement about the oldest question in the subject. This section answers when a linear system has a solution, when it has only one, and what the set of all of them looks like.
Let and , and let .
- Existence. if and only if .
- Uniqueness. If , then has exactly one element if and only if .
- Structure. If , then
Proof
(1) is the definition of the image, which is the column space. (3): if and , then , so with ; conversely . (2) follows from (3), since is a single point exactly when is.
An affine subset of a vector space is a set of the form for some and some subspace . Its dimension is . It is a subspace if and only if .
The word affine is the shortest true description of [eq:eq-solution-set], and it does real work in three places.
The solution set of an inhomogeneous system is closed under no linear combination at all, except the ones whose coefficients sum to one: if then , which equals exactly when , which is the structure identified in [affine-not-linear]. It has a well-defined dimension, , and a well-defined direction space, , and no distinguished point: is any solution you happen to find, and a different one names the same set. That last property is what makes an extent of reaction a coordinate in §7 rather than a physical quantity, and it is what makes a particular solution of an inhomogeneous ODE a choice rather than a fact in Part II.
Take
Row two is twice row one, so the row space is spanned by and , which are independent, giving . By [rank-transpose], . Solving and gives and , so , of dimension one as predicted. And satisfies , so by [eq:eq-solution-set]
a line in that misses the origin: an affine subset of dimension one, and not a subspace.
Recovering the known result. Check the kernel vector directly: , so , and . Then for every , which is the whole content of [eq:eq-solution-set]: linearity does the substitution for us, and no case-by-case verification is left to do.
The figure runs [eq:eq-rank-nullity] as a conservation law. Slide the rank of a linear map and the two dimensions trade against each other: as the image collapses from a solid to a plane to a line, the kernel grows from a point to a line to a plane, and the sum stays at three. A system whose image has collapsed is one whose may now fail to be reachable, and whose solution set, where it exists, has become a large affine set rather than a point. Existence and uniqueness are the two ends of the same slider.
7. Stoichiometry: an affine set cut by a nonlinear variety
Here is the sharpest statement in this lecture, and the reason chemistry was chosen as the application. Take the Haber process, , and write down its ICE table. The amounts are
which is degree one in : an affine set, a straight line in the space of species amounts, direction , base point . The equilibrium condition that picks a point on that line is
which, cleared of denominators, is degree four in . The quotient on the left is written in mole amounts rather than activities, and the that appears in the worked problem of §7.3 is a number chosen to make that problem come out, not a measured constant; the remark in §7.3 says exactly what is being assumed, and nothing in the degree count depends on it. Same variable, same table, two utterly different kinds of object: a line and a quartic hypersurface. The line is linear algebra and this lecture solves it completely; the quartic is not and never will be. A course that calls the whole table "linear" has thrown away the only distinction that explains why one half is easy.
7.1. Balancing is a null-space search
Fix an ordered list of species and an ordered list of the chemical elements they contain. The element-species matrix has one row per element and one column per species, with the number of atoms of element in one molecule of species . Every entry is a non-negative integer; no reaction has been mentioned yet, and none is needed to write down.
The reaction is carried entirely by the sign of the coefficients. A stoichiometric coefficient vector is a vector whose entry is negative for a species consumed, positive for one produced, and zero for one not taking part. It balances if and only if
which says exactly that the atom count of each element is unchanged by the reaction.
For methane combustion, with species ordered and elements ordered , the atom counts are read straight off the formulae:
Three elements, four species, so has rank at most three and by [rank-transpose]: there is always at least one balancing vector, before any arithmetic is done. The rank is in fact three, so the kernel is exactly one-dimensional, and the balance is unique up to scale. Scaling to the primitive integer vector, and fixing the sign so that methane is consumed, gives : methane and oxygen negative, carbon dioxide and water positive, magnitudes . That is the balanced equation
the answer the student got by juggling. Two facts she was never told are now theorems. Her answer is unique up to scale because . And whenever a reaction network has , no amount of juggling gives a unique answer, because there is no unique answer to be had: the number of independent reactions among a set of species is , which is the statement of [rank-nullity] in a laboratory.
from sympy import Matrix, Rational, ilcm, igcd
# Species: CH4, O2, CO2, H2O. Elements: C, H, O.
# E holds ATOM COUNTS only: every entry non-negative, no reaction in sight.
E = Matrix([[1, 0, 1, 0],
[4, 0, 0, 2],
[0, 2, 2, 1]])
print("E =", E.tolist())
print("rank E =", E.rank())
ns = E.nullspace()
print("dim ker E =", len(ns), "(unique up to scale iff this is 1)")
# Clear the rational null-space vector to a primitive integer vector.
v = ns[0]
den = 1
for e in v:
den = ilcm(den, Rational(e).q)
ints = [int(Rational(e) * den) for e in v]
g = 0
for k in ints:
g = igcd(g, k)
ints = [k // g for k in ints]
# Fix the sign so that methane (species 0) is CONSUMED: nu_0 < 0.
if ints[0] > 0:
ints = [-k for k in ints]
print("signed coefficients (CH4, O2, CO2, H2O) =", ints)
print("E . nu =", (E * Matrix(ints)).T.tolist(), "-> every element conserved")
print("magnitudes match the textbook answer [1, 2, 1, 2]:",
[abs(k) for k in ints] == [1, 2, 1, 2])Verification: methane combustion balances to (-1, -2, 1, 2), and the null space is one-dimensional
7.2. Conservation laws are a left null space
A network of several reactions gets a second matrix, and the two must be told apart.
For a network of reactions among species, the stoichiometric matrix has one column per reaction, whose entries are the change in each species amount per unit extent of that reaction: negative for a species consumed, positive for one produced. Each column is therefore a stoichiometric coefficient vector in the sense of [element-species], and each is balanced.
Let be the element-species matrix of [element-species] for the same species list. Then
so every row of lies in , the left null space of . More generally, a vector lies in if and only if the quantity is conserved along every trajectory of the network.
Proof
The -th column of is applied to the -th column of , and that column is a balanced coefficient vector, so [eq:eq-balance] kills it. Balancing one reaction and annihilating the whole network are the same statement, read one column at a time: the entry of is the net change in the number of atoms of element per unit extent of reaction , and a chemical reaction conserves atoms of every element. For the general statement, the amounts under the network are , so , which is independent of for all precisely when .
Hydrogenate 1-butene and then isomerise the product:
With species ordered and elements ordered ,
Multiply: , as [conservation-left-null] promised without any multiplication being needed. Carbon: in the first column, in the second. Hydrogen likewise.
Now count. is of rank , so by [rank-transpose]. There are exactly two independent conserved quantities, and the two rows of (which are independent) already exhaust them: total carbon and total hydrogen. Nothing else is conserved, and the left null space is the proof that nothing else can be.
7.3. The ICE table: degree one meets degree four
Return to the Haber process with the feed in the species order . By [eq:eq-ice-affine],
each of them degree one in . The whole ICE table is one point moving along one line, and the extent of reaction is a coordinate on that line, in the sense of [coordinates-unique] applied to the one-dimensional direction space . The feed is in stoichiometric ratio, so both reactants are exhausted together at , and the physically admissible segment is .
The condition [eq:eq-equilibrium] is written as a power product of mole amounts. The true equilibrium condition is a power product of activities, and the two coincide only at the volume that makes the activities numerically equal to the amounts, effectively unit volume. Everything below is therefore a statement about that reference volume, and the numerical value of used here is an artefact of where the worked problem places equilibrium: it is not the measured equilibrium constant of ammonia synthesis at any real temperature. None of this touches the mathematics, because the degree contrast, one against four, is unchanged by any volume factor: a volume term multiplies [eq:eq-equilibrium] by a constant and leaves the polynomial degree in exactly where it was. The caveat is stated, and we move on.
Substituting the affine amounts into [eq:eq-equilibrium] and clearing denominators,
Take . Then [eq:eq-haber-quartic] reads . Taking positive square roots on the admissible segment, where both sides are non-negative,
whose roots are and . The second lies outside and is discarded on physical grounds: it would drive both reactant amounts negative. So , and the equilibrium amounts are
Recovering the known result. Feed the amounts back into the quotient:
Every atom is accounted for too, as [conservation-left-null] requires: nitrogen , which is the feed value ; hydrogen , which is the feed value . The conservation rows were never imposed. They hold because the state never left the affine set [eq:eq-ice-affine], whose direction is annihilated by them.
Two objects sat in that table. [eq:eq-ice-affine] is degree one and is completely solved by §6: a line, a direction space, a coordinate, conservation laws read off a left null space. [eq:eq-haber-quartic] is degree four and is a different subject; we solved this instance only because a perfect square happened to be extractable, and the general case falls to a numerical root-finder. What linear algebra buys is the ability to see that the quartic is the only hard thing in the problem, and to hand it the simplest possible geometry to cut.
Three species amounts on three axes, one point in the space of states. The straight line is the affine set [eq:eq-ice-affine], along which the extent of reaction is the coordinate. The flat sheet is a conservation plane, one row of , and the line lies inside it exactly because that row is in the left null space of ([conservation-left-null]). The curved sheet is the equilibrium variety [eq:eq-equilibrium], which is where the linearity stops. Drag and watch the reaction quotient climb to at the one point where the line pierces the curve. The straight object and the curved object are drawn in the same picture, because the point of the picture is that they are two objects.
8. The determinant we have not defined
A debt, stated plainly. The determinant has been leaned on twice in this lecture without ever being defined: [p-invertible] asserts a change-of-basis matrix is invertible, and every reader knows the test for invertibility is a nonvanishing determinant, and the remark after [similarity] claimed the determinant survives a change of basis. Neither claim was proved, because the determinant cannot be properly defined at this stage. The formula with the sum over permutations computes something not yet named.
The debt is settled three times, each settlement stronger than the last.
- Part II axiomatises it: is the unique function of the columns of a matrix that is multilinear, alternating, and equal to one on the identity. Uniqueness makes the permutation formula a theorem rather than a definition, invariance under [eq:eq-similarity] falls out of multiplicativity, and the meaning of is signed volume. Part II needs it because the characteristic polynomial needs it.
- Part IV explains it: a linear map on an -dimensional space induces a linear map on the one-dimensional space , and a linear map on a one-dimensional space is multiplication by a scalar. That scalar is . The alternating multilinear axioms of Part II are then simply the definition of , and the reason the determinant is basis-independent is that was constructed without a basis.
- Part VI reveals it: is the factor by which stretches -dimensional volume, and it equals , the product of the singular values. This is the top-dimensional case of the theorem stated in §0, in which rotation, stretch, area, volume and determinant become one object.
Part II begins with eigenvalues, and to have eigenvalues we need a determinant. That is where the series goes next.
References
- S. Axler, Linear Algebra Done Right, 4th ed., Springer, 2024. DOI
- P.R. Halmos, Finite-Dimensional Vector Spaces, 2nd ed., Springer, 1974. DOI
- R.A. Horn and C.R. Johnson, Matrix Analysis, Cambridge University Press, 1985. DOI
- G. Strang, Linear Algebra and Its Applications, 4th ed., Cengage, 2006.
- R. Aris, Elementary Chemical Reactor Analysis, Prentice-Hall, 1969.