Optimal. Leaf size=40 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b+c} \tan (c+d x)}{\sqrt{a+c}}\right )}{d \sqrt{a+c} \sqrt{b+c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.605453, antiderivative size = 40, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.03, Rules used = {205} \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b+c} \tan (c+d x)}{\sqrt{a+c}}\right )}{d \sqrt{a+c} \sqrt{b+c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rubi steps
\begin{align*} \int \frac{\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{a+c+(b+c) x^2} \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{b+c} \tan (c+d x)}{\sqrt{a+c}}\right )}{\sqrt{a+c} \sqrt{b+c} d}\\ \end{align*}
Mathematica [A] time = 0.263189, size = 40, normalized size = 1. \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b+c} \tan (c+d x)}{\sqrt{a+c}}\right )}{d \sqrt{a+c} \sqrt{b+c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.084, size = 34, normalized size = 0.9 \begin{align*}{\frac{1}{d}\arctan \left ({ \left ( b+c \right ) \tan \left ( dx+c \right ){\frac{1}{\sqrt{ \left ( a+c \right ) \left ( b+c \right ) }}}} \right ){\frac{1}{\sqrt{ \left ( a+c \right ) \left ( b+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.93774, size = 747, normalized size = 18.68 \begin{align*} \left [-\frac{\sqrt{-a b -{\left (a + b\right )} c - c^{2}} \log \left (\frac{{\left (a^{2} + 6 \, a b + b^{2} + 8 \,{\left (a + b\right )} c + 8 \, c^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \,{\left (3 \, a b + b^{2} +{\left (3 \, a + 5 \, b\right )} c + 4 \, c^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \,{\left ({\left (a + b + 2 \, c\right )} \cos \left (d x + c\right )^{3} -{\left (b + c\right )} \cos \left (d x + c\right )\right )} \sqrt{-a b -{\left (a + b\right )} c - c^{2}} \sin \left (d x + c\right ) + b^{2} + 2 \, b c + c^{2}}{{\left (a^{2} - 2 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{4} + 2 \,{\left (a b - b^{2} +{\left (a - b\right )} c\right )} \cos \left (d x + c\right )^{2} + b^{2} + 2 \, b c + c^{2}}\right )}{4 \,{\left (a b +{\left (a + b\right )} c + c^{2}\right )} d}, -\frac{\arctan \left (\frac{{\left (a + b + 2 \, c\right )} \cos \left (d x + c\right )^{2} - b - c}{2 \, \sqrt{a b +{\left (a + b\right )} c + c^{2}} \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right )}{2 \, \sqrt{a b +{\left (a + b\right )} c + c^{2}} d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{2}{\left (c + d x \right )}}{a + b \tan ^{2}{\left (c + d x \right )} + c \sec ^{2}{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.42797, size = 103, normalized size = 2.58 \begin{align*} \frac{\pi \left \lfloor \frac{d x + c}{\pi } + \frac{1}{2} \right \rfloor \mathrm{sgn}\left (2 \, b + 2 \, c\right ) + \arctan \left (\frac{b \tan \left (d x + c\right ) + c \tan \left (d x + c\right )}{\sqrt{a b + a c + b c + c^{2}}}\right )}{\sqrt{a b + a c + b c + c^{2}} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]