# Simple Alignment to the Left [duplicate]

Yesterday I posted a question here followed by a Post Script. How do I align the equations in the Post Script by the "=" signs, just like "someone you know" did when responding to me? The following is the equations' code:

S_1 = {hgh^{-1}g^{-1} \mid h \in H }
= {hg (g^{n-1})(g^{n-1})^{-1}h^{-1}g^{-1} \mid h \in H }
= {h(g g^{n-1})(g^{n-1})^{-1}h^{-1}g^{-1} \mid h \in H }
= {hg^n(g^{n-1})^{-1}h^{-1}g^{-1} \mid h \in H }

Thank you for your time and happy holidays to all.

## 1 Answer

If you see any MathJax code on this site, you can right click and choose "Show Math As/TeX Commands". (The picture is taken from this answer on http://meta.physics.stackexchange.com. See also demo on MathJax website.)

In this particular case, you will get

\begin{align*}
S_1&=\{hgh^{-1}g^{-1}:h\in H\}\\
S_2&=\{hkh^{-1}k^{-1}:h\in H,k\in\langle g\rangle\}=\{hg^nh^{-1}g^{-n}:h\in H, n\in\mathbb{Z}\}
\end{align*}


\begin{align*} S_1&=\{hgh^{-1}g^{-1}:h\in H\}\\ S_2&=\{hkh^{-1}k^{-1}:h\in H,k\in\langle g\rangle\}=\{hg^nh^{-1}g^{-n}:h\in H, n\in\mathbb{Z}\} \end{align*}

• Awesome! Thank you very much! – A.Magnus Dec 24 '14 at 14:24