I have the following equation where each variable is a matrix that can be multiplied
A * B = C
I have matrix A and C but matrix B is unknown and I need to get its value
the way I though about it is to make a the following
B = C / A
which means
B = C * (1/A)
which means
B = C * A-1
where A-1 means the inverse of A
is that correct or should something happens to matrix A after moving to the other side of the equation?
- 143
-
1Please use Mathjax – Arman Malekzadeh May 31 '17 at 21:09
2 Answers
It is not correct. Matrices are not commutative and you can't just multiply on whatever side you feel like:
$$AB = C\implies A^{-1}AB=A^{-1}C \implies B=A^{-1}C.$$
On the other hand, $A$ might not be invertible at all, i.e. $A^{-1}$ might not exist. You need to check that before you do the above.
In general, things don't move in an equation. $A$ didn't move to the other side and magically change to $A^{-1}$. Similarly, when you write $zt+3=y\implies zt+3-y=0$, $y$ didn't move and change to $-y$.
What happens in both cases is that we apply some function on both sides of equation. By the very definition of function, both sides must be equal. In the first case, let $f(X) = A^{-1}X$ and $$AB = C\implies f(AB) = f(C)\implies A^{-1}(AB) = A^{-1}C,$$ while in the second case $f(x) = x - y$ and $$zt+3=y\implies f(zt+3) = f(y)\implies (zt+3)-y = y- y.$$
- 23,082
-
I get it now
in any equation we don't just move left hand side to the right hand side, we do a mathematical operation on both side in that way we don't mess with the main equation
– hamada147 May 31 '17 at 22:04 -
so in my case I would divide both sides with A so it will be AB/A = C/A. correct? – hamada147 May 31 '17 at 22:05
-
1@hamada147, there is no division as operation when you are dealing with matrices. – Ennar Jun 01 '17 at 00:44
-
according to this website Math Is Fun we do have division in a sort of multiply by an inverse isn't that correct? – hamada147 Jun 01 '17 at 05:18
-
1@hamada147, that is highly misleading. Operation on set $S$ is map $S\times S\to S$ satisfiying some axioms. Depending on axioms satisfied, we name operations differently. There is no division defined for all (non-zero) matrices, since not all matrices are invertible. Another thing is notation $A/B$. It is a trainwreck since multiplication is not commutative and it lead to the mistake you made - you multiplied with inverse but on the wrong side. You should forget about it in this context. – Ennar Jun 01 '17 at 11:25
No, this is not correct.
There are two things going on:
You have implicitly assumed that $A$ is invertible. It may be the case that this $A$ has no inverse; this is analagous to trying to divide by $0$. If $A$ does not have an inverse, then everything you've written past the first equation is nonsense.
You have mixed up "division" with "multiplying by an inverse". In familiar situations, these are, more or less by definition, the same operation, but multiplication of matrices is not commutative. That is, there are matrices $A$ and $B$ such that $AB \neq BA$. In particular, what you should have is
$$AB = C \\ A^{-1}AB = A^{-1}C \\ IB = A^{-1}C \\ B = A^{-1}C$$
Notice how here we have $B = A^{-1}C$, not $B = CA^{-1}$. If $A^{-1}$ and $C$ do not commute, these answers will be different.
- 6,928
- 1
- 20
- 38