Chapter 3. Linear equations and maps
Matrix multiplication turns a system of linear equations into one equation . We first use row operations to study that equation, then examine the linear map behind it. Choosing different bases changes the representing matrix, while composition and inversion of maps become matrix multiplication and inversion.
3.1 Systems of linear equations
Matrix form
A system of equations in unknowns has the form
Writing , , and gives
The number of equations and the number of unknowns need not agree.
Example 3.1.1. The system
can be written as
The equations and have matrix form
Over , the equation has exactly one solution, whereas
has infinitely many, since is arbitrary. The equations and are inconsistent because no scalar satisfies both,
Two equations in two unknowns may have no solution, one solution, or infinitely many solutions. For example, has the unique solution , .
The solution sets in these examples are visualized in Figure 3.1.
Augmented matrices and row operations
To solve a system, we rewrite its equations in a form that exposes which variables are determined and which can be chosen freely. The augmented matrix keeps the coefficients and right-hand sides together throughout this calculation.
Appending the right-hand side produces the augmented matrix . The equation is equivalent to
The final coordinate here is fixed at .
The elementary row operations exchange two rows, multiply a row by a nonzero scalar, or add a multiple of one row to another. Apply an operation to the entire augmented row, including its right-hand side. Reordering variables corresponds to reordering the columns of .
Example 3.1.2. Consider
Dividing the first equation by gives . Subtracting three times this equation from the second gives , or . Adding twice this last equation to the first eliminates , leaving
Thus all solutions are
Example 3.1.3. The system
has augmented matrix
Divide row by , subtract the new row from row , and then subtract three times row from row . The successive matrices are
and finally
Triangular systems and factorization
Example 3.1.4. Consider the upper triangular system
We solve it from the last equation upward. In augmented form, dividing the last row by and then eliminating from the first two rows gives
Subtracting row from row and then dividing row by gives
The solution is , , .
For a square system , an available factorization , with lower triangular and upper triangular, reduces the problem to
One first solves for , then solves for . The resulting vector satisfies . Sparse matrices have many zero entries. Their pattern of zeros can support more efficient solution strategies. Fast matrix multiplication is another topic in numerical linear algebra.
Normalized systems
The reduced equations reveal both the consistency conditions on the right-hand side and the freedom left in the unknowns. After row operations and a possible reordering of variables, consider the following four forms.
-
For , every variable is determined by , where .
-
For
the last variables are free. The first satisfy
-
For
the unknown column has entries. The equations require for and . A nonzero entry among these last right-hand sides makes the system inconsistent.
-
In the combined case,
there are free variables , while the last equations require .
Exercise 3.1.5
Work over or . Consider the system
-
(a) Show that this system has no solution.
-
(b) Find matrices and such that the system is equivalent to
-
(c) Find the set of all for which has a solution, and show that for each such , the solution is unique.
3.2 Linear functions and maps
Linearity and linear functionals
The grid picture of Subsection* 1.2 is an instance of a general principle. A linear map respects addition and scaling in the domain, even when its inputs are functions or matrices rather than points of a plane. The following definition states that principle without depending on coordinates.
Definition 3.2.1. Let and be vector spaces over the same field . A map is linear if the identities
hold for and . These identities express preservation of addition and scalar multiplication. Equivalently,
for all and . When , a linear map is called a linear functional.
In particular, . A function between vector spaces must satisfy the displayed identities to be linear. Its domain and codomain provide the vector-space operations with which this additional requirement is expressed.
The addition identity is pictured in Figure 3.2.
Example 3.2.2. If is a basis of , write , for a linear functional . For ,
Why a linear map preserves grid structure
For a real vector space, a line with starting point and nonzero direction consists of vectors , where . Linearity gives
If , these images form a line with direction . Lines sharing the direction therefore have images sharing the direction , so the image lines are parallel or coincide. If , the entire line maps to the single point .
Equal spacing comes from the same identity. Consecutive inputs , for integer , differ by . Their images differ by the constant vector , since
Every input step in this direction produces the same output step, wherever it is taken. In a two-dimensional grid generated by , the two step vectors become . If these remain independent, the result is a parallelogram grid, with uniform spacing within each parallel family. The two spacings need not be equal to one another or to their original values. Angles and lengths may change.
Parallel lines alone do not capture this condition. Figure 3.3 redraws a grid in which parallel lines survive but equal input steps have unequal image steps. Such an action cannot be linear. These pictures illustrate consequences of linearity. The definition still requires the identities for every vector and scalar, rather than just the finitely many points visible in a drawing.
The possibility of collapse is equally important. If the two image step vectors are dependent, a planar grid can collapse to a line, and if both are zero it collapses to the origin. These maps still preserve linear combinations. The kernel and image in Chapter 4 describe the lost directions and the output space that remains. For example, when and ,
The output retains the first coefficient, while every change in the second coefficient gives the same output. This case is shown in Figure 3.4.
Prescribing a map on a basis
The grid discussion explains why it suffices to track basis vectors. Every other vector is assembled from them, and linearity retains its coefficients. The same argument applies in any vector space with a finite basis, without a geometric grid.
Let be a basis of . For each , choose a vector . The prescription
determines a linear map on all of . For , its value is
Example 3.2.3 (Recovering matrix columns from a coordinate rule). Define by
Each output coordinate is a linear combination of the input coordinates. Coordinatewise addition and scalar multiplication therefore make linear. The images of the standard basis vectors are
Since , linearity gives
Thus the first column is , and the second is . The same two images determine the value at every input. For instance,
Example 3.2.4 (Two input coordinates and three output coordinates).
The map is given by
Setting one input coordinate to and the other to gives
For an arbitrary input, the component formula becomes
The two input basis vectors supply two columns. Each image needs three output coordinates, so the matrix has three rows and two columns.
Differentiation
Differentiation is an example of a linear map whose inputs and outputs are functions. Its definition, linearity, and application to polynomial spaces are developed in § 4.4.
The vector space of linear maps
The linear maps form a vector space, denoted , under the pointwise operations
If and , choosing bases identifies this space with the space of -by- matrices. The correspondence is developed in § 3.3.
Exercise 3.2.5
Matrix multiplication defines a map
This problem shows that matrix multiplication is a bilinear map.
-
(a) Show that given , the map
is linear.
-
(b) Show that given , the map
is linear.
3.3 Change of basis formula for functions and maps
Matrices in standard bases
Let be linear, and let be the standard basis of . Write , and form the matrix whose columns are .
For , linearity gives
The last equality is precisely the column definition of matrix multiplication. Each input coordinate multiplies the image of its corresponding basis vector.
Thus a linear map is represented by the matrix of its values on the standard basis. Conversely, an -by- matrix defines the linear map .
Example 3.3.1 (A map determined by two basis-vector images).
If the linear map satisfies and , then every input has the form , and
There are two columns because the input has two basis vectors, and three rows because each image has three coordinates. No further values of need to be specified. Its values on already determine its value on every linear combination of them.
The correspondence is a bijective linear map
It is one-to-one because equal matrices give equal basis-vector images and hence equal values at every input. Every matrix occurs, since multiplication by that matrix defines a linear map. Addition and scalar multiplication of maps act on each basis-vector image separately, so the correspondence also preserves these operations.
Matrices in arbitrary bases
The standard-basis formula combines three ingredients already encountered. An input basis gives coefficients, the map determines the images of its basis vectors, and an output basis supplies coordinates for those images. The same construction works for abstract finite-dimensional vector spaces.
Choose ordered bases of and of , and let be linear. The basis assigns each vector in a unique coordinate column in , and does the same for in . These coordinate descriptions allow the vectors themselves to be functions, polynomials, or other vector-space objects. No containment of or in a Euclidean space is assumed.
The row notation for a basis represents a linear combination. For scalar columns and , it means
Thus is a vector in , and is a vector in . The basis vectors themselves may be functions or polynomials.
Since is a basis of , each image has a unique expansion in its vectors. Writing these expansions separately gives
Place the coefficients of in column of a matrix,
Column belongs to input basis vector , and row records its image’s coefficient in output direction . The -th column therefore satisfies
This equality holds for every . By column-by-column multiplication, is consequently the row of vectors . We denote this row by , meaning that is applied to each basis vector separately. Thus
The matrix is unique because each basis-image expansion is unique.
The images may be zero or linearly dependent, so they need not form a basis of . The matrix records their coordinates in in every case. Their span and dependencies are studied through image, rank, and kernel in Chapter 4. Example 4.3.2 shows how dependent images can still span the entire codomain.
Equation 3.1 records what happens to the basis vectors. Linearity explains why the same matrix computes the image of every input. Let
Applying and substituting the basis-image expansions gives
Regrouping by the output basis vectors produces
The coefficient of is the -th entry of . Consequently,
The input-coordinate column is , the output-coordinate column is , and the output vector itself is . These expressions distinguish the coordinates from the vectors they represent. The matrix converts the -coordinates of the input into the -coordinates of its image. For a zero-dimensional space, the corresponding basis and coordinate column are empty, and the formulas use empty sums.
Both routes through Figure 3.5 give the same output vector, since .
In Einstein notation, repeated upper and lower indices are summed over their ranges. With this convention, the expressions above become
The matrix depends on the map and on both ordered bases. The map specifies what happens to a vector. Its matrix specifies how to compute the corresponding output coordinates from the chosen input coordinates. Changing either basis changes the coordinate descriptions used in this calculation. The identity keeps these roles separate and makes their connection explicit.
Composition
Suppose and have matrices and in compatible ordered bases, so that
Then
The matrix of the composite is , in that order. For , this gives .
Example 3.3.2. Rotate the real plane through counterclockwise and then apply the shear . In standard coordinates, the rotation and shear have matrices
The rotation acts first, so the combined action is
Indeed, first becomes , which the shear sends to . Figure 3.6 follows the basis arrows and the grid through these two stages. The columns of record their final images, so the product contains the complete combined transformation.
Exercise 3.3.3
Let be a basis of . Consider the linear map such that
Show that if is the matrix where , then but .
Exercise 3.3.4
Let be an integer. Find a matrix such that
Invertible maps and inverse matrices
Definition 3.3.5. A linear map is invertible if every is the image of exactly one . Equivalently, it is both injective and surjective. Its inverse satisfies
Proposition 3.3.6 (The inverse of a linear map). The inverse of an invertible linear map is linear. If is a basis of , then is a basis of . In particular, finite-dimensional and have equal dimension.
Proof. Let and . Put and . Linearity gives
Applying yields
proving that the inverse is linear.
To prove the basis assertion, every is for some . Expanding in and applying expresses as a finite linear combination of the vectors in . Thus spans . If distinct satisfy , then . Injectivity gives , and independence of forces every . The images are independent and form a basis. Since injectivity also keeps distinct basis vectors distinct, the two bases have the same size, giving the dimension assertion. ◻
Exercise 3.3.7
Let be an invertible linear map between vector spaces over the same field. Prove that is linear.
Let and be bases of and , and write
Using Proposition 3.3.6 gives
Since and are bases, , hence . The inverse map is represented by the inverse matrix.
Exercise 3.3.8
Call invertible if there is with . Prove that such an is unique (so is well defined), and that if are invertible then so is , with .
Exercise 3.3.9
Let with .
-
(a) Prove that if is a column matrix such that , then .
-
(b) Deduce that the columns of are distinct and form a linearly independent subset of with elements, and hence a basis. Conclude that every can be written as .
-
(c) Prove that .
Changing both bases
Let and be new ordered bases, with invertible change-of-basis matrices and . If , then
Therefore, the matrix satisfying is
Figure 3.7 tracks the conversions. Following either route gives , hence .