Mathwords logoMathwords

Row of a Matrix

Row of a Matrix

A horizontal set of numbers in a matrix.

 

3x3 matrix with values 1,2,3 / 4,5,6 / 7,8,9; middle row [4,5,6] highlighted to illustrate a matrix row.

 

 

See also

Column of a matrix, element of a matrix

Key Formula

A=[a11a12a1na21a22a2nam1am2amn]A = \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{bmatrix}
Where:
  • AA = An m × n matrix (m rows and n columns)
  • aija_{ij} = The element in the i-th row and j-th column
  • mm = The total number of rows
  • nn = The total number of columns
  • Row i\text{Row } i = The horizontal list of entries: a_{i1}, a_{i2}, \ldots, a_{in}

Worked Example

Problem: Identify each row of the matrix B and state the element in row 2, column 3.
Step 1: Write out the matrix B.
B=[582317469]B = \begin{bmatrix} 5 & 8 & 2 \\ 3 & 1 & 7 \\ 4 & 6 & 9 \end{bmatrix}
Step 2: Read across each horizontal line to identify the rows.
Row 1: [5,  8,  2]Row 2: [3,  1,  7]Row 3: [4,  6,  9]\text{Row 1: } [5,\; 8,\; 2] \qquad \text{Row 2: } [3,\; 1,\; 7] \qquad \text{Row 3: } [4,\; 6,\; 9]
Step 3: To find the element in row 2, column 3, go to row 2 and move to the 3rd position.
b23=7b_{23} = 7
Answer: Matrix B has three rows: [5, 8, 2], [3, 1, 7], and [4, 6, 9]. The element in row 2, column 3 is 7.

Another Example

This example uses a non-square matrix (2 × 4) to show that rows can have any number of entries, and it demonstrates performing arithmetic on a single row — a common task in applied problems.

Problem: Given the 2 × 4 matrix C, extract row 1 and use it to compute the sum of that row's entries.
Step 1: Write out the matrix C, which has 2 rows and 4 columns.
C=[103072581]C = \begin{bmatrix} 10 & 3 & 0 & 7 \\ 2 & 5 & 8 & 1 \end{bmatrix}
Step 2: Identify row 1 by reading the first horizontal line of entries from left to right.
Row 1: [10,  3,  0,  7]\text{Row 1: } [10,\; 3,\; 0,\; 7]
Step 3: Add the entries of row 1 together.
10+3+0+7=2010 + 3 + 0 + 7 = 20
Answer: Row 1 of matrix C is [10, 3, 0, 7], and the sum of its entries is 20.

Frequently Asked Questions

What is the difference between a row and a column of a matrix?
A row runs horizontally (left to right), while a column runs vertically (top to bottom). In an m × n matrix, there are m rows and n columns. When referencing an element a_{ij}, the first subscript i indicates the row and the second subscript j indicates the column.
How do you count the rows of a matrix?
Rows are numbered starting from the top. The topmost horizontal line of entries is row 1, the next one down is row 2, and so on. The total number of rows is the first value in the matrix's dimensions; for example, a 3 × 5 matrix has 3 rows.
Can a matrix have just one row?
Yes. A matrix with exactly one row is called a row vector (or 1 × n matrix). For example, [4, 9, 2] is a 1 × 3 row vector. Row vectors are widely used in linear algebra and data science to represent a single observation or data point.

Row of a Matrix vs. Column of a Matrix

Row of a MatrixColumn of a Matrix
DirectionHorizontal (left to right)Vertical (top to bottom)
Subscript positionFirst subscript i in a_{ij}Second subscript j in a_{ij}
Count in an m × n matrixm rowsn columns
Single-line matrix nameRow vector (1 × n)Column vector (m × 1)
Common operationRow reduction / row operationsColumn space analysis

Why It Matters

Understanding rows is essential for reading any matrix and for performing row operations, which form the basis of solving systems of linear equations using Gaussian elimination. In many standardized math courses and exams, students must correctly identify rows to locate specific elements, set up augmented matrices, and carry out matrix multiplication. Outside the classroom, data tables (like spreadsheets) organize each record as a row, so the concept transfers directly to statistics, computer science, and data analysis.

Common Mistakes

Mistake: Confusing rows with columns — reading vertically instead of horizontally when asked for a row.
Correction: Remember that a row is horizontal, like a row of seats in a theater. Rows go across; columns go down. The dimension notation m × n always lists rows first.
Mistake: Mixing up the subscript order in a_{ij}, using the column number first.
Correction: The first subscript always refers to the row and the second to the column. Think 'row, then column' — or 'RC' like a remote control — to keep the order straight.

Related Terms