Message Boards Message Boards

0
|
4358 Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How do you solve a matrix equation in Mathematica?

Posted 10 years ago
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!!!
POSTED BY: Matthew Knill
4 Replies
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.
POSTED BY: Udo Krause
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.
POSTED BY: Frank Kampas
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}}}
POSTED BY: Frank Kampas
Posted 10 years ago
Thanks emoticon
POSTED BY: Matthew Knill
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract