Optimal. Leaf size=96 \[ \frac{a d \log \left (a+b x^2\right )}{2 b \left (a d^2+b c^2\right )}+\frac{c^2 \log (c+d x)}{d \left (a d^2+b c^2\right )}-\frac{\sqrt{a} c \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{b} \left (a d^2+b c^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.108043, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {1629, 635, 205, 260} \[ \frac{a d \log \left (a+b x^2\right )}{2 b \left (a d^2+b c^2\right )}+\frac{c^2 \log (c+d x)}{d \left (a d^2+b c^2\right )}-\frac{\sqrt{a} c \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{b} \left (a d^2+b c^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1629
Rule 635
Rule 205
Rule 260
Rubi steps
\begin{align*} \int \frac{x^2}{(c+d x) \left (a+b x^2\right )} \, dx &=\int \left (\frac{c^2}{\left (b c^2+a d^2\right ) (c+d x)}-\frac{a (c-d x)}{\left (b c^2+a d^2\right ) \left (a+b x^2\right )}\right ) \, dx\\ &=\frac{c^2 \log (c+d x)}{d \left (b c^2+a d^2\right )}-\frac{a \int \frac{c-d x}{a+b x^2} \, dx}{b c^2+a d^2}\\ &=\frac{c^2 \log (c+d x)}{d \left (b c^2+a d^2\right )}-\frac{(a c) \int \frac{1}{a+b x^2} \, dx}{b c^2+a d^2}+\frac{(a d) \int \frac{x}{a+b x^2} \, dx}{b c^2+a d^2}\\ &=-\frac{\sqrt{a} c \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{b} \left (b c^2+a d^2\right )}+\frac{c^2 \log (c+d x)}{d \left (b c^2+a d^2\right )}+\frac{a d \log \left (a+b x^2\right )}{2 b \left (b c^2+a d^2\right )}\\ \end{align*}
Mathematica [A] time = 0.0418023, size = 73, normalized size = 0.76 \[ \frac{-2 \sqrt{a} \sqrt{b} c d \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )+a d^2 \log \left (a+b x^2\right )+2 b c^2 \log (c+d x)}{2 a b d^3+2 b^2 c^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 87, normalized size = 0.9 \begin{align*}{\frac{ad\ln \left ( b{x}^{2}+a \right ) }{2\,b \left ( a{d}^{2}+{c}^{2}b \right ) }}-{\frac{ac}{a{d}^{2}+{c}^{2}b}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{{c}^{2}\ln \left ( dx+c \right ) }{d \left ( a{d}^{2}+{c}^{2}b \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 [A] time = 1.77094, size = 354, normalized size = 3.69 \begin{align*} \left [\frac{b c d \sqrt{-\frac{a}{b}} \log \left (\frac{b x^{2} - 2 \, b x \sqrt{-\frac{a}{b}} - a}{b x^{2} + a}\right ) + a d^{2} \log \left (b x^{2} + a\right ) + 2 \, b c^{2} \log \left (d x + c\right )}{2 \,{\left (b^{2} c^{2} d + a b d^{3}\right )}}, -\frac{2 \, b c d \sqrt{\frac{a}{b}} \arctan \left (\frac{b x \sqrt{\frac{a}{b}}}{a}\right ) - a d^{2} \log \left (b x^{2} + a\right ) - 2 \, b c^{2} \log \left (d x + c\right )}{2 \,{\left (b^{2} c^{2} d + a b d^{3}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 7.01037, size = 1355, normalized size = 14.11 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18663, size = 115, normalized size = 1.2 \begin{align*} \frac{a d \log \left (b x^{2} + a\right )}{2 \,{\left (b^{2} c^{2} + a b d^{2}\right )}} + \frac{c^{2} \log \left ({\left | d x + c \right |}\right )}{b c^{2} d + a d^{3}} - \frac{a c \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{{\left (b c^{2} + a d^{2}\right )} \sqrt{a b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]