# I How Do I write a Matrix?

Hello, sorry if this is in the incorrect thread but I am wondering how I write a matrix on here?
Much help appreciated and more problems to come ;)
Thanks!

Related Linear and Abstract Algebra News on Phys.org

#### fresh_42

Mentor
2018 Award
okay, what am I doing wrong?
\being{vmatrix}
1 & -5 & 4 & 0 & 0 \\
0 & 1 & 0 & 1 & 0
\end{vmatrix}
You need to put it in either $matrix$ or in $$matrix$$ for a separated line.
Inline $\begin{vmatrix} 1 & -5 & 4 & 0 & 0 \\ 0 & 1 & 0 & 1 & 0 \end{vmatrix}$ text, which is ok for matrices, or on an extra line
$$\begin{bmatrix} 1 & -5 & 4 & 0 & 0 \\ 0 & 1 & 0 & 1 & 0 \end{bmatrix}$$
and you wrote 'begin' wrong - looks a bit like Bejing.

\begin{vmatrix}
1 & -5 & 4 & 0 & 0 \\
0 & 1 & 0 & 1 & 0
\end{vmatrix}

Got it!! Thank you @fresh_42

"How Do I write a Matrix?"

### Physics Forums Values

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