LaTeX & Maths: Sub-equations and Matrices
latexteada
Posted on September 1, 2021
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}
\begin{equation}
Equation 1
\end{equation}
...
\begin{equation}
Equation n
\end{equation}
\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
Posted on September 1, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.