Skip to main content

How to Use the Desmos Matrix Calculator

Enter matrices, calculate and practice for the ACT

By JasonPublished 6 min read

A student arranges bread rolls in neat rows and columns on baking trays.

Desmos has a separate matrix calculator at desmos.com/matrix. Click New Matrix, set the rows and columns, and type the entries. The matrix gets a name such as A or B. Then use those names in expressions such as A+B, AB, 3A, det(A) and A^-1.

The matrix calculator is useful for checking your work as you practice.

The ACT's built-in Desmos has no matrices

The Desmos graphing calculator built into the ACT on a computer does not have the matrix tool, so learn every matrix operation by hand. However, many of the most popular handheld calculators allowed on the ACT, including the TI-84 and the TI-Nspire CX II, allow you to create and do operations on a matrix. If you bring one, practice entering matrices on it before test day.

Practice ACT matrix questions in our free Matrices topic training (free Resolve Prep account required).

Enter a matrix step by step

A matrix is a rectangular array of numbers. Its dimensions are rows by columns. For example, this 2×2 matrix has two horizontal rows and two vertical columns:

A=[1234]

To enter it:

  1. Open desmos.com/matrix and click New Matrix.
  2. Set the matrix to 2 rows and 2 columns.
  3. Enter 1 and 2 in the first row, then 3 and 4 in the second row. The calculator names the first matrix A.
  4. Click New Matrix again and enter B=[2012]. It gets the name B.
  5. On an expression line, type A+B. The result is [3246].

Keep track of rows and columns as you enter the numbers. The 2 in the first row of A is above the 4, not beside it in the second row. If you change an entry, use the updated matrix when you check your answer.

Matrix operations in Desmos

With A and B from above, enter the expression for the operation you want. A scalar is a single number, such as 3.

OperationEnterWhat it does
AddA+BAdds entries in matching positions.
SubtractA-BSubtracts entries in matching positions.
Scalar multiple3AMultiplies every entry of A by 3.
MultiplyABMultiplies rows of A by columns of B.
Determinantdet(A)Finds a single number associated with square matrix A.
InverseA^-1Finds the inverse of A when it exists.
TransposeATSwitches rows and columns; use the AT button.
PowerA^2Multiplies A by itself; other whole-number powers repeat the multiplication.

Here are four results worked out by hand. They give you a way to check both your entries and the calculator's output.

Add. Add numbers in the same position: 1+2=3, 2+0=2, 3+1=4 and 4+2=6. So

A+B=[3246]

Multiply. Match each row of A with each column of B. The first row gives 1(2)+2(1)=4 and 1(0)+2(2)=4. The second gives 3(2)+4(1)=10 and 3(0)+4(2)=8. Therefore,

AB=[44108]

Find the determinant. Multiply the top-left and bottom-right entries, then subtract the product of the other diagonal: det(A)=1(4)−2(3)=−2. The result is a number, not a matrix.

Find the inverse. For a 2×2 matrix, swap the entries on the main diagonal, change the signs of the other two, and divide every entry by the determinant. Since det(A)=−2,

A−1=1−2[4−2−31]=[−2132−12]

A square matrix with determinant 0 has no inverse. The inverse is a matrix that multiplies with the original to give the identity matrix, the matrix with 1s on its main diagonal and 0s elsewhere.

Check dimensions before you calculate

For addition and subtraction, the two matrices must have the same number of rows and the same number of columns. A 2×3 matrix and a 3×2 matrix cannot be added, even though both contain six entries. Their positions do not match.

For AB, the number of columns in A must equal the number of rows in B. If A is 2×3 and B is 3×4, the matching inside numbers are both 3. The product AB has the outside dimensions, 2×4.

Write the dimensions side by side: (2×3)(3×4). If the inside numbers disagree, the product is undefined. Desmos will not compute a sum or product when the dimensions do not match. Fix the dimensions or check that you entered the matrices in the right order.

Common mistake

Order matters. AB is not generally equal to BA. With the matrices above, AB=[44108], but BA=[24710]. Sometimes one order is defined and the other is not.

Determinants, inverses and matrix powers require a square matrix. An inverse also requires a nonzero determinant. Transposing a 2×3 matrix produces a 3×2 matrix: its first row becomes the first column.

Matrices on the ACT

The ACT tests matrices on a question or two per test. Know how to add matrices, multiply by a scalar, multiply matrices, find the determinant of a 2×2 matrix and find the dimensions of a product. The SAT does not test matrices.

The Desmos graphing calculator built into the ACT on a computer and into the SAT's Bluebook does not have the matrix tool. For ACT questions, practice these methods by hand:

  1. Add or subtract: combine entries in the same position. For scalar multiplication, multiply every entry by the scalar. For example, 3[1−204]=[3−6012].
  2. Multiply: take a row from the first matrix and a column from the second. Multiply their matching entries and add. Repeat for every position in the answer. For the top-right entry of AB above, use row [1,2] and column [0,2]: 1(0)+2(2)=4.
  3. Find a determinant: for [abcd], calculate ad−bc. Keep the subtraction in that order.
  4. Find product dimensions: match the inside numbers, then use the outside numbers. (4×2)(2×5) gives a 4×5 product.

For more differences between the tests, see SAT vs. ACT Math and SAT vs. ACT. For graphing tools you can use on test questions, see key Desmos features.

ACT-style practice

Try these original questions before reading the solutions.

1. Add and scale

If P=[2−130] and Q=[14−25], what is 2P+Q?

  • A. [5245]
  • B. [3315]
  • C. [66210]
  • D. [5−685]

Answer: A. First, 2P=[4−260]. Add Q entry by entry to get [5245].

2. Multiply matrices

If P=[132−1] and Q=[2104], what is PQ?

  • A. [2134−2]
  • B. [2413−2]
  • C. [2120−4]
  • D. [5443]

Answer: A. The first row gives 1(2)+3(0)=2 and 1(1)+3(4)=13. The second gives 2(2)+(−1)(0)=4 and 2(1)+(−1)(4)=−2.

3. Find a determinant

What is the determinant of [3−245]?

  • A. 7
  • B. 13
  • C. 23
  • D. 31

Answer: C. Use ad−bc: 3(5)−(−2)(4)=15−(−8)=23. Subtracting a negative adds 8.

Key takeaways

  • Enter each matrix in the separate Desmos matrix calculator, then use its name in an expression.
  • Add matching entries; multiply a row by a column. Check dimensions before either operation.
  • For a 2×2 determinant, use ad−bc.
  • Learn the ACT methods by hand because the built-in graphing calculator has no matrix tool.

Tutor? Use Resolve Prep with your students