Is there a way to align multiple equations so the equators are underneath each other using MathJax?
For example:
2x - 4 = 6
2x = 10
x = 5
Use the aligned
environment and the &
symbol.
e.g.
$$\begin{aligned} 2x - 4 &= 6 \\ 2x &= 10 \\ x &= 5 \end{aligned}$$
I inserted &
in front of =
of each line, so the horizontal positions of =
will be equal for all lines.
If you do not need such horizontal alignment, then you can use gathered
environment instead of aligned
environment without &
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With