Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I currently have the following equation:

\begin{align}
\begin{split}
\left| \Psi \left( t \right) \right\rangle _{I}^{3}&=-\frac{1}{{{\hbar}^{2}}}\int_{0}^{t}{\hat{H}_{1}^{I}\left( t' \right)\,}\left( \int_{0}^{t}{\hat{H}_{1}^{I}\left( t'' \right)dt''} \right)dt' \notag \\ 
& =-\frac{1}{\hbar }\int_{0}^{t}{\hat{H}_{1}^{I}\left( t' \right)\,}\left( -\frac{g}{\Delta }\left( -{{{\hat{A}}}_{+}}\left( {{e}^{-i\Delta t'}}-1 \right)+{{{\hat{A}}}_{-}}\left( {{e}^{i\Delta t'}}-1 \right) \right) \right)dt' \notag \\ 
& =\frac{1}{\hbar }\int_{0}^{t}{\hbar g\left( {{{\hat{A}}}_{+}}{{e}^{-i\Delta t'}}+{{{\hat{A}}}_{-}}{{e}^{i\Delta t'}} \right)\,}\left( -\frac{g}{\Delta }\left( -{{{\hat{A}}}_{+}}\left( {{e}^{-i\Delta t'}}-1 \right)+{{{\hat{A}}}_{-}}\left( {{e}^{i\Delta t'}}-1 \right) \right) \right)dt' \notag \\
&=-\frac{{{g}^{2}}}{\Delta }\Bigg[ -\frac{1}{2i\Delta }{{e}^{-2i\Delta t'}}{{{\hat{A}}}_{+}}{{{\hat{A}}}_{+}}+\frac{1}{i\Delta }{{e}^{-i\Delta t'}}{{{\hat{A}}}_{+}}{{{\hat{A}}}_{+}}-{{{\hat{A}}}_{+}}{{{\hat{A}}}_{-}}-\frac{1}{i\Delta }{{e}^{-i\Delta t'}}{{{\hat{A}}}_{+}}{{{\hat{A}}}_{-}} \\ &+{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}}-\frac{1}{i\Delta }{{e}^{i\Delta t'}}{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}}-\frac{1}{2i\Delta }{{e}^{2i\Delta t'}}{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}}+\frac{1}{i\Delta }{{e}^{i\Delta t'}}{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}} \Bigg]_{0}^{t} \notag
\end{split}
\end{align}

From this I get 5 lines, where the last two are split up. But the last one is split up inside a bracket. My question is, can I align the last line, with the + sign, with the first minus sign, inside the bracket, instead of aligning with the = sign ?

Thanks in advance.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Please always post complete documents, not just fragments.

You can use \phantom

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
\begin{split}
\left| \Psi \left( t \right) \right\rangle _{I}^{3}&=-\frac{1}{{{\hbar}^{2}}}\int_{0}^{t}{\hat{H}_{1}^{I}\left( t' \right)\,}\left( \int_{0}^{t}{\hat{H}_{1}^{I}\left( t'' \right)dt''} \right)dt' \notag \\ 
& =-\frac{1}{\hbar }\int_{0}^{t}{\hat{H}_{1}^{I}\left( t' \right)\,}\left( -\frac{g}{\Delta }\left( -{{{\hat{A}}}_{+}}\left( {{e}^{-i\Delta t'}}-1 \right)+{{{\hat{A}}}_{-}}\left( {{e}^{i\Delta t'}}-1 \right) \right) \right)dt' \notag \\ 
& =\frac{1}{\hbar }\int_{0}^{t}{\hbar g\left( {{{\hat{A}}}_{+}}{{e}^{-i\Delta t'}}+{{{\hat{A}}}_{-}}{{e}^{i\Delta t'}} \right)\,}\left( -\frac{g}{\Delta }\left( -{{{\hat{A}}}_{+}}\left( {{e}^{-i\Delta t'}}-1 \right)+{{{\hat{A}}}_{-}}\left( {{e}^{i\Delta t'}}-1 \right) \right) \right)dt' \notag \\
&=-\frac{{{g}^{2}}}{\Delta }\Bigg[ -\frac{1}{2i\Delta }{{e}^{-2i\Delta t'}}{{{\hat{A}}}_{+}}{{{\hat{A}}}_{+}}+\frac{1}{i\Delta }{{e}^{-i\Delta t'}}{{{\hat{A}}}_{+}}{{{\hat{A}}}_{+}}-{{{\hat{A}}}_{+}}{{{\hat{A}}}_{-}}-\frac{1}{i\Delta }{{e}^{-i\Delta t'}}{{{\hat{A}}}_{+}}{{{\hat{A}}}_{-}} \\ 
&\phantom{{}=-\frac{{{g}^{2}}}{\Delta }\Bigg[}+{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}}-\frac{1}{i\Delta }{{e}^{i\Delta t'}}{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}}-\frac{1}{2i\Delta }{{e}^{2i\Delta t'}}{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}}+\frac{1}{i\Delta }{{e}^{i\Delta t'}}{{{\hat{A}}}_{-}}{{{\hat{A}}}_{+}} \Bigg]_{0}^{t} \notag
\end{split}
\end{align}
\end{document}

(I'm assuming this is cut down from some larger example, as there is no need to have an alignment just consisting of a split)

share|improve this answer
    
Sorry for my mistakes, I will remember :) Don't know what you mean by larger example though ? The last line, if not split up, will go outside my paper. And then I just Googled how to split up equations inside brackets, which was done how I wrote it. So, I don't know any other way to do it :) But it seems that your suggestion was just what I needed. Thank you :) –  Denver Dang May 28 '13 at 21:54
    
split is for splitting things up within a larger display. If you delete \begin{split} and \end{split} and change align to align* you get essentially the same display. –  David Carlisle May 28 '13 at 22:02
    
Hmmm, did not know that :) Thank you very much ! –  Denver Dang May 28 '13 at 22:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.