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
2
votes
2 answers

Basic doubts in matrix

Today I was studying about matrices and got stuck with a basic question in my mind . So basically in my book it is written that matrix is a 2 dimensional arrangement of real numbers in rows and columns . But as I had gone through it i realized that…
2
votes
0 answers

Conjugate gradient method on a linear system $Ax=b$

Consider the linear system $Ax=b,$ where $A\in\mathbb{R}^n$ is symmetric positive definite. In the conjugate gradient method, show that a) Every vector $r_i, i=0,\dots,n-1$ can be written as $$r_i=\sum_0^i\gamma_{ik}A^kr_0,$$ where…
taupi
  • 377
2
votes
1 answer

How do I solve $Mx = y$ if $M$ is singular?

Ok so I remember this trick that you could sometimes use to solve $Mx = y$ for $x$, given $M$ and $y$. It did not invovle computing $M^{-1}$. Can you remind me what it was? The only thing I remember is that you would do something to the equation $Mx…
Imean H
  • 211
  • 1
  • 4
2
votes
2 answers

Matrix Equation - Make X the Subject

I'm having a complete mind blank here even though i'm pretty sure the solution is relatively easy. I need to make X the subject of the following equation: $$AB - AX = X $$ All i've done so far is: $$A(B-X) = X$$ $$B-X = A^{-1} X$$ Not sure if thats…
2
votes
0 answers

How to solve the following quadratic matrix equation (i+X).(X.A+B)+C=0?

(i+X).(X.A+B)+C=0 i is an integer A, B, C are known matrices of n*m integer elements X is unknown matrix of n*n elements EDIT: More standard notation would be: (I+X).(X.A+B)+C=0 I is a matrix of n*n elements each of integer value i A, B, C are known…
azerbajdzan
  • 1,166
2
votes
1 answer

Why can I cancel out the matrix in the middle

I was given an example from my teacher when he does something like $$A^TC^{-1}A \gt B^TC^{-1}B \implies A^TA \gt B^TB$$ Where A and B are vectors. I am curious on how can the inversed matrix C in the middle got cancelled out?
2
votes
1 answer

Lowest number of Matrix multiplication

I have to find the lowest number of multiplications needed to multiply these Matrixes $A_1$ (11x15) $A_2$ (15x8) $A_3$ (8x15) $A_4$ (15x18) So I did something like $A_1(A_2(A_3A_4)) = 7290$ $(A_1A_2)(A_3A_4)= 5064$ $A_1((A_2A_3)A_4)=…
Simon D
  • 23
2
votes
1 answer

$CD+C+D=0$, show that $CD=DC$

So say we have two ($n \times n$)-matrices $C$ and $D$ and also that $CD+C+D=0$ Prove that $CD=DC$. I'm kind of curious about this one and don't know where to start.
Matrix1
  • 21
2
votes
3 answers

Solving matrix equation with $AA^T$

I am familiar with solving matrix equations by multiplying by the inverse of a matrix (if it exists), but how can I solve a matrix equation for $A$, if it contains $A^TA$? As a specific example: Solve for A: $$A^TA = VDV^T$$ (Note: $VDV^T$ is an…
jaynp
  • 2,151
1
vote
2 answers

Identity involving the product of the Moore-Penrose inverse of a matrix with its columns

Let $\mathbf X \equiv [\mathbf x_i]$ be a $m \times n$ array of $n$, $m$-dimensional vectors, and $\mathbf X^+$ be its right Moore-Penrose pseudoinverse ($\mathbf X \mathbf X^+ = I_m$). Prove that $\sum_{i=1}^n \| \mathbf X^+ \mathbf x_i \|^2 = m$.
Emre
  • 2,783
1
vote
0 answers

Minimizing the amplitude of this sum.

I am trying to solve this min-max problem.Please guide me how to approach this. Please consider my Problem statement as: Y=e * a ; where "e" & "a"=exponential phase factors & fixed complex numbers resp. In Matlab; M=4;N=256; a =…
1
vote
1 answer

How to solve the matrix equation $XX^* = A$?

Is there a way to solve the matrix equation $XX^* = A$, where $X$ is a $n\times k$ unknown matrix and $A$ is a $n\times n$ positive-definite Hermite matrix? Cholesky decomposition may be useful when $n=k$, but how about the case where $n \neq…
1
vote
1 answer

Solving a Nasty Matrix / Tensor Algebra Problem

I need to solve the following: $$ \sum_{i,c,d} x_{i,a} x_{i,b} x_{i,c} x_{i,d} W_{c,d} = \sum_{i} x_{i,a} x_{i,b} y_{i} $$ for known x and y, and W is symmetric. It is safe to assume that the elements of x and y are completely random. If I…
1
vote
0 answers

The sum of negative row entries for each matrix in a sequence of matrices

Consider a sequence of matrices defined recursively as follows: $P(0) = I_{n}$ $P(1) = M$ $P(t) = \beta \,P(t-1) M + (1-\beta)\, P(t-2)$ where $M$ is the transition matrix of a random walk on an $n$-cycle with loop probability of $1/3$ on each node,…
Hoda
  • 1,098
1
vote
0 answers

Solve matrix equations $AB=C$

I am currently working on writing some automatic differentation code which can compute the derivative of matrix equations. I began with a simple linear matrix multiplication (A is singular): $$A\cdot B=C$$ To be specific I formulated my cost…
1
2
3
9 10