Key concept: Row operations

Table of contents

  1. Key concept: Row operations
  2. Representing systems with matrices
  3. Solving a system in three variables using a matrix
  4. Using a calculator to solve a linear system
  5. Practice and application exercises
  6. Texas test practice

1. Key concept: Row operations

1.1 Gaussian elimination and matrices

Gaussian elimination is a method used to solve systems of linear equations by transforming a matrix into a simpler form using row operations. A matrix is a rectangular array of numbers enclosed in brackets.

Each number within a matrix is called a matrix element. A row operation is any manipulation performed on one or more rows of a matrix 1.

1.2 Types of row operations

There are three fundamental row operations that can be applied to a matrix:

  • Switching rows: Any two rows in a matrix can be interchanged.
  • Multiplying a row by a constant: A row can be multiplied by any non-zero constant.
  • Adding one row to another: One row can be added to another row. These operations can also be combined to perform more complex transformations 1.

📝 If we have the matrix

(342256)\begin{pmatrix} 3 & 4 & 2 \\ 2 & 5 & 6 \end{pmatrix}

and we multiply the first row by 2, we get:

(684256)\begin{pmatrix} 6 & 8 & 4 \\ 2 & 5 & 6 \end{pmatrix}

Then, if we add the first row to the second row, the matrix becomes:

(68481310)\begin{pmatrix} 6 & 8 & 4 \\ 8 & 13 & 10 \end{pmatrix}

1.

2. Representing systems with matrices

2.1 Writing a system of equations as a matrix

To represent a system of linear equations using a matrix, follow these steps:

  • Step 1: Standardize variable order. Rewrite each equation so that the variables are in the same order (e.g., x, then y, then z). Leave a space or use a zero coefficient for any missing variables in an equation. This ensures consistent alignment.
  • Step 2: Construct the matrix. Create a matrix where each row represents an equation. The columns correspond to the coefficients of the variables in the standardized order, followed by a column for the constants on the right side of the equals sign. Use 1s for coefficients of 1 and 0s for missing variables 2.

The order of elements in a matrix is crucial because a different arrangement of coefficients and constants would represent a completely different system of equations 2.

2.2 Writing a system from a matrix

To translate a matrix back into a system of linear equations:

  • Each row of the matrix represents one equation.
  • The numbers in each row are the coefficients of the variables, in the established order, followed by the constant term.
  • Write out each equation, simplifying where necessary (e.g., 0x0x becomes 00, 1y1y becomes yy) 2.

📝 The matrix c 5 ## 1 7 9d` represents the system: 5x+2y=75x + 2y = 7 0x+1y=90x + 1y = 9 Simplifying this gives the system: 5x+2y=75x + 2y = 7 y=9y = 9 2.

3. Solving a system in three variables using a matrix

3.1 Writing a matrix for the system

To solve a system of three linear equations using matrices, the first step is to represent the system as an augmented matrix. This matrix includes the coefficients of the variables and the constants from each equation 3.

The system of equations: x−2y−2z=6x - 2y - 2z = 6 2x−3y−5z=72x - 3y - 5z = 7 3x+4y+z=23x + 4y + z = 2

Is represented by the augmented matrix:

xyzConstant
1-2-26
2-3-57
3412

3.2 Eliminating variables using row operations

Gaussian elimination uses row operations to transform the augmented matrix into a form where the solution can be easily determined. This process is similar to the elimination method used with equations, but it is performed on the matrix representation 3.

  • Eliminate x from the second equation: Multiply the first row by -2 and add it to the second row. Replace the second row with the result. −2(1−2−2∣6)+(2−3−5∣7)=(01−1∣−5)-2(1 \quad -2 \quad -2 \quad | \quad 6) + (2 \quad -3 \quad -5 \quad | \quad 7) = (0 \quad 1 \quad -1 \quad | \quad -5) The matrix becomes:
xyzConstant
1-2-26
01-1-5
3412
  • Eliminate x from the third equation: Multiply the first row by -3 and add it to the third row. Replace the third row with the result. −3(1−2−2∣6)+(341∣2)=(0107∣−16)-3(1 \quad -2 \quad -2 \quad | \quad 6) + (3 \quad 4 \quad 1 \quad | \quad 2) = (0 \quad 10 \quad 7 \quad | \quad -16) The matrix becomes:
xyzConstant
1-2-26
01-1-5
0107-16
  • Eliminate y from the third equation: Multiply the second row by -10 and add it to the third row. Then, multiply the resulting third row by 117\frac{1}{17}. −10(01−1∣−5)+(0107∣−16)=(0017∣34)-10(0 \quad 1 \quad -1 \quad | \quad -5) + (0 \quad 10 \quad 7 \quad | \quad -16) = (0 \quad 0 \quad 17 \quad | \quad 34) 117(0017∣34)=(001∣2)\frac{1}{17}(0 \quad 0 \quad 17 \quad | \quad 34) = (0 \quad 0 \quad 1 \quad | \quad 2) The matrix becomes:
xyzConstant
1-2-26
01-1-5
0012

3.3 Back-substitution to find the solution

Once the matrix is in row-echelon form, the third row directly gives the value of one variable. This value is then used to find the other variables through back-substitution 3.

From the matrix, the third equation is z=2z = 2.

  • Find y: Substitute z=2z=2 into the second equation (y−z=−5y - z = -5). y−2=−5y - 2 = -5 y=−3y = -3

  • Find x: Substitute y=−3y=-3 and z=2z=2 into the first equation (x−2y−2z=6x - 2y - 2z = 6). x−2(−3)−2(2)=6x - 2(-3) - 2(2) = 6 x+6−4=6x + 6 - 4 = 6 x+2=6x + 2 = 6 x=4x = 4

The solution to the system is (4,−3,2)(4, -3, 2) 3.

📝 To check the solution (4,−3,2)(4, -3, 2), substitute these values back into the original equations: x−2y−2z=4−2(−3)−2(2)=4+6−4=6x - 2y - 2z = 4 - 2(-3) - 2(2) = 4 + 6 - 4 = 6 (Correct) 2x−3y−5z=2(4)−3(−3)−5(2)=8+9−10=72x - 3y - 5z = 2(4) - 3(-3) - 5(2) = 8 + 9 - 10 = 7 (Correct) 3x+4y+z=3(4)+4(−3)+2=12−12+2=23x + 4y + z = 3(4) + 4(-3) + 2 = 12 - 12 + 2 = 2 (Correct) 3.

4. Using a calculator to solve a linear system

4.1 Solving linear systems with a calculator

This section explains how to use a calculator's matrix functions to solve systems of linear equations. The process involves entering the system as a matrix, applying the rref() function, and then interpreting the resulting matrix to find the solution 4.

  • Matrix entry: To solve a system of linear equations using a calculator, first represent the system as a matrix.
  • Zero coefficients: If a variable is missing from an equation, its coefficient in the matrix should be entered as 0.
  • rref() function: After entering the matrix, apply the rref() (reduced row echelon form) function. If matrix elements are not integers, convert them to fractions.
  • Interpreting the solution: The resulting matrix from the rref() function directly provides the solution to the system of equations 4.

📝 Consider the system: 2a+3b−c=12a + 3b - c = 1 −4a+9b+2c=8-4a + 9b + 2c = 8 −2a+2c=3-2a + 2c = 3

The matrix representation is:

{"header": ["a", "b", "c", "Constant", "rows": [,,]}

Applying the rref() function to this matrix yields the solution a=12a = \frac{1}{2}, b=23b = \frac{2}{3}, and c=2c = 2 4.

5. Practice and application exercises

5.1 Identify the indicated element

This section provides practice in identifying specific elements within a given matrix. The notation aija_{ij} refers to the element in the ii-th row and jj-th column of a matrix 5.

  • a32a_{32}: The element in the 3rd row and 2nd column.
  • a21a_{21}: The element in the 2nd row and 1st column.
  • a13a_{13}: The element in the 1st row and 3rd column.
  • a31a_{31}: The element in the 3rd row and 1st column 5.

5.2 Write a matrix to represent each system

Systems of linear equations can be represented by matrices, where each row corresponds to an equation and each column corresponds to the coefficients of the variables 5.

  • System 5: r−s+t=150r - s + t = 150 2r+t=4252r + t = 425 s+3t=0s + 3t = 0 The matrix representation is:
rstConstant
1-11150
201425
0130
  • System 6: ey=3x−7ey = 3x - 7 x=2x = 2 Rearranging the equations to the standard form Ax+By=CAx + By = C: −3x+ey=−7-3x + ey = -7 x+0y=2x + 0y = 2 The matrix representation is:
xyConstant
-31-7
102
  • System 7: x−y+z=0x - y + z = 0 x−2y−z=5x - 2y - z = 5 2x−y+2z=82x - y + 2z = 8 The matrix representation is:
xyzConstant
1-110
1-2-15
2-128

📝 The matrix representation for System 5 is:

rstConstant
1-11150
201425
0130

5.3 Write the system of equations represented by each matrix

Matrices can be converted back into systems of linear equations, where each row represents an equation and the columns represent the coefficients of the variables 5.

  • Matrix 8:
xyConstant
14-6

The system of equations is: x+4y=−6x + 4y = -6 5.

  • Matrix 9:
xyConstant
2-34

The system of equations is: 2x−3y=42x - 3y = 4 5.

  • Matrix 10:
xyConstant
-11-6

The system of equations is: −x+y=−6-x + y = -6 5.

  • Matrix 11:
xyzConstant
-1119

The system of equations is: −x+y+z=9-x + y + z = 9 5.

  • Matrix 12:
xyzConstant
91-68

The system of equations is: 9x+y−6z=89x + y - 6z = 8 5.

  • Matrix 13:
xyzConstant
-6811

The system of equations is: −6x+8y+z=1-6x + 8y + z = 1 5.

5.4 Solve each system of equations by using Gaussian elimination

Gaussian elimination is a method used to solve systems of linear equations by transforming the system's augmented matrix into row-echelon form 5.

  • System 14: x+3y+5z=−5x + 3y + 5z = -5 2x−2y−z=−142x - 2y - z = -14 x+5y+4z=11x + 5y + 4z = 11 The matrix for this system is:
xyzConstant
135-5
2-2-1-14
15411

Solving this system using Gaussian elimination yields the solution 5.

  • System 15: 3x−5y+z=−203x - 5y + z = -20 7x−y−3z=327x - y - 3z = 32 10x+6y−2z=1610x + 6y - 2z = 16 The matrix for this system is:
xyzConstant
3-51-20
7-1-332
106-216

Solving this system using Gaussian elimination yields the solution 5.

  • System 16: 2x+4y−z=−332x + 4y - z = -33 3x−2y=223x - 2y = 22 x+3z=17x + 3z = 17 The matrix for this system is:
xyzConstant
24-1-33
3-2022
10317

Solving this system using Gaussian elimination yields the solution 5.

5.5 Apply Mathematics (A) Manufacturer sales 1.

This exercise requires setting up a system of equations and its corresponding matrix representation for a scenario involving the sale of pencils and erasers in packages 5.

  • Situation: A manufacturer sells pencils and erasers in packages.
  • Task: Write a system of equations to represent this situation and then write a matrix to represent the system 5.

📝 A town invested a total of $25,000 into two funds. One fund returned 4% and the other returned 6%. The total interest earned was $1300. Determine how much money was invested in each fund 5.

5.6 Apply Mathematics (A) Investment returns 1.

This problem involves calculating the amount invested in two different funds based on the total investment, individual return rates, and total interest earned 5.

  • Scenario: A town invested a total of $25,000 into two funds. One fund returned 4% and the other returned 6%. The total interest earned was $1300.
  • Task: Determine how much money was invested in each fund 5.

5.7 Solve each system

These exercises provide practice in solving systems of linear equations, likely using methods such as substitution, elimination, or matrix operations 5.

  • System 19: x+y+z=2x + y + z = 2 2y−2z=22y - 2z = 2 −3z=1-3z = 1 The matrix for this system is:
xyzConstant
1112
02-22
00-31

Solve this system 5.

  • System 20: x−y+z=0x - y + z = 0 y−2z=−1y - 2z = -1 The matrix for this system is:
xyzConstant
1-110
01-2-1

Solve this system 5.

  • System 21: x+y+z=−1x + y + z = -1 3x+4y−z=83x + 4y - z = 8 6x+8y−2z=166x + 8y - 2z = 16 The matrix for this system is:
xyzConstant
111-1
34-18
68-216

Solve this system 5.

6. Texas test practice

6.1 Linear equations and inequalities

This section covers practice problems related to linear equations and inequalities, including identifying their properties and graphing solutions.

  • Question 29: Asks to identify the equation of a line given its slope and y-intercept.

  • The equation of a line in slope-intercept form is y=mx+by = mx + b, where mm is the slope and bb is the y-intercept.

  • The problem provides a slope of 12\frac{1}{2} and a y-intercept of 34\frac{3}{4}.

  • The correct equation is y=12x+34y = \frac{1}{2}x + \frac{3}{4} 6.

  • Question 30: Requires selecting the graph that best represents the solution of a linear inequality.

  • The inequality is y≤12x−10y \le \frac{1}{2}x - 10.

  • The graph should show a solid line (because of ≤\le) with a slope of 12\frac{1}{2} and a y-intercept of -10.

  • The region below the line should be shaded 6.

6.2 Systems of linear equations

This subsection focuses on problems involving systems of linear equations, including finding intersection points and solving systems represented by matrices.

  • Question 31: Asks for the intersection point of two linear equations.

  • The equations are y=7x−3y = 7x - 3 and −6x+y=2-6x + y = 2.

  • To find the intersection, substitute the first equation into the second: −6x+(7x−3)=2-6x + (7x - 3) = 2.

  • Solving for xx: x−3=2x - 3 = 2, so x=5x = 5.

  • Substitute x=5x = 5 back into the first equation: y=7(5)−3=35−3=32y = 7(5) - 3 = 35 - 3 = 32.

  • The intersection point is (5,32)(5, 32) 6.

  • Question 22: Presents a system of three linear equations with three variables.

  • The equations are:

  • x−y+3z=9x - y + 3z = 9

  • 2x+y+2z=22x + y + 2z = 2

  • 2x+2y−z=102x + 2y - z = 10 6.

  • Question 23: Presents another system of three linear equations with three variables.

  • The equations are:

  • 2x+3y+z=132x + 3y + z = 13

  • 5x−2y−4z=45x - 2y - 4z = 4

  • 4x+5y+3z=254x + 5y + 3z = 25 6.

  • Question 24: Presents a system of four linear equations with four variables.

  • The equations are:

  • −2w+x+y=0-2w + x + y = 0

  • −w+2x−y+z=1-w + 2x - y + z = 1

  • −2w+3x+3y+2z=6-2w + 3x + 3y + 2z = 6

  • w+x+2y+z=5w + x + 2y + z = 5 6.

  • Question 26: States that the coordinates of a point are the solution to a given system of two linear equations.

  • The system is:

  • 2x+3y=132x + 3y = 13

  • 5x+7y=315x + 7y = 31

  • The task is to find the coordinates (x,y)(x, y) of the point 6.

📝 To find the intersection point of y=7x−3y = 7x - 3 and −6x+y=2-6x + y = 2, substitute the first equation into the second: −6x+(7x−3)=2-6x + (7x - 3) = 2. Solving for xx gives x=5x = 5, and substituting back into the first equation yields y=32y = 32. The intersection point is (5,32)(5, 32) 6.

6.3 Matrix representation of systems

This subsection deals with systems of equations represented in matrix form and related problem-solving.

  • Question 27: Involves a matrix representing a system of equations and a proposed solution.
  • A classmate wrote a matrix for a system and claimed the solution is x=2,y=0x = 2, y = 0.
  • The matrix provided is:
———
102
000
107
  • The task is to explain the classmate's error and how to correct it 6.

6.4 Applied mathematics problems

This section includes word problems that require setting up and solving systems of equations, often involving cost, ratios, and mixtures.

  • Question 25: A problem about creating a snack mix with specific weight and cost constraints.
  • You want to fill nine 1-lb tins with a snack mix.
  • You have $15 and plan to buy almonds for $2.45 per lb, hazelnuts for $1.85 per lb, and raisins for $0.80 per lb.
  • The mix should contain twice as much of the nuts (almonds and hazelnuts) as the raisins by weight.
  • The equations provided are:
EquationRelation to ProblemVariable Representation
x+y+z=9x + y + z = 9Total weight of the mix in poundsx = lbs of almonds, y = lbs of hazelnuts, z = lbs of raisins
2.45x+1.85y+0.8z=152.45x + 1.85y + 0.8z = 15Total cost of the ingredients in dollarsx = lbs of almonds, y = lbs of hazelnuts, z = lbs of raisins
x+y=2zx + y = 2zWeight relationship between nuts and raisinsx = lbs of almonds, y = lbs of hazelnuts, z = lbs of raisins
  • The problem asks to explain how each equation relates to the problem, what each variable represents, solve the system, and determine the quantity of each ingredient 6.

  • Question 28: A problem involving mixing paints with different ratios and calculating costs.

  • Two gallons of pumpkin orange are made with a ratio of two parts red to six parts yellow.

  • Two gallons of pepper red are made with a ratio of five parts red to three parts yellow.

  • A gallon of pumpkin orange sells for $25, and a gallon of pepper red sells for $28.

  • The task is to find the cost of 1 quart of red paint and 1 quart of yellow paint 6.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also