64.40 Problem number 665

\[ \int \frac {\sqrt {\tan (c+d x)}}{\sqrt {2-3 \tan (c+d x)}} \, dx \]

Optimal antiderivative \[ -\frac {i \arctan \left (\frac {\sqrt {3-2 i}\, \left (\sqrt {\tan }\left (d x +c \right )\right )}{\sqrt {2-3 \tan \left (d x +c \right )}}\right )}{d \sqrt {3-2 i}}+\frac {i \arctan \left (\frac {\sqrt {3+2 i}\, \left (\sqrt {\tan }\left (d x +c \right )\right )}{\sqrt {2-3 \tan \left (d x +c \right )}}\right )}{d \sqrt {3+2 i}} \]

command

integrate(tan(d*x+c)^(1/2)/(2-3*tan(d*x+c))^(1/2),x, algorithm="giac")

Giac 1.9.0-11 via sagemath 9.6 output

\[ -\frac {1}{2028} \, \sqrt {3} {\left (\frac {2 \, {\left (2 \, d^{2} \sqrt {1014 \, \sqrt {13} - 702} - 3 \, d \sqrt {1014 \, \sqrt {13} + 702} {\left | d \right |}\right )} \arctan \left (\frac {13 \, \left (\frac {9}{13}\right )^{\frac {3}{4}} {\left (2 \, \left (\frac {9}{13}\right )^{\frac {1}{4}} \sqrt {-\frac {3}{26} \, \sqrt {13} + \frac {1}{2}} + \frac {\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}{\sqrt {-3 \, \tan \left (d x + c\right ) + 2}} - \frac {\sqrt {-3 \, \tan \left (d x + c\right ) + 2}}{\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}\right )}}{18 \, \sqrt {\frac {3}{26} \, \sqrt {13} + \frac {1}{2}}}\right )}{d^{3}} + \frac {2 \, {\left (2 \, d^{2} \sqrt {1014 \, \sqrt {13} - 702} - 3 \, d \sqrt {1014 \, \sqrt {13} + 702} {\left | d \right |}\right )} \arctan \left (-\frac {13 \, \left (\frac {9}{13}\right )^{\frac {3}{4}} {\left (2 \, \left (\frac {9}{13}\right )^{\frac {1}{4}} \sqrt {-\frac {3}{26} \, \sqrt {13} + \frac {1}{2}} - \frac {\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}{\sqrt {-3 \, \tan \left (d x + c\right ) + 2}} + \frac {\sqrt {-3 \, \tan \left (d x + c\right ) + 2}}{\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}\right )}}{18 \, \sqrt {\frac {3}{26} \, \sqrt {13} + \frac {1}{2}}}\right )}{d^{3}} + \frac {{\left (2 \, d^{2} \sqrt {1014 \, \sqrt {13} + 702} + 3 \, d \sqrt {1014 \, \sqrt {13} - 702} {\left | d \right |}\right )} \log \left ({\left (\frac {\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}{\sqrt {-3 \, \tan \left (d x + c\right ) + 2}} - \frac {\sqrt {-3 \, \tan \left (d x + c\right ) + 2}}{\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}\right )}^{2} + 4 \, \left (\frac {9}{13}\right )^{\frac {1}{4}} \sqrt {-\frac {3}{26} \, \sqrt {13} + \frac {1}{2}} {\left (\frac {\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}{\sqrt {-3 \, \tan \left (d x + c\right ) + 2}} - \frac {\sqrt {-3 \, \tan \left (d x + c\right ) + 2}}{\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}\right )} + 12 \, \sqrt {\frac {1}{13}}\right )}{d^{3}} - \frac {{\left (2 \, d^{2} \sqrt {1014 \, \sqrt {13} + 702} + 3 \, d \sqrt {1014 \, \sqrt {13} - 702} {\left | d \right |}\right )} \log \left ({\left (\frac {\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}{\sqrt {-3 \, \tan \left (d x + c\right ) + 2}} - \frac {\sqrt {-3 \, \tan \left (d x + c\right ) + 2}}{\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}\right )}^{2} - 4 \, \left (\frac {9}{13}\right )^{\frac {1}{4}} \sqrt {-\frac {3}{26} \, \sqrt {13} + \frac {1}{2}} {\left (\frac {\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}{\sqrt {-3 \, \tan \left (d x + c\right ) + 2}} - \frac {\sqrt {-3 \, \tan \left (d x + c\right ) + 2}}{\sqrt {3} \sqrt {\tan \left (d x + c\right )} - \sqrt {2}}\right )} + 12 \, \sqrt {\frac {1}{13}}\right )}{d^{3}}\right )} \]

Giac 1.7.0 via sagemath 9.3 output

\[ \text {Timed out} \]________________________________________________________________________________________