I am trying to obtain an expression where I want to write the numerator in multiple aligned lines, and I need a denominator covering all of the numerator terms in a single line. My equation is:
But I am trying to obtain its numerator in multiple lines as follows:
$$\begin{equation}
\begin{aligned}
\lim_{s\rightarrow 1/2}E(r)=\frac{\Bigg[&\sqrt{1-r}\left(7-78 r+144 r^2\right) \operatorname{ArcTanh}\left[\frac{\sqrt{-1+3 r}}{\sqrt{3r}}\right]\\
& +\sqrt{-3+9 r}\left(4(-6 \sqrt{1-r} r^{3 / 2}+\sqrt{(1-r) r})
\\
& +\left(-3+42 r-48 r^2\right) \operatorname{ArcTan}\left[\sqrt{\frac{1-r}{r}}\right]\right)
\Bigg]}{144 \pi \sqrt{3-3 r r^{3 / 2}} \sqrt{-1+3 r}}
\end{aligned}
\end{equation}$$
My code doesn't compile by using this, where is the problem? Guide and thanks.

equationenvironment in a pair of$$tokens. Please make your code compilable. – Mico Jan 23 '24 at 23:18