## DEV Community is a community of 726,562 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Posted on

# LaTeX & Maths: Sub-equations and Matrices

Hello how are you? :)

Today I will tell you how to create a sub-equation environment, and how to declare matrices and some variants of these. Let's start!!!

## The subequation environment

This environment allows us to put multiple equations in a single place. We need to declare the subequation environment and then put each equation in an equation environment

\begin{subequations}

Equation 1

...

Equation n

\end{subequations}


Produces

But what if we want a subequation not numbered, well we just use the equation* environment

Produces

Remember that you can label any equation in this environment, you can check how to label here or you can check how to label here

## Matrices

The commands to create a matrix are similar to the table environment, but here you do not need to declare the number of columns.

• We use & to declare the columns
• We use \\ to declare a new row

You need to put these matrix environments inside a math environment

The most simple command is matrix

Produces

Wait, this is not a matrix!!! where are the parentheses?

Well, there are other matrix environments, let's see

Produces

Thanks, this is all for today

Do not forget to follow me on Twitter @latexteada