<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Square_matrix</id>
	<title>Square matrix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Square_matrix"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Square_matrix&amp;action=history"/>
	<updated>2026-12-04T04:13:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Square_matrix&amp;diff=119644&amp;oldid=prev</id>
		<title>imported&gt;Rageking890m: /* See also */</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Square_matrix&amp;diff=119644&amp;oldid=prev"/>
		<updated>2026-03-30T08:36:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Matrix with the same number of rows and columns}}&lt;br /&gt;
[[File:Arbitrary square matrix.gif|thumb|A square matrix of order 4. The entries &amp;lt;math&amp;gt;a_{ii}&amp;lt;/math&amp;gt; form the [[main diagonal]] of a square matrix. For instance, the main diagonal of the 4×4 matrix above contains the elements {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;11&amp;lt;/sub&amp;gt; = 9}}, {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;22&amp;lt;/sub&amp;gt; = 11}}, {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;33&amp;lt;/sub&amp;gt; = 4}}, {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;44&amp;lt;/sub&amp;gt; = 10}}.]]&lt;br /&gt;
In [[mathematics]], a &amp;#039;&amp;#039;&amp;#039;square matrix&amp;#039;&amp;#039;&amp;#039; is a [[Matrix (mathematics)|matrix]] with the same number of rows and columns. An &amp;#039;&amp;#039;n&amp;#039;&amp;#039;-by-&amp;#039;&amp;#039;n&amp;#039;&amp;#039; matrix is known as a square matrix of order {{nowrap|&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.}} Any two square matrices of the same order can be added and multiplied. &lt;br /&gt;
&lt;br /&gt;
Square matrices are often used to represent simple [[linear transformation]]s, such as [[Shear mapping|shearing]] or [[Rotation (mathematics)|rotation]]. For example, if &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; is a square matrix representing a rotation ([[rotation matrix]]) and &amp;lt;math&amp;gt;\mathbf{v}&amp;lt;/math&amp;gt; is a [[column vector]] describing the [[Position (vector)|position]] of a point in space, the product &amp;lt;math&amp;gt;R\mathbf{v}&amp;lt;/math&amp;gt; yields another column vector describing the position of that point after that rotation. If &amp;lt;math&amp;gt;\mathbf{v}&amp;lt;/math&amp;gt; is a [[row vector]], the same transformation can be obtained using {{nowrap|&amp;lt;math&amp;gt;\mathbf{v} R^{\mathsf T}&amp;lt;/math&amp;gt;,}} where &amp;lt;math&amp;gt;R^{\mathsf T}&amp;lt;/math&amp;gt; is the [[transpose]] of {{nowrap|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
==Main diagonal==&lt;br /&gt;
{{Main|Main diagonal}}&lt;br /&gt;
The entries &amp;lt;math&amp;gt;a_{ii}&amp;lt;/math&amp;gt; ({{math|1=&amp;#039;&amp;#039;i&amp;#039;&amp;#039; = 1, ..., &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}) form the [[main diagonal]] of a square matrix. They lie on the imaginary line which runs from the top left corner to the bottom right corner of the matrix. For instance, the main diagonal of the 4×4 matrix above contains the elements {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;11&amp;lt;/sub&amp;gt; = 9}}, {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;22&amp;lt;/sub&amp;gt; = 11}}, {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;33&amp;lt;/sub&amp;gt; = 4}}, {{math|1=&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;44&amp;lt;/sub&amp;gt; = 10}}. &lt;br /&gt;
&lt;br /&gt;
The diagonal of a square matrix from the top right to the bottom left corner is called &amp;#039;&amp;#039;antidiagonal&amp;#039;&amp;#039; or &amp;#039;&amp;#039;counterdiagonal&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Special kinds ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;float:right; margin:0ex 0ex 2ex 2ex;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Example with &amp;#039;&amp;#039;n&amp;#039;&amp;#039; = 3&lt;br /&gt;
|-&lt;br /&gt;
| [[Diagonal matrix]] || style=&amp;quot;text-align:center;&amp;quot; | &amp;lt;math&amp;gt;&lt;br /&gt;
      \begin{bmatrix}&lt;br /&gt;
           a_{11} &amp;amp; 0      &amp;amp; 0 \\&lt;br /&gt;
           0      &amp;amp; a_{22} &amp;amp; 0 \\&lt;br /&gt;
           0      &amp;amp; 0      &amp;amp; a_{33}&lt;br /&gt;
      \end{bmatrix}&lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Lower triangular matrix]] || style=&amp;quot;text-align:center;&amp;quot; | &amp;lt;math&amp;gt;&lt;br /&gt;
      \begin{bmatrix}&lt;br /&gt;
           a_{11} &amp;amp; 0      &amp;amp; 0 \\&lt;br /&gt;
           a_{21} &amp;amp; a_{22} &amp;amp; 0 \\&lt;br /&gt;
           a_{31} &amp;amp; a_{32} &amp;amp; a_{33}&lt;br /&gt;
      \end{bmatrix}&lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Upper triangular matrix]] || style=&amp;quot;text-align:center;&amp;quot; | &amp;lt;math&amp;gt;&lt;br /&gt;
      \begin{bmatrix}&lt;br /&gt;
           a_{11} &amp;amp; a_{12} &amp;amp; a_{13} \\&lt;br /&gt;
           0      &amp;amp; a_{22} &amp;amp; a_{23} \\&lt;br /&gt;
           0      &amp;amp; 0      &amp;amp; a_{33}&lt;br /&gt;
      \end{bmatrix}&lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
=== Diagonal or triangular matrix ===&lt;br /&gt;
If all entries outside the main diagonal are zero, &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is called a [[diagonal matrix]]. If all entries below (resp. above) the main diagonal are zero, &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is called an upper (resp. lower) [[triangular matrix]].&lt;br /&gt;
&lt;br /&gt;
=== Identity matrix ===&lt;br /&gt;
The [[identity matrix]] &amp;lt;math&amp;gt;I_n&amp;lt;/math&amp;gt; of size &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is the &amp;lt;math&amp;gt;n \times n&amp;lt;/math&amp;gt; matrix in which all the elements on the [[main diagonal]] are equal to 1 and all other elements are equal to 0, e.g.&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;&lt;br /&gt;
I_1 = \begin{bmatrix} 1 \end{bmatrix}&lt;br /&gt;
,\ &lt;br /&gt;
I_2 = \begin{bmatrix}&lt;br /&gt;
         1 &amp;amp; 0 \\&lt;br /&gt;
         0 &amp;amp; 1 &lt;br /&gt;
      \end{bmatrix}&lt;br /&gt;
,\ \ldots ,\ &lt;br /&gt;
I_n = \begin{bmatrix}&lt;br /&gt;
         1 &amp;amp; 0 &amp;amp; \cdots &amp;amp; 0 \\&lt;br /&gt;
         0 &amp;amp; 1 &amp;amp; \cdots &amp;amp; 0 \\&lt;br /&gt;
         \vdots &amp;amp; \vdots &amp;amp; \ddots &amp;amp; \vdots \\&lt;br /&gt;
         0 &amp;amp; 0 &amp;amp; \cdots &amp;amp; 1&lt;br /&gt;
      \end{bmatrix}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
It is a square matrix of order {{nowrap|&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;,}} and also a special kind of [[diagonal matrix]]. The term &amp;#039;&amp;#039;identity matrix&amp;#039;&amp;#039; refers to the property of matrix multiplication that&lt;br /&gt;
&amp;lt;math display=block&amp;gt;I_m A = A I_n = A&amp;lt;/math&amp;gt; for any &amp;lt;math&amp;gt;m \times n&amp;lt;/math&amp;gt; matrix {{nowrap|&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
===Invertible matrix and its inverse===&lt;br /&gt;
A square matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is called &amp;#039;&amp;#039;[[invertible matrix|invertible]]&amp;#039;&amp;#039; or &amp;#039;&amp;#039;non-singular&amp;#039;&amp;#039; if there exists a matrix &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; such that&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Definition I.2.28 }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Definition I.5.13 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;AB = BA = I_n.&amp;lt;/math&amp;gt;&lt;br /&gt;
If &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; exists, it is unique and is called the &amp;#039;&amp;#039;[[inverse matrix]]&amp;#039;&amp;#039; of {{nowrap|&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;,}} denoted {{nowrap|&amp;lt;math&amp;gt;A^{-1}&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
===Symmetric or skew-symmetric matrix===&lt;br /&gt;
A square matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; that is equal to its transpose, i.e., {{nowrap|&amp;lt;math&amp;gt;A^{\mathsf T} = A&amp;lt;/math&amp;gt;,}} is a [[symmetric matrix]].  If instead {{nowrap|&amp;lt;math&amp;gt;A^{\mathsf T} = -A&amp;lt;/math&amp;gt;,}} then &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is called a [[skew-symmetric matrix]]. &lt;br /&gt;
&lt;br /&gt;
For a complex square matrix {{nowrap|&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;,}} often the appropriate analogue of the transpose is the [[conjugate transpose]] {{nowrap|&amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;,}} defined as the transpose of the [[complex conjugate]] of {{nowrap|&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;.}}  A complex square matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; satisfying &amp;lt;math&amp;gt;A^*=A&amp;lt;/math&amp;gt; is called a [[Hermitian matrix]].  If instead {{nowrap|&amp;lt;math&amp;gt;A^* = -A&amp;lt;/math&amp;gt;,}} then &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is called a [[skew-Hermitian matrix]].&lt;br /&gt;
&lt;br /&gt;
By the [[spectral theorem]], real symmetric (or complex Hermitian) matrices have an orthogonal (or unitary) [[eigenbasis]]; i.e., every vector is expressible as a [[linear combination]] of eigenvectors. In both cases, all eigenvalues are real.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Horn |last2=Johnson |year=1985 |nb=yes |loc=Theorem 2.5.6 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Definite matrix===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;float:right; text-align:center; margin:0ex 0ex 2ex 2ex;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! [[Positive definite matrix|Positive definite]] !! [[Indefinite matrix|Indefinite]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt; \begin{bmatrix}&lt;br /&gt;
         1/4 &amp;amp; 0 \\&lt;br /&gt;
         0 &amp;amp; 1 \\&lt;br /&gt;
     \end{bmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;lt;math&amp;gt; \begin{bmatrix}&lt;br /&gt;
         1/4 &amp;amp; 0 \\&lt;br /&gt;
         0 &amp;amp; -1/4 &lt;br /&gt;
     \end{bmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{math|1=&amp;#039;&amp;#039;Q&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;y&amp;#039;&amp;#039;) = 1/4 &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; + &amp;#039;&amp;#039;y&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
| {{math|1=&amp;#039;&amp;#039;Q&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;y&amp;#039;&amp;#039;) = 1/4 &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; − 1/4 &amp;#039;&amp;#039;y&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Ellipse in coordinate system with semi-axes labelled.svg|150px]] &amp;lt;br&amp;gt;Points such that {{math|1=&amp;#039;&amp;#039;Q&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;) = 1}} &amp;lt;br&amp;gt; ([[Ellipse]]).&lt;br /&gt;
| [[File:Hyperbola2 SVG.svg|100x100px]] &amp;lt;br&amp;gt; Points such that {{math|1=&amp;#039;&amp;#039;Q&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;) = 1}} &amp;lt;br&amp;gt; ([[Hyperbola]]).&lt;br /&gt;
|}&lt;br /&gt;
A symmetric {{math|&amp;#039;&amp;#039;n&amp;#039;&amp;#039;×&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}-matrix is called &amp;#039;&amp;#039;[[positive-definite matrix|positive-definite]]&amp;#039;&amp;#039; (respectively negative-definite; indefinite), if for all nonzero vectors &amp;lt;math&amp;gt;x \in \mathbb{R}^n&amp;lt;/math&amp;gt; the associated [[quadratic form]] given by&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot; id=&amp;quot;quadratic_forms&amp;quot;&amp;gt;Q(\mathbf{x}) = \mathbf{x}^\mathsf{T} A \mathbf{x}&amp;lt;/math&amp;gt;&lt;br /&gt;
takes only positive values (respectively only negative values; both some negative and some positive values).&amp;lt;ref&amp;gt;{{Harvard citations |last1=Horn |last2=Johnson |year=1985 |nb=yes |loc=Chapter 7 }}&amp;lt;/ref&amp;gt; If the quadratic form takes only non-negative (respectively only non-positive) values, the symmetric matrix is called positive-semidefinite (respectively negative-semidefinite); hence the matrix is indefinite precisely when it is neither positive-semidefinite nor negative-semidefinite.&lt;br /&gt;
&lt;br /&gt;
A symmetric matrix is positive-definite if and only if all its eigenvalues are positive.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Horn |last2=Johnson |year=1985 |nb=yes |loc=Theorem 7.2.1 }}&amp;lt;/ref&amp;gt; The table at the right shows two possibilities for 2×2 matrices.&lt;br /&gt;
&lt;br /&gt;
Allowing as input two different vectors instead yields the [[bilinear form]] associated to {{mvar|A}}:&amp;lt;ref&amp;gt;{{Harvard citations |last1=Horn |last2=Johnson |year=1985 |nb=yes |loc=Example 4.0.6, p. 169 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;B_A(\mathbf{x}, \mathbf{y}) = \mathbf{x}^\mathsf{T} A \mathbf{y}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Orthogonal matrix ===&lt;br /&gt;
An &amp;#039;&amp;#039;[[orthogonal matrix]]&amp;#039;&amp;#039; is a [[Matrix (mathematics)#Square matrices|square matrix]] with [[real number|real]] entries whose columns and rows are [[orthogonal]] [[unit vector]]s (i.e., [[orthonormality|orthonormal]] vectors). Equivalently, a matrix &amp;#039;&amp;#039;A&amp;#039;&amp;#039; is orthogonal if its [[transpose]] is equal to its [[inverse matrix|inverse]]:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A^\textsf{T} = A^{-1}, &amp;lt;/math&amp;gt;&lt;br /&gt;
which entails&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A^\textsf{T} A = A A^\textsf{T} = I, &amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;#039;&amp;#039;I&amp;#039;&amp;#039; is the [[identity matrix]]. &lt;br /&gt;
&lt;br /&gt;
An orthogonal matrix {{mvar|A}} is necessarily [[Invertible matrix|invertible]] (with inverse {{math|1=&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;−1&amp;lt;/sup&amp;gt; = &amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;}}), [[Unitary matrix|unitary]] ({{math|1=&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;−1&amp;lt;/sup&amp;gt; = &amp;#039;&amp;#039;A&amp;#039;&amp;#039;*}}), and [[Normal matrix|normal]] ({{math|1=&amp;#039;&amp;#039;A&amp;#039;&amp;#039;*&amp;#039;&amp;#039;A&amp;#039;&amp;#039; = &amp;#039;&amp;#039;AA&amp;#039;&amp;#039;*}}). The [[determinant]] of any orthogonal matrix is either +1 or −1.  The [[special orthogonal group]] &amp;lt;math&amp;gt;\operatorname{SO}(n)&amp;lt;/math&amp;gt; consists of the {{math|&amp;#039;&amp;#039;n&amp;#039;&amp;#039; × &amp;#039;&amp;#039;n&amp;#039;&amp;#039;}} orthogonal matrices with [[determinant]] +1. &lt;br /&gt;
&lt;br /&gt;
The [[complex number|complex]] analogue of an orthogonal matrix is a [[unitary matrix]].&lt;br /&gt;
&lt;br /&gt;
===Normal matrix===&lt;br /&gt;
A real or complex square matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is called &amp;#039;&amp;#039;[[normal matrix|normal]]&amp;#039;&amp;#039; if {{nowrap|&amp;lt;math&amp;gt;A^* A = AA^*&amp;lt;/math&amp;gt;.}}  If a real square matrix is symmetric, skew-symmetric, or orthogonal, then it is normal. If a complex square matrix is Hermitian, skew-Hermitian, or unitary, then it is normal. Normal matrices are of interest mainly because they include the types of matrices just listed and form the broadest class of matrices for which the [[spectral theorem]] holds.&amp;lt;ref&amp;gt;Artin, &amp;#039;&amp;#039;Algebra&amp;#039;&amp;#039;, 2nd edition, Pearson, 2018, section 8.6.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
===Trace===&lt;br /&gt;
The [[trace of a matrix|trace]], tr(&amp;#039;&amp;#039;A&amp;#039;&amp;#039;) of a square matrix &amp;#039;&amp;#039;A&amp;#039;&amp;#039; is the sum of its diagonal entries. While matrix multiplication is not commutative, the trace of the product of two matrices is independent of the order of the factors: &lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{tr}(AB) = \operatorname{tr}(BA).&amp;lt;/math&amp;gt;&lt;br /&gt;
This is immediate from the definition of matrix multiplication:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{tr}(AB) = \sum_{i=1}^m \sum_{j=1}^n A_{ij} B_{ji} = \operatorname{tr}(BA).&amp;lt;/math&amp;gt;&lt;br /&gt;
Also, the trace of a matrix is equal to that of its transpose, i.e.,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{tr}(A) = \operatorname{tr}(A^{\mathrm T}).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Determinant===&lt;br /&gt;
{{Main|Determinant}}&lt;br /&gt;
[[File:Determinant example.svg|thumb|300px|right|A linear transformation on &amp;lt;math&amp;gt;\mathbb{R}^2&amp;lt;/math&amp;gt; given by the indicated matrix. The determinant of this matrix is −1, as the area of the green parallelogram at the right is 1, but the map reverses the [[orientation (mathematics)|orientation]], since it turns the counterclockwise orientation of the vectors to a clockwise one.]]&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;determinant&amp;#039;&amp;#039; &amp;lt;math&amp;gt;\det(A)&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;|A|&amp;lt;/math&amp;gt; of a square matrix &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; is a number encoding certain properties of the matrix. A matrix is invertible [[if and only if]] its determinant is nonzero. Its [[absolute value]] equals the area (in &amp;lt;math&amp;gt;\mathbb{R}^2&amp;lt;/math&amp;gt;) or volume (in &amp;lt;math&amp;gt;\mathbb{R}^3&amp;lt;/math&amp;gt;) of the image of the unit square (or cube), while its sign corresponds to the orientation of the corresponding linear map: the determinant is positive if and only if the orientation is preserved.&lt;br /&gt;
&lt;br /&gt;
The determinant of 2×2 matrices is given by&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\det \begin{bmatrix} a &amp;amp; b \\ c &amp;amp; d \end{bmatrix} = ad - bc.&amp;lt;/math&amp;gt;&lt;br /&gt;
The determinant of 3×3 matrices involves 6 terms ([[rule of Sarrus]]). The more lengthy [[Leibniz formula for determinants|Leibniz formula]] generalizes these two formulae to all dimensions.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Definition III.2.1 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The determinant of a product of square matrices equals the product of their determinants:&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Theorem III.2.12 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\det(AB) = \det(A) \cdot \det(B)&amp;lt;/math&amp;gt;&lt;br /&gt;
Adding a multiple of any row to another row, or a multiple of any column to another column, does not change the determinant. Interchanging two rows or two columns affects the determinant by multiplying it by −1.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Corollary III.2.16 }}&amp;lt;/ref&amp;gt; Using these operations, any matrix can be transformed to a lower (or upper) triangular matrix, and for such matrices the determinant equals the product of the entries on the main diagonal; this provides a method to calculate the determinant of any matrix. Finally, the [[Laplace expansion]] expresses the determinant in terms of [[minor (linear algebra)|minors]], i.e., determinants of smaller matrices.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Mirsky |year=1990 |nb=yes |loc=Theorem 1.4.1 }}&amp;lt;/ref&amp;gt; This expansion can be used for a recursive definition of determinants (taking as starting case the determinant of a 1×1 matrix, which is its unique entry, or even the determinant of a 0×0 matrix, which is 1), that can be seen to be equivalent to the Leibniz formula. Determinants can be used to solve [[linear system]]s using [[Cramer&amp;#039;s rule]], where the division of the determinants of two related square matrices equates to the value of each of the system&amp;#039;s variables.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Theorem III.3.18 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Eigenvalues and eigenvectors===&lt;br /&gt;
{{Main|Eigenvalue, eigenvector and eigenspace|l1=Eigenvalues and eigenvectors}}&lt;br /&gt;
A number {{mvar|λ}} and a non-zero vector &amp;lt;math&amp;gt;\mathbf{v}&amp;lt;/math&amp;gt; satisfying&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;A \mathbf{v} = \lambda \mathbf{v}&amp;lt;/math&amp;gt;&lt;br /&gt;
are called an &amp;#039;&amp;#039;eigenvalue&amp;#039;&amp;#039; and an &amp;#039;&amp;#039;eigenvector&amp;#039;&amp;#039; of {{nowrap|&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;,}} respectively.&amp;lt;ref&amp;gt;&amp;#039;&amp;#039;Eigen&amp;#039;&amp;#039; means &amp;quot;own&amp;quot; in [[German language|German]] and in [[Dutch language|Dutch]].&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Definition III.4.1 }}&amp;lt;/ref&amp;gt; The number {{mvar|λ}} is an eigenvalue of an {{math|&amp;#039;&amp;#039;n&amp;#039;&amp;#039;×&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}-matrix {{mvar|A}} if and only if {{math|&amp;#039;&amp;#039;A&amp;#039;&amp;#039; − λ&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;}} is not invertible, which is [[logical equivalence|equivalent]] to&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Definition III.4.9 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\det(A-\lambda I) = 0.&amp;lt;/math&amp;gt;&lt;br /&gt;
The polynomial {{math|&amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;}} in an [[indeterminate (variable)|indeterminate]] {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} given by evaluation of the determinant {{math|det(&amp;#039;&amp;#039;XI&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; − &amp;#039;&amp;#039;A&amp;#039;&amp;#039;)}} is called the [[characteristic polynomial]] of {{mvar|A}}. It is a [[monic polynomial]] of [[degree of a polynomial|degree]] &amp;#039;&amp;#039;n&amp;#039;&amp;#039;. Therefore the polynomial equation {{math|1=&amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;(λ) = 0}} has at most &amp;#039;&amp;#039;n&amp;#039;&amp;#039; different solutions, i.e., eigenvalues of the matrix.&amp;lt;ref&amp;gt;{{Harvard citations |last1=Brown |year=1991 |nb=yes |loc=Corollary III.4.10 }}&amp;lt;/ref&amp;gt; They may be complex even if the entries of {{mvar|A}} are real. According to the [[Cayley–Hamilton theorem]], {{math|1=&amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;A&amp;#039;&amp;#039;) = 0}}, that is, the result of substituting the matrix itself into its own characteristic polynomial yields the [[zero matrix]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Cartan matrix]]&lt;br /&gt;
*[[Cayley–Hamilton theorem]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{Reflist|colwidth=30em}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* {{Citation |last1=Brown |first1=William C. |title=Matrices and vector spaces |publisher=[[Marcel Dekker]] |location=New York, NY |isbn=978-0-8247-8419-5 |year=1991 |url-access=registration |url=https://archive.org/details/matricesvectorsp0000brow }}&lt;br /&gt;
* {{Citation |last1=Horn |first1=Roger A. |author1-link=Roger Horn |last2=Johnson |first2=Charles R. |author2-link=Charles Royal Johnson |title=Matrix Analysis |publisher=Cambridge University Press |isbn=978-0-521-38632-6 |year=1985 }}&lt;br /&gt;
* {{Citation |last1=Mirsky |first1=Leonid |author-link=Leon Mirsky |title=An Introduction to Linear Algebra |url=https://books.google.com/books?id=ULMmheb26ZcC&amp;amp;dq=linear+algebra+determinant&amp;amp;pg=PA1 |publisher=Courier Dover Publications |isbn=978-0-486-66434-7 |year=1990 }}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*{{Commonscat-inline}}&lt;br /&gt;
&lt;br /&gt;
{{linear algebra}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Matrices (mathematics)|*]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Rageking890m</name></author>
	</entry>
</feed>