Integrand size = 11, antiderivative size = 40 \[ \int x \tanh ^2(a+2 \log (x)) \, dx=\frac {x^2}{2}+\frac {x^2}{1+e^{2 a} x^4}-e^{-a} \arctan \left (e^a x^2\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {5656, 474, 470, 281, 209} \[ \int x \tanh ^2(a+2 \log (x)) \, dx=-e^{-a} \arctan \left (e^a x^2\right )+\frac {x^2}{e^{2 a} x^4+1}+\frac {x^2}{2} \]
[In]
[Out]
Rule 209
Rule 281
Rule 470
Rule 474
Rule 5656
Rubi steps \begin{align*} \text {integral}& = \int \frac {x \left (-1+e^{2 a} x^4\right )^2}{\left (1+e^{2 a} x^4\right )^2} \, dx \\ & = \frac {x^2}{1+e^{2 a} x^4}-\frac {1}{4} e^{-4 a} \int \frac {x \left (4 e^{4 a}-4 e^{6 a} x^4\right )}{1+e^{2 a} x^4} \, dx \\ & = \frac {x^2}{2}+\frac {x^2}{1+e^{2 a} x^4}-2 \int \frac {x}{1+e^{2 a} x^4} \, dx \\ & = \frac {x^2}{2}+\frac {x^2}{1+e^{2 a} x^4}-\text {Subst}\left (\int \frac {1}{1+e^{2 a} x^2} \, dx,x,x^2\right ) \\ & = \frac {x^2}{2}+\frac {x^2}{1+e^{2 a} x^4}-e^{-a} \arctan \left (e^a x^2\right ) \\ \end{align*}
Time = 0.31 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.02 \[ \int x \tanh ^2(a+2 \log (x)) \, dx=\frac {x^2}{2}+\frac {x^2}{1+e^{2 (a+2 \log (x))}}-e^{-a} \arctan \left (e^a x^2\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.07 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.42
method | result | size |
risch | \(\frac {x^{2}}{2}+\frac {x^{2}}{1+{\mathrm e}^{2 a} x^{4}}+\frac {i {\mathrm e}^{-a} \ln \left ({\mathrm e}^{a} x^{2}-i\right )}{2}-\frac {i {\mathrm e}^{-a} \ln \left ({\mathrm e}^{a} x^{2}+i\right )}{2}\) | \(57\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.25 \[ \int x \tanh ^2(a+2 \log (x)) \, dx=\frac {x^{6} e^{\left (3 \, a\right )} + 3 \, x^{2} e^{a} - 2 \, {\left (x^{4} e^{\left (2 \, a\right )} + 1\right )} \arctan \left (x^{2} e^{a}\right )}{2 \, {\left (x^{4} e^{\left (3 \, a\right )} + e^{a}\right )}} \]
[In]
[Out]
\[ \int x \tanh ^2(a+2 \log (x)) \, dx=\int x \tanh ^{2}{\left (a + 2 \log {\left (x \right )} \right )}\, dx \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.88 \[ \int x \tanh ^2(a+2 \log (x)) \, dx=\frac {1}{2} \, x^{2} - \arctan \left (x^{2} e^{a}\right ) e^{\left (-a\right )} + \frac {x^{2}}{x^{4} e^{\left (2 \, a\right )} + 1} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.88 \[ \int x \tanh ^2(a+2 \log (x)) \, dx=\frac {1}{2} \, x^{2} - \arctan \left (x^{2} e^{a}\right ) e^{\left (-a\right )} + \frac {x^{2}}{x^{4} e^{\left (2 \, a\right )} + 1} \]
[In]
[Out]
Time = 1.72 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.02 \[ \int x \tanh ^2(a+2 \log (x)) \, dx=\frac {x^2}{{\mathrm {e}}^{2\,a}\,x^4+1}-\frac {\mathrm {atan}\left (x^2\,\sqrt {{\mathrm {e}}^{2\,a}}\right )}{\sqrt {{\mathrm {e}}^{2\,a}}}+\frac {x^2}{2} \]
[In]
[Out]