Evanalysis
3.5Estimated reading time: 27 min

3.5 Elementary row-operation matrices

Turn elementary row operations into left multiplication by elementary matrices, and use reverse elementary row operations to understand why those matrices are invertible.

Course contents

Encode a row operation once

Elementary row operations first appeared as procedural moves on a matrix. We swapped rows, scaled a row by a nonzero number, and added a multiple of one row to another. On an augmented matrix, these moves are legitimate for solving a system only when the operation is applied to the entire affected row, including the entry to the right of the augmentation bar. Under that condition the operation rewrites whole equations reversibly and therefore preserves the solution set.

There is a second, more structural way to read the same moves: each elementary row operation is the same as left-multiplication by a special square matrix. This matters because it converts a sequence of elementary row operations into an ordinary matrix equation. Later, this is exactly the bridge between row reduction, invertibility, rank, determinants, and basis arguments.

The structural viewpoint also answers a practical question. If the same row operation must be performed on many columns at once, how can one encode the operation once rather than repeat it entry by entry? The identity matrix gives the encoding: its rows record exactly which old rows are used to build each new row. Matrix multiplication then applies that recipe simultaneously to every column of a compatible matrix.

Build the elementary matrix from the identity

Suppose an elementary row operation ρ\rho is meant to act on matrices with pp rows. Start with the identity matrix IpI_p, apply the same elementary row operation to IpI_p, and call the result EρE_\rho. All scalars are taken from the underlying field of the matrices; in particular, every nonzero scaling factor cc has a reciprocal 1/c1/c in that field.

Definition

Elementary row-operation matrix

The elementary row-operation matrix associated with an elementary row operation ρ\rho on pp-row matrices is the p×pp \times p matrix obtained by applying ρ\rho to IpI_p.

This matrix is also called an elementary matrix. The longer name keeps its connection with the specified row operation visible.

Equivalently,

Eρ=ρ(Ip).E_\rho = \rho(I_p).

The reason this definition is useful is the following theorem.

Theorem

Elementary row operations are left multiplication

Let AA be any matrix with pp rows. If ρ\rho is one elementary row operation and ρ(A)\rho(A) denotes the result of applying it to AA, then

ρ(A)=EρA.\rho(A) = E_\rho A.

So applying that elementary row operation to AA is the same as multiplying AA on the left by the elementary row-operation matrix obtained from the same operation on IpI_p.

The multiplication must be on the left. Row operations change rows by mixing rows. Left multiplication forms new rows of AA as linear combinations of old rows of AA. Right multiplication would instead mix columns.

The dimensions make the same point. If AA is p×np \times n, then EρE_\rho is p×pp \times p, so EρAE_\rho A is defined and remains p×np \times n. There is no assumption that AA is square. By contrast, a right multiplier would need an n×nn \times n matrix and would act on the nn columns.

Why left multiplication performs the operation

Proof

Verify the three elementary cases row by row

Write the rows of an arbitrary p×np \times n matrix AA as a1,a2,…,apa_1,a_2,\ldots,a_p, and let ekTe_k^{\mathsf T} denote row kk of IpI_p. The basic identity

ekTA=ake_k^{\mathsf T}A=a_k

says that a row of a left multiplier selects the corresponding row of AA. Now check the three elementary operations.

  1. For Ri↔RjR_i\leftrightarrow R_j, the matrix EρE_\rho has row ii equal to ejTe_j^{\mathsf T}, row jj equal to eiTe_i^{\mathsf T}, and every other row kk equal to ekTe_k^{\mathsf T}. Thus the rows of EρAE_\rho A are the rows of AA with precisely rows ii and jj exchanged.

  2. For Ri←cRiR_i\leftarrow cR_i, where c≠0c\ne0, row ii of EρE_\rho is ceiTc e_i^{\mathsf T} and all other rows are unchanged. Hence row ii of the product is

    (ceiT)A=cai,(c e_i^{\mathsf T})A=c a_i,

    while row kk remains aka_k for k≠ik\ne i.

  3. For Rj←Rj+cRiR_j\leftarrow R_j+cR_i, where i≠ji\ne j, row jj of EρE_\rho is ejT+ceiTe_j^{\mathsf T}+c e_i^{\mathsf T} and every other row is unchanged. Therefore the new row jj is

    (ejT+ceiT)A=aj+cai,(e_j^{\mathsf T}+c e_i^{\mathsf T})A=a_j+c a_i,

    exactly as prescribed.

These cases exhaust the elementary row operations, so they prove EρA=ρ(A)E_\rho A=\rho(A) for every compatible AA. The proof does not claim that an arbitrary manipulation of rows has such an elementary matrix; ρ\rho must be one of the three operations just checked.

Acting on an augmented matrix

Suppose Ax=bAx=b is represented by the augmented matrix [A∣b][A\mid b]. An elementary row operation must act on the full augmented matrix, not separately on whichever entries happen to be convenient. The multiplication identity is

Eρ[A∣b]=[EρA∣Eρb].E_\rho[A\mid b]=[E_\rho A\mid E_\rho b].

Thus the coefficients and the right-hand side undergo the same combination of rows. A vector xx satisfies Ax=bAx=b if and only if it satisfies EρAx=EρbE_\rho Ax=E_\rho b: the forward implication follows by multiplying the equation by EρE_\rho, and the reverse implication follows by applying the reverse elementary operation. This is the precise reason the solution set is preserved.

Changing only AA while leaving bb fixed, or changing only bb, generally produces a different system. The augmentation bar is therefore a visual separator, not a boundary at which a row operation may stop.

Encode replacement, scaling, and interchange

The three elementary row operations give three corresponding types of elementary row-operation matrices.

Worked example

Row addition

For matrices with three rows, consider

ρ:R2←R2+3R1.\rho:\quad R_2 \leftarrow R_2 + 3R_1.

Apply this operation to I3I_3:

I3=[100010001]⟼Eρ=[100310001].I_3 = \begin{bmatrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix} \quad\longmapsto\quad E_\rho = \begin{bmatrix} 1 & 0 & 0\\ 3 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix}.

Therefore, for every matrix AA with three rows,

EρAE_\rho A

is the matrix obtained from AA by the operation R2←R2+3R1R_2\leftarrow R_2+3R_1.

Worked example

Row scaling

For

ρ:R3←−2R3,\rho:\quad R_3 \leftarrow -2R_3,

the elementary row-operation matrix is

Eρ=[10001000−2].E_\rho = \begin{bmatrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & -2 \end{bmatrix}.

The nonzero condition in row scaling is visible here: if the scaling factor were 00, the resulting matrix would have a zero row and could not be reversed.

Worked example

Row swap

For

ρ:R1↔R3,\rho:\quad R_1 \leftrightarrow R_3,

we get

Eρ=[001010100].E_\rho = \begin{bmatrix} 0 & 0 & 1\\ 0 & 1 & 0\\ 1 & 0 & 0 \end{bmatrix}.

Multiplying by this matrix on the left swaps the first and third rows of any compatible matrix.

Trace elementary left multiplication

The three examples above all follow the same rule: do the elementary row operation to the identity matrix first, then use the resulting matrix as a left multiplier. The sequence below records that rule before we use products of several elementary row-operation matrices.

Row operations as left multiplication

See how an elementary row operation becomes a left multiplier: apply it to the identity, then use the resulting matrix to change rows of any compatible matrix.

  1. Start from I

    For ρ: R₂ ← R₂ + 3R₁, first apply the operation to I₃.

  2. Build Eρ

    Only row 2 of I₃ changes, giving Eρ with row 2 equal to [3,1,0].

  3. Multiply on the left

    The same matrix performs the operation on A: ρ(A)=Eρ A.

  4. Read the new row

    The new second row is old row 2 plus three copies of old row 1.

  5. Keep product order

    In A₃=E₂E₁A₁, E₁ sits closest to A₁ because ρ₁ acts first.

  6. Reverse gives inverse

    The inverse of R₂ ← R₂ + 3R₁ is R₂ ← R₂ − 3R₁, so the corresponding matrices multiply to I.

A row-operation matrix is built by doing the row operation to the identity matrix. Multiplying by that matrix on the left then performs the same row operation on any compatible matrix, and the reverse row operation gives the inverse matrix.

Compare a row operation with its matrix product

Use the stepper to revisit a row-operation sequence. At each step, read the displayed move as left multiplication by the matching elementary matrix.

Read and try

Trace one full row-reduction path

The live stepper walks through one complete elimination path, showing the row operation, the pivot you are focusing on, and the matrix produced at each step.

1224
1335
2656

Row operation

Choose the first pivot in column 1.

What to notice

Column 1 already has a convenient pivot 1 in the first row, so we do not need a row swap.

Start with the augmented matrix. The first pivot should help us clear the entries underneath it.

A sequence of elementary row operations becomes one matrix product

The real payoff is not just representing one elementary row operation. A whole sequence of elementary row operations becomes one product of elementary row-operation matrices.

Theorem

A sequence of elementary row operations as a product

Suppose

A1→ρ1A2→ρ2A3→ρ3⋯→ρkAk+1.A_1 \xrightarrow{\rho_1} A_2 \xrightarrow{\rho_2} A_3 \xrightarrow{\rho_3} \cdots \xrightarrow{\rho_k} A_{k+1}.

Then

Ak+1=EρkEρk−1⋯Eρ2Eρ1A1.A_{k+1} = E_{\rho_k}E_{\rho_{k-1}}\cdots E_{\rho_2}E_{\rho_1}A_1.

Here every ρj\rho_j is an elementary row operation on matrices with the same number of rows. The product represents the whole sequence, although the product itself need not be a single elementary row-operation matrix.

The order in this formula is important. The first row operation appears closest to A1A_1, because it is applied first:

A2=Eρ1A1,A3=Eρ2A2=Eρ2Eρ1A1.A_2 = E_{\rho_1}A_1, \qquad A_3 = E_{\rho_2}A_2 = E_{\rho_2}E_{\rho_1}A_1.

Worked example

Two row operations combined

Let

A=[101021100].A = \begin{bmatrix} 1 & 0 & 1\\ 0 & 2 & 1\\ 1 & 0 & 0 \end{bmatrix}.

Apply

ρ1: R2←R2+R1,ρ2: R1←R1+2R2.\rho_1:\ R_2 \leftarrow R_2 + R_1, \qquad \rho_2:\ R_1 \leftarrow R_1 + 2R_2.

The corresponding row-operation matrices are

Eρ1=[100110001],Eρ2=[120010001].E_{\rho_1} = \begin{bmatrix} 1 & 0 & 0\\ 1 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix}, \qquad E_{\rho_2} = \begin{bmatrix} 1 & 2 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix}.

After both operations, the result is

Eρ2Eρ1A=[320110001][101021100]=[345122100].E_{\rho_2}E_{\rho_1}A = \begin{bmatrix} 3&2&0\\ 1&1&0\\ 0&0&1 \end{bmatrix} \begin{bmatrix} 1&0&1\\ 0&2&1\\ 1&0&0 \end{bmatrix} = \begin{bmatrix} 3&4&5\\ 1&2&2\\ 1&0&0 \end{bmatrix}.

Instead of multiplying Eρ2Eρ1E_{\rho_2}E_{\rho_1} directly, you can also obtain this combined matrix by applying the same two elementary row operations to I3I_3 in the same order. The final numerical matrix also confirms that the second operation uses the already-updated row 22.

Reading a longer row-operation product

In written exercises and examinations, elementary row operations are often given as a long chain. The goal is not to multiply many matrices blindly. The goal is to keep three objects separate:

  • the matrices A1,A2,…,Ak+1A_1,A_2,\ldots,A_{k+1} being transformed;
  • the elementary row-operation matrices H1,H2,…,HkH_1,H_2,\ldots,H_k;
  • the single combined left multiplier J=Hk⋯H2H1J=H_k\cdots H_2H_1.

Here is a typical four-row example. Suppose

ρ1:R2←−12R2,ρ2:R1↔R2,ρ3:R3←R3−2R1,ρ4:R4←R4−2R3,ρ5:R1←R1−R3,ρ6:R1←R1−R2.\begin{aligned} \rho_1 &: R_2 \leftarrow -\frac12 R_2,\\ \rho_2 &: R_1 \leftrightarrow R_2,\\ \rho_3 &: R_3 \leftarrow R_3-2R_1,\\ \rho_4 &: R_4 \leftarrow R_4-2R_3,\\ \rho_5 &: R_1 \leftarrow R_1-R_3,\\ \rho_6 &: R_1 \leftarrow R_1-R_2. \end{aligned}

If

A1→ρ1A2→ρ2A3→ρ3A4→ρ4A5→ρ5A6→ρ6A7,A_1 \xrightarrow{\rho_1} A_2 \xrightarrow{\rho_2} A_3 \xrightarrow{\rho_3} A_4 \xrightarrow{\rho_4} A_5 \xrightarrow{\rho_5} A_6 \xrightarrow{\rho_6} A_7,

then

A7=H6H5H4H3H2H1A1.A_7 = H_6H_5H_4H_3H_2H_1A_1.

The corresponding row-operation matrices are

H1=[10000−120000100001],H2=[0100100000100001],H3=[10000100−20100001],H4=[10000100001000−21],H5=[10−10010000100001],H6=[1−100010000100001].\begin{aligned} H_1&= \begin{bmatrix} 1&0&0&0\\ 0&-\frac12&0&0\\ 0&0&1&0\\ 0&0&0&1 \end{bmatrix}, & H_2&= \begin{bmatrix} 0&1&0&0\\ 1&0&0&0\\ 0&0&1&0\\ 0&0&0&1 \end{bmatrix},\\[0.8em] H_3&= \begin{bmatrix} 1&0&0&0\\ 0&1&0&0\\ -2&0&1&0\\ 0&0&0&1 \end{bmatrix}, & H_4&= \begin{bmatrix} 1&0&0&0\\ 0&1&0&0\\ 0&0&1&0\\ 0&0&-2&1 \end{bmatrix},\\[0.8em] H_5&= \begin{bmatrix} 1&0&-1&0\\ 0&1&0&0\\ 0&0&1&0\\ 0&0&0&1 \end{bmatrix}, & H_6&= \begin{bmatrix} 1&-1&0&0\\ 0&1&0&0\\ 0&0&1&0\\ 0&0&0&1 \end{bmatrix}. \end{aligned}

Their product is

J=H6H5H4H3H2H1=[−1−32−10100001100−2−21].J=H_6H_5H_4H_3H_2H_1= \begin{bmatrix} -1&-\frac32&-1&0\\ 1&0&0&0\\ 0&1&1&0\\ 0&-2&-2&1 \end{bmatrix}.

The efficient way to obtain JJ is to apply the six operations to I4I_4, not to expand all six factors by hand. The matrix JJ records the total effect of the chain on rows:

A7=JA1.A_7=JA_1.

This equation is also a good check on the order. If the first operation were placed on the far left, the product would describe a different chain.

Checkpoint

In the six-step chain above, suppose KK is the row-operation matrix product for the reverse chain from A7A_7 back to A1A_1. What equation should JJ and KK satisfy?

Think of KK as undoing the total effect of JJ.

Solution · Answer

The matrices JJ and KK encode transformations of every four-row matrix, not just the displayed matrix A1A_1. For any four-row matrix XX, applying the forward chain and then its reverse gives

K(JX)=X.K(JX)=X.

Taking X=I4X=I_4 yields KJ=I4KJ=I_4. In the other order, the reverse chain followed by the forward chain restores every four-row matrix YY, so J(KY)=YJ(KY)=Y; taking Y=I4Y=I_4 yields JK=I4JK=I_4. Therefore

KJ=I4JK=I4.KJ=I_4 \qquad JK=I_4.

Equivalently, K=J−1K=J^{-1}.

Reverse row operations and inverses

Every elementary row operation has a reverse operation:

  • the reverse of Rj←Rj+cRiR_j \leftarrow R_j + cR_i is Rj←Rj−cRiR_j \leftarrow R_j - cR_i;
  • the reverse of Ri←cRiR_i \leftarrow cR_i, with c≠0c \ne 0, is Ri←(1/c)RiR_i \leftarrow (1/c)R_i;
  • the reverse of a row swap is the same row swap.

This gives a precise matrix statement.

Theorem

Elementary row-operation matrices are invertible

Every elementary row-operation matrix is invertible. Its inverse is the elementary row-operation matrix corresponding to the reverse elementary row operation.

Proof

Why the reverse matrix is a two-sided inverse

Let EρE_\rho represent an elementary row operation ρ\rho, and let Eρ−1E_{\rho^{-1}} represent the reverse elementary operation. For every matrix XX with pp rows, applying ρ\rho and then reversing it restores XX. By the left-multiplication theorem,

Eρ−1EρX=X.E_{\rho^{-1}}E_\rho X=X.

This statement holds for every such XX; in particular, put X=IpX=I_p to obtain Eρ−1Eρ=IpE_{\rho^{-1}}E_\rho=I_p. Reversing first and then applying ρ\rho similarly gives EρEρ−1=IpE_\rho E_{\rho^{-1}}=I_p. Hence

Eρ−1=Eρ−1.E_\rho^{-1}=E_{\rho^{-1}}.

Concretely, a swap is its own inverse, scaling by c≠0c\ne0 is undone by scaling by 1/c1/c, and adding cc times row ii to row jj is undone by adding −c-c times row ii to row jj.

For example, if

E=[100310001]E = \begin{bmatrix} 1 & 0 & 0\\ 3 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix}

performs R2←R2+3R1R_2 \leftarrow R_2 + 3R_1, then

E−1=[100−310001]E^{-1} = \begin{bmatrix} 1 & 0 & 0\\ -3 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix}

performs R2←R2−3R1R_2 \leftarrow R_2 - 3R_1.

This is the algebraic reason elementary row operations are reversible, and it explains why row reduction is so closely connected to invertible matrices.

Proof

Undo the last operation first

Let E1,…,EkE_1,\ldots,E_k encode a chronological chain on matrices with pp rows, so its combined multiplier is J=Ek⋯E1J=E_k\cdots E_1. Each inverse Ej−1E_j^{-1} represents the reverse of the corresponding elementary operation. To recover the input, the first move must undo EkE_k, because that was the last change made to the rows. The remaining reverse moves undo Ek−1,…,E1E_{k-1},\ldots,E_1 in that order. Consequently the reverse multiplier is

K=E1−1E2−1⋯Ek−1.K=E_1^{-1}E_2^{-1}\cdots E_k^{-1}.

There are two orders to distinguish: the time order of the reverse operations starts with Ek−1E_k^{-1}, while the written product places that first action nearest the matrix being restored. For three steps, associativity gives

KJ=E1−1E2−1(E3−1E3)E2E1=E1−1(E2−1E2)E1=Ip.KJ=E_1^{-1}E_2^{-1}(E_3^{-1}E_3)E_2E_1 =E_1^{-1}(E_2^{-1}E_2)E_1=I_p.

The other product JKJK cancels adjacent inverse pairs starting with E1E1−1E_1E_1^{-1} and also equals IpI_p. The same successive cancellation works for any finite chain. No factors have been commuted, and the argument does not require the matrix being transformed to be square.

Apply this reading to the earlier two-operation example. Its combined multiplier is Eρ2Eρ1E_{\rho_2}E_{\rho_1}, so its inverse is Eρ1−1Eρ2−1E_{\rho_1}^{-1}E_{\rho_2}^{-1}. Starting from the final matrix, first subtract twice the current second row from the first, recovering [1 0 1][1\ 0\ 1] as the first row. Then subtract that recovered first row from the second, recovering [0 2 1][0\ 2\ 1]. Reversing the chain means restoring the intermediate states, which explains the order without a memorized rule.

Why this viewpoint matters later

If BB is row-equivalent to AA, then there is a finite sequence of elementary row operations taking AA to BB. Therefore there is a product of elementary row-operation matrices EE such that

B=EA.B = EA.

Because each elementary row-operation matrix is invertible, the product EE is invertible. So row equivalence can be discussed either procedurally, by listing elementary row operations, or algebraically, by writing an equation with an invertible matrix on the left. The converse statement also needs care: an arbitrary invertible left multiplier need not itself describe one elementary step.

This is useful in several later arguments:

  • a square matrix row-equivalent to InI_n is a product of elementary row-operation matrices;
  • elementary row operations preserve homogeneous solution information because they amount to multiplying by invertible matrices;
  • determinant rules for elementary row operations can be expressed through elementary matrices;
  • rank and basis arguments can use row reduction without pretending the original columns themselves have not changed.

Common mistakes

Common mistake

Do not multiply on the wrong side

Elementary row operations are represented by left multiplication. Right multiplication would combine columns, not rows.

Common mistake

Do not reverse the product order

If ρ1\rho_1 is applied before ρ2\rho_2, then the combined matrix is Eρ2Eρ1E_{\rho_2}E_{\rho_1}, not Eρ1Eρ2E_{\rho_1}E_{\rho_2}.

Common mistake

Do not use a zero row scaling

The scaling operation requires a nonzero scalar. Scaling a row by 00 cannot be reversed and does not produce an invertible elementary row-operation matrix.

Common mistake

One restored matrix is not enough to prove an inverse

From KJA=AKJA=A for one particular matrix AA, one cannot in general conclude KJ=IKJ=I: the columns of AA may not detect every possible input. Prove that the composed row transformations restore every compatible matrix, or simply apply them to IpI_p. That is why the argument for KJ=JK=IpKJ=JK=I_p above uses arbitrary pp-row matrices before substituting the identity.

Read products in the order they act

An elementary row operation on pp-row matrices is encoded by applying that operation to IpI_p. The resulting elementary matrix EρE_\rho acts on every compatible matrix by left multiplication, and the identity EρA=ρ(A)E_\rho A=\rho(A) follows by checking the output rows in the swap, nonzero scaling, and row-addition cases. On an augmented matrix, the operation must act across the whole row, including the right-hand side, so that the corresponding system keeps exactly the same solutions.

A sequence ρ1,…,ρk\rho_1,\ldots,\rho_k is represented in application order by Eρk⋯Eρ1E_{\rho_k}\cdots E_{\rho_1}. Each factor is invertible because the reverse elementary operation supplies a two-sided inverse. Consequently a finite row reduction can be treated as one invertible left transformation, while the individual factors still record the precise elementary steps.

Quick checks

Checkpoint

For matrices with three rows, what row operation is represented by E=[100010501]E = \begin{bmatrix} 1&0&0\\0&1&0\\5&0&1 \end{bmatrix}?

Ask which row of I3I_3 changed.

Solution · Answer

Only row 33 changed: five times row 11 was added to it. Therefore

R3←R3+5R1.R_3 \leftarrow R_3 + 5R_1.

Checkpoint

What is the inverse row operation for R2←R2−4R1R_2 \leftarrow R_2 - 4R_1?

Undo the added multiple.

Solution · Answer

The inverse operation is

R2←R2+4R1.R_2 \leftarrow R_2 + 4R_1.

Exercises

Checkpoint

Write the row-operation matrix for R1↔R2R_1 \leftrightarrow R_2 on matrices with three rows.

Apply the swap to I3I_3.

Solution · Guided solution

Swapping the first two rows of I3I_3 gives

[010100001].\begin{bmatrix} 0 & 1 & 0\\ 1 & 0 & 0\\ 0 & 0 & 1 \end{bmatrix}.

This is the matrix that swaps rows 11 and 22 when multiplied on the left.

Checkpoint

Suppose BB is obtained from AA by first doing R2←R2+R1R_2 \leftarrow R_2 + R_1, then R3←2R3R_3 \leftarrow 2R_3. Write BB as a product involving AA.

Name the two row-operation matrices in the order they act.

Solution · Guided solution

Let E1E_1 be the row-operation matrix for R2←R2+R1R_2 \leftarrow R_2 + R_1, and let E2E_2 be the row-operation matrix for R3←2R3R_3 \leftarrow 2R_3. Since E1E_1 acts first and E2E_2 acts second,

B=E2E1A.B = E_2E_1A.

Checkpoint

Let β1,β2≠0\beta_1,\beta_2\ne 0. Suppose BB is obtained from a five-row matrix AA by the chain R3←R3+α1R1R_3\leftarrow R_3+\alpha_1R_1, then R2←β1R2R_2\leftarrow\beta_1R_2, then R1↔R4R_1\leftrightarrow R_4, then R3←R3+α2R2R_3\leftarrow R_3+\alpha_2R_2, then R1←β2R1R_1\leftarrow\beta_2R_1. Write the single matrix GG such that B=GAB=GA.

Apply the same operations to I5I_5, remembering that later operations use the current rows, not the original rows.

Solution · Guided solution

Applying the operations to I5I_5 gives

G=[000β200β1000α1α2β11001000000001].G= \begin{bmatrix} 0&0&0&\beta_2&0\\ 0&\beta_1&0&0&0\\ \alpha_1&\alpha_2\beta_1&1&0&0\\ 1&0&0&0&0\\ 0&0&0&0&1 \end{bmatrix}.

The entry α2β1\alpha_2\beta_1 is the main point. The operation R3←R3+α2R2R_3\leftarrow R_3+\alpha_2R_2 occurs after row 22 has already been scaled to β1R2\beta_1R_2, so the contribution from the original row 22 is α2β1R2\alpha_2\beta_1R_2.

Checkpoint

For the matrix GG in the previous exercise, suppose D=GCD=GC. Write the matrix HH such that C=HDC=HD.

Reverse the row operations in reverse order.

Solution · Guided solution

The inverse chain is

G→R1←1β2R1→R3←R3−α2R2→R1↔R4→R2←1β1R2→R3←R3−α1R1I5.G \xrightarrow{R_1\leftarrow\frac1{\beta_2}R_1} \xrightarrow{R_3\leftarrow R_3-\alpha_2R_2} \xrightarrow{R_1\leftrightarrow R_4} \xrightarrow{R_2\leftarrow\frac1{\beta_1}R_2} \xrightarrow{R_3\leftarrow R_3-\alpha_1R_1} I_5.

Therefore

H=[0001001β10000−α21−α101β2000000001].H= \begin{bmatrix} 0&0&0&1&0\\ 0&\frac1{\beta_1}&0&0&0\\ 0&-\alpha_2&1&-\alpha_1&0\\ \frac1{\beta_2}&0&0&0&0\\ 0&0&0&0&1 \end{bmatrix}.

This is G−1G^{-1}, so D=GCD=GC implies C=HDC=HD.

This page builds on 2.2 Augmented matrices and row operations and 3.2 Matrix multiplication, identity matrices, and linear systems. Continue to 3.6 Block matrices for the final Chapter 3 note. It prepares the algebraic row-reduction viewpoint used in 5.1 Invertible matrices and 7.2 Row operations, products, and invertibility.