A vector space specifies operations within a collection. A linear map preserves them between spaces. After studying bases, we can now state exactly when a matrix represents the whole map.
Preserving combinations
A map is linear if
It makes combining before processing equivalent to processing before combining. The first chapter’s response model assumes this property.
The two concepts answer different questions. A vector space specifies addition and scaling within a collection of objects. A linear map preserves those operations while mapping one space into another. Merely accepting vector inputs does not make a process linear.
A direct consequence is : apply additivity to and cancel one term. A fixed nonzero offset therefore prevents linearity. The map is instead affine. Subtracting a baseline can make a meaningful difference in modelling.
Linearity must hold for arbitrary inputs
Preserving addition and scaling means
Together they imply preservation of two-term linear combinations. Conversely, choosing unit coefficients or a zero vector in the combination formula recovers these laws. Either form is useful, but its quantifiers cover every input and scalar.
For , each output is a fixed linear combination of inputs, so expansion verifies linearity componentwise.
For , preserving zero is insufficient:
One counterexample disproves linearity; a few successful inputs do not prove it.
An affine rule with nonzero fixed offset fails to preserve zero. Measuring output relative to the baseline leaves the linear rule . Subtracting a reference state can therefore change the appropriate mathematical description of a model.
Kernel, image, and solution sets
Define
The kernel contains changes invisible at the output; the image contains reachable outputs. Linearity makes both subspaces of their respective spaces.
Why kernel and image are subspaces
For , linearity gives
The kernel is closed under combinations and contains zero.
For image vectors and ,
which is another output. The kernel belongs to the domain ; the image belongs to the codomain . Their ambient spaces may have different dimensions.
Rank-nullity for a finite-dimensional map follows directly from bases. Extend a basis of the kernel to a basis of the domain. Images of the added vectors span the image because kernel terms vanish. Those images are independent: a nontrivial dependence would place a combination of added basis vectors in the kernel, contradicting independence of the extended basis. Hence
Injectivity, surjectivity, and invertibility
The map is injective exactly when . Injectivity permits only zero to map to zero. Conversely, equal outputs imply , so a trivial kernel forces equal inputs.
Surjectivity means . Invertibility requires both: every output must be reachable, with exactly one preimage.
When both spaces have the same finite dimension , rank-nullity makes injectivity and surjectivity equivalent. A zero-dimensional kernel gives an -dimensional image, and an image equal to the codomain leaves a zero-dimensional kernel. Different dimensions break this equivalence. For example,
is injective but not surjective, while
is surjective but not injective: it discards the entire direction.
Computing kernel, image, and preimages
Consider
Setting the output to zero gives , hence
Every target is reached by , so the image is all of . The map is surjective, but its one-dimensional kernel makes preimages nonunique:
Here denotes a set preimage, not an inverse function. Kernel, image, and preimage identify discarded changes, reachable outputs, and the inputs producing a specified output.
All preimages of one output
If has a particular solution , all solutions are exactly
The difference of any two solutions maps to zero, and adding any kernel element to a particular solution preserves its output. For nonzero , this solution set excludes zero and is not a linear subspace.
This is the structure behind the traffic parameterization. Later, homogeneous-plus-particular solutions of circuit differential equations will use the same argument. Nonlinear equations do not automatically admit superposition.
Why a finite-dimensional linear map is determined by a matrix
Let have ordered basis and have ordered basis . Knowing the images of basis vectors determines every output:
Put the -coordinates of in column of . Then
The left side is the output’s coordinate vector. The matrix itself is not an element of .
The representation is unique: equal matrices give equal images of basis vectors, hence equal images of every input. Conversely, any matrix defines a linear map through this formula. Thus matrices and linear maps correspond bijectively when both spaces are finite-dimensional and both bases are fixed.
Differentiation can have a matrix representation
On the space of polynomials of degree at most two, choose basis . Differentiation satisfies
Collect output coordinates as columns:
The coefficient column becomes , representing . Cubing the matrix gives zero because three derivatives annihilate every such polynomial.
This uses a finite-dimensional space closed under differentiation. The space of all polynomials is infinite-dimensional, so this fixed-size matrix cannot represent differentiation on the whole space. General function spaces require the same care.
A change of basis changes the matrix, not the map
For simplicity, consider . Let represent it in the old basis, and let columns of contain the new basis vectors in old coordinates. Then
Convert the input to old coordinates, apply , then convert the output back:
For and new basis ,
The first column says that maps to , whose new coordinates are . The operation still doubles the first old coordinate; only its description changes.
Different bases at the two ends
A general map need not have the same domain and codomain. Suppose its old matrix is . Let contain new domain basis vectors in old coordinates, and let contain new codomain basis vectors in old coordinates. Then
The right factor converts input coordinates; the left factor converts outputs back. The formula becomes only when the same basis change applies at both ends.
For the identity map on , use domain basis and the standard codomain basis. Its matrix is
It is not the identity matrix because the coordinate systems differ. Input coordinates represent the vector , whose standard output coordinates are . The identity map has identity matrix only when both ends use the same basis.
Compositions require matching intermediate coordinates
If has matrix and has matrix , using the same basis for intermediate space , then has matrix .
If one output uses old coordinates and the next input expects new coordinates, a change-of-basis matrix must be inserted. Matching array dimensions alone does not establish matching coordinate meanings.
Exercises
Let . It satisfies . Is it linear?
Solution
No. For , we have but . Scaling is not preserved. Mapping zero to zero is necessary for linearity, but not sufficient.
For real-valued functions on the reals, define . Prove that is a linear map to , and explain why it cannot uniquely recover the original function.
Solution
Pointwise operations give
Thus is linear. But the zero function and both map to zero, so the map is not injective. Preserving combinations and preserving all information are different requirements.
On , define . Find a kernel basis and determine whether it is surjective.
Solution
For , the kernel conditions are , so is a basis. Any pair is reached by . The map is surjective but not injective.
Swap the first two domain basis vectors while keeping the codomain basis fixed. What happens to the matrix?
Solution
Columns are the images of domain basis vectors, so swap the first two columns only. Output coordinates have not changed. This differs from simultaneously relabelling both ends of a graph adjacency matrix.
Comments