Questions tagged [matrices]

For any topic related to matrices. This includes: systems of linear equations, eigenvalues and eigenvectors (diagonalization, triangularization), determinant, trace, characteristic polynomial, adjugate and adjoint, transpose, Jordan normal form, matrix algorithms (e.g. LU, Gauss elimination, SVD, QR), invariant factors, quadratic forms, etc. For questions specifically concerning matrix equations, use the (matrix-equations) tag.

A matrix is a rectangular array of elements, usually numbers or variables, arranged in rows and columns. A matrix with $m$ rows and $n$ columns has $m \times n$ elements and is called an $m$ by $n$ matrix. Matrices are a part of .

Matrices can be added and subtracted. Furthermore, if they have compatible shapes, they can be multiplied. More precisely, given two matrices $A$ and $B$, the matrix $AB$ is defined when the number of columns of $A$ is equal to the number of rows of $B$. In particular, given a natural number $n$, any two matrices $A$ and $B$ with $n$ columns and $n$ rows can be multiplied in both ways (that is, both $AB$ and $BA$ exist).


For questions specifically concerning matrix equations, use the tag.

55954 questions
2
votes
2 answers

Direction of a shear confusion

I have this matrix which has a line of invariant points $y=0.5x$ and a line of invariance $y=0.25x$. This matrix is: \begin{bmatrix} -3&8\\ -1&3\\ \end{bmatrix} I am further told that it is a combination of a Shear and a reflection in the line…
Lo-urc
  • 567
2
votes
1 answer

If $A$ is a invertible integer matrix, then $\det A$ is coprime with some cofactor

Let $A\in \mathbb{Z}^{n\times n}$ with $\det A\neq 0$. I was wondering whether $A^{-1}$ must have an entry of the form $p/q$ with $q=\det A$ and $(p,q)=1$ (that is, an irreducible fraction). By the adjugate form of the inverse, this is equivalent…
Reveillark
  • 13,044
2
votes
1 answer

Exact powers of an integer matrix

Assume that I have a large, non-symmetric matrix $\bf{A}$ of zeros and ones. If I want the exact diagonal elements of $\bf{A}^{k}$ (not the trace, but the elements themselves) where $k$ is some large whole number, I can Multiply the matrices out…
Hooked
  • 6,637
2
votes
0 answers

Compare two matrices' Hamming distace

It may seem a silly question that, how to compare two matrices with the same dimension by Hamming distance? $$d^{HD}(i,j) = \sum_{k=0}^{n-1} [y_{ik}\neq y_{jk} ]$$ Is it Simply sum(abs(B-A)) where A and B are the matrices? Is it used for weighted…
Abolfazl
  • 165
2
votes
1 answer

Lyapunov equation but with one extra term

In my research, I need to solve a matrix equation very similar to Lyapunov equation but with one extra term. The equation is X+DXD-WXW=A, where X is the unknown n*n matrix. W, D and A is known. W is a symmetric n*n matrix, A is not symmetric. D is…
zhao85
  • 21
  • 1
2
votes
1 answer

Let $A$ be a square matrix that commutes with its transpose. Show that the nullspaces of $A$ and $A^T$ coincide.

Am completely stuck on this, any help would be appreciated.
thesmallprint
  • 3,636
  • 1
  • 16
  • 25
2
votes
1 answer

What is the identity matrix for a reflection across the $y=-2$ line?

I am fairly familiar with how to multiply matrices and add/subtract them. This particular question, however, I am not sure about. How can I find the identity matrix whilst preserving congruence? Please explain.
Rachel
  • 21
  • 1
2
votes
2 answers

How to read an NxN matrix diagonally? After this how to write it diagonally?

I am having an NxN matrix . I want to read the elements of that NxN matrix diagonally and need to store it in an array.How? For example, I am having one 3x3 matrix $$\begin{bmatrix} A B C \\ D E F\\ G H I \end{bmatrix}$$ I want to read this…
Robertew
  • 129
2
votes
1 answer

Derivative of $trace(|A|)$ with respect to $A$

What is the derivative of $trace(|A|)$ with respect to $A$ ? where: $|A|$ represents absulote value of $A$ and $A$ is an $n \times n$ matrix $\mathbf{Or}$ What is the derivative of $trace(A\ .* \ A)$ with respect to $A$ ? $A\ .* \ A$ represents…
Mohsen
  • 93
2
votes
2 answers

what does wedge or carrot mean in a matrix context

While reading about coordinate transformations. I came across this $\Omega^{\gamma}_{\beta,\alpha}=[\omega^{\gamma}_{\beta,\alpha}\wedge]$ What does the caret (or wedge) mean? In the book it looks more like a caret than a wedge. Taken from Groves,…
2
votes
2 answers

Parenthesis vs brackets for matrices - next

I have read Parenthesis vs brackets for matrices and I currently use brackets matrices (quaternions in 3D computing, in fact). But I still have a doubt about the strict compatibility of notations between brackets and parenthesis, as explained in the…
Sandburg
  • 125
2
votes
0 answers

Prove that $A+B=-2I_{4}$

If $A,B\in M_{4}\left( \mathbb{R} \right) :A\neq B;Tr\left( A\right) \neq 0$ and $$\left\{\begin{matrix} A^2 - 2B + I_4 = 0_4 \\ B^2 - 2A + I_4 = 0_4 \end{matrix}\right.$$ prove that: $$A+B=-2I_{4}$$ and $$\det\left( A-aI_{4}\right) \geq \det\left(…
Brain123
  • 119
  • 6
2
votes
4 answers

Is the square root of a 2 by 2 matrix unique?

How would I know if the square root of a 2 by 2 matrix is unique?
2
votes
1 answer

Prove $(kA)^{-1}=\frac{A^{-1}}{k}$ for any scalar non zero $k$

If $A$ is $3 \times 3$ invertible matrix, then show that for any scalar $k\neq 0$, $kA$ is also invertible and that $$(kA)^{-1}=\frac{A^{-1}}{k}$$
2
votes
0 answers

Upper Bounds on the Diagonal Elements of the Smith Normal Form

Let $\textbf A\in \mathbb Z^{n \times (n-1)}$ be a full-rank integer matrix and $\textbf w \in \mathbb Z^n$ be a vector such that $\textbf w^T \textbf A = \textbf 0$. Now, consider the Smith normal form $\textbf A_{\sf smith} \in \mathbb Z^{n \times…
ruparunpa
  • 173