The Wayback Machine - https://web.archive.org/web/20240823094351/https://www.geeksforgeeks.org/row-matrix/
Open In App

Row Matrix

Last Updated : 06 May, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Row Matrix: A rectangular array of numbers that are arranged in rows and columns is known as a “matrix.” The size of a matrix can be determined by the number of rows and columns in it. If a matrix has “m” rows and “n” columns, then it is said to be an “m by n” matrix and is written as an “m × n” matrix.

In mathematics, a row matrix is a matrix characterized by having only one row, though it may contain multiple columns. If the matrix is in the form of 1 x n, where ‘n’ represents the number of columns, it qualifies as a row matrix. Its elements are arranged in such a way that they form a single horizontal row within the matrix structure.

For example, if a matrix has five rows and three columns, it is a “5 × 3” matrix. We have various types of matrices, like rectangular, square, triangular, symmetric, singular, etc. Now let us discuss the types of matrices in detail.

What is a Row Matrix?

A row matrix is defined as a matrix that has only one row. A matrix “A = [aij]” is said to be a row matrix if the order of the matrix is “1 × n.” In a row matrix, all the entries are arranged in a single row. A row matrix can have numerous columns but only one row. For example, the matrix given below is a row matrix of order “1 × 3,” which has one row and three columns that are equal to the number of entries in the matrix.

Row Matrix Definition

A row matrix, also known as a row vector, is a matrix with a single row. It’s a way to represent data in a horizontal format, where each element of the row represents a different variable or value.

Row Matrix Examples

  • The matrix given below is a row matrix of order “1 × 3.”

[Tex]A_{1\times3} = \left[\begin{array}{cccc} p & q & r\end{array}\right][/Tex]

  • The matrix given below is a row matrix of order “1 × 4.”

[Tex]B_{1\times4} = \left[\begin{array}{cccc} a & b & c & d\end{array}\right][/Tex]

  • The matrix given below is a row matrix of order “1 × 5.”

[Tex]C_{1\times5} = \left[\begin{array}{ccccc} 0 & 5 & 8 & -7 & 11\end{array}\right][/Tex]

Properties of a Row Matrix

The following are some important properties of a row matrix:

  • Any row matrix will have only one row.
  • A row matrix can have numerous columns.
  • The number of entries in a row matrix is equal to the number of columns.
  • A row matrix is also a rectangular matrix and a horizontal matrix.
  • The transpose of a row matrix is a column matrix and vice versa.
  • Any two-row matrices can be added or subtracted if the order of both matrices is the same.
  • The multiplication of a row matrix is possible only with a column matrix if and only if the number of rows in the column matrix is equal to the number of columns in the given row matrix.
  • A singleton matrix is obtained when a row matrix and column matrix are multiplied.

Operations on a Row Matrix

We can operate on row matrix using operations such as:

  • Addition
  • Subtraction

Addition of Row Matrices

Any two-row matrices can be added if the order of both matrices is the same. If the orders of both matrices are the same, then the corresponding entries are added.

For example, let [Tex]M = \left[\begin{array}{ccc} -2 & 7 & 11\end{array}\right]_{1\times3} and N = \left[\begin{array}{ccc} 5 & 0 & -6\end{array}\right]_{1\times3}[/Tex]

[Tex]M + N = \left[\begin{array}{ccc} -2 & 7 & 11\end{array}\right]_{1\times3} + \left[\begin{array}{ccc} 5 & 0 & -6\end{array}\right]_{1\times3}[/Tex]

[Tex]M + N = \left[\begin{array}{ccc} (-2+5) & (7+0) & (11+(-6))\end{array}\right]_{1\times3}[/Tex]

[Tex]M + N = \left[\begin{array}{ccc} 3 & 7 & 5\end{array}\right]_{1\times3}[/Tex]

Subtraction of Row Matrices

Any two-row matrices can be subtracted if the order of both matrices is the same. If the orders of both matrices are the same, then the corresponding entries are subtracted.

For example, let A = [Tex]\left[\begin{array}{ccc} 22 & -13 & 19\end{array}\right]_{1\times3} and B = \left[\begin{array}{ccc} 12 & -8 & 7\end{array}\right]_{1\times3}[/Tex]

[Tex]A – B = \left[\begin{array}{ccc} 22 & -13 & 19\end{array}\right]_{1\times3} + \left[\begin{array}{ccc} 12 & -8 & 7\end{array}\right]_{1\times3}[/Tex]

[Tex]A – B = \left[\begin{array}{ccc} 10 & -5 & 12\end{array}\right]_{1\times3}[/Tex]

Multiplication

The multiplication of a row matrix is possible only with a column matrix if and only if the number of rows in the column matrix is equal to the number of columns in the given row matrix.

For example, let P = [Tex]\left[\begin{array}{ccc} 1 & 2 & 3\end{array}\right]_{1\times3}and Q = \left[\begin{array}{c} 4\\ 0\\ 5 \end{array}\right]_{3\times1}[/Tex]

[Tex]P × Q = \left[\begin{array}{ccc} 1 & 2 & 3\end{array}\right]_{1\times3}\times\left[\begin{array}{c} 4\\ 0\\ 5 \end{array}\right]_{3\times1}[/Tex]

P × Q = [19]1×1

Row Matrix Multiplied by Column Matrix

When you multiply a row matrix by a column matrix, you perform what’s called a dot product or inner product operation.

Row and Column Matrix

The common difference between row and column matrix is listed in the following table:

AspectRow MatrixColumn Matrix
DefinitionA matrix with only one row.A matrix with only one column.
RepresentationWritten horizontally.Written vertically.
Number of ElementsThe number of elements in a row is the number of columns in the matrix.The number of elements in a column is the number of rows in the matrix.
DimensionDimension is 1 × n, where n is the number of columns.Dimension is m × 1, where m is the number of rows.
Example

[Tex]\begin{bmatrix} 1 ~~ 2 ~~ 3 \end{bmatrix}_{1\times 3}[/Tex]

[Tex]\begin{bmatrix} 1\\ 2 \\ 3 \end{bmatrix}_{3\times 1}[/Tex]

Typical UseRepresenting a set of data points or coefficients in linear equations.Representing vectors or sets of data in linear algebra.

People Also Read:

Solved Examples on Row Matrices

Example 1: Find the transpose of the matrix given below.

Solution:

The matrix given matrix is a row matrix of order “1 × 4.” We know that the transpose of a matrix is obtained by interchanging the entries of rows and columns. So, the order of the transpose of the given matrix will be “4 × 1.”

[Tex]A = \left[\begin{array}{cccc} a & b & c & d\end{array}\right]_{1\times4} ⇒ A^{T} = \left[\begin{array}{c} a\\ b\\ c\\ d \end{array}\right]_{4\times1}[/Tex]

Example 2: Find the value of A + 2B, if [Tex]A = \left[\begin{array}{cccc} 3 & 7 & 0 & -2\end{array}\right]_{1\times4} and B = \left[\begin{array}{cccc} 1 & -3 & 5 & 1\end{array}\right]_{1\times4}[/Tex]

Solution:

[Tex]A + 2B = \left[\begin{array}{cccc} 3 & 7 & 0 & -2\end{array}\right]_{1\times4}+ 2 \times\left[\begin{array}{cccc} 1 & -3 & 5 & 1\end{array}\right]_{1\times4}[/Tex]

[Tex]A + 2B = \left[\begin{array}{cccc} 3 & 7 & 0 & -2\end{array}\right]_{1\times4}+ \left[\begin{array}{cccc} 2 & -6 & 10 & 2\end{array}\right]_{1\times4}[/Tex]

[Tex]A + 2B = \left[\begin{array}{cccc} (3+2) & (7-6) & (0+10) & (-2+2)\end{array}\right]_{1\times4}[/Tex]

[Tex]A + 2B = \left[\begin{array}{cccc} 5 & 1 & 10 & 0\end{array}\right]_{1\times4}[/Tex]

Example 3: Find the product of the matrices given below.

[Tex]M = \left[\begin{array}{ccc} 11 & -5 & 8\end{array}\right]_{1\times3}and N = \left[\begin{array}{c} 2\\ 3\\ 4 \end{array}\right]_{3\times1}[/Tex]

Solution:

[Tex]M × N = \left[\begin{array}{ccc} 11 & -5 & 8\end{array}\right]_{1\times3}\times\left[\begin{array}{c} 2\\ 3\\ 4 \end{array}\right]_{3\times1}[/Tex]

[Tex]M × N = \left[\begin{array}{c} (11\times2)+(-5\times3)+(8\times4)\end{array}\right]_{1\times1}[/Tex]

[Tex]M × N = \left[\begin{array}{c} 39\end{array}\right]_{1\times1}[/Tex]

Example 4: Find the value of P − Q, if [Tex]P = \left[\begin{array}{cc} 25 & 14\end{array}\right]_{1\times2}and Q = \left[\begin{array}{cc} 13 & 10\end{array}\right]_{1\times2}[/Tex]

Solution:

[Tex]P – Q = \left[\begin{array}{cc} 25 & 14\end{array}\right]_{1\times2}- \left[\begin{array}{cc} 13 & 10\end{array}\right]_{1\times2}[/Tex]

[Tex]P – Q = \left[\begin{array}{cc} (25-13) & (14-10)\end{array}\right]_{1\times2}[/Tex]

[Tex]P – Q = \left[\begin{array}{cc} 12 & 4\end{array}\right]_{1\times2}[/Tex]

FAQs on Row Matrix

What is row matrix meaning?

A row matrix is defined as a matrix that has only one row. A matrix “A = [aij]” is said to be a row matrix if the order of the matrix is “1 × n.”

What is the transpose of a row matrix?

The transpose of a row matrix is a column matrix and vice versa. For example, if “A” is a row matrix of order “1 × n,” then its transpose is a column matrix of order “n × 1,” which is obtained by interchanging the elements of rows and columns. A column matrix is defined as a matrix that has only one column.

What is the difference between a row matrix and a column matrix?

A row matrix can have numerous columns but only one row, whereas a column matrix can have numerous rows but only one column.

What is the order of a row matrix?

A matrix “A = [aij]” is said to be a row matrix if the order of the matrix is “1 × n,” i.e., the given matrix has one row and “n” columns.



Similar Reads

What are the odds of flipping 12 heads in a row?
Probability is how likely something happens. The probability of an event can be between 0 and 1 only and can also be written in percentage. The probability of event A is often written as P(A). Whenever we’re uncertain about the outcome of an event, then we talk about the probabilities of certain outcomes—how likely they occur. The analysis of these
3 min read
What are the odds of flipping heads 100 times in a row?
Probability is how likely an outcome occurs. The probability of an event is between 0 and 1 only and is also written in percentage. The probability of event A is often written as P(A). Whenever we’re not sure about the outcome of an event, then we use probabilities of certain outcomes—how likely they occur. Analysis of these probabilities is called
3 min read
What are the chances of flipping 10 heads in a row?
A branch of mathematics that deals with the happening of a random event is termed probability. It is used in Maths to predict how likely events are to happen. The probability of any event can only be between 0 and 1 and it can also be written in the form of a percentage. The probability of event A is generally written as P(A). Here P represents the
6 min read
What are the odds of flipping 7 heads in a row?
A branch of mathematics that deals with the happening of a random event is termed probability. It is used in Maths to predict how likely events are to happen. The probability of any event can only be between 0 and 1 and it can also be written in the form of a percentage. The probability of event A is generally written as P(A). Here P represents the
6 min read
What is the probability of flipping heads 20 times in a row?
A branch of mathematics that deals with the happening of a random event is termed probability. It is used in Maths to predict how likely events are to happen. The probability of any event can only be between 0 and 1 and it can also be written in the form of a percentage. The probability of event A is generally written as P(A). Here P represents the
6 min read
In how many ways can a teacher arrange 10 students in the front row if there are 25 total students?
In mathematics, permutation refers to the act of organizing a set in which all the members of a set are arranged into some sequence or order. In other words, if the set is already arranged, then the rearranging of its component is called the process of permuting. Permutations take place, in more or less important ways, in almost every area of mathe
3 min read
What is the probability of flipping 40 heads in a row?
A branch of mathematics that deals with the happening of a random event is termed probability. It is used in Maths to predict how likely events are to happen. The probability of any event can only be between 0 and 1 and it can also be written in the form of a percentage. The probability of event A is generally written as P(A). Here P represents the
6 min read
Reduced Row-Echelon Form
Reduced Row-Echelon Form is a form of matrix, where each nonzero entry in a row is 1 and is the only non-zero entry in that column. This form of matrix is mainly used in linear algebra. The word " echelon " is actually taken from the French word " ÃĐchelon " which means ' level ' or ' steps of a ladder '. A matrix is said to be in reduced row echelo
9 min read
What is the expected number of flips to get two heads in a row?
Probability is how likely an outcome occurs. The probability of an event is between 0 and 1 only and is also written in percentage. The probability of event A is often written as P(A). Whenever we’re not sure about the outcome of an event, then we use probabilities of certain outcomes—how likely they occur. Analysis of these probabilities is called
3 min read
What is the probability of rolling a 1 on a dice three times in a row?
Answer: Probability of rolling 1 on a dice three times in a row = probability of getting 1 first time × probability of getting 1 second time × probability of getting 1 third time = (1/6) × (1/6) × (1/6) = 1/216.Probability is a branch of mathematics that deals with the happening of a random event. Probability is used in Maths to predict how likely
6 min read
What is the probability to get a 6 three times in a row when rolling a dice?
Answer: Probability of getting 6 three times in a row = (1/6) × (1/6) × (1/6) = 1/216. Hence, the probability of getting 6 three times in a row is 0.463%.Probability is a part of mathematics that deals with the possibility of happening events. It is to forecast that what are the possible chances that the events will occur or the event will not occu
4 min read
Inverse of a Matrix by Elementary Operations - Matrices | Class 12 Maths
The Gaussian Elimination method is also known as the row reduction method and it is an algorithm that is used to solve a system of linear equations. It is usually understood as a sequence of operations performed on the corresponding matrix of coefficients. This algorithm is used to find : The rank of a matrix.The determinant of a matrix.The inverse
5 min read
Class 12 RD Sharma Solutions - Chapter 7 Adjoint and Inverse of a Matrix - Exercise 7.1 | Set 1
Question 1. Find the adjoint of the following matrices:Verify that (adj A)A = |A|I = A(adj A) for the above matrices:(i) [Tex]\begin{bmatrix}-3&5\\2&4\end{bmatrix} [/Tex] Solution: Here, A = [Tex]\begin{bmatrix}-3&5\\2&4\end{bmatrix}[/Tex] Cofactors of A are: C11 = 4 C12 = -2 C21 = -5 C22 = -3 adj A =[Tex] \begin{bmatrix}C_{11}&
12 min read
Class 12 RD Sharma Solutions - Chapter 7 Adjoint and Inverse of a Matrix - Exercise 7.1 | Set 3
Question 25. Show that the matrix A = [Tex]\begin{bmatrix}1&0&-2\\-2&-1&2\\3&4&1\end{bmatrix} [/Tex] satisfies the equation A3 - A2 - 3A - I3 = 0. Hence, find A-1. Solution: Here, A = [Tex]\begin{bmatrix}1&0&-2\\-2&-1&2\\3&4&1\end{bmatrix}[/Tex] A2 = [Tex]\begin{bmatrix}1&0&-2\\-2&-1&2
7 min read
Class 12 RD Sharma Solutions - Chapter 7 Adjoint and Inverse of a Matrix - Exercise 7.1 | Set 2
Question 10. For the following parts of matrices verify that (AB)-1 = B-1A-1.(i) A = [Tex]\begin{bmatrix}3&2\\7&5\end{bmatrix} [/Tex]and B = [Tex]\begin{bmatrix}4&6\\3&2\end{bmatrix} [/Tex] Solution: To prove (AB)-1= B-1A-1 We take LHS AB = [Tex]\begin{bmatrix}3&2\\7&5\end{bmatrix}\begin{bmatrix}4&6\\3&2\end{bmatrix}
9 min read
Class 12 RD Sharma Solutions - Chapter 7 Adjoint and Inverse of a Matrix - Exercise 7.2
Find the inverse of each of the following matrices by using elementary row transformation(Questions 1- 16):Question 1. [Tex]\begin{bmatrix}7&1\\4&-3\end{bmatrix} [/Tex] Solution: Here, A = [Tex]\begin{bmatrix}7&1\\4&-3\end{bmatrix} [/Tex] A = AI Using elementary row operation ⇒[Tex]\begin{bmatrix}7&1\\4&-3\end{bmatrix}=\begi
5 min read
How to find the Diagonal of a Matrix?
British Mathematician Arthur Cayley was the first person to develop the algebraic aspect of the matrix. After that, Psychiat Heisenberg used matrices as a tool to explain his famous Quantum principle. The study of matrices originated while solving different types of simple and complex linear problems, which is cumbersome to solve without matrices.
6 min read
Idempotent Matrix
A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an "m by n" matrix when it has "m" rows and "n" columns and is written as an "m × n" matrix. For example, a matrix of order "5 × 6" has five rows and six
6 min read
Involutory Matrix
Involutory Matrix is defined as the matrix that follows self inverse function i.e. the inverse of the Involutory matrix is the matrix itself. A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an "m by n"
6 min read
How to find the Determinant of a Matrix?
In mathematics, a matrix is a rectangle or square-shaped array of numbers or symbols grouped in rows and columns to represent a mathematical object or one of its qualities. For example, [Tex]\begin{vmatrix}{a}&b&c\\p&q&r\\s&t&u\end{vmatrix}[/Tex] is a square matrix. On the other hand, [Tex]\begin{vmatrix}{a}&b&c\\p
6 min read
Cell-to-Matrix Interaction
The human body might seem like a strange structure. There are a lot of organs & components present in the human body. But those are not the complete background of the human body. There are several tiny elements are present in the body that helps to provide a body structure. There are millions of millions such elements present in each body. All
11 min read
Extracellular Matrix Proteins
The extracellular matrix can be understood as a suspension of macromolecules that aids in the maintenance of a complete organ as well as local tissue growth. All of these chemicals were secreted by nearby cells. The proteins will undergo scaffolding after being secreted. The transitory structures that form between individual proteins to create more
8 min read
Inverse of 2x2 Matrix
Inverse of a 2 × 2 Matrix is a matrix that, when multiplied by the original matrix, results in the identity matrix. It is an important concept in linear algebra and is used to find the solution of a system of linear equations. There are various methods of finding the inverse of the matrix which we will discuss further in the article. This article o
12 min read
Adjoint of a Matrix
Knowledge of matrices is necessary for various branches of mathematics. Matrices are one of the most powerful tools in mathematics. From matrices there come Determinants, Now we see one of the properties of the Determinant in this article. In this article, we see how to find the Adjoint of a Matrix. To know about the Adjoint of a Matrix we have to
13 min read
Determinant of 3×3 Matrix
Determinant is a fundamental concept in linear algebra used to find a single scalar value for the given matrix. This article will explain what is a 3 × 3 Matrix and how to calculate the Determinant of a 3 × 3 Matrix step by step, as well as, its applications. Whether you are a student learning linear algebra or an enthusiast seeking a deeper unders
13 min read
Inverse of 3x3 Matrix
Inverse of a 3 × 3 matrix is a matrix which when multiplied by the original Matrix gives the identity matrix as the product. Inverse of a Matrix is a fundamental aspect of linear algebra. This process plays a crucial role in solving systems of linear equations and various mathematical applications. To calculate the inverse, it is required to calcul
11 min read
Column Matrix
A rectangular array of numbers that are arranged in rows and columns is known as a "matrix." The size of a matrix can be determined by the number of rows and columns in it. If a matrix has "m" rows and "n" columns, then it is said to be an "m by n" matrix and is written as an "m × n" matrix. For example, if a matrix has five rows and three columns,
7 min read
Identity Matrix
Identity Matrix is a square matrix whose all diagonal elements are equal to 1 and rest all elements are zero. Identity Matrix is also known as Unit Matrix. In simple terms, all diagonal elements are equal to 1 and rest are zero. The main condition for Identity matrix is that it should be a square matrix i.e. the no of rows should be equal to zero.
6 min read
Transformation Matrix
Transformation matrices are the core notions in linear algebra and these can help make advancements in many areas including computer graphics, image processing, and so on. Zero vectors and the corresponding unit vectors provide a compact and generalized manner of applying transformations to vectors or points in a coordinate system. In this article,
10 min read
Determinant of 4x4 Matrix | Examples and How to Find
Determinant of 4x4 Matrix: Determinant of a Matrix is a fundamental concept in linear algebra, essential for deriving a single scalar value from the matrix. 4x4 is a square matrix with 4 rows and 4 columns whose determinant can be found by a formula which we will discuss. This article will explore the definition of a 4 × 4 matrix and guide through
15+ min read
three90RightbarBannerImg