Matrix Algebra: Operations and Inverses

Learn the algebra of matrices: how to add, multiply and transpose them, which familiar rules still hold and which break down. Find inverses with a formula and by row reduction, see why elementary matrices make the method work, and use the Invertible Matrix Theorem to connect invertibility with pivots, linear systems and linear transformations. Finish with block matrices and the LU factorization, the form in which computers actually solve large linear systems.

IntermediateLesson 3 of 9 in Linear Algebra 1 Course

What you will learn

  1. Use matrix notation; add, scale, multiply and transpose matrices; and know which rules of ordinary algebra carry over to matrices and which do not.
    • Read matrix notation and add and scale matrices
      Name the size and entries of a matrix, recognize the special matrices used throughout linear algebra, and add, subtract and scale matrices.
    • Multiply matrices
      Compute a product column by column and with the row–column rule, check whether a product is defined, and read a product as one transformation followed by another.
    • Use the properties of matrix products and powers
      Apply the rules that hold for matrix products, recognize the rules of ordinary algebra that fail, and compute powers of square matrices.
    • Transpose matrices and recognize symmetric matrices
      Form the transpose, use its rules (including the reversed order for products), and work with symmetric matrices and with row-times-column products of vectors.
  2. Decide when a square matrix has an inverse, compute it by formula or by row reduction, use the algebra of inverses to solve equations, and explain inversion with elementary matrices.
    • Understand the inverse and invert 2×2 matrices
      Define the inverse of a square matrix, invert 2×2 matrices with the formula, recognize singular matrices, and solve a system with the inverse.
    • Use the algebra of inverses to solve matrix equations
      Apply the rules for inverses of products, transposes and powers, and isolate an unknown matrix by multiplying on the correct side.
    • Find inverses with elementary matrices and row reduction
      Represent row operations as elementary matrices, explain why row reduction finds the inverse, and use the algorithm on [A I] to invert a matrix or show that it is singular.
  3. Connect invertibility with pivots, solutions of linear systems, linear independence, spanning and linear transformations through the Invertible Matrix Theorem, and use the theorem to decide and to argue.
    • State and apply the Invertible Matrix Theorem
      State the equivalent conditions for a square matrix to be invertible, explain why they hang together, and use whichever condition is easiest to check.
    • Recognize invertible linear transformations and one-sided inverses
      Decide when a linear transformation of ℝⁿ can be undone, find its inverse from the standard matrix, and use the theorem to argue about one-sided inverses and products.
  4. Partition matrices into blocks, add, transpose and multiply them block by block, and invert block-diagonal and block-triangular matrices.
    • Partition matrices and multiply them block by block
      Split a matrix into blocks, compute sums, transposes and products block by block when the partitions match, and write a product as a sum of column-times-row terms.
    • Invert block-diagonal and block-triangular matrices
      Find inverses of block-diagonal and block upper triangular matrices by solving block equations, and use block elimination and the Schur complement.
  5. Write a matrix as a product of a lower and an upper triangular matrix, use the factors to solve systems efficiently, and handle row exchanges with permutation matrices.
    • Solve linear systems with an LU factorization
      Explain what an LU factorization is, solve Ax = b with two triangular systems, and explain why factoring once pays off for many right-hand sides.
    • Compute an LU factorization by elimination
      Reduce a matrix to echelon form with row replacements, record the multipliers in L, check the result, and write the LDU form.
    • Handle row exchanges with permutation matrices
      Use permutation matrices to reorder rows, factor PA = LU when elimination needs row exchanges, and solve systems with the permuted factorization.

Matrix Algebra study guide

5 chapters

1

Matrix arithmetic and order

Matrix operations depend on both entries and shape. Reading a row or column correctly lets you combine data, compose transformations and recognize when a calculation is defined. Addition behaves much like vector arithmetic; multiplication introduces order, and transposing changes how rows and columns interact. Worked products and powers show where familiar number rules apply and where a matrix calculation needs a different step.

1.1 Matrix shapes and entrywise arithmetic

A matrix organizes numbers by position. Its shape matters as much as its entries: rows and columns usually represent different kinds of information.

Read positions and sizes

An m×n matrix has m rows and n columns. In aij, the first index names the row and the second names the column. For

A=[2−13041],

there are two rows and three columns, so the size is 2×3. The entry a13=3 is at the right of the first row; a21=0 begins the second row. Reversing the indices changes the position: a12=−1 but a21=0.

Each column has two entries and is a vector in ℝ2. Writing A=[𝐚1 𝐚2 𝐚3] treats the same array as three column vectors. Here 𝐚2=(−1,4), with the entries understood as a column. Two matrices are equal only when their shapes and all corresponding entries agree.

Recognize common shapes

A square matrix has the same number of rows and columns. Its main diagonal runs from top left to bottom right through a11,a22,…,ann. A diagonal matrix is square and has zeros everywhere off that diagonal. Its diagonal entries may themselves be zero.

The identity matrix In has ones on the main diagonal and zeros elsewhere. A zero matrix has only zero entries and may be rectangular. An upper triangular matrix has zeros below its main diagonal; a lower triangular matrix has zeros above it. Entries on the diagonal of a triangular matrix are not required to be one.

Combine corresponding entries

Addition requires equal sizes. Add the entries in matching positions; multiply every entry by a scalar to scale a matrix. Subtraction means adding the negative of the second matrix. With the matrix above and

B=[15−23−26],

we get

A+B=[341327],3A=[6−390123].

For A−2B, first scale every entry of B, then subtract:

A−2B=[0−117−68−11].

For instance, its second-row, second-column entry is 4−2(−2)=8. The parentheses keep the sign of the entry being subtracted visible. A 2×3 matrix cannot be added to a 3×2 matrix, even though both contain six entries.

Use familiar addition rules

Addition is commutative and associative: A+B=B+A and (A+B)+C=A+(B+C). Also A+0=A, r(A+B)=rA+rB, (r+s)A=rA+sA, and r(sA)=(rs)A. These statements follow entry by entry from number arithmetic.

Column combinations use exactly these operations. If A has columns 𝐚1,…,𝐚n, then A𝐱=x1𝐚1+⋯+xn𝐚n. This connects the notation to matrix multiplication: the entries of 𝐱 tell us how much of each column to use.

Key Takeaways

  • In aij, read the row index before the column index.
  • Add or subtract matrices only when their sizes agree.
  • A scalar multiplies every entry, including negative entries.
  • Identity, diagonal and triangular matrices are defined by the positions of their entries.

1.2 Matrix products and composition

Matrix multiplication combines whole rows and columns. It is designed so that one matrix can act on every column of another, or represent one linear transformation followed by another.

Check the inner sizes

If A is m×n and B is n×p, their product AB is m×p. The inner sizes must match; the outer sizes give the answer's shape. Thus (3×2)(2×3) gives a 3×3 matrix, while reversing those shapes gives 2×2. A 2×3 matrix times another 2×3 matrix is undefined.

If B=[𝐛1 ⋯ 𝐛p], then AB=[A𝐛1 ⋯ A𝐛p]. Each output column uses one column of B as weights for a combination of the columns of A.

Compute one entry at a time

The row–column rule is

(AB)ij=∑k=1naikbkj.

Move across row i of A and down column j of B. Multiply the matching pairs, then add. For

A=[123−104],B=[20−1135],

the top-left entry is 1(2)+2(1)=4. The entry in row 2, column 3 is 3(−1)+(−1)(5)=−8. Applying the same rule gives

AB=[4695−3−841220].

The reverse product is BA=[201019], a 2×2 matrix. Its different size follows from reversing the original dimensions.

The first column is also 2𝐚1+𝐚2=(4,5,4). The entry calculation and the column calculation are two views of the same definition. Multiplying entries in the same positions would give a different operation.

Match the meanings as well as the sizes

Suppose a bakery uses the ingredient matrix

R=[0.50.30.10.2].

Rows mean flour and sugar in kilograms; columns mean bread and cake batches. Let

Q=[201058]

record batches, with bread and cake as rows and Monday and Tuesday as columns. The shared inner labels are bread then cake, so RQ gives ingredient totals by day:

RQ=[11.57.432.6].

Monday's flour is 0.5(20)+0.3(5)=11.5 kg. Each product combines kilograms per batch with a number of batches. If the batch categories were listed in different orders, the numerical multiplication would combine the wrong quantities.

Read composition from right to left

In A(B𝐱)=(AB)𝐱, B acts first. Take B=[0−110], a 90° counterclockwise rotation, and A=[100−1], a reflection in the horizontal axis. Then

AB=[0−1−10],BA=[0110].

Rotating then reflecting gives a reflection in y=−x; reversing the actions gives a reflection in y=x. Order changes the map. Identity multiplication preserves a matrix: for an m×n matrix, ImA=A=AIn. The identity on each side has the size needed for that product.

Key Takeaways

  • For (m×n)(n×p), the output size is m×p.
  • Each entry of AB is a row–column dot product.
  • Each column of AB is A times the corresponding column of B.
  • In AB𝐱, the right-hand matrix acts first.
  • In data products, shared inner categories must agree in meaning and order.

1.3 Order, cancellation and powers

Matrices obey several familiar algebra rules, but multiplication has an order that cannot generally be changed. Keeping that order is the central habit in simplifying matrix expressions.

Regroup and distribute without reordering

Whenever the sizes allow the operations,

A(BC)=(AB)C,A(B+C)=AB+AC,(B+C)A=BA+CA.

The first rule is associativity: it changes which product is computed first. It does not move a factor. The two distribution rules keep the factor on the side where it started. A scalar can move between factors: r(AB)=(rA)B=A(rB).

For example, set A=[1101] and B=[1011]. Direct multiplication gives

AB=[2111],BA=[1112].

These products differ. Matrices commute when AB=BA, but that is a property of particular matrices, not a general rule.

Zero products and cancellation

For numbers, a zero product forces a zero factor. Matrices can behave differently. With

C=[1224],D=[2−4−12],

every row–column dot product in CD is zero, although neither matrix is zero. The columns of D are nonzero vectors that C sends to zero.

This also explains failed cancellation. A nonzero matrix may send two different inputs to the same output. From CX=CY, we get C(X−Y)=0; without more information, X−Y may be nonzero. If C has an inverse, multiplication on the left by C−1 does give X=Y.

Multiply to find powers

For a square matrix, Ak means k copies of A multiplied in order, and A0=I. The laws AjAk=Aj+k and (Aj)k=Ajk hold for nonnegative integer exponents. The repeated factor has to be square so that AA is defined.

For N=[1101], multiplication gives N2=[1201] and N4=[1401]. The upper-right entry grows by one with each multiplication by N, so Nk=[1k01]. Squaring each entry is not matrix squaring: [1234]2=[7101522].

Expand every product in its original order

Distributing twice gives

(A+B)2=A2+AB+BA+B2.

The middle terms combine to 2AB exactly when A and B commute. Also (AB)2=ABAB; moving the middle factors to make A2B2 needs a commutation rule.

Diagonal matrices of the same size do commute with each other. Their products and powers act separately on diagonal entries: diag⁡(2,−1)3=diag⁡(8,−1). For a general matrix, left multiplication by a diagonal matrix scales rows, while right multiplication scales columns. The side determines which index receives the scale factor.

Key Takeaways

  • Associativity changes grouping, not the order of factors.
  • Distribute on the left or right while keeping every factor on its original side.
  • A zero product can have nonzero matrix factors.
  • Cancel an invertible factor by using its inverse on the correct side.
  • A2 means AA, not entrywise squaring.
  • AB+BA=2AB exactly when A and B commute.

1.4 Transposes and symmetry

The transpose turns rows into columns. It links the two ways of reading a matrix and helps explain symmetry, dot products and outer products.

Switch the two indices

If A is m×n, its transpose AT is n×m and satisfies (AT)ij=aji. For example,

[123456]T=[142536].

The first row becomes the first column. Transposing a second time restores the original matrix: (AT)T=A. Addition and scalar multiplication pass through a transpose entry by entry: (A+B)T=AT+BT and (rA)T=rAT.

Reverse the order of a product

The product rule is

(AB)T=BTAT.

If A is m×n and B is n×p, then BTAT has size (p×n)(n×m)=p×m, just like (AB)T. The unreversed order may not even be defined. Matching sizes checks that the formula is possible; the row–column rule establishes that its entries agree.

For A=[120−1] and B=[3124], first compute AB=[79−2−4]. Its transpose is [7−29−4], exactly BTAT. The same reversal works for longer products: (ABC)T=CTBTAT.

Test symmetry across the diagonal

A symmetric matrix satisfies AT=A. It is square, and entries in reflected positions agree: aij=aji. Thus [2−10−135054] is symmetric. Being square alone is insufficient: a square matrix can have different upper-right and lower-left entries.

For any real matrix, ATA and AAT are symmetric. Indeed,

(ATA)T=AT(AT)T=ATA.

Their sizes can differ. For A=[123401], ATA=[10141421] is 2×2, whereas AAT=[511211254241] is 3×3. Each has mirrored off-diagonal entries, but they are different matrices.

Distinguish two vector products

Treat 𝐱 and 𝐲 in ℝn as n×1 columns. Then 𝐱T𝐲 has size 1×1 and is their dot product. The outer product 𝐱𝐲T has size n×n, with entry xiyj.

For 𝐱=(1,2,−1) and 𝐲=(3,0,4),

𝐱T𝐲=3+0−4=−1,𝐱𝐲T=[304608−30−4].

Write the dimensions before multiplying if the transpose placement is hard to track. It decides whether the output is a number or a matrix. It also connects independence statements: the rows of A are independent exactly when the columns of AT are independent.

Key Takeaways

  • Transposing exchanges row and column indices.
  • The transpose of a product reverses the order of its factors.
  • A symmetric matrix is square and equals its transpose.
  • ATA and AAT are symmetric, possibly of different sizes.
  • 𝐱T𝐲 is a number; 𝐱𝐲T is an outer-product matrix.
2

Inverses and matrix equations

An inverse reverses a square matrix’s action and gives a direct way to describe the solution of a linear system. A small formula handles 2×2 matrices, while row reduction works in any size. Algebra with inverses also solves equations whose unknown is itself a matrix. Tracking the side of each multiplication connects these methods and explains why the row operations used to build an inverse must act on both augmented blocks.

2.1 What an inverse undoes

An inverse undoes multiplication by a square matrix. It turns an equation with a matrix coefficient into an explicit solution, provided that the matrix is invertible.

Define an inverse by its products

An n×n matrix A is invertible if some C satisfies CA=In and AC=In. We write C=A−1. An invertible matrix is also called nonsingular; a square matrix with no inverse is singular. A rectangular matrix cannot have an inverse that works on both sides.

The inverse is unique. If B and C both undo A, then

B=BI=B(AC)=(BA)C=IC=C.

Associativity lets the adjacent inverse pair simplify without changing factor order. The notation A−1 names this unique matrix; it does not mean take the reciprocal of every entry.

Invert a 2×2 matrix

For A=[abcd], calculate ad−bc. This number is the determinant of a 2×2 matrix. If it is nonzero,

A−1=1ad−bc[d−b−ca].

Swap the diagonal entries, change the signs of the off-diagonal entries, then scale the whole matrix by 1/(ad−bc). For A=[2513], the denominator is 2(3)−5(1)=1, so

A−1=[3−5−12].

Checking the product gives AA−1=[6−5−10+103−3−5+6]=I2. For [4322], the denominator is 2, giving [1−3/2−12]. The scale factor applies to every entry.

If ad−bc=0, there is no inverse. For [2436], the second column is twice the first. The nonzero vector (2,−1) maps to zero. That loss of information prevents an inverse from recovering every input.

Solve a system with the inverse

For invertible A, multiply A𝐱=𝐛 on the left by A−1 to get 𝐱=A−1𝐛. This works for every 𝐛 and gives exactly one solution. Substitution verifies existence: A(A−1𝐛)=𝐛. Any solution must equal A−1𝐛 after the same multiplication, proving uniqueness.

For the first matrix above, solve 2x1+5x2=1 and x1+3x2=2:

𝐱=[3−5−12][12]=[−73].

The original equations give −14+15=1 and −7+9=2. Checking in the original system catches both inversion and multiplication errors.

Keep the side explicit

There is no general matrix division operation. Write A−1B or BA−1 to show which multiplication you mean. Entrywise reciprocals do not undo the mixing of coordinates performed by a matrix. For large numerical systems, elimination or LU solves the system with less work than explicitly constructing the entire inverse; the inverse formula remains useful for small calculations and algebraic reasoning.

Key Takeaways

  • An inverse undoes its square matrix on both sides and is unique.
  • A 2×2 matrix is invertible exactly when ad−bc≠0.
  • In the inverse formula, swap the diagonal, negate the off-diagonal and scale every entry.
  • For invertible A, A𝐱=𝐛 has the unique solution A−1𝐛.
  • Check a proposed inverse by multiplying to obtain the identity.

2.2 Equations with matrix factors

Solving matrix equations means multiplying by inverses on chosen sides. The familiar idea of undoing an operation still works, but the side and the order must stay visible.

Undo a product in reverse order

For invertible square matrices,

(AB)−1=B−1A−1.

To check the formula, multiply: (AB)(B−1A−1)=A(BB−1)A−1=I. The inverse next to B cancels it first, leaving the pair involving A. The pattern extends to (ABC)−1=C−1B−1A−1.

For A=[2513] and B=[1101], AB=[2714]. Its inverse is [4−7−12], which equals B−1A−1. The unreversed product is [3−8−13] and does not undo AB.

Other useful rules are

(A−1)−1=A,(AT)−1=(A−1)T,(rA)−1=1rA−1 (r≠0).

For a positive integer k, (Ak)−1=(A−1)k=A−k. The scalar rule needs a nonzero scalar because scaling an entire matrix to zero destroys invertibility.

Isolate the unknown on its own side
EquationOperationResult
AX=CMultiply on the left by A−1X=A−1C
XA=CMultiply on the right by A−1X=CA−1
AXB=CMultiply on the left by A−1 and right by B−1X=A−1CB−1

Each operation is applied to both sides of the equation. A factor cancels only when its inverse is adjacent in the product after valid regrouping.

Using the same A and C=[1021], AX=C has solution X=[−7−532]. But XA=C has solution X=[3−55−8]. Those are different equations, even though they use the same two known matrices.

Collect a repeated unknown

For X=AX+B, bring the terms with X together:

X−AX=B,(I−A)X=B.

The identity appears because X=IX. If I−A is invertible, the solution is X=(I−A)−1B. A scalar 1 cannot replace the identity in the expression I−A. For a repeated unknown on the other side, factor on that side: X−XA=X(I−A).

Recognize what inverses do not distribute over

An inverse of a sum is not generally a sum of inverses. Take A=B=I: then (A+B)−1=12I, but A−1+B−1=2I. Also, two invertible matrices can have a singular sum: I+(−I)=0.

Invertibility does behave well under products: products of invertible matrices are invertible. For square factors of the same size, invertibility of AB also forces both factors to be invertible. This supports cancellation when the factor being removed has a verified inverse.

Key Takeaways

  • The inverse of a product reverses the factor order.
  • Multiply on the left to undo a left factor and on the right to undo a right factor.
  • AXB=C gives X=A−1CB−1 when the outside factors are invertible.
  • Factor X−AX as (I−A)X.
  • Inversion does not distribute over addition.
  • Transposing an inverse gives the inverse of the transpose.

2.3 The inverse recorded by row operations

Row reduction can find an inverse of any size. Elementary matrices explain why the operations applied beside a matrix record exactly the inverse being built.

Turn one row operation into a matrix

An elementary matrix is obtained by applying one row operation to an identity matrix. The operation may replace a row by itself plus a multiple of another row, interchange two rows, or scale a row by a nonzero number.

For example,

E=[100010−401]

comes from R3←R3−4R1 applied to I3. Multiplying any matrix with three rows on the left by E performs that same row replacement. The inverse of E adds 4R1 back to row 3. A swap undoes itself; scaling by c≠0 is undone by scaling by 1/c. Every elementary matrix is therefore invertible. Multiplication on the right acts on columns instead, so the side matters.

Reduce both blocks together

Start with [A  I] and apply each row operation to the entire augmented row. If the left side becomes I, the right side is A−1:

[A  I]∼[I  A−1].

If the left block has fewer than n pivots for an n×n matrix, it cannot become In, and A is singular. A zero row in the left block after elimination is evidence of this, even if the corresponding right-block row is nonzero.

Follow a 3×3 example

Take A=[110121012]. Begin with

[110100121010012001].
  1. Apply R2←R2−R1. Row 2 becomes (0,1,1∣−1,1,0).
  2. Apply R3←R3−R2 using the new row 2. Row 3 becomes (0,0,1∣1,−1,1).
  3. Apply R2←R2−R3. Row 2 becomes (0,1,0∣−2,2,−1).
  4. Apply R1←R1−R2. Row 1 becomes (1,0,0∣3,−2,1).

The left side is now the identity, so

A−1=[3−21−22−11−11].

Stopping after forward elimination would leave entries above pivots and would not yet produce the inverse. Multiplication checks the result; for example, row 1 of A dotted with column 1 of this answer is 3−2=1, and with column 2 it is −2+2=0.

Explain the recorded operations

If the row operations correspond in order to E1,…,Ek, their combined effect is Ek⋯E1A=I. Thus the combined matrix is A−1. Applying it to the identity produces the right block. Reversing the operations gives A=E1−1⋯Ek−1, so an invertible matrix is a product of elementary matrices.

The same procedure handles several right-hand sides: [A  B]∼[I  X] solves AX=B. Each column of B is a separate system with the same coefficient matrix. For a singular example, eliminating in [121253132] produces rows (0,1,1) twice, then a zero row; only two pivots remain, so no inverse exists.

Read the inverse column by column

The identity block is I=[𝐞1 ⋯ 𝐞n], where 𝐞j has a one in position j and zeros elsewhere. Its first column asks for the solution of A𝐱=𝐞1, its second asks for A𝐱=𝐞2, and so on. Those solutions become the columns of A−1. In the worked example, the first inverse column is (3,−2,1). Multiplying by A gives (3−2,3−4+1,−2+2)=(1,0,0). This explains why an inverse calculation can solve all the identity right-hand sides in one reduction: they share exactly the same operations on the coefficient matrix.

Key Takeaways

  • An elementary matrix performs one row operation through left multiplication.
  • Every elementary matrix is invertible by reversing its row operation.
  • Apply each operation to both blocks of [A  I].
  • Read the inverse only when the left block is exactly I.
  • Fewer than n left-block pivots means a square matrix is singular.
  • The same reduction with several right-hand sides solves AX=B.
3

Equivalent tests for invertibility

Invertibility can be recognized through equations, columns, pivots or transformations. These views are connected by one theorem for square matrices, allowing a quick observation to replace a long inverse calculation. Following the links between the conditions also gives short proofs about products and one-sided inverses. Geometric examples show what an invertible map preserves and what goes wrong when different inputs collapse to one output.

3.1 Equivalent tests for square matrices

Many questions about a square matrix have the same answer. The Invertible Matrix Theorem connects them, so one well-chosen check can settle several properties at once.

State the equivalent conditions

For an n×n matrix A, all the following statements are equivalent:

  • A is invertible.
  • A is row equivalent to In and has n pivot positions.
  • A𝐱=𝟎 has only the trivial solution.
  • The columns of A are linearly independent.
  • The map 𝐱↦A𝐱 is one-to-one.
  • A𝐱=𝐛 has a solution for every 𝐛∈ℝn.
  • The columns of A span ℝn.
  • The map 𝐱↦A𝐱 is onto ℝn.
  • There is an n×n matrix C with CA=I.
  • There is an n×n matrix D with AD=I.
  • AT is invertible.

Here equivalent means all are true or all are false for the particular square matrix. You may prove the easiest condition instead of calculating an inverse.

Use pivots to connect the statements

In a square matrix, n pivots give a pivot in every column and every row. Every column having a pivot removes free variables, so the homogeneous system has only the zero solution and the columns are independent. Every row having a pivot makes A𝐱=𝐛 consistent for every right-hand side, so the columns span the output space.

A left inverse also forces the homogeneous condition: if CA=I and A𝐱=0, then 𝐱=CA𝐱=0. A right inverse gives a solution for every right-hand side: if AD=I, then D𝐛 solves A𝐱=𝐛. These are links between tests, not separate algorithms to run on every matrix.

Choose an efficient test

For A=[213435−21−4], the replacements R2−2R1 and R3+R1 leave lower rows (0,1,−1) and (0,2,−1). Then R3−2R2 gives (0,0,1). There are three pivots. We now know that A is invertible, its columns are independent and span ℝ3, and every right-hand side has a unique solution.

Inspection can be faster. In [1230112−11], column 3 is column 1 plus column 2. The nonzero vector (1,1,−1) therefore solves the homogeneous equation, and the matrix is singular. A zero column, repeated columns or a zero row can also settle singularity immediately.

An upper or lower triangular square matrix is invertible exactly when every diagonal entry is nonzero. With all diagonal entries nonzero, they supply the full set of pivots.

Check the square hypothesis

For a 3×2 matrix, independent columns need not span ℝ3. The matrix [100100] gives a one-to-one map whose outputs all have third coordinate zero. Conversely, a 2×3 matrix may span its output space while having dependent columns. The square shape is what lets the row and column pivot requirements become equivalent.

Key Takeaways

  • For a square matrix, every condition in the Invertible Matrix Theorem has the same truth value.
  • Full pivot coverage links independence, spanning, unique solvability and invertibility.
  • Choose an easy test such as a visible column dependence or a triangular diagonal.
  • The full theorem requires a square matrix.

3.2 Reversible transformations and one-sided inverses

An invertible transformation loses no input information and can reach every output. Its inverse is a linear transformation represented by the inverse of its standard matrix.

Undo a map in both directions

For T:ℝn→ℝn, an inverse S satisfies S(T(𝐱))=𝐱 and T(S(𝐱))=𝐱 for every vector. If T(𝐱)=A𝐱, then T is invertible exactly when A is invertible, and T−1(𝐱)=A−1𝐱.

A 90° counterclockwise rotation has matrix [0−110]. A 90° clockwise rotation, with matrix [01−10], undoes it. A horizontal shear [1301] adds three times the second coordinate to the first; [1−301] subtracts it again. Reflection in y=x swaps coordinates and is its own inverse.

Identify information loss

Projection onto the horizontal axis has matrix [1000]. Both (2,5) and (2,−1) become (2,0). An inverse could not know which input to return. Points off the axis are also unreachable. The map is neither one-to-one nor onto, and its matrix is singular.

For maps from ℝn to the same ℝn, one-to-one, onto and invertible are equivalent. For different input and output dimensions, they can separate. The map (x1,x2)↦(x1,x2,0) is one-to-one from ℝ2 to ℝ3, but is not onto ℝ3.

Use a one-sided inverse for square matrices

If A and B are both n×n and AB=I, then BA=I as well. For any 𝐛, A(B𝐛)=𝐛. Thus A reaches every output, so the Invertible Matrix Theorem makes it invertible. Multiplying AB=I on the left by A−1 gives B=A−1. One product check is therefore sufficient for a proposed inverse of a square matrix.

The same shortcut fails for rectangular matrices. Let A=[10] and B=[10]. Then AB=I1, but BA=[1000], not I2. The rectangular maps undo one composition without undoing the other.

Build a short argument about products

Suppose square matrices A,B have invertible product AB. If B𝐱=0, then AB𝐱=0. Invertibility of the product forces 𝐱=0. The homogeneous condition in the theorem makes B invertible. Now A=(AB)B−1 is a product of invertible matrices and is invertible too.

This proof uses the homogeneous equation because the implication is easy to follow. A transformation question may instead be easiest through one-to-one or onto behavior. Start with the property the available evidence directly supports, then use the theorem to obtain the rest.

Key Takeaways

  • The inverse transformation has standard matrix A−1.
  • For a map from ℝn to itself, one-to-one and onto each imply invertibility.
  • A projection loses input information and cannot be inverted.
  • For square matrices, one inverse product equal to I is enough.
  • An invertible square product has invertible square factors.
4

Computing with blocks

Partitioning a matrix lets a large calculation be organized around smaller pieces. The same row–column rule still applies, but the shapes and order of the blocks need care. Zero and identity blocks can save work, while inverse blocks can be found by solving equations. Moving from individual pivots to block pivots leads to the Schur complement, which records what remains after eliminating a whole block of entries.

4.1 Products arranged in blocks

A large matrix can be divided into smaller matrices called blocks. The entries stay where they were; the partition simply lets us organize the calculation around useful pieces such as identity and zero blocks.

Partition and check block sizes

Take

A=[102101−132100].

Split after row 2 and column 2. Then A11=I2, A12=[21−13], A21=[2 1] and A22=[0 0]. The top blocks have two rows; the bottom blocks have one. Blocks in a partition need not all be square or the same size.

Add and scale block by block when the overall sizes and partitions match. To multiply, the column widths of the left matrix must match the row heights of the right matrix. Then the ordinary row–column rule applies to blocks:

(AB)ij=∑kAikBkj.

Keep the left matrix's block on the left of each product. Blocks are matrices and generally do not commute.

Multiply using the partition

Let B=[1201301−1] and split it into the two blocks B1=[1201] and B2=[301−1]. Their heights match the column widths in A.

The top block of the product is

A11B1+A12B2=[1201]+[7−10−3]=[810−2].

The bottom block is A21B1+A22B2=[2 5]+[0 0]=[2 5]. Therefore AB=[810−225]. The identity and zero blocks remove some arithmetic without changing the multiplication rule.

Expand as column-times-row terms

Another partition treats A as columns 𝐚k and B as rows 𝐛kT. It gives

AB=∑k=1n𝐚k𝐛kT.

Each term is an m×p outer product. For example,

[1234][5678]=[561518]+[14162832]=[19224350].

Each term uses one column from the left factor and the matching row from the right factor. Their sum collects every contribution to every output entry.

Transpose both levels

The block transpose is

[ABCD]T=[ATCTBTDT].

The block positions exchange across the diagonal, and the entries inside each block exchange too. Merely moving the blocks leaves their internal shapes wrong. Block calculations help organize large computations and exploit structure; choosing one-column blocks in the right factor recovers AB=[A𝐛1 ⋯ A𝐛p].

Key Takeaways

  • Block multiplication needs matching inner partitions.
  • Use the row–column rule with blocks while preserving factor order.
  • Zero and identity blocks can simplify the arithmetic.
  • A column–row expansion sums outer products of matching columns and rows.
  • Transpose each block as well as its position.

4.2 Inverse blocks and the Schur complement

A block inverse depends on the arrangement of the blocks. Diagonal structure lets separate inverses stay separate; an off-diagonal block creates an extra correction term.

Invert independent diagonal blocks

For square blocks A and B,

[A00B]−1=[A−100B−1]

exactly when both diagonal blocks are invertible. Multiplication produces AA−1 and BB−1 on the diagonal, with zeros elsewhere. For blocks A=[2513] and B=[5], use A−1=[3−5−12] and B−1=[1/5].

Find the corner of a triangular inverse

If M=[AC0D] with square invertible diagonal blocks, then

M−1=[A−1−A−1CD−10D−1].

To derive the corner, write the inverse as [XYZW] and impose MM−1=I. The bottom row gives DZ=0 and DW=I, so Z=0 and W=D−1. The top-left equation gives X=A−1. The remaining equation is AY+CD−1=0; multiply on the left by A−1 to get Y=−A−1CD−1. This keeps the product order required by the equation.

For A=[2111], C=[1031] and D=[1201],

A−1=[1−1−12],D−1=[1−201].

First A−1C=[−2−152]. Multiplying by D−1 and negating gives the corner [2−3−58]. The full inverse places these three computed blocks in their corresponding positions, with a zero bottom-left block.

Eliminate a nonzero lower-left block

For M=[ABCD] with A invertible, subtract CA−1 times the first block row from the second. In matrix form,

[I0−CA−1I]M=[AB0S],S=D−CA−1B.

The new lower-right block S is the Schur complement of A. The lower-left block vanishes because C−CA−1A=0. The block operation is reversible: change its minus sign to a plus sign. Consequently M is invertible exactly when S is invertible, with the invertibility of A already assumed.

For scalar blocks A=[2], B=[4], C=[1] and D=[3], the complement is [3−1(1/2)4]=[1], so the full matrix is invertible. Do not invert every block of a general full block matrix separately. The blocks interact through products, and the triangular inverse formula requires square diagonal blocks and their inverses.

Verify the full inverse by blocks

In the worked triangular example, assemble the result as

M−1=[1−12−3−12−58001−20001].

Checking the corner can be much shorter than checking all sixteen entries separately. The product's upper-right block is AY+CD−1. Here AY=[−12−35] and CD−1=[1−23−5], so their sum is zero. The two diagonal blocks multiply to identities and the lower-left block stays zero. These four block equations verify the whole inverse.

A nonzero solution of S𝐯=0 shows directly how invertibility can fail. Set 𝐮=−A−1B𝐯 and combine the two blocks into the column [𝐮mathbfv]. Its top output block is A𝐮+B𝐯=0; its bottom output block is C𝐮+D𝐯=(D−CA−1B)𝐯=S𝐯=0. Because 𝐯≠0, the combined input is nonzero. The full square matrix therefore has a nontrivial homogeneous solution and is singular, just as the Schur test predicts.

Key Takeaways

  • Invert a block-diagonal matrix by inverting its square diagonal blocks.
  • The upper-right inverse block is −A−1CD−1 for [AC0D].
  • Derive inverse blocks from the equations obtained by multiplying to get I.
  • With A invertible, the Schur complement is D−CA−1B.
  • Block elimination is reversible and reduces the invertibility test to the remaining diagonal block.
  • General block inversion is not entrywise block inversion.
5

Elimination saved as triangular factors

Elimination can be saved as triangular factors and reused whenever a system’s right-hand side changes. The lower factor records elimination multipliers, and the upper factor holds the reduced equations. Two substitution passes then recover a solution. Permutation matrices account for row exchanges, including those chosen to improve numerical behavior, and a diagonal factor separates the pivots when an LDU form is useful.

5.1 Two triangular systems for one solution

An LU factorization separates a matrix into two triangular factors. Once those factors are known, each new system with the same coefficient matrix needs only two substitution passes.

Interpret the factors

In A=LU, L is unit lower triangular: its diagonal entries are one and its entries above the diagonal are zero. For an m×n matrix, L has size m×m and U has size m×n and is an echelon form of A. For a square matrix, U is upper triangular.

To solve A𝐱=𝐛, set 𝐲=U𝐱. Then solve

L𝐲=𝐛first,U𝐱=𝐲second.

The lower system uses forward substitution, starting at the top row. The upper system uses back substitution, starting at the bottom. The intermediate vector 𝐲 is the right-hand side of the second solve.

Work through both passes

Let

L=[100210−131],U=[21101−1002],𝐛=[394].

Forward substitution gives:

  1. y1=3.
  2. 2y1+y2=9, so y2=3.
  3. −y1+3y2+y3=4, so y3=−2.

Now solve upward through U𝐱=(3,3,−2):

  1. 2x3=−2 gives x3=−1.
  2. x2−x3=3 gives x2=2.
  3. 2x1+x2+x3=3 gives x1=1.

Thus 𝐱=(1,2,−1). The original matrix is LU=[211431−22−2]. Multiplying it by the answer gives (3,9,4). Solving U𝐱=𝐛 directly would skip the effect of L and solve a different system.

Reuse the expensive work

The elimination that constructs L,U depends on A alone. A new right-hand side changes the two substitution passes, not the factors. This is useful when one structure is analyzed under several loads or one model is solved for several input vectors.

A flop counts one addition, subtraction, multiplication or division. For dense n×n matrices, factorization takes about 23n3 flops, while forward and back substitution together take about 2n2. At n=1000, these are about 6.7×108 once and 2×106 per right-hand side. Forming the inverse takes about 2n3 flops, and multiplying that inverse by each new vector still costs about 2n2.

For sparse matrices, many entries are zero. Their factors often retain useful sparsity, whereas the inverse is usually full. Factor-based solves can therefore save storage as well as arithmetic.

Notice a failed diagonal solve

A square triangular matrix is invertible exactly when all diagonal entries are nonzero. A zero diagonal in square U means that A is singular. The triangular systems may then have no solution or free variables, depending on the right-hand side; do not divide by zero in a substitution formula.

Key Takeaways

  • An LU factorization separates elimination from solving for a right-hand side.
  • Solve L𝐲=𝐛 forward, then U𝐱=𝐲 backward.
  • Reuse the same factors when only 𝐛 changes.
  • Dense factorization costs about 2n3/3 flops; two triangular solves cost about 2n2.
  • A zero diagonal entry in square U means A is singular.

5.2 Multipliers and diagonal pivots

Elimination builds the upper factor directly. The lower factor records the multipliers needed to undo those row replacements, so it can be assembled during the same computation.

Store each elimination multiplier

When no row exchanges are needed, use row replacements of the form

Ri←Ri−ℓijRj,

with a pivot row above the row being changed. The multiplier is the entry being removed divided by the pivot. Put ℓij in position (i,j) of L, put ones on its diagonal, and zeros above it. The final echelon matrix is U.

For

A=[24−249−3−2−37],

the first pivot is 2. Use ℓ21=4/2=2 and ℓ31=−2/2=−1. The operations give

R2−2R1=(0,1,1),R3+R1=(0,1,5).

The second pivot is now 1. Use ℓ32=1 to obtain R3−R2=(0,0,4). Hence

L=[100210−111],U=[24−2011004].

To check LU=A, its third row is minus row 1 of U plus row 2 plus row 3: (−2,−4,2)+(0,1,1)+(0,0,4)=(−2,−3,7).

Keep the sign convention straight

The factor L stores the multiplier being subtracted. The operation R3+R1 means R3−(−1)R1, so its stored multiplier is −1. Copying the coefficient of an addition description gives the opposite sign. At each stage, dividing the pivot column from the pivot downward by that pivot gives the next column of L, beginning with its diagonal one.

If Ep⋯E1A=U records the elimination, then A=E1−1⋯Ep−1U. That product of inverse replacement matrices is L. Their triangular structure and order explain why the recorded multipliers rebuild the original matrix.

Separate the pivots into a diagonal factor

For invertible square A=LU, put the nonzero pivots of U in D and divide each row of U by its pivot. The resulting U1=D−1U is unit upper triangular, and A=LDU1.

In the example,

D=diag⁡(2,1,4),U1=[12−1011001].

Here A is symmetric and U1=LT, giving A=LDLT. A singular matrix can have a zero diagonal in U, so row normalization by those entries may fail.

Decide whether exchanges are needed

For invertible square matrices, elimination without exchanges succeeds exactly when every upper-left k×k submatrix is invertible. In that case the unit-lower LU factorization is unique. But [0213] is invertible and has no such LU: u11=0 would force the entry ℓ21u11 to be zero, although the original entry is one. A row exchange resolves this obstacle through a permutation factor.

Check each reconstructed row

For the worked factors, row 2 of LU is 2R1(U)+R2(U)=(4,8,−4)+(0,1,1)=(4,9,−3). This calculation uses the second row of L as weights on the rows of U. A negative entry in L simply gives a negative row weight; it is not a second instruction to reverse a sign.

The leading-submatrix condition also explains why invertibility of the whole matrix is insufficient for no-swap LU. Eliminating within the first k rows and columns must supply its first k nonzero pivots without borrowing a row from below that block. Its triangular form has those pivots on the diagonal. A singular leading block prevents that sequence, even if a later row can provide the missing pivot after an exchange. Test the early pivot positions before committing to a no-exchange factorization.

Key Takeaways

  • L records the multiplier in Ri←Ri−ℓijRj.
  • Build U by elimination and check LU=A.
  • The diagonal of L is one; its entries above the diagonal are zero.
  • LDU separates the nonzero pivots from U into a diagonal matrix.
  • For symmetric invertible A with this factorization, A=LDLT.
  • An invertible matrix can still need row exchanges before LU.

5.3 Row permutations in an LU solve

A zero in a needed pivot position can be a problem with the row order. A permutation matrix records row exchanges and lets the triangular-factor method continue.

Represent a row order

A permutation matrix is an identity matrix with its rows reordered. It has one one in every row and column and zeros elsewhere. Left multiplication by P reorders a matrix's rows in the same way. There are n! such matrices of size n.

Permutation matrices satisfy P−1=PT, since PTP=I. A single row swap is its own inverse, but a general permutation need not be. With exchanges included, write

PA=LU,A=PTLU.

Every square matrix has a factorization with a permutation, unit lower triangular L and upper triangular U. A singular matrix's upper factor has a zero diagonal; factorization alone does not guarantee a unique solution.

Handle a later row exchange

Let A=[121243372]. The operations R2−2R1 and R3−3R1 leave rows (0,0,1) and (0,1,−1). The second pivot position is zero, so exchange these rows. This is recorded by

P=[100001010].

The resulting factorization is

L=[100310201],U=[12101−1001].

The first-column multipliers in L are now 3 then 2. When a swap occurs partway through elimination, swap the already stored multiplier entries in those rows as well. Future columns are still filled as elimination proceeds. Multiplication verifies that LU gives the reordered rows PA.

Permute the right-hand side too

Multiplying A𝐱=𝐛 by P gives LU𝐱=P𝐛. Solve L𝐲=P𝐛 forward, then U𝐱=𝐲 backward.

For 𝐛=(4,9,12) in the example, P𝐛=(4,12,9). Forward substitution gives y1=4, y2=12−3(4)=0 and y3=9−2(4)=1. Back substitution gives x3=1, x2=1 and x1=1. The original matrix times (1,1,1) is (4,9,12). Leaving 𝐛 in its original order would pair equations with the wrong constants.

Choose a useful numerical pivot

Software usually exchanges rows even before encountering an exact zero. At step k, partial pivoting chooses an entry of largest absolute value in column k among rows k through n and moves its row into the pivot position. The resulting elimination multipliers have absolute value at most one.

For a candidate pivot 0.0001 with 1 below it, proceeding without a swap gives multiplier 10,000. Swapping selects 1 as the pivot and reduces the multiplier to 0.0001. Large multipliers can magnify rounding errors; partial pivoting avoids this particular source of large intermediate values. The permutation remains part of the factorization and must be used in every solve.

Undo a row order that is not a single swap

Consider P=[010001100]. It sends the rows into the order 2, 3, 1, so P𝐛=(b2,b3,b1). Applying this same permutation a second time gives (b3,b1,b2), which has not restored the original order. Instead, PT selects rows 3, 1, 2 and reverses the original cycle. Thus PT(P𝐛)=𝐛.

This distinction matters when a library returns several exchanges combined into one permutation. In PA=LU, apply P to the constants to solve the reordered equations; use PT when reconstructing the original matrix from the factors. A single swap hides the distinction because its matrix happens to equal its transpose.

Key Takeaways

  • Left multiplication by P reorders rows, and P−1=PT.
  • Use PA=LU and reconstruct A=PTLU.
  • Solve with P𝐛 as the first right-hand side.
  • Swap previously stored multipliers when elimination exchanges rows later.
  • Partial pivoting selects the largest absolute candidate in the current column at or below the pivot row.
  • Factorization with a permutation does not by itself guarantee invertibility.

Matrix Algebra examples

5 Walkthroughs

1

Compute while keeping shapes and order visible

18 steps
Build sums, products, powers and transposes, with checks that catch changes in shape or factor order.
  1. 1
    IntroductionStart with what the array means

    A matrix is both an array of entries and a rule for combining coordinates. To calculate with it, track its shape before using its numbers.

    We will build a product from individual dot products, interpret its factor order, and then use the same attention to order for powers and transposes.

  2. 2
    ExplanationRead the row before the column

    In A=[30−2154], the size is 2×3: two rows, three columns.

    The entry a23=4 sits in row 2, column 3. The second column is (0,5), a vector in ℝ2. A column has one entry per row, so the number of rows determines the space containing the columns.

  3. 3
    ExampleScale before subtracting

    Let B=[120−132]. For the same A, compute A−2B by scaling every entry of B and subtracting matching positions:

    A−2B=[1−4−23−10].

    The entry in row 2, column 1 is 1−2(−1)=3. Keeping the negative entry in parentheses protects the subtraction sign.

  4. 4
    ChallengeCan these arrays be combined?

    A matrix C has size 2×3 and D has size 3×2. Is C+D defined? What about 2C?

    ---reveal---

    The sum is undefined because corresponding row and column positions do not match. Having six entries each is insufficient. The scalar multiple 2C is defined and remains 2×3 because each entry is doubled without changing its position.

  5. 5
    ExplanationPredict the product shape

    For A of size 3×2 and B of size 2×2, the inner dimensions agree, so AB has size 3×2.

    Each column of B has two entries. It can therefore weight the two columns of A. The result has three entries, and there is one output column for each column of B. This explains both the inner-size check and the output size.

  6. 6
    ExampleBuild the first output column

    Use A=[120−131] and B=[211−2].

    The first column of B is (2,1), so the first output column is 2𝐚1+𝐚2=(4,−1,7). Entry by entry, the top entry is 1(2)+2(1)=4 and the bottom entry is 3(2)+1(1)=7.

    The middle entry uses row 2: 0(2)+(−1)(1)=−1. This is the same middle coordinate obtained from the weighted columns.

  7. 7
    ExampleFinish the second column

    The second column of B is (1,−2). Use those weights on the columns of A:

    𝐚1−2𝐚2=(−3,2,1).

    Put the two output columns in the same order as the columns of B:

    AB=[4−3−1271].

    Each output entry includes a sum of products. Multiplying entries in matching array positions would miss those sums.

    For this column, the three row calculations are 1−2(2)=−3, 0−2(−1)=2, and 3−2(1)=1. Negative weights subtract an entire column.

  8. 8
    ConnectionThe right factor acts first

    Suppose B shears a point and A reflects the result. The output is A(B𝐱)=(AB)𝐱.

    To find the order, begin at the vector and work outward. The factor touching 𝐱 acts first. For a data product, the same shared dimension connects the categories being combined: columns of the left factor must match rows of the right factor in both meaning and order.

  9. 9
    ChallengeMultiply in a new shape

    Let C=[2−1] and D=[314−2]. Find CD.

    ---reveal---

    The product has size 1×2. Its first entry is 2(3)−1(4)=2; its second is 2(1)+(−1)(−2)=4. Thus CD=[2 4]. The second entry uses the second column of D, not its second row.

  10. 10
    Key InsightRegrouping keeps the sequence

    Associativity gives A(BC)=(AB)C. It lets us choose which adjacent pair to calculate first, but the factors remain in the order A,B,C.

    Distribution also preserves position: (A+B)C=AC+BC. A factor on the right stays on the right in both terms. Swapping factors requires evidence that they commute; matching square sizes alone is not enough.

  11. 11
    ExampleA matrix square mixes entries

    For N=[1201], calculate N2=NN:

    N2=[1401].

    The upper-right entry is 1(2)+2(1)=4. Repeated multiplication gives Nk=[12k01] for nonnegative integers. A power repeats the transformation; it does not raise each entry separately.

  12. 12
    ChallengeKeep both mixed products

    For square matrices C,D, expand (C+D)2 without assuming that they commute. When can the mixed terms be combined?

    ---reveal---

    The expansion is C2+CD+DC+D2. The middle terms equal 2CD exactly when CD=DC. Associativity cannot switch DC into CD; it only changes parentheses around factors already in order.

  13. 13
    TipCheck the factor before canceling

    A nonzero matrix can send a nonzero vector to zero. Thus A(C−D)=0 may hold with C−D≠0, and cancellation from AC=AD can fail.

    If A is invertible, left multiply by A−1. The adjacent pair simplifies to I and gives C=D. The useful condition is an inverse, not merely a nonzero entry somewhere in A.

  14. 14
    ExplanationTranspose rows into columns

    For C=[1−20345],

    CT=[13−2405].

    The size changes from 2×3 to 3×2. A second transpose restores C. For a product, the rule is (CD)T=DTCT: transpose the factors and reverse their order. With rectangular factors, the unreversed product may not even have matching inner dimensions.

    Here c23=5 moves to (CT)32=5: the old row number becomes the new column number, and the old column number becomes the new row number.

  15. 15
    Key InsightSymmetry has a product test

    A matrix is symmetric when CT=C. Entries mirror across the main diagonal, so a symmetric matrix must be square.

    Every real matrix gives symmetric products CTC and CCT. Indeed, (CTC)T=CT(CT)T=CTC. If C is 2×3, these products are 3×3 and 2×2. Symmetry does not make them equal.

  16. 16
    ChallengeA number or a matrix?

    Let 𝐱=(2,−1) and 𝐲=(1,3) be columns. Find 𝐱T𝐲 and 𝐱𝐲T.

    ---reveal---

    The dot product is 2(1)−1(3)=−1, a scalar. The outer product is [26−1−3], a 2×2 matrix. Moving the transpose changes the shapes of the factors and the type of output.

  17. 17
    ChallengeCombine size and transpose rules

    If C is 4×2 and D is 2×3, express (CD)T as a product of transposes and give its size.

    ---reveal---

    It is DTCT, with size (3×2)(2×4)=3×4. This matches the transpose of the 4×3 product CD. The order CTDT would have inner dimensions 4 and 3, so it is undefined.

  18. 18
    RecapUse shape, position and order

    For sums, align corresponding positions. For products, match inner dimensions and use row–column dot products. Powers repeat multiplication, and a transpose reverses the order of factors.

    These checks answer different questions: shape tells you whether an operation exists, while the entry rule tells you its value. When simplifying, keep each factor in place unless a specific commutation or inverse rule permits the next step.

2

Build and use an inverse

15 steps
Find a small inverse, isolate an unknown matrix and follow the row operations that construct an inverse in larger sizes.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionUndo an action with a matrix
  2. 2
    ExplanationUse the two-sided identity
  3. 3
    ExampleApply the 2×2 formula
  4. 4
    ExampleUse the inverse to solve
  5. 5
    ChallengeCan this action be undone?
  6. 6
    ExplanationChoose the side that cancels
  7. 7
    Key InsightUndo the latest action first
  8. 8
    ChallengeCollect the unknown correctly
  9. 9
    TipDo not distribute an inverse over a sum
  10. 10
    ExplanationRecord operations beside the matrix
  11. 11
    ExampleEliminate below the first pivot
  12. 12
    ExampleClear above the second pivot
  13. 13
    ChallengeDiagnose an unfinished inverse
  14. 14
    ChallengeA missing pivot changes the conclusion
  15. 15
    RecapRead the result only after the check
3

Decide invertibility without computing an inverse

10 steps
Use pivots, columns and transformations to choose an efficient test and justify conclusions about square matrices.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionUse the evidence you already have
  2. 2
    ExplanationPivots connect rows and columns
  3. 3
    ExampleSee dependence without reducing
  4. 4
    ChallengeRead an upper triangular matrix
  5. 5
    Key InsightRectangular shapes separate the tests
  6. 6
    ExampleA shear keeps recoverable information
  7. 7
    ExplanationOne identity product settles the square case
  8. 8
    ChallengeTest the rectangular shortcut
  9. 9
    ChallengeReason backward from a product
  10. 10
    RecapChoose a short route through the theorem
4

Calculate with blocks

11 steps
Use compatible partitions, outer-product expansion and block equations to organize products and inverses.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTreat a block as a small matrix
  2. 2
    ExplanationMatch the internal boundaries
  3. 3
    ExampleUse an identity block
  4. 4
    ConnectionOne shared index gives one outer product
  5. 5
    ChallengeTranspose the whole partition
  6. 6
    ExplanationStart with independent diagonal blocks
  7. 7
    ExampleDerive the corner equation
  8. 8
    ChallengeCompute a scalar-block inverse
  9. 9
    ExplanationEliminate an entire block
  10. 10
    ChallengeUse elimination to test invertibility
  11. 11
    RecapLet the block equation set the order
5

Factor once and solve with LU

17 steps
Record multipliers, solve both triangular systems, and keep row permutations consistent when pivoting is needed.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionSave what elimination does
  2. 2
    ExplanationSolve the lower system first
  3. 3
    ExampleForward substitution builds y
  4. 4
    ExampleBack substitution recovers x
  5. 5
    ChallengeIdentify the skipped solve
  6. 6
    Key InsightReuse the preparation
  7. 7
    ExplanationStore what is subtracted
  8. 8
    ExampleEliminate the first column
  9. 9
    ExampleFinish and reconstruct
  10. 10
    ChallengeCatch a multiplier sign error
  11. 11
    ConnectionPull out the diagonal pivots
  12. 12
    ExplanationA row order can remove a zero pivot
  13. 13
    ExampleMove the constants with their equations
  14. 14
    TipKeep earlier multipliers with the row
  15. 15
    ChallengeSelect a partial-pivoting row
  16. 16
    ChallengePut the full solve in order
  17. 17
    RecapFactors preserve elimination and row order

Matrix Algebra practice questions

50 Practice Questions in 5 sets

Set 1: Choosing inverse rules and keeping row order10 Practice Questions

Question 1 of 10

For C=[2−413] and D=[−1205], what is C+D?
  1. [−2−8015]
  2. [1−218]
  3. [3−61−2]
  4. [1−208]
Show answerHide answer
Answer: B
Add entries in matching positions: 2+(−1)=1, −4+2=−2, 1+0=1 and 3+5=8. The lower-left entry remains 1 because adding zero leaves it unchanged. A zero there would confuse addition with multiplication, where a zero factor would make that entrywise product zero.

Question 2 of 10

For C=[1301], what is C3?
  1. [3903]
  2. [1901]
  3. [1601]
  4. [12701]
Show answerHide answer
Answer: B
Multiplying two copies gives an upper-right entry of 6; multiplying by a third adds another 3, giving 9. The diagonal entries stay one in each product. The value 27 cubes the individual entry 3, but a matrix power repeats row–column multiplication instead of entrywise powers.

Question 3 of 10

For what value of t does [t632] have no inverse?
  1. t=18
  2. t=9
  3. t=3
  4. t=−9
Show answerHide answer
Answer: B
The inverse denominator is 2t−18. It vanishes when t=9, making the matrix singular. Setting t=18 stops before dividing the equation 2t=18 by two; the diagonal contribution is the product 2t, not t alone.

Question 4 of 10

With C invertible, how do you solve XC=D for X?
  1. X=D−1C
  2. X=CD−1
  3. X=DC−1
  4. X=C−1D
Show answerHide answer
Answer: C
Multiply both sides on the right by C−1 to obtain XCC−1=DC−1, and the adjacent pair becomes the identity. Thus X=DC−1. Multiplication on the left would not place C−1 next to the right-side coefficient C and cannot justify C−1D as the answer.

Question 5 of 10

A square 4×4 matrix has a column equal to twice another column. How many solutions can its homogeneous system have?
  1. No solutions, including no zero solution.
  2. Exactly one, the zero solution.
  3. Exactly two, the zero vector and one other.
  4. Infinitely many, including a nonzero solution.
Show answerHide answer
Answer: D
The column relation gives a nonzero vector of coefficients that maps to zero, so the homogeneous system has a nontrivial solution. Every scalar multiple of that vector is also a solution, giving infinitely many. The zero vector always solves a homogeneous system, so dependence cannot make the system inconsistent.

Question 6 of 10

For T(x1,x2)=(x1−5x2,x2), what is the inverse map?
  1. T−1(y1,y2)=(y1+5y2,y2)
  2. T−1(y1,y2)=(y1−5y2,y2)
  3. T−1(y1,y2)=(y1,y2+5y1)
  4. T−1(y1,y2)=(y1/5,y2)
Show answerHide answer
Answer: A
The second coordinate is unchanged, so recover x2=y2 and then solve y1=x1−5y2 to obtain x1=y1+5y2. Repeating the minus sign would apply the original shear again. The inverse must add back the contribution subtracted from the first coordinate.

Question 7 of 10

For scalar blocks in M=[26t9], for what t does block elimination leave a singular Schur complement?
  1. t=6
  2. t=−3
  3. t=3/2
  4. t=3
Show answerHide answer
Answer: D
The top-left block [2] is invertible, so subtracting t/2 times row 1 from row 2 leaves lower-right entry 9−(t/2)6=9−3t. Setting the Schur complement to zero gives 9−3t=0, then 3t=9 and t=3. The value 3/2 comes from using 9−6t, which omits the inverse of the pivot block and therefore subtracts the wrong row multiple.

Question 8 of 10

The dense LU factorization cost is approximately 2n3/3 and a pair of triangular solves costs 2n2. What happens to these leading costs when n triples?
  1. Factorization ×27; each solve pair ×9.
  2. Factorization ×9; each solve pair ×27.
  3. Factorization ×3; each solve pair ×3.
  4. Factorization ×9; each solve pair ×6.
Show answerHide answer
Answer: A
Replacing n by 3n multiplies a cubic term by 33=27 and a quadratic term by 32=9. The constants 2/3 and 2 do not change those ratios. Giving both stages the same factor misses that factorization and substitution grow at different rates.

Question 9 of 10

For A=[48−21], what diagonal matrix D occurs in its no-swap LDU1 factorization?
  1. D=diag⁡(1,5)
  2. D=diag⁡(4,1)
  3. D=diag⁡(4,5)
  4. D=diag⁡(4,−3)
Show answerHide answer
Answer: C
The first-column multiplier is −2/4=−1/2, so elimination adds half of row 1 to row 2: (−2,1)+(2,4)=(0,5). Thus U=[4805] and D=diag⁡(4,5) stores its pivots. Using the original diagonal 4,1 misses the updated pivot 1−(−1/2)8=5; the diagonal factor is built after elimination, not from the original entries.

Question 10 of 10

Let P=[010001100] and PA=LU. For 𝐛=(2,7,−4), what is the right-hand side in the first triangular solve?
  1. (−4,2,7)
  2. (2,7,−4)
  3. (7,2,−4)
  4. (7,−4,2)
Show answerHide answer
Answer: D
Multiply by P in the stated order: its first row selects b2, its second selects b3, and its third selects b1. Thus solve L𝐲=(7,−4,2). The vector (−4,2,7) uses the reverse permutation PT, which is not the same as P for this three-cycle.
Set 2: Shapes, products and the first inverse checks10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

In M=[6−3247−1], what is m23?
  1. −1
  2. 2
  3. 4
  4. 7
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

If C is 5×3 and D is 3×2, what is the size of CD?
  1. 3×3
  2. 2×5
  3. 5×3
  4. 5×2
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

For C=[2−11302], what is CTC?
  1. [51110]
  2. [4−2−29]
  3. [51114]
  4. [5−1−114]
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What is the inverse of C=[5221]?
  1. [1/51/21/21]
  2. [5−2−21]
  3. [1−2−25]
  4. [1225]
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

What elementary matrix performs R2←R2−6R1 on a matrix with two rows by left multiplication?
  1. [10−61]
  2. [1−601]
  3. [1061]
  4. [−6001]
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

For what values of t is C=[1420t−3500t+2] invertible?
  1. t≠−2 only
  2. t≠−3 and t≠2
  3. t≠3 and t≠−2
  4. t≠3 only
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A 3×5 matrix is split into column blocks of widths 1 and 4. How should a 5×2 right factor be split into row blocks for block multiplication?
  1. Heights 1 and 4, in that order.
  2. Heights 2 and 3, in that order.
  3. Heights 4 and 1, in that order.
  4. Heights 3 and 2, in that order.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

What is the upper-right entry of [41203]−1?
  1. −12
  2. 1/12
  3. 1
  4. −1
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Let L=[10−31], U=[2405] and A=LU. What solves A𝐱=(6,−8)?
  1. 𝐱=(7,2)
  2. 𝐱=(−1,2)
  3. 𝐱=(3,10)
  4. 𝐱=(31/5,−8/5)
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

What are the three subdiagonal multipliers (ℓ21,ℓ31,ℓ32) for elimination without swaps on [330682−315]?
  1. (2,1,2)
  2. (2,−1,2)
  3. (2,−1,1/2)
  4. (2,−1,1/8)
Show answerHide answer

Save this lesson to see this answer.

Set 3: Compositions, reductions and reusable factors10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A material-use matrix is R=[0.40.60.20.1] kg per batch, with rows for two ingredients and columns for two products. A run makes 12 batches of the first product and 7 of the second. What ingredient masses are needed?
  1. (9.0,1.9) kg
  2. (7.4,7.9) kg
  3. (9.0,3.1) kg
  4. (6.6,5.5) kg
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Let C=[1000] and D=[1234]. What is (C+D)2−C2−D2?
  1. [2060]
  2. [2400]
  3. [1234]
  4. [2230]
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

If C has size 6×2, what is the size of CT?
  1. 2×6
  2. 6×6
  3. 2×2
  4. 6×2
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

For A=[2111], what is the unique solution of A𝐱=(11,7)?
  1. (4,3)
  2. (11,−4)
  3. (18,25)
  4. (3,4)
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

For invertible square C,D, solve CXD=C+D for X and simplify.
  1. X=D−1+C−1
  2. X=C−1D−1
  3. X=CD−1+C−1D
  4. X=(C+D)−1
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

For a dense matrix, use the estimates 2n3/3 for one factorization and 2n2 per right-hand side. What is the total leading cost of factoring once and solving for k right-hand sides?
  1. 23kn3+2kn2
  2. 2n3+2kn2
  3. 23n3+2kn2
  4. 23n3+2n2
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Square A,B satisfy AB=I. What argument establishes BA=I without calculating BA entry by entry?
  1. The equation AB=I makes A,B symmetric, so BA=I.
  2. A(B𝐛)=𝐛 for all 𝐛 makes A onto; then B=A−1.
  3. A nonzero entry in each factor permits cancellation; then B=A−1.
  4. Associativity permits swapping the factors, so AB=BA=I.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

What is the second column-times-row term in [2−134][521−3]?
  1. [104156]
  2. [−143−12]
  3. [9719−6]
  4. [−134−12]
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An LU factorization has already been computed for a dense invertible 80×80 matrix. Using the leading cost estimate, how many flops are needed for the two triangular solves for one new right-hand side?
  1. 25,600
  2. 12,800
  3. 6,400
  4. 341,333 approximately
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Before swapping rows 2 and 3 at the second elimination step, the saved first-column multipliers are ℓ21=−2 and ℓ31=5. What must these saved entries become after the swap?
  1. ℓ21=−2, ℓ31=5
  2. ℓ21=−5, ℓ31=2
  3. ℓ21=2, ℓ31=−5
  4. ℓ21=5, ℓ31=−2
Show answerHide answer

Save this lesson to see this answer.

Set 4: Combining algebra, block structure and pivoting10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

For A=[−234−1] and B=[1−2−35], what is 2A−3B?
  1. [−10−113]
  2. [−71217−17]
  3. [−5911−11]
  4. [−70−1−17]
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Let R=[0−110] rotate by 90° counterclockwise, and S=[1201] shear horizontally. What is the image of (2,−3) after the shear followed by the rotation?
  1. (3,−4)
  2. (7,2)
  3. (−3,4)
  4. (−4,−3)
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Let A=[1−100] and B=[1212]. What are AB and BA?
  1. AB=[1−11−1],BA=0
  2. AB=0,BA=[1−11−1]
  3. AB=0,BA=0
  4. AB=[1−200],BA=0
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

For invertible A,B and nonzero scalar r, simplify ((rAB)T)−1.
  1. 1r(B−1)T(A−1)T
  2. r(A−1)T(B−1)T
  3. 1r(A−1)T(B−1)T
  4. 1rA−1B−1
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A square 5×5 matrix has five pivot positions. What is its reduced row echelon form?
  1. diag⁡(5,5,5,5,5)
  2. I5
  3. diag⁡(1,1,1,1,0)
  4. 05×5
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Block rows have heights 2 and 1; block columns have widths 1 and 3 in M=[ABCD]. What is the size and position of the block made from B in MT?
  1. It is 2 × 3 in the lower-left position.
  2. It is 1 × 2 in the upper-right position.
  3. It is 3 × 2 in the lower-left position.
  4. It is 3 × 2 in the upper-right position.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

For A=[1101], C=[0110] and D=[2001], what is the upper-right block of [AC0D]−1?
  1. [−1/211/20]
  2. [0−1/2−11]
  3. [1−1−10]
  4. [1/2−1−1/20]
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Row reducing [A  B] for invertible A gives [I  C]. What equation does C solve?
  1. BC=A
  2. CB=A
  3. AC=B
  4. CA=B
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

For U=[36−30−24005], what unit upper triangular factor U1 satisfies U=DU1 with D diagonal?
  1. [12−101−2001]
  2. [32−10−2−2005]
  3. [12−1012001]
  4. [1−3−3/5014/5001]
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

At step 3 of partial pivoting, column 3 contains entries 9,−8,0.01,−4,3 in rows 1–5. Which row is selected as the pivot row?
  1. Row 2, whose column entry is −8.
  2. Row 1, whose column entry is 9.
  3. Row 5, whose candidate entry is 3.
  4. Row 4, whose candidate entry is −4.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Proofs, parameters and linked computations10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

In the convention Ri←Ri−ℓijRj, what multiplier is stored for R4←R4+7R2?
  1. ℓ24=−7
  2. ℓ42=−7
  3. ℓ24=7
  4. ℓ42=7
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An invertible 2×2 matrix A has columns 𝐚1,𝐚2. What matrix B gives AB=[𝐚1+2𝐚2  3𝐚1−𝐚2]?
  1. [31−12]
  2. [123−1]
  3. [132−1]
  4. [21−13]
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A nonzero square matrix A satisfies A2=0. What is the inverse of I−3A?
  1. I+3A
  2. I+9A
  3. I−3A
  4. I−9A
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

For real symmetric matrices A,B, what additional condition is necessary and sufficient for AB to be symmetric?
  1. AB=BA
  2. A2=B2
  3. AB=−BA
  4. A+B=B+A
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

The inverse of A is [2−3−12]. What solves A𝐱=(4,−2)?
  1. (2,0)
  2. (10,−16)
  3. (14,−8)
  4. (8,−4)
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Let C be invertible and X satisfy CXC−1=D. What is X2 in terms of C,D?
  1. C−2D2C2
  2. CD2C−1
  3. C−1DC−1DC
  4. C−1D2C
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Row operations represented in order by E1,E2,E3 reduce invertible A to I. What expression gives A as a product of elementary inverses?
  1. A=E1E2E3
  2. A=E3E2E1
  3. A=E1−1E2−1E3−1
  4. A=E3−1E2−1E1−1
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A square matrix A has a right-hand side 𝐛0 for which A𝐱=𝐛0 has no solution. What follows about its homogeneous system?
  1. It has nonzero solutions as well as zero.
  2. It has one unique nonzero solution.
  3. It has only the zero solution.
  4. It has no solution, including zero.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Square A,B have invertible product AB. What formula for A−1 uses only B and the given inverse (AB)−1?
  1. B−1(AB)−1
  2. B(AB)−1
  3. (AB)−1B−1
  4. (AB)−1B
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Let M=[I2BCD] with B=[1201], C=[2011] and D=[341t]. For what t is M invertible?
  1. t≠1
  2. t≠0
  3. t≠−3
  4. t≠3
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

69 Key Terms, each with its definition

A

Associativity
Associativity of matrix multiplication allows adjacent factors to be regrouped while their original order is preserved.
Computing (AB)C or A(BC) gives the same matrix whenever the product is defined.
Augmented matrix
An augmented matrix places arrays side by side with aligned rows so one sequence of row operations acts on all blocks.
In [A  I], the left block is reduced while the right block records the combined row operations.

B

Back substitution
Back substitution solves an upper triangular system from the bottom row up, reusing the values already found.
The last row of U𝐱=𝐲 gives the last unknown before earlier rows are solved.
Block elimination
Block elimination removes a block of entries using an invertible pivot block and reversible operations on whole block rows.
Eliminating the lower-left block leaves the Schur complement as the new lower-right block.
Block matrix
A block matrix is a matrix split into smaller rectangular arrays by row and column boundaries.
Splitting after row 2 and column 3 makes a top-left block with two rows and three columns.
Block transpose
A block transpose exchanges block rows and columns while transposing each individual block’s entries as well.
A 2×3 off-diagonal block becomes a 3×2 block on the opposite side of the block diagonal.
Block upper triangular matrix
A block upper triangular matrix has zero blocks below its block diagonal; its square diagonal blocks control invertibility.
The upper-right block of a block upper triangular matrix’s inverse couples both diagonal-block inverses through the original upper-right block.
Block-diagonal matrix
A block-diagonal matrix has square blocks on its block diagonal and zero blocks everywhere off that diagonal.
Two independent square systems can be combined into one block-diagonal system with separate inverse blocks.

C

Cancellation
Cancellation removes a common matrix factor using a suitable inverse on the correct side.
From AX=AY with A invertible, multiply on the left by A−1 to conclude X=Y.
Column view of multiplication
The column view writes each column of AB as A times the matching column of B.
For B=[𝐛1 𝐛2], compute the two columns A𝐛1 and A𝐛2.
Column–row expansion
A column–row expansion expresses a product as a sum of outer products using each left column and the matching right row.
The term 𝐚2𝐛2T contributes the second shared-index contribution to every product entry.
Commuting matrices
Commuting matrices are matrices whose two product orders are defined and give the same result, so AB equals BA.
Diagonal matrices of the same size commute, but two general square matrices may give different products.
Compatible block partitions
Compatible block partitions match the left factor’s column-block widths to the right factor’s row-block heights.
A column split of widths 2 and 3 matches a right factor split into row blocks of heights 2 and 3.
Composition
A composition applies one map and then another; in AB, the map B acts first.
A reflection applied after a rotation has the reflection matrix on the left of the rotation matrix.

D

Diagonal matrix
A diagonal matrix is a square matrix with zeros off the main diagonal; its diagonal entries can be any numbers.
The matrix diag⁡(3,0,−2) is diagonal even though one diagonal entry is zero.
Distributivity
Distributivity expands a product involving a matrix sum, preserving the side and order of the factor multiplying that sum.
The rule (A+B)C=AC+BC keeps C on the right in both terms of the expansion.
Dot product
A dot product of two equal-length columns is the scalar obtained by multiplying matching coordinates and adding them.
For 𝐱=(1,3) and 𝐲=(2,−1), the dot product is 2−3=−1.

E

Elementary matrix
An elementary matrix is obtained from an identity matrix by one row replacement, row swap or nonzero row scaling.
Left multiplication by the elementary matrix for R2←R2−3R1 performs that replacement.
Elimination multiplier
An elimination multiplier is the current entry below a pivot divided by that pivot, used in a subtractive row replacement.
An entry −6 below pivot 3 gives multiplier −2 and replacement Ri+2Rj.
Equivalent conditions
Equivalent conditions are statements that have the same truth value, so proving or disproving one settles the others.
For square matrices, showing the columns are independent also establishes that they span the output space.

F

Flop
A flop is one floating-point arithmetic operation, such as an addition, subtraction, multiplication or division.
Dense LU factorization takes about 2n3/3 flops, compared with about 2n2 per pair of solves.
Forward substitution
Forward substitution solves a lower triangular system from the top row down, reusing the values already found.
Once y1 is known, substitute it into row 2 of L𝐲=𝐛 to find y2.

I

Identity matrix
An identity matrix is a square matrix with diagonal entries one and all other entries zero; it preserves compatible products.
The identities in I2A=AI3=A have different sizes when A has two rows and three columns.
Inverse matrix
An inverse matrix of a square matrix A is the unique matrix that gives the identity when multiplied with A on either side.
The matrix [1−201] undoes the shear [1201].
Inverse product rule
The inverse product rule says that a product of invertible matrices is inverted by inverting the factors in reverse order.
The identity (ABC)−1=C−1B−1A−1 keeps each inverse next to the factor it must undo.
Invertible matrix
An invertible matrix is a square matrix with an inverse, so it maps each input to an output that can be uniquely reversed.
For invertible A, the equation A𝐱=𝐛 has one solution for every 𝐛.
Invertible Matrix Theorem
The Invertible Matrix Theorem gives equivalent tests for a square matrix using inverses, pivots, systems, columns and maps.
Three pivots in a 3×3 matrix establish both independent columns and a solution for every right-hand side.
Invertible transformation
An invertible transformation has an inverse map that restores each input and output when composed in either order.
A clockwise rotation reverses the corresponding counterclockwise rotation and restores every vector.

L

LDLᵀ factorization
An LDLᵀ factorization writes a symmetric matrix as a unit lower triangular factor, a diagonal factor and the transpose of the first.
For symmetric invertible A with LU without swaps, the normalized upper factor equals LT.
LDU factorization
An LDU factorization separates an LU factorization into unit triangular outer factors and a diagonal factor of nonzero pivots.
Dividing each row of U by its pivot gives U1 and the factorization A=LDU1.
Leading square submatrix
A leading square submatrix is an upper-left k × k block formed from the first k rows and the first k columns.
An invertible matrix has LU without swaps exactly when every leading square submatrix is invertible.
Left multiplication
Left multiplication places a matrix factor before an expression and must be applied on that same side to both sides of an equation.
To isolate X in AX=C, left multiply by A−1 and preserve the order A−1C.
Lower triangular matrix
A lower triangular matrix has zeros above its main diagonal.
The lower factor in an LU factorization is triangular and has ones along its main diagonal.
LU factorization
An LU factorization writes a matrix as a unit lower triangular factor L times an echelon-form factor U.
For square nonsingular systems, the factors allow one forward solve followed by one backward solve.

M

Main diagonal
The main diagonal of a square matrix consists of entries whose row and column indices match, running from top left to bottom right.
In a 3×3 matrix, the main diagonal contains a11,a22,a33.
Matrix entry
A matrix entry is a number at one row and column position, named with the row index first in the notation aᵢⱼ.
In a23, the first index selects row 2 and the second selects column 3 of the matrix.
Matrix equation
A matrix equation states equality between matrix expressions and can have an unknown matrix with several columns.
In AXB=C, recover X by undoing the left and right factors on their respective sides.
Matrix power
A positive matrix power repeats a square matrix product; its zeroth power is the identity.
For a shear matrix, A3 applies the shear three times; it does not cube each individual entry.
Matrix product
A matrix product AB applies A to each column of B; A’s column count must equal B’s row count.
A 4×2 factor times a 2×3 factor gives a 4×3 product.
Matrix size
A matrix’s size gives its number of rows followed by its number of columns.
The array has two horizontal rows and three vertical columns, so its size is 2×3.

N

Negative matrix power
A negative integer power of an invertible matrix is a positive power of its inverse.
To calculate A−2, first find A−1 and then multiply that inverse by itself.
Nonsingular matrix
A nonsingular matrix is a square matrix that has a two-sided inverse.
A triangular square matrix with no zero on its diagonal is nonsingular and supports unique triangular solves.

O

One-sided inverse
A one-sided inverse gives an identity in one product order; for square matrices of the same size, it is also a two-sided inverse.
A rectangular row times a column may give I1 even when their reverse product is not I2.
One-to-one transformation
A one-to-one transformation sends different inputs to different outputs, so no two distinct inputs share an image.
A shear is one-to-one because its opposite shear recovers the unique input from every output.
Onto transformation
An onto transformation reaches every vector in its stated output space, so every target vector has at least one preimage.
Projection onto an axis is not onto ℝ2 because points off that axis are never outputs.
Outer product
An outer product multiplies a column x by a row yᵀ, giving entry xᵢyⱼ in position (i, j).
A column with three entries times a row with two entries gives an outer product of size 3×2.

P

Partial pivoting
Partial pivoting chooses a largest absolute entry in the current column at or below the pivot row.
Swapping a pivot 0.001 with an entry 2 below it avoids using the large multiplier 2000.
Permutation matrix
A permutation matrix is an identity matrix with reordered rows, containing exactly one one in each row and column.
Left multiplication by P reorders the equations and requires the same reordering of the constants.
Pivot position
A pivot position is an entry location corresponding to a leading entry in an echelon form, used to track independent constraints.
A square matrix with one pivot missing cannot be reduced to the identity and has no inverse.
Pivoted LU factorization
A pivoted LU factorization writes PA = LU, recording row exchanges in a permutation matrix before the triangular factors.
Recover the original matrix with A=PTLU, since PT reverses the row permutation.

R

Row equivalence
Row equivalence means that one matrix can be transformed into another by a finite sequence of elementary row operations.
A square matrix is row equivalent to the identity exactly when the original matrix has an inverse.
Row interchange
A row interchange exchanges two entire rows of a matrix and is reversed by exchanging the same two rows again.
A row interchange in [A  I] must exchange the corresponding entries across both blocks.
Row replacement
A row replacement adds a multiple of one row to another, leaving the other rows unchanged.
The replacement R3←R3+2R1 is reversed by R3←R3−2R1.
Row scaling
A row scaling multiplies every entry in one row by the same nonzero number and is reversed by its reciprocal scaling.
Scaling a row by 3 is undone by multiplying the updated row by 1/3, including augmented entries.
Row–column rule
The row–column rule computes one product entry by multiplying matching row and column entries and adding the results.
The first entry of a product of [2 −1] and (3,4) is 2(3)−1(4)=2.

S

Scalar multiple
A scalar multiple is a matrix formed by multiplying every entry by the same number.
Multiplying a data matrix by 0.5 halves each entry while preserving its row and column labels.
Schur complement
A Schur complement of an invertible block A in [[A, B], [C, D]] is D − CA⁻¹B, the block left after eliminating C.
With A invertible, testing the Schur complement for invertibility settles the full block matrix.
Singular matrix
A singular matrix is a square matrix with no inverse, so at least one of the Invertible Matrix Theorem conditions fails.
Two proportional columns make a square matrix singular because a nonzero column combination gives zero.
Spanning columns
Spanning columns are columns whose linear combinations fill the entire stated output space, making every output reachable.
When an n×n matrix has spanning columns in ℝn, its transformation is onto.
Sparse matrix
A sparse matrix is a matrix with mostly zero entries, whose pattern can allow computations to avoid storing or using many zeros.
An inverse is often full even when the original matrix is sparse, so storing factors can save space.
Square matrix
A square matrix has the same number of rows and columns.
A 3×3 array is square, while an array with three rows and two columns is rectangular.
Symmetric matrix
A symmetric matrix is a square matrix that equals its transpose, with equal entries reflected across the main diagonal.
The matrix [233−1] is symmetric because its off-diagonal entries match.

T

Transpose
A transpose exchanges a matrix’s rows and columns, placing entry aᵢⱼ in position (j, i).
Transposing a 2×4 matrix produces a 4×2 matrix, with each original row now a column.
Trivial solution
The trivial solution of a homogeneous linear system is the vector whose coordinates are all zero, which always solves the system.
If A𝐱=0 has only the trivial solution for square A, the matrix is invertible.

U

Unit triangular matrix
A unit triangular matrix is triangular with every main diagonal entry equal to one.
The factor L in an LU factorization is unit lower triangular and needs no diagonal scaling to solve.
Upper triangular matrix
An upper triangular matrix has zeros below its main diagonal.
Elimination of entries below the pivots in a square matrix produces an upper triangular matrix.

Z

Zero matrix
A zero matrix is a matrix whose entries are all zero, with a specified size that may be square or rectangular.
The sum of a 2×3 matrix and its negative is the 2×3 zero matrix.
Zero product
A zero product is a matrix product whose entries are all zero, even though neither matrix factor need be zero.
A nonzero column of B can be sent to zero by A, allowing AB=0 with nonzero factors.

#

2×2 determinant
The determinant of a 2 × 2 matrix with rows (a, b) and (c, d) is the number ad − bc, which tests its invertibility.
For [4121], the determinant is 4(1)−1(2)=2.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started