Question #6170
Submitted by

**Answiki**on 05/22/2022 at 03:19:42 PM UTC# In LaTeX, how to align the equal symbol in equations on several lines?

Merged questions

Answer
Submitted by

**Answiki**on 05/22/2022 at 03:19:18 PM UTCThe following **LaTeX** code allows you to display equations **on several lines by aligning** the *equal* symbols:

```
\begin{align}
(a+b)^2 &= (a+b)\times(a+b) \\
&= a^2+ab+ab+b^2\\
&= a^2 + b^2 + 2ab
\end{align}
```

The above LaTeX code displays:

Question by

**Answiki**05/22/2022 at 03:19:42 PM
In LaTeX, how to align the equal symbol in equations on several lines?

Answer by

**Answiki**on 05/22/2022 at 03:19:18 PMThe following **LaTeX** code allows you to display equations **on several lines by aligning** the *equal* symbols:

```
\begin{align}
(a+b)^2 &= (a+b)\times(a+b) \\
&= a^2+ab+ab+b^2\\
&= a^2 + b^2 + 2ab
\end{align}
```

The above LaTeX code displays:

Question by

**Answiki**05/22/2022 at 03:18:11 PM
In LaTeX, how to display equations on several lines when aligning the 'equal' symbols?

# | ID | Query | URL | Count |
---|

Icons proudly provided by Friconix.