# Thread: Linear systems in matrix notation

1. ## Linear systems in matrix notation

Question:

dx/dt= x-y

dy/dt= x+27

dz/dt= -x+z

Write in matrix notation

Solution:

x
if X={y}
z

1 -1 0
X'= {1 0 0 } X + {27}
-1 0 1

Did I do this correctly?

Cheers.

2. Originally Posted by promitheus
Question:

dx/dt= x-y

dy/dt= x+27

dz/dt= -x+z

Write in matrix notation

Solution:

x
if X={y}
z

1 -1 0
X'= {1 0 0 } X + {27}
-1 0 1

Did I do this correctly?
Unfortunately, since the back-end forum script does not preserve space-based formatting, it's kinda hard to tell. You can use "code" tags to set formatting, such as this:

Code:
matrix:

--       --
|  1 -1 0 |
X' = |  1  0 0 |
| -1  0 1 |
--       --
Note: I put the "matrix" at the beginning because the forum strips out any initial spaces. By putting a label at the beginning, I remove that formatting issue.

You can also use standard web-safe formatting, such as is explained here.

. . . . .X' = [[1 -1 0][1 0 0][-1 0 1]]