# Matrix

A matrix is a rectangular array of numbers (or symbols or expressions) arranged in rows and columns.

```
┌       ┐
│ 1 2 3 │
│ µ ∑ ∂ │
└       ┘
```

The dimensions of this matrix are 2x3 ("two by three"). In notations concerning matrices, the rows are always first, the columns last.

Individual items in an `n×m` matrix A, denoted `a[i,j]` (`i <= n, j <= m`) are called its elements or entries.

## Identity matrix

Identity matrix is a square matrix in which all the elements of the main (major, principal, leading) diagonal are ones and all other elements are zeros.

```
               ┌     ┐   ┌       ┐
I¹ = 1 = I² =  │ 1 0 │ = │ 1 0 0 │ = ...
               │ 0 1 │   │ 0 1 0 │
               └     ┘   │ 0 0 1 │
                         └       ┘
```

The effect of multiplying a given matrix by an identity matrix is to leave the given matrix unchanged.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mandober.gitbook.io/math-debrief/501-number-theory/terms/matrix2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
