I'm trying to align the second line equation below the integral in the first line. How do I go about doing that? I have used \right. commands to be able to move onto the next lines. I didn't have to use the \vphantom{} command to keep the parenthesis the same size as discussed in vphantom
\documentclass{article}
\usepackage{xfrac}
\usepackage[fleqn]{amsmath}
\usepackage{mathtools}
\begin{document}
\begin{flalign*}
=-\frac{Is'n}{2\pi}\mathbf{\hat{z}}\left[\frac{1}{\frac{4xs'}{h}\frac{2\sqrt{xs'}} {k}}\left(z-z'\right) \left(\left(x'+s\right) \int_0^{\frac{\pi}{2}}\frac{d\alpha} {\left(1-h\sin^2\alpha\right)\sqrt{1-k^2\sin^2\alpha}}\right.\right. \\
\qquad \left.\left.-2x\int_0^{\frac{\pi}{2}}\frac{\sin^2\alpha\:d\alpha}{\left(1- h\sin^2\alpha\right)\sqrt{1-k^2\sin^2\alpha}}\right)\right]_{z'=-\sfrac{L} {2}}^{z'=+\sfrac{L}{2}}
\end{flalign*}\\
\end{document}
It doesn't allow to to use the & to align due to the parenthesis. Thanks
\bigr)
or\Bigr)
, then there is no need for\left.
and the&
can be used. but i'm sure this has been answered in other questions already.