# How does one write a matrix in this forum? (1 Viewer)

### Users Who Are Viewing This Thread (Users: 0, Guests: 1)

#### interested_learner

I tried to enter a matrix in this forum and all I get is a big mess when I go to preview the matrix. It seems that the tool decides to get rid of the spaces in the matrix. These spaces are important. For instance if k = the rotation matrix with the first row 0 -1 and the second row 1 0

_ _
| 0 -1 |
k= |_ 1 0 _|

Does someone have a suggestion on a better way to write this?

Click on the following to see the code:

$$\begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array}$$

If you want brackets, then:

$$\left[ \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right]$$

Notice that the amount of c's control the columns, such as:

$$\left( \begin{array}{cccc} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{array} \right)$$

### The Physics Forums Way

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving