I use a align*
environment and on one line I have a very long equation which does not contain into a line. Thus for this line I would like to have the same behavior as a multline
environment, that is after the break line I would like the end of the equation to be right aligned.
Here I add a \hspace
command to do that but I think that something should exist …
\begin{align*}
\hat{H} \Psi(r,\theta) & = \left\lbrace\frac{-\hbar^2}{2m_er^2} \left[
\frac{\partial}{\partial r} \left(r^2\frac{\partial }{\partial r}\right)
+ \frac{1}{\sin\theta}\frac{\partial}{\partial \theta}
\left(\sin\theta\frac{\partial}{\partial\theta}\right)
+ \frac{1}{\sin^2\theta}\frac{\partial^2}{\partial\varphi^2}\right]
- \frac{e^2}{4\pi \epsO r} \right\rbrace \Psi(x,\theta) \\
& = \frac{-\hbar^2}{2m_er^2} \left[
\frac{\partial}{\partial r} \left(r^2\frac{\partial }{\partial r}\right)\Psi(x,\theta)
+ \frac{1}{\sin\theta}\frac{\partial}{\partial \theta}
\left(\sin\theta\frac{\partial}{\partial\theta}\right)\Psi(x,\theta)
+ \frac{1}{\sin^2\theta}\frac{\partial^2}{\partial\varphi^2}\Psi(x,\theta)\right] \\
& \hspace{12cm} - \frac{e^2}{4\pi \varepsilon_0 r}\Psi(x,\theta)
\end{align*}
Best Answer
The following example uses
aligned
to align the second and right line to the right side.