How to Write Multiple Equations in One Block in LaTeX

In LaTeX, you can write multiple equations in one block using the align environment from the amsmath package.

The following examples show how to write multiple equations in one block in LaTeX.

How to Write Multiple Equations in One Block

We can use the align environment to write multiple equations in one block in LaTeX document.

Suppose we want to write multiple equations in one block.

We can use the following LaTeX code to do so:

\documentclass{article}
\usepackage{amsmath}
\begin{document}

This is an example of a multi-line equation using the \texttt{align} environment:
\begin{align}
a + b &= c \\
d + e &= f \\
g + h &= i
\end{align}

\end{document}

Output: 👇️

Multiple Equation in One Block using Align

In this example, we use the align environment is used to create a block of multiple equations with proper alignment.

How to Write Multiple Equations with Different Alignments

We can also align different parts of the equations by using multiple alignment points within the align environment.

Suppose we want to align different parts of multiple equations.

We can use the following LaTeX code to do so:

\documentclass{article}
\usepackage{amsmath}
\begin{document}

This is an example of multiple equations with different alignments using the \texttt{align} environment:
\begin{align}
a + b &= c & x + y &= z \\
d + e &= f & u + v &= w
\end{align}

\end{document}

Output: 👇️

Multiple Equation in One Block using Different Alignments

In this example, we use the align environment is used to align different parts of multiple equations.

Conclusion

We can use the align environment from the amsmath package to create blocks of multiple equations with proper alignment.