I cannot find how to solve a matrix equation in Mathematica.
Below is a matrix equation:
{{3,4},{4,5}}A=={{5,6},{7,4}}
Here are two matrices and I would like to solve for A, how would I do it in Mathematica?
By hand you multiply each side by the inverse.
Thanks!!!
fkampas
(Frank Kampas)
2
In[6]:= A = Array[a, {2, 2}];
In[7]:= A /. Solve[{{3, 4}, {4, 5}}.A == {{5, 6}, {7, 4}}]
Out[7]= {{{3, -14}, {-1, 12}}}
fkampas
(Frank Kampas)
4
In[1]:= LinearSolve[{{3, 4}, {4, 5}}, {{5, 6}, {7, 4}}]
Out[1]= {{3, -14}, {-1, 12}}
is probably a better way to do it.
sukrause
(Udo Krause)
5
By hand you multiply each side by the inverse.
that you can do too
In[82]:= A = Inverse[{{3, 4}, {4, 5}}].{{5, 6}, {7, 4}}
Out[82]= {{3, -14}, {-1, 12}}
to refind the former result.