I have this really long equation and I have used multline to break it up. I also want to align the broken bits of the equation to the left. When I use align, for some reasons it aligns to the right when I want it to be on the left.
How can I align to the left?
\begin{multline}
\begin{align}
\mathcal{H}_{q1} \mathcal{H}_{q2} \mathcal{H}_{q3}...\mathcal{H}_{qn}0=\frac{1}{2}H_{q1}\{\mathcal{H}_{q2}\mathcal{H}_{q3}...\mathcal{H}_{qn}0\}+\frac{1}{2} h_{q1} \\
=\frac{1}{2}H_{q1}\{\frac{1}{2} H_{q2}[\mathcal{H}_{q3}...\mathcal{H}_{qn} 0]+\frac{1}{2}h_{q2}\} +\frac{1}{2}h_{q1}=\\
\frac{1}{2}H_{q1} \frac{1}{2} H_{q2} [\frac{1}{2}H_{q3}(\mathcal{H}_{q4}..\mathcal{H}_{qn}0)+\frac{1}{2}h_{q3}]+
\frac{1}{2}h_{q2}+\frac{1}{2}h_{q1}=...\\
=(\frac{1}{2^n})H_{q1}H_{q2}H_{q3}..H_{qn}0+ (\frac{1}{2^n})H_{q1}H_{q2}H_{q3}..H_{qn-1}h_{q1}\\+(\frac{1}{2^n})H_{q1}H_{q2}H_{q3}..H_{qn-2}h_{qn-1}+.. \\+
(\frac{1}{2})h_{q1}=\sum^n_{j=1} (\frac{1}{2^j}) H_{qo}H_{q1} H_{q2}H_{q3}..H_{qj-1} h_{qj}
\end{align}
\end{multline}
Best Answer
You can insert a
multlined
environment (frommathtools
) insidealign
. However I think it's better to usealigned
inside align. I added a\mathdotfill
macro with argument the length of the dotline. Also, I used the medium sized fractions fomnccmath
fir the coefficients 1/2.Finally, as I wondered whether the series of q1 , q2 , qn and so on, is a mistyping for q_1 , q_2, q_n . So I propose this other version.