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
1 answer

Iterating over "triangular" portion of a 4D matrix

If I have a symmetrical matrix of size n x n, say: A = [ 0 3 5 0 4 3 0 1 2 0 5 1 0 0 6 0 2 0 0 2 4 0 6 2 0 ] (representing the weights of edges between vertex i and vertex j in an adjacency matrix, but that is beside the…
Gus Kenny
  • 639
2
votes
0 answers

Generate random unitary matrix with given $\theta$

For orthogonal matrices, I use this procedure: function random_orthogonal(n, θ) X = randn(n, n) Y = X - X' Y *= sqrt(2) / frobenius_norm(Y) return expm(θ*Y) end For unitary matrices, this is what I tried: function random_unitary(n,…
Nick
  • 997
  • 1
  • 10
  • 21
2
votes
1 answer

Finite dimensional matrices

$A,B$ are $n\times n$ real matrices and $A$ is non-singular. $AB=2BA$, why then must it follow that $B^n=0$ for some $n$? Here are some of my thoughts: We can write $B=2A^{-1}BA$, In other words $B$ is similar to $2B$. So they represent the same…
Yves
  • 21
  • 1
2
votes
2 answers

If Ax = 0 for every x in $R^n$, A is a zero matrix

If A is a $m$ $x$ $n$ matrix such that: $Ax = 0$, for every $x \in \mathbb{R}^n$, then A = 0 is the zero matrix. I have no idea how to begin proving this. The only hint is to consider a $j$ column in the Identity matrix $I_n$, but I don't see how…
q.Then
  • 3,080
2
votes
2 answers

Express the $(A + B)^k$ for $A, B \in \ M_{n \times n}(\mathbb{R})$ and $AB - BA = A$

Let $A, B \in \ M_{n \times n}(\mathbb{R})$ We know that $AB - BA = A$ How to express in terms of $A^iB^j$ the expression $(A + B)^k$
2
votes
1 answer

Covariance Matrix of mixture distribution

If a PDF is re-constructed as following $p(x)=\sum_{k=1}^{K}\pi_k p(x|k),$ where $p(x|k)$ has mean $\mu_k$ and covariance matrix $\Sigma_k$ , compute the mean and covariance of the new mixture distribution. Finding the mean is trivial , so say that…
genxium
  • 109
2
votes
1 answer

Solving matrices for certain variables using Cramer's rule

I have the following matrix equality: $$\left( \begin{array}{ccc} u_{11} & u_{12} & -p_1 \\ u_{21} & u_{22} & -p_2 \\ p_1 & p_2 & 0 \end{array} \right).\left( \begin{array}{c} \text{dc}_1 \\ \text{dc}_2 \\ \text{d$\lambda…
Koba
  • 1,233
2
votes
1 answer

Show that the set of matrices such that $\det A \neq 0$ is open

Possible Duplicate: Why do the $n \times n$ non-singular matrices form an “open” set? Like the title says how would you show that the set of matrices such that $\det A \neq 0$ is open? I can't even see where to start! As I can't envisage how I…
user26069
2
votes
1 answer

How to find a matrix to preserve one matrix and diagonize another matrix.

G is a positive-definite symmetric matrix, V is another symmetric matrix,ie $V\neq G$, All their elements are Real number. How to find a matrix O such that: $$OGO^{T}=I$$ $$OVO^{T}=Diag(\lambda_1,\lambda_2...\lambda_n)$$
xjtein
  • 298
2
votes
0 answers

Norm of a perturbed matrix

Suppose $A$ is a $k\times k$ symmetric matrix with $A_{ij}>0$ for all $i,j$ and $\sum_{i,j} A_{ij} = 1.$ Let $A_i$ be the sum of elements in row $i$ (or column $i$) of $A.$ Let $B$ be a matrix with entries $$B_{ij} = \frac{A_{ij}^2}{A_i A_j}.$$ Let…
Hedonist
  • 1,401
2
votes
2 answers

Find $-3\mathop{Tr}(A-3B)$

Given matrics $A = \begin{bmatrix}1 && 5 && 2 \\ -1 && 0 && 1 \\ 3 && 2 && 4\end{bmatrix}$ and $B = \begin{bmatrix}6 && 1 && 3 \\ -1 && 1 && 2 \\ 4 && 1 && 3\end{bmatrix}$, find $-3\mathop{Tr}(A-3B)$. I am not exactly sure what is…
2
votes
0 answers

matlab code for tranforming nonsingular matrix to first row diagonal dominant matrix

Please i need help. I need somebody who can help me with matlab codes to transform a non diagonally dominant non singular matrix to first row diagonally dominant matrix.Given a linear system of Ax=b shown below $$(a_{11}~~a_{12}~~ ...…
segun
  • 21
2
votes
1 answer

Rank 0ne matrices

Any rank-1 matrix $A$ can be written as $A = c r^T$ where $c$, $r$ are both in $\mathbb R^n$. $A$ can also be considered a projection matrix projecting any vector $w$ onto $c$. $AA =(c r^T)(c r^T) = r^Tc (c r^T)=r^Tc A$. However if $c$ and $r$ are…
2
votes
1 answer

Matrix pencils of quadratic forms

Consider a matrix pencil of quadratic form $F-λB$ with $B$ positive definite. For which $λ$ the pencil $F-λB$ less or equal to $0$ (negative definite)?
2
votes
1 answer

Sign of $tr(A)$ given $I_n+A+A^2+A^3=0$

Let $A$ be a real matrix such that $I_n+A+A^2+A^3=0$, what is the sign of $tr(A)$ ($tr$ being the trace) ? What I have done : One can easily figure our the inverse of $A$ since $I_n=-A-A^2-A^3=A(-I_n-A-A^2)=AA^{-1}$, but I fail to see any way to…