Message Boards Message Boards

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

How can I turn a system of equations into a matrix?

Posted 2 years ago

Hello!

I'm working on a program using Wolfram Mathematica that can give us the exponential matrix as a result. I have a 3x3 system as a base (but it may work with a nxn one), which gives me 3 linear equations that involve alphas and lambdas with their respective "t's". So far, I don't know how to turn that system into a matrix to get this form: e^( λi) = A* α . I would like to know if there is a way where I can take those α's away from my equations (attached image) and put them into an independent vector, so I can proceed to to this: α = A^-1 * e^( λi); "A" would be the matrix formed from the Eigenvalues and alphas polynomial equation showed below.

I would appreciate if you could help me with this situation.

Greetings!

P.S. I'm not allowed to use any shortcut like Solve or Matrix Exp.

image

Thank you!

2 Replies

I am afraid I don't understand your problem. What do you think about this?

mm = Partition[RandomReal[{0, 10}, 9], 3];
mm // MatrixForm
ev = Transpose[Eigenvectors[mm]];
ev // MatrixForm
dia = Inverse[ev].mm.ev // Chop;
dia // MatrixForm
expm = Exp[dia t];
expm // MatrixForm
result = FullSimplify[ev.expm.Inverse[ev]];
result // MatrixForm
POSTED BY: Hans Dolhaine

Welcome to Wolfram Community! Please make sure you know the rules: https://wolfr.am/READ-1ST

The rules explain how to format your code properly. Posting code Images doesn't help other members to copy your code. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

You can also embed notebook or attach notebook.

enter image description here

POSTED BY: Moderation Team
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