Matrix
calculator.

Add matching entries, or multiply a row by a column.

The resulting matrix is in the app.

Stephen AI keeps every entry, after the size check.

Get Stephen AI Free

Add and multiply.
The size comes first.

A matrix is a rectangular array of numbers. Count rows, then columns: a 2×3 matrix has two rows and three columns. OpenStax College Algebra 2e, section 7.5, adds two matrices when every entry has a partner, and multiplies by pairing a row of the first with a column of the second. A matrix calculator checks that size. Stephen AI is the tutor that stays with each entry after the check.

Solving a linear system is a different job on the same kind of array. OpenStax Intermediate Algebra 2e, section 4.5, writes the coefficients and the constants as an augmented matrix, then uses row operations until the solution can be read. That solution is what a system of equations asks you to find.

Add matrices of the same size

Add corresponding entries. OpenStax College Algebra 2e, section 7.5, Example 3, adds [4 1; 3 2] and [5 9; 0 7]. The pairs are 4+5, 1+9, 3+0, and 2+7, so the sum is [9 10; 3 9]. Swapping the two matrices leaves the sum the same, which is the commutative property in that section. A 2×3 and a 3×3 leave some entries without a partner, so that sum is undefined.

Multiply a row by a column

If A is m×r and B is r×n, the product AB is m×n. The entry in row i, column j is row i of A dotted with column j of B. OpenStax College Algebra 2e, section 7.5, Example 8, multiplies [1 2; 3 4] by [5 6; 7 8]. Both are 2×2, so the inner size is 2 and the product is 2×2: 1·5+2·7=19, 1·6+2·8=22, 3·5+4·7=43, and 3·6+4·8=50. The product is [19 22; 43 50].

A 2×3 times a 2×2

Each row of a 2×3 has three entries. Each column of a 2×2 has two. Take [1 2 3; 4 5 6], which is 2×3, and [7 8; 9 0], which is 2×2. The lists to multiply are not the same length. OpenStax College Algebra 2e, section 7.5, says the product is not defined when the inner dimensions do not match. There is no product matrix for that order.

Order changes the product

OpenStax College Algebra 2e, section 7.5, states that matrix multiplication is not commutative. The same 2×2 pair in the other order, [5 6; 7 8] times [1 2; 3 4], is 5·1+6·3=23, 5·2+6·4=34, 7·1+8·3=31, and 7·2+8·4=46. That product is [23 34; 31 46]. It is a different matrix from [19 22; 43 50]. In general, AB and BA disagree, even when both products exist.

Walking through a matrix step by step

Questions,
clearly answered.

How do you add matrices?

Add corresponding entries, and only when the two matrices are the same size. OpenStax College Algebra 2e, section 7.5, Example 3, adds [4 1; 3 2] and [5 9; 0 7]. The pairs are 4+5, 1+9, 3+0, and 2+7, so the sum is [9 10; 3 9]. The same section says addition is commutative: A+B = B+A. A 2×3 and a 3×3 have no sum, because some entries have no partner.

How do you multiply matrices?

The entry in row i, column j is row i of the first matrix times column j of the second, with those products added. OpenStax College Algebra 2e, section 7.5, says an m×r matrix times an r×n matrix gives an m×n matrix. For [1 2; 3 4] times [5 6; 7 8], both 2×2, the entries are 1·5+2·7=19, 1·6+2·8=22, 3·5+4·7=43, and 3·6+4·8=50. The product is [19 22; 43 50].

When is matrix multiplication undefined?

When the number of columns in the first matrix is not the number of rows in the second. OpenStax College Algebra 2e, section 7.5, says the product is not defined if those inner dimensions do not match. A 2×3 such as [1 2 3; 4 5 6] has 3 entries in each row. A 2×2 such as [7 8; 9 0] has 2 entries in each column. Those lists are different lengths, so a 2×3 times a 2×2 has no product.

What is an identity matrix?

A square matrix with ones on the main diagonal and zeros everywhere else. OpenStax College Algebra 2e, section 7.7, says it acts as 1 in matrix algebra: AI = IA = A. The chapter 7 key equations print the 2×2 identity as [1 0; 0 1] and the 3×3 identity with ones on the diagonal.

How do you find the determinant of a 2×2 matrix?

For the square matrix [a b; c d], the determinant is the number ad − bc. OpenStax Intermediate Algebra 2e, section 4.6, defines it that way, and defines a determinant for a square matrix. OpenStax College Algebra 2e, section 7.8, Example 1, evaluates [5 2; −6 3] as 5(3) − (−6)(2) = 27. The result is a number, not another matrix.

When does a matrix have an inverse?

A multiplicative inverse is a matrix that multiplies with the original, on either side, to give the identity. OpenStax College Algebra 2e, section 7.7, says only a square matrix may have one, and not every square matrix does. For [a b; c d], there is no inverse when ad − bc = 0.

Why is AB not always equal to BA?

Matrix multiplication is not commutative. OpenStax College Algebra 2e, section 7.5, states that directly. [1 2; 3 4] times [5 6; 7 8] is [19 22; 43 50]. The other order is 5·1+6·3=23, 5·2+6·4=34, 7·1+8·3=31, and 7·2+8·4=46, so [23 34; 31 46]. The two products are different. Addition does commute.

Is it okay to use a matrix calculator for homework?

Use it to check a size and an entry you already computed, after you have tried the problem. If the assignment is the work, copying only the final matrix skips what is being graded. Follow your class academic honesty policy.

Stephen AI Get it for Free