Optimal. Leaf size=21 \[ b x-\log (x) \left (b x-\tan ^{-1}(\tan (a+b x))\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0313861, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {2158, 29} \[ b x-\log (x) \left (b x-\tan ^{-1}(\tan (a+b x))\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2158
Rule 29
Rubi steps
\begin{align*} \int \frac{\tan ^{-1}(\tan (a+b x))}{x} \, dx &=b x-\left (b x-\tan ^{-1}(\tan (a+b x))\right ) \int \frac{1}{x} \, dx\\ &=b x-\left (b x-\tan ^{-1}(\tan (a+b x))\right ) \log (x)\\ \end{align*}
Mathematica [A] time = 0.0135539, size = 19, normalized size = 0.9 \[ \log (x) \left (\tan ^{-1}(\tan (a+b x))-b x\right )+b x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.045, size = 21, normalized size = 1. \begin{align*} \ln \left ( x \right ) \arctan \left ( \tan \left ( bx+a \right ) \right ) -\ln \left ( x \right ) xb+bx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.46779, size = 57, normalized size = 2.71 \begin{align*} \frac{b \arctan \left (\tan \left (b x + a\right )\right ) \log \left (b x\right ) +{\left (b x -{\left (b x + a\right )} \log \left (b x\right ) + a \log \left (b x\right ) + a\right )} b}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.80399, size = 22, normalized size = 1.05 \begin{align*} b x + a \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.893141, size = 34, normalized size = 1.62 \begin{align*} - b x \log{\left (x \right )} + b x + \left (\operatorname{atan}{\left (\tan{\left (a + b x \right )} \right )} + \pi \left \lfloor{\frac{a + b x - \frac{\pi }{2}}{\pi }}\right \rfloor \right ) \log{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10772, size = 31, normalized size = 1.48 \begin{align*} b x -{\left (\pi \left \lfloor \frac{a}{\pi } + \frac{1}{2} \right \rfloor - a\right )} \log \left ({\left | x \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]