59.82 Problem number 581

\[ \int \sqrt {d \sec (e+f x)} (a+b \tan (e+f x)) \, dx \]

Optimal antiderivative \[ \frac {2 b \sqrt {d \sec \left (f x +e \right )}}{f}+\frac {2 a \sqrt {\frac {\cos \left (f x +e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sin \left (\frac {f x}{2}+\frac {e}{2}\right ), \sqrt {2}\right ) \left (\sqrt {\cos }\left (f x +e \right )\right ) \sqrt {d \sec \left (f x +e \right )}}{\cos \left (\frac {f x}{2}+\frac {e}{2}\right ) f} \]

command

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

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

\[ \frac {-i \, \sqrt {2} a \sqrt {d} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right ) + i \, \sqrt {2} a \sqrt {d} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right ) + 2 \, b \sqrt {\frac {d}{\cos \left (f x + e\right )}}}{f} \]

Fricas 1.3.7 via sagemath 9.3 output

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