59.102 Problem number 601

\[ \int \frac {(a+b \tan (e+f x))^3}{(d \sec (e+f x))^{9/2}} \, dx \]

Optimal antiderivative \[ \frac {a \left (7 a^{2}+6 b^{2}\right ) \sqrt {2}\, \sqrt {\frac {1+\sqrt {1+\tan ^{2}\left (f x +e \right )}}{\sqrt {1+\tan ^{2}\left (f x +e \right )}}}\, \EllipticE \left (\sin \left (\frac {\arctan \left (\tan \left (f x +e \right )\right )}{2}\right ), \sqrt {2}\right ) \left (\sec ^{2}\left (f x +e \right )\right )^{\frac {1}{4}}}{15 \cos \left (\frac {\arctan \left (\tan \left (f x +e \right )\right )}{2}\right ) d^{4} f \sqrt {d \sec \left (f x +e \right )}}-\frac {2 \left (\cos ^{4}\left (f x +e \right )\right ) \left (b -a \tan \left (f x +e \right )\right ) \left (a +b \tan \left (f x +e \right )\right )^{2}}{9 d^{4} f \sqrt {d \sec \left (f x +e \right )}}-\frac {2 \left (\cos ^{2}\left (f x +e \right )\right ) \left (2 b \left (5 a^{2}+2 b^{2}\right )-a \left (7 a^{2}+b^{2}\right ) \tan \left (f x +e \right )\right )}{45 d^{4} f \sqrt {d \sec \left (f x +e \right )}} \]

command

integrate((a+b*tan(f*x+e))^3/(d*sec(f*x+e))^(9/2),x, algorithm="fricas")

Fricas 1.3.8 (sbcl 2.2.11.debian) via sagemath 9.6 output

\[ -\frac {3 \, \sqrt {2} {\left (-7 i \, a^{3} - 6 i \, a b^{2}\right )} \sqrt {d} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\right ) + 3 \, \sqrt {2} {\left (7 i \, a^{3} + 6 i \, a b^{2}\right )} \sqrt {d} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\right ) + 2 \, {\left (9 \, b^{3} \cos \left (f x + e\right )^{3} + 5 \, {\left (3 \, a^{2} b - b^{3}\right )} \cos \left (f x + e\right )^{5} - {\left (5 \, {\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (f x + e\right )^{4} + {\left (7 \, a^{3} + 6 \, a b^{2}\right )} \cos \left (f x + e\right )^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {\frac {d}{\cos \left (f x + e\right )}}}{45 \, d^{5} f} \]

Fricas 1.3.7 via sagemath 9.3 output

\[ {\rm integral}\left (\frac {{\left (b^{3} \tan \left (f x + e\right )^{3} + 3 \, a b^{2} \tan \left (f x + e\right )^{2} + 3 \, a^{2} b \tan \left (f x + e\right ) + a^{3}\right )} \sqrt {d \sec \left (f x + e\right )}}{d^{5} \sec \left (f x + e\right )^{5}}, x\right ) \]