Group Abstract Group Abstract

Message Boards Message Boards

Solve an equation in a matrix form?

Posted 10 years ago

Suppose I have a variable matrices A,B,C of order 3x3 and column vector x,y of order 3x1 and is related by the following equation

exp = (A+B).x == C.y

I want to solve for x and have to get answer in the format

x=Inverse[A+B].C.y

Note: Solve[exp,x] is not working Linear algebra problems

POSTED BY: syam syam
Posted 10 years ago

Below I used mt = A + B

mt = Array[Subscript[m, ##] &, {3, 3}];
ct = Array[Subscript[c, ##] &, {3, 3}];
yv = Array[Subscript[y, ##] &, 3];
Simplify[Inverse[mt].ct.yv] // MatrixForm

Without further restrictions thisis what you can get. If you want to assign values to matrix elemehnt syou may use

Thread[Flatten[mt] -> Range[9]]

( Range[9] is here a substitute for the list of your specific values). Of course the same applies to matrix ct.

POSTED BY: Michael Helmle
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard