High school Β· MathematicsAbout 120 minutes
MathematicsHigh schoolAbout 120 minutes

Represent a system of linear equations as a single matrix equation AX = B in a vector variable

Several sessions: instruction, modeled examples, independent practice and a written explanation. Every solution in every example was substituted back into the original equation before it was written down; students are expected to do the same.

Ohio learning standards this draft targets

math-2017:A.REI.8

Read the standard text

math-2017:A.REI.8 Represent a system of linear equations as a single matrix equation in a vector variable.

Provisional targets. Clause-by-clause educational review is still pending.

Section 1 Β· LearnLearn the idea
The coefficient matrix A = [[2, 3], [1, βˆ’1]] times the column vector X = [x, y] gives the column [2x + 3y, x βˆ’ y]; setting it equal to B = [8, βˆ’1] states both equations at once. With X = [1, 2] the product is [2 + 6, 1 βˆ’ 2] = [8, βˆ’1], which equals B, so (1, 2) is the solution.The coefficient matrix A = [[2, 3], [1, βˆ’1]] times the column vector X = [x, y] gives the column [2x + 3y, x βˆ’ y]; setting it equal to B = [8, βˆ’1] states both equations at once. With X = [1, 2] the product is [2 + 6, 1 βˆ’ 2] = [8, βˆ’1], which equals B, so (1, 2) is the solution.AX = B for the system 2x + 3y = 8, x βˆ’ y =βˆ’1Row of ARow times XEntry of BEquation[2 3]2x + 3y82x + 3y = 8[1 βˆ’1]x βˆ’ yβˆ’1x βˆ’ y = βˆ’1check with X =[1, 2]2(1) + 3(2) = 8;1 βˆ’ 2 = βˆ’1[8, βˆ’1]AX = B, so (1,2) solves thesystem
The coefficient matrix A = [[2, 3], [1, βˆ’1]] times the column vector X = [x, y] gives the column [2x + 3y, x βˆ’ y]; setting it equal to B = [8, βˆ’1] states both equations at once. With X = [1, 2] the product is [2 + 6, 1 βˆ’ 2] = [8, βˆ’1], which equals B, so (1, 2) is the solution.

Learning goal: Represent a system of linear equations as a single matrix equation AX = B, where A is the coefficient matrix, X is a column vector variable holding the unknowns and B is the column vector of constants; translate in both directions between a system and its matrix equation; and verify a proposed solution by matrix multiplication.

Scope note. A.REI.8 is marked (+) in Ohio's Learning Standards for mathematics, which Ohio uses to indicate a standard "for students who are planning on taking advanced courses". It is taught here in full, as extension content for students on that path.

Why write a system as one equation. A system such as 2x + 3y = 8 and x βˆ’ y = βˆ’1 is two equations in two unknowns. A matrix equation packs all of it into one statement, AX = B, with one unknown, the vector X. The payoff is conceptual and practical: the whole system becomes a single object that can be manipulated the way a linear equation ax = b is manipulated, and the next lesson uses this form to solve systems with a matrix inverse. The form also scales without change to three, four or more unknowns, where writing out substitutions becomes error-prone.

The three pieces. For a system of m linear equations in n unknowns, written with the unknowns in the same order in every equation and constants on the right: the coefficient matrix A is the m Γ— n matrix whose row i holds the coefficients of equation i, in the order of the unknowns; the vector variable X is the n Γ— 1 column vector whose entries are the unknowns, in that same order; the constant vector B is the m Γ— 1 column vector of the right-hand sides. The matrix product AX is defined because the number of columns of A (n) equals the number of rows of X (n), and the product is m Γ— 1, the same size as B, so the equation AX = B makes sense as an equality of two column vectors.

How matrix multiplication reproduces the system β€” a full model. Take 2x + 3y = 8 and x βˆ’ y = βˆ’1. Then A = [[2, 3], [1, βˆ’1]], writing the matrix row by row, X = [x, y] as a column, and B = [8, βˆ’1] as a column. Compute AX by the row-times-column rule: the first entry is (row 1 of A)Β·X = 2x + 3y, and the second is (row 2 of A)Β·X = 1x + (βˆ’1)y = x βˆ’ y. So AX is the column [2x + 3y, x βˆ’ y], and setting it equal to B = [8, βˆ’1] says exactly 2x + 3y = 8 and x βˆ’ y = βˆ’1, entry by entry. Nothing has been added or lost; the matrix equation is the system. Solve the system by substitution, x = y βˆ’ 1, so 2(y βˆ’ 1) + 3y = 8, 5y = 10, y = 2, x = 1. Now verify in matrix form: with X = [1, 2], AX = [2(1) + 3(2), 1(1) βˆ’ 1(2)] = [8, βˆ’1] = B. A proposed solution is checked by multiplying it by A and comparing with B, one product for the whole system.

Order and zeros matter. The columns of A correspond to the unknowns in a fixed order, so every equation must be arranged with its unknowns in that order before the coefficients are read off. If an unknown is missing from an equation, its coefficient is 0 and a 0 must be written in that position; leaving a gap shifts every later coefficient into the wrong column. For the system 2x βˆ’ z = 1, y + 3z = 4, x + y = 2, the coefficient matrix is A = [[2, 0, βˆ’1], [0, 1, 3], [1, 1, 0]], with X = [x, y, z] and B = [1, 4, 2]. Multiplying, row 1 gives 2x + 0y βˆ’ z, row 2 gives 0x + y + 3z and row 3 gives x + y + 0z, which are the three left sides. Equations that are not in standard form must be rearranged first: y = 3x + 2 becomes βˆ’3x + y = 2, so its row is [βˆ’3, 1] with constant 2.

Reading a system from a matrix equation. The translation runs both ways. Given A = [[1, 2], [3, βˆ’5]], X = [x, y] and B = [4, βˆ’7], multiplying out AX gives [x + 2y, 3x βˆ’ 5y], so the system is x + 2y = 4 and 3x βˆ’ 5y = βˆ’7. Each row of A together with the matching entry of B is one equation.

Three unknowns. For x + y + z = 6, 2x βˆ’ y + z = 3 and x + 2y βˆ’ z = 2, the coefficient matrix is the 3 Γ— 3 matrix A = [[1, 1, 1], [2, βˆ’1, 1], [1, 2, βˆ’1]], X = [x, y, z] and B = [6, 3, 2]. The earlier lesson found the solution (1, 2, 3) by elimination. Verify by one multiplication: AX = [1 + 2 + 3, 2 βˆ’ 2 + 3, 1 + 4 βˆ’ 3] = [6, 3, 2] = B. The check that previously took three separate substitutions is one matrix product.

The equation AX = B as an equation in the vector variable X. In ax = b with a β‰  0, the solution is x = b/a, or more carefully x = a⁻¹b, multiplying both sides by the reciprocal of a. The matrix equation invites the same thought: if a matrix A⁻¹ exists with A⁻¹A = I, the identity matrix, then multiplying both sides of AX = B on the left by A⁻¹ gives X = A⁻¹B. That is the subject of the next lesson. Two cautions apply now. First, matrices do not always have inverses, so "divide by A" is not always possible. Second, matrix multiplication is not commutative and is defined only when sizes match: for a 2 Γ— 2 matrix A and a 2 Γ— 1 vector X, the product AX is defined and XA is not, since a 2 Γ— 1 times a 2 Γ— 2 has a mismatch between one column and two rows. So the vector variable is written on the right of A, and any multiplication used to solve must be applied on the left of both sides.

The misconception and why it is wrong. Students sometimes write the constants inside A as an extra column and call that AX = B. The matrix with the constants attached, [A | B], is the augmented matrix, which is a bookkeeping device for elimination, not a factor in a product. In the matrix equation, A holds coefficients only, X holds unknowns only, and B holds constants only; that separation is what allows AX to be computed and compared with B. A second error is to write X as a row instead of a column; then AX is not defined at all, because a 2 Γ— 2 matrix cannot be multiplied by a 1 Γ— 2 row on the right.

Section 2 Β· ModelWork through the examples

Worked translation to matrix form: Write 3x βˆ’ 4y = 5 and 2x + y = βˆ’3 as a matrix equation. Both equations are in standard form with x before y. A = [[3, βˆ’4], [2, 1]], X = [x, y] (a column), B = [5, βˆ’3] (a column). Check by multiplying: AX = [3x βˆ’ 4y, 2x + y], and AX = B is the original pair. Solving by elimination, add 4 times the second to the first: (3x βˆ’ 4y) + 4(2x + y) = 5 + 4(βˆ’3), which expands to 3x βˆ’ 4y + 8x + 4y = 5 βˆ’ 12, so 11x = βˆ’7 and x = βˆ’7/11; then y = βˆ’3 βˆ’ 2(βˆ’7/11) = βˆ’33/11 + 14/11 = βˆ’19/11. Verify in matrix form: AX = [3(βˆ’7/11) βˆ’ 4(βˆ’19/11), 2(βˆ’7/11) + (βˆ’19/11)] = [(βˆ’21 + 76)/11, (βˆ’14 βˆ’ 19)/11] = [55/11, βˆ’33/11] = [5, βˆ’3] = B.

Worked translation from matrix form with rearrangement: The system y = 3x + 2 and y = βˆ’x + 6 is not in standard form. Rearranged: βˆ’3x + y = 2 and x + y = 6. So A = [[βˆ’3, 1], [1, 1]], X = [x, y], B = [2, 6]. Subtracting the first equation from the second gives 4x = 4, x = 1, y = 5. Check: AX = [βˆ’3(1) + 5, 1 + 5] = [2, 6] = B. If the equations had been left as y = 3x + 2, reading off [3, 1] as a row would give the wrong matrix, because the 3x is on the other side of the equals sign.

Worked three-unknown system with missing terms: Represent 2x βˆ’ z = 1, y + 3z = 4, x + y = 2 as AX = B and verify the solution (1, 1, 1). A = [[2, 0, βˆ’1], [0, 1, 3], [1, 1, 0]], X = [x, y, z], B = [1, 4, 2]. The zeros record the missing y in the first equation, the missing x in the second and the missing z in the third. Solving: from the third, y = 2 βˆ’ x; from the first, z = 2x βˆ’ 1; substituting into the second, 2 βˆ’ x + 3(2x βˆ’ 1) = 4, so 5x βˆ’ 1 = 4, x = 1, y = 1, z = 1. Verify: AX = [2 βˆ’ 0 βˆ’ 1, 0 + 1 + 3, 1 + 1 + 0] = [1, 4, 2] = B.

Worked verification by multiplication only: Is X = [2, 1] a solution of AX = B with A = [[4, βˆ’1], [1, 3]] and B = [7, 5]? Multiply: AX = [4(2) βˆ’ 1(1), 1(2) + 3(1)] = [8 βˆ’ 1, 2 + 3] = [7, 5] = B. Yes. Is X = [1, 3]? AX = [4 βˆ’ 3, 1 + 9] = [1, 10] β‰  B, so no; the first entry alone already fails.

Section 3 Β· DoPractice, demonstrate, and explain

Translation record: Make a two-column record. On the left write four systems: two pairs of linear equations in two unknowns (one of them not in standard form), one system of three equations in three unknowns with at least two missing terms, and one system given to you only as A, X and B that you must expand into equations. On the right write the matching matrix equation or system, showing the row-times-column products that prove the two forms say the same thing, and state the dimensions of A, X and B in each case.

Independent performance: Choose a solution first, for instance x = 2, y = βˆ’1, z = 3, and write three linear equations in x, y and z that it satisfies, with at least one unknown missing from at least one equation and at least one equation initially written with unknowns on both sides. Rearrange each equation into standard form, represent the system as a single matrix equation AX = B in the vector variable X, and state the dimensions of each piece. Verify your chosen solution by computing the matrix product AX and comparing it with B entry by entry. Then propose a second vector that is not a solution and show by multiplication which entry of AX fails to match B. Finish with a paragraph explaining why AX = B is one equation in the unknown vector X, why X must be a column written on the right of A, and how the matrix product reproduces every equation of the system. Success criteria: coefficients appear in the same variable order in every row, every missing unknown is recorded as 0, the product AX is computed with the row-times-column rule and written out, and the paragraph explains rather than restates.

Section 4 Β· Check7-question lesson practice test

An adult may read the prompts aloud. Answer independently with words, objects, drawings or a demonstration before opening the answer guide. Award 1 point for a correct result or claim and 1 point for a matching explanation or demonstration; where a question asks only for a result (a corrected sentence, a spelling, a count), a fully correct result earns both points, and the answer guide shows what a complete response contains. Record prompting separately. The total (two points per question) is local practice feedback, not an Ohio proficiency level.

Problem 1

Write the system 3x βˆ’ 4y = 5, 2x + y = βˆ’3 as a matrix equation AX = B, naming each piece and its dimensions.

Show worked solution

A = [[3, βˆ’4], [2, 1]] is the 2 Γ— 2 coefficient matrix, X = [x, y] is the 2 Γ— 1 vector variable and B = [5, βˆ’3] is the 2 Γ— 1 constant vector. Multiplying gives AX = [3x βˆ’ 4y, 2x + y], so AX = B is the pair of equations entry by entry. The solution is (βˆ’7/11, βˆ’19/11), and AX = [(βˆ’21 + 76)/11, (βˆ’14 βˆ’ 19)/11] = [5, βˆ’3] confirms it.

Problem 2

Given A = [[1, 2], [3, βˆ’5]], X = [x, y] and B = [4, βˆ’7], write out the system that AX = B represents.

Show worked solution

Row 1 of A times X is x + 2y, and row 2 times X is 3x βˆ’ 5y. Setting these equal to the entries of B: x + 2y = 4 and 3x βˆ’ 5y = βˆ’7. Each row of A paired with the matching entry of B is one equation of the system.

Problem 3

Verify by matrix multiplication that X = [2, 1] solves AX = B for A = [[4, βˆ’1], [1, 3]] and B = [7, 5].

Show worked solution

AX = [4(2) + (βˆ’1)(1), 1(2) + 3(1)] = [8 βˆ’ 1, 2 + 3] = [7, 5], which equals B. Both entries match, so both equations 4x βˆ’ y = 7 and x + 3y = 5 hold, and (2, 1) is a solution. One product checks the whole system.

Problem 4

For a system of three linear equations in three unknowns, what are the dimensions of A, X and B, and why must they be those?

Show worked solution

A is 3 Γ— 3: one row per equation and one column per unknown. X is 3 Γ— 1: the three unknowns as a column. B is 3 Γ— 1: one constant per equation. The product AX is defined because A has 3 columns and X has 3 rows, and it produces a 3 Γ— 1 column that can be compared entry by entry with the 3 Γ— 1 vector B.

Problem 5

Represent 2x βˆ’ z = 1, y + 3z = 4, x + y = 2 as AX = B, and explain why the zeros in A are necessary.

Show worked solution

A = [[2, 0, βˆ’1], [0, 1, 3], [1, 1, 0]], X = [x, y, z], B = [1, 4, 2]. The zeros record that y is absent from the first equation, x from the second and z from the third; omitting them would shift coefficients into the wrong columns, so the product AX would multiply coefficients by the wrong unknowns. With X = [1, 1, 1], AX = [2 βˆ’ 1, 1 + 3, 1 + 1] = [1, 4, 2] = B, so (1, 1, 1) solves the system.

Problem 6

The equations y = 3x + 2 and y = βˆ’x + 6 are not in standard form. Write the matrix equation for the system and solve it.

Show worked solution

Rearrange: βˆ’3x + y = 2 and x + y = 6, so A = [[βˆ’3, 1], [1, 1]], X = [x, y], B = [2, 6]. Subtracting the first equation from the second: 4x = 4, x = 1, then y = 5. Check: AX = [βˆ’3 + 5, 1 + 5] = [2, 6] = B. Reading [3, 1] straight from y = 3x + 2 would be wrong because 3x sits on the other side of the equals sign, where its coefficient is βˆ’3 once moved.

Problem 7

Explain why AX = B is described as a single equation in a vector variable, and why the product must be written AX rather than XA.

Show worked solution

All the unknowns are collected into one column vector X, and all the equations into one equality of column vectors, so the system is one equation whose unknown is X; solving means finding the vector X that makes the product equal B, just as solving ax = b means finding the number x. The product must be AX because A is m Γ— n and X is n Γ— 1, so AX is defined and is m Γ— 1 like B; XA would require the number of columns of X (1) to equal the number of rows of A (m), which fails whenever m > 1.