Integrand size = 25, antiderivative size = 165 \[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\frac {i \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {\arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}-\frac {2 \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (2-\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {i \operatorname {PolyLog}\left (2,-1+\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {211, 2606, 12, 5044, 4988, 2497} \[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\frac {\arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}+\frac {i \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}-\frac {2 \arctan \left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (2-\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {i \operatorname {PolyLog}\left (2,\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}-1\right )}{\sqrt {a} \sqrt {b}} \]
[In]
[Out]
Rule 12
Rule 211
Rule 2497
Rule 2606
Rule 4988
Rule 5044
Rubi steps \begin{align*} \text {integral}& = \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}-\int \frac {2 \sqrt {a} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b} x \left (a+b x^2\right )} \, dx \\ & = \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}-\frac {\left (2 \sqrt {a}\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{x \left (a+b x^2\right )} \, dx}{\sqrt {b}} \\ & = \frac {i \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}-\frac {(2 i) \int \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{x \left (i+\frac {\sqrt {b} x}{\sqrt {a}}\right )} \, dx}{\sqrt {a} \sqrt {b}} \\ & = \frac {i \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}-\frac {2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (2-\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {2 \int \frac {\log \left (2-\frac {2}{1-\frac {i \sqrt {b} x}{\sqrt {a}}}\right )}{1+\frac {b x^2}{a}} \, dx}{a} \\ & = \frac {i \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {c x^2}{a+b x^2}\right )}{\sqrt {a} \sqrt {b}}-\frac {2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (2-\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {i \text {Li}_2\left (-1+\frac {2 \sqrt {a}}{\sqrt {a}-i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(373\) vs. \(2(165)=330\).
Time = 0.16 (sec) , antiderivative size = 373, normalized size of antiderivative = 2.26 \[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\frac {-4 \log \left (\frac {\sqrt {b} x}{\sqrt {-a}}\right ) \log \left (\sqrt {-a}-\sqrt {b} x\right )+\log ^2\left (\sqrt {-a}-\sqrt {b} x\right )+4 \log \left (\frac {a \sqrt {b} x}{(-a)^{3/2}}\right ) \log \left (\sqrt {-a}+\sqrt {b} x\right )-\log ^2\left (\sqrt {-a}+\sqrt {b} x\right )+2 \log \left (\sqrt {-a}-\sqrt {b} x\right ) \log \left (\frac {a-\sqrt {-a} \sqrt {b} x}{2 a}\right )-2 \log \left (\sqrt {-a}+\sqrt {b} x\right ) \log \left (\frac {a+\sqrt {-a} \sqrt {b} x}{2 a}\right )+2 \log \left (\sqrt {-a}-\sqrt {b} x\right ) \log \left (\frac {c x^2}{a+b x^2}\right )-2 \log \left (\sqrt {-a}+\sqrt {b} x\right ) \log \left (\frac {c x^2}{a+b x^2}\right )+4 \operatorname {PolyLog}\left (2,1+\frac {\sqrt {b} x}{\sqrt {-a}}\right )-2 \operatorname {PolyLog}\left (2,\frac {a-\sqrt {-a} \sqrt {b} x}{2 a}\right )+2 \operatorname {PolyLog}\left (2,\frac {a+\sqrt {-a} \sqrt {b} x}{2 a}\right )-4 \operatorname {PolyLog}\left (2,1+\frac {a \sqrt {b} x}{(-a)^{3/2}}\right )}{4 \sqrt {-a} \sqrt {b}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.68 (sec) , antiderivative size = 121, normalized size of antiderivative = 0.73
method | result | size |
default | \(\frac {\munderset {\underline {\hspace {1.25 ex}}\alpha =\operatorname {RootOf}\left (b \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {2 \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {c \,x^{2}}{b \,x^{2}+a}\right )+b \left (\frac {\ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right )^{2}}{\underline {\hspace {1.25 ex}}\alpha b}+\frac {2 \underline {\hspace {1.25 ex}}\alpha \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {x +\underline {\hspace {1.25 ex}}\alpha }{2 \underline {\hspace {1.25 ex}}\alpha }\right )}{a}+\frac {2 \underline {\hspace {1.25 ex}}\alpha \operatorname {dilog}\left (\frac {x +\underline {\hspace {1.25 ex}}\alpha }{2 \underline {\hspace {1.25 ex}}\alpha }\right )}{a}\right )-4 \operatorname {dilog}\left (\frac {x}{\underline {\hspace {1.25 ex}}\alpha }\right )-4 \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {x}{\underline {\hspace {1.25 ex}}\alpha }\right )}{\underline {\hspace {1.25 ex}}\alpha }}{4 b}\) | \(121\) |
risch | \(\frac {\munderset {\underline {\hspace {1.25 ex}}\alpha =\operatorname {RootOf}\left (b \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {2 \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {c \,x^{2}}{b \,x^{2}+a}\right )+b \left (\frac {\ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right )^{2}}{\underline {\hspace {1.25 ex}}\alpha b}+\frac {2 \underline {\hspace {1.25 ex}}\alpha \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {x +\underline {\hspace {1.25 ex}}\alpha }{2 \underline {\hspace {1.25 ex}}\alpha }\right )}{a}+\frac {2 \underline {\hspace {1.25 ex}}\alpha \operatorname {dilog}\left (\frac {x +\underline {\hspace {1.25 ex}}\alpha }{2 \underline {\hspace {1.25 ex}}\alpha }\right )}{a}\right )-4 \operatorname {dilog}\left (\frac {x}{\underline {\hspace {1.25 ex}}\alpha }\right )-4 \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {x}{\underline {\hspace {1.25 ex}}\alpha }\right )}{\underline {\hspace {1.25 ex}}\alpha }}{4 b}\) | \(121\) |
[In]
[Out]
\[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\int { \frac {\log \left (\frac {c x^{2}}{b x^{2} + a}\right )}{b x^{2} + a} \,d x } \]
[In]
[Out]
\[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\int \frac {\log {\left (\frac {c x^{2}}{a + b x^{2}} \right )}}{a + b x^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\int { \frac {\log \left (\frac {c x^{2}}{b x^{2} + a}\right )}{b x^{2} + a} \,d x } \]
[In]
[Out]
\[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\int { \frac {\log \left (\frac {c x^{2}}{b x^{2} + a}\right )}{b x^{2} + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log \left (\frac {c x^2}{a+b x^2}\right )}{a+b x^2} \, dx=\int \frac {\ln \left (\frac {c\,x^2}{b\,x^2+a}\right )}{b\,x^2+a} \,d x \]
[In]
[Out]