Guide to Using Our Matrix Calculator

The following instructions explain how to use the matrix calculator to set matrix dimensions, fill or edit matrices, perform matrix operations, and solve systems of linear equations for both real and complex matrices.

Matrix Selection & Editing

Setting Matrix Dimensions

You can set the dimensions of a selected matrix in the following ways:

Entering Matrix Data

You can fill matrices with real numbers, imaginary numbers, complex numbers, or expressions like 1/2 + 3sin(5π/4)i.

Matrix Algebra

To calculate various matrix operations such as determinant, inverse, reduced row echelon form (RREF), adjugate, rank, lower/upper triangular forms, and transpose on a selected matrix, press the corresponding buttons at the top of the matrix calculator.

Quick Calculations & Custom Expressions

Under the Quick Calculations drop-down list, you can compute frequently used matrix expressions involving two or more matrices, such as A+B, (A+B)(C+D), and more.

If a desired matrix expression is not listed in the Quick Calculations menu, enter it in the expression box and press Calculate.

You can use the following in your expressions:

If the expression is valid and contains no incompatible matrix operations, the result will be displayed. Otherwise, an error message will appear.

As an example, the calculator is capable to evaluate intricate matrix expressions such as (2+sin(π/3))A+inv(A+iB/det(A))(B/2-BC^4)/D^(2^3+1)

Remark: Although division is not a standard mathematical operation on matrices, our matrix calculator allows the use of the division operator as in A/B in matrix expressions, interpreting it as A*inv(B) for compatible matrices where B is invertible. Additionally, note that 1/A can be used for inv(A).

1×1 Matrices & Scalar Treatment

Solving Linear Systems

The system of linear equations solver provides two methods for solving such systems.

Method 1: Solving a Single Linear System

The first method is a straightforward approach for solving a single linear system.

  1. Select the Linear System checkbox.
  2. Set the dimensions for the coefficient matrix and fill in the augmented matrix with real or complex numbers (or expressions).
  3. The last column (column vector) represents the right-hand side (RHS) of the system, highlighted with a different background.
  4. Press Solve.
    • If the system is consistent and has a unique solution, the solution vector will be displayed along with the Reduced Row Echelon Form (RREF) of the augmented matrix.
    • If multiple solutions exist, the general solution will be provided.
    • If the system is inconsistent, a message indicating this will appear, along with the RREF.

Method 2: Solving Multiple Systems with the Same Coefficient Matrix

This method allows you to solve multiple linear systems simultaneously, all sharing the same m×m square matrix as their coefficient matrix.

  1. Do not select the Linear System checkbox.
  2. Set the number of columns to be greater than the number of rows (m).
  3. Fill each additional column (after the mth column) with the right-hand side (RHS) of the corresponding system.
  4. Press RREF.
    • If the m×m matrix on the left appears in RREF, each system has a unique solution.
    • The corresponding solution vectors will be displayed on the right-hand side.