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
1
vote
0 answers

How to change a matrix transformation relative to a new local space

If I have an arrow rotating around the y axis in it's own local space with matrix T, is it possible keep that rotation in world space consistent, but change the local matrix to a new matrix H so that this new matrix has the arrow rotating for…
carmo
  • 11
1
vote
2 answers

How to find grid neighbors from a string?

If I collapsed a 2 dimensional grid into 1 dimension (e.g a 3x3 grid into a string): 1 2 3 4 5 6 => 1 2 3 4 5 6 7 8 9 7 8 9 Is there a formula where I could verify if two points used to be neighbors? Working it out on a markerboard, the best…
amflare
  • 153
1
vote
1 answer

Find coordinate of N squares traveled in a spiral matrix

I have a matrix of variable sizes, and want to find the coordinates of the n amount of squares traveled. In this example the size of the matrix is: 8. Meaning the amount of rows and columns. Starting at point x, y: (1, 1) and; Going as far right…
Vinícius
  • 115
1
vote
2 answers

I am really having trouble trying to see if this correct. Could you help?

Select all statements below which are true for all invertible $n\times n$ matrices $A$ and $B$ A. $(A+A^{−1})^4=A^4+A^{−4}$ (true) B. $A+I_n$ is invertible (False) C. $A^7 B^2$ is invertible (true) D. $AB=BA$ (False) E. $(A+B)^2=A^2+B^2+2AB$…
1
vote
1 answer

Regular matrix $\rightarrow$ symmetrical and positive definite

Could somebody help me to prove that if $B$ is a regular matrix, then $A = B^\intercal B$ is symmetrical and positive definite?
1
vote
1 answer

Square root of an arrowhead block matrix

How do I find a square root of a symmetric matrix: $W=\begin{bmatrix}D_1 & A \\ A^T & D_2\end{bmatrix}$ where $D_1$ and $D_2$ are diagonal matrices, $D_1$ very large (5000x5000), $D_2$ quite small (3x3 to 100x100), $A$ is a slim sparse matrix…
Tomas
  • 1,368
1
vote
1 answer

Finding the maximum possible variation of a permutation of size N

Given a permutation of size N, you can create a distance matrix that shows the distance between each element to each other element, giving a complete description of the permutation. ie 1,2,3,4 creates \begin{array}{|c|c|c|c|c|} \hline & \textbf{1}…
Treeman
  • 13
1
vote
2 answers

matrix multiplication associative properties

I want to ask a question about the associative property of matrices. I was given an introductory course into vectors, specifically relating to matrices and then watched a video on 3Blue1Brown. In his video, he gives a proof that the order of…
vik1245
  • 893
1
vote
1 answer

Matrix Transpose

I have a vector that I sliced into k vectors to create a matrix that is kxn. Let's call this matrix A (kxn) when I multiply the transpose of A (nxk) with A(kxn) I get a square matrix B(nxn) what does B signify?
1
vote
0 answers

Question about QR decomposition

Is it possible to know whether two matrices have the same Q in the QR-decomposition without explicitly calculating the QR decomposition. ie: $$A = Q_1R_1$$ and $$B = Q_2R_2$$ Is it possible to recognize that $$Q_1=Q_2$$ or $$Q_1 \ne Q_2$$ just by…
Ameet Sharma
  • 2,957
1
vote
1 answer

Linear systems for matrices

Component X costs 5, Component Y costs 10, and Component Z costs 15 dollars respectively. 1200 components were sold amassing 10000 dollars. Component Y sold the sum of Components X and Z sold. Ok, so I need to form 3 equations for the linear…
DuncanK3
  • 169
1
vote
1 answer

Is primitivity invariant under matrix conjugation.

Given a primitive matrix $A$. Is it true that it is only similar to other primitive matrices?
Steven-Owen
  • 5,556
1
vote
1 answer

Proving a jacobian matrix is symmetric

I am following this tutorial and in it they make a statement that the jacobian is symmetric. So, I have $\partial f(\mathbf{x}) / \partial {x}$, and I want to mathematically prove that it is symmetric. Here, $f(\mathbf{x})$ is softmax function. I…
Jonathan
  • 736
1
vote
0 answers

Does this matrix operation obey the rule of matrix multiplication?

I want to let $\vec y$ become $\vec u_b \ \rho_b \ \vec y $ and $\vec u_c \ \rho_c \ \vec y $, after a series matrix multiplication,but i am not sure if my matrix multiplication is right or not. $$ \mathbf u \mathbf \rho \mathbf…
XM551
  • 219
1
vote
1 answer

Normal matrices which are products of two symmetric positive definite matrices

If $A$ and $B$ are real-valued symmetric positive definite matrices, and if $AB$ is normal, i.e., $AB(AB)^T=(AB)^TAB$ (alternatively, $AB^2A=BA^2B$), then how does one prove that $AB=BA$ (i.e., $AB$ is symmetric).
Jog
  • 357