Questions tagged [matrix-equations]

This tag is for questions related to equations, with matrices as coefficients and unknowns. A matrix equation is an equation in which a variable stands for a matrix .

Definition: Let $~v_1,~v_2,~\cdots~,v_n~ $ and $~b~$ be vectors in $~\mathbb{R^n}~$. Consider the vector equation $$x_1~v_1+x_2~v_2+~\cdots~+x_n~v_n=b~$$This is equivalent to the matrix equation$$~Ax=b~$$

where $~~A=\begin{pmatrix} \cdot & \cdot & \cdots & \cdot \\ v_1 & v_2 & \cdots & v_n \\ \cdot & \cdot & \cdots & \cdot \\ \end{pmatrix};~~ x=\begin{pmatrix} x_1 \\ x_2\\ \cdots\\ x_n \end{pmatrix} ~~\text{and}~~ b=\begin{pmatrix} b_1 \\ b_2\\ \cdots\\ b_n \end{pmatrix}$

Since a matrix equation $ ~AX=B~$ (where $ ~X~$ is a column vector of variables) is equivalent to a system of linear equations, we can use the same methods we have used on systems of linear equations to solve matrix equations. Namely:

$(1.)~~$ Write down the augmented matrix $ ~A \vdots B$.

$(2.)~~$ Row-reduce to a new augmented matrix $~ \overline A \vdots \overline B~$ in row echelon form.

$(3.)~~$ Use this new matrix to write a matrix equation equivalent to the original one.

$(4.)~~$ Use this new, equivalent matrix equation to find the solutions to the original equation.

In mathematics, matrix equation (which is a system of linear equations) is the basis and a fundamental part of linear algebra, a subject which is used in most parts of modern mathematics. Computational algorithms for finding the solutions are an important part of numerical linear algebra, and play a prominent role in engineering, physics, chemistry, computer science, and economics. A system of non-linear equations can often be approximated by a linear system (see linearization), a helpful technique when making a mathematical model or computer simulation of a relatively complex system.

Very often, the coefficients of the equations are real or complex numbers and the solutions are searched in the same set of numbers, but the theory and the algorithms apply for coefficients and solutions in any field. For solutions in an integral domain like the ring of the integers, or in other algebraic structures, other theories have been developed, see Linear equation over a ring. Integer linear programming is a collection of methods for finding the "best" integer solution (when there are many). Gröbner basis theory provides algorithms when coefficients and unknowns are polynomials. Also tropical geometry is an example of linear algebra in a more exotic structure.

4362 questions
8
votes
2 answers

How is the fundamental matrix (in computer vision) derived?

In this paper, page 92, the so called fundamental matrix in computer vision is derived. Some notation: $M = (x,y,z)^T$ is a 3d point and $ \left[ \begin{array}{cc} M\\ 1 \end{array} \right] $ represents the homogeneous…
j-a
  • 338
5
votes
1 answer

When is the trivial solution to this matrix equation the only solution?

Consider a possibly-rectangular (only the rectangular case is of real interest) matrix $M$, and two diagonal matrices $D_1, D_2$. We want $$D_1 M+M D_2=0$$ Clearly $D_1=0,D_2=0$ is sufficient. But is is not always necessary: if $M=0$, any $D_1,…
Wouter
  • 7,673
3
votes
1 answer

given coordinates, find the number at that coordinates in spiral matrix.

given coordinates, find the number at that coordinates in spiral matrix. Given is the image of spiral i am talking about. at 0,0 ---> 0 0,1 ---> 1 1,1 ---> 2 0,1 ---> 3 -1,1 ---> 4 -1,0 ---> 5 -1,-1 ---> 6 And the answer is here, but i don't…
ash
  • 41
3
votes
1 answer

Why would you multiply a matrix by another matrix followed by it's transpose?

I'm trying to understand a formula for Kalman filters called the Covariance Update Equation. It looks like this: $$ \boldsymbol{ P_{n,n} = \left( I - K_{n}H \right) P_{n,n-1} \left( I - K_{n}H \right)^{T} + K_{n}R_{n}K_{n}^{T} } $$ $P_{n,n-1}$ is…
confused
  • 205
3
votes
2 answers

Solving a certain quadratic matrix equation

I am trying to find solutions to an equation of the form: $$X^2+\theta SX+\lambda I=0$$ Where $X$ is an unknown matrix (what I am trying to solve for), $S$ is a known antisymmetric matrix that squares to $-I$, $I$ is the identity matrix, and…
Matt Dickau
  • 2,227
3
votes
2 answers

Matrix equation using determinant

This question got me thinking and confused on how to solve it. If $$\begin{align}k(x-a)+2x-z&=0\\k(y-a)+2y-z&=0 \\ k(z-a)-x-y+2z&=0\end{align}$$ Show that $$x = \frac{ak(k+3)}{k^2+4k+2}.$$ So far so good, I could only solve it simultaneously.
3
votes
2 answers

Find out all solutions for the system

Given the system $$ \left[ \begin{array}{ccc|c} x_1&x_2&x_3&k\\ x_1&x_2&kx_3&1\\ x_1&kx_2&x_3&1\\ kx_1&x_2&x_3&1\\ \end{array} \right] $$ I tried to solve this...It looks simple but I found a problem at the end... $$…
Dennis
  • 95
2
votes
1 answer

martices calculation for gauss-newton method

I'm looking into the derivation of Gauss-Newton method. Why $\frac 12(F_k+J_k\Delta x)^T(F_k+J_k\Delta x)$ become $\frac 12F_k^TF_k+F_k^TJ_k\Delta x+\frac12\Delta x^TJ_k^TJ_k\Delta x$? Is $F_k^TJ_k$ equal $J_k^TF_k$?
user26767
  • 299
2
votes
2 answers

Are these two matrix products equivalent?

Can we always have $(r*a^{T})*b = (b^{T}*a) *r$ where $r, a$ and $b$ are column vectors for which both of the above products are defined? Also, the length of $r$ can be different than the length of $a$ and $b$.
Elnaz
  • 629
2
votes
1 answer

Tikhonov regularization

I am looking at some C code that adds Tikhonov regularization to a positive definite symmetric matrix. Like this: power = (matrix[1][1] + matrix[2][2]); factor = 0.000136 //Found via trial and error for(i = 1; i < matrixSize; i++ ) { matrix[i][i] =…
2
votes
0 answers

How can one solve matrix equation $AXB-BXA=C$ for $X$?

In atomic-orbital-based coupled-perturbed self-consistent field (AO-based CPSCF) theory, one has to solve the equation $FP^1S-SP^1F=S^1PF-FPS^1+SPF^1-F^1PS$ for $P^1$. $F^1$ on the right-hand-side depends on $P^1$, so this equation must be solved…
2
votes
2 answers

Show that $C=B+gh^\top$ is invertible and the inverse is given by$ D=B^{-1}-(B^{-1}gh^\top B^{-1})/(1+h^\top B^{-1}g)$

My daughter set me this question and I have no idea how to solve it.It's a long time since I did any algebra. Let $B$ be an invertible $n \times n$ matrix and $g$ and $h$ be $n$-dimensional column vectors (that is $n\times 1$ matrices) that satisfy…
2
votes
0 answers

Matrix equation with inverse, left-multiply vs right-multiply -- does the sequence matter?

Suppose I have a matrix equation of the form: $$ C = ((A+X)^{-1}+B)^{-1}\tag{1} $$ where $A$, $B$, and $C$ are all squares and I want to solve for the unknown square $X$. (All of them are of the same dimension, $n$-by-$n$.) Now, assume such an $X$…
baa
  • 21
2
votes
1 answer

Are there different ways to solve 3x3 matrices?

Once again I'm doing a math team practice packet. The problem was: I found the determinant of a 3x3 matrix the way I know how to, which is: Determine all values of $x$ for which the determinant of $\begin{pmatrix} 1 & x & 2\\\ 3 & 4 & 5\\\ 6 & x & 7…
2
votes
1 answer

What is this matrix operator?

What is the operator that can combine two 2x2 matrices into one 4x4 matrix as shown below? A = $\begin{bmatrix}a&b\\c&d\end{bmatrix}$ X = $\begin{bmatrix}x&y\\z&w\end{bmatrix}$ A ? X = $\begin{bmatrix}aX&bX\\cX&dX\end{bmatrix} =…
18107
  • 23
1
2 3
9 10