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 )} \]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1629, 635, 205, 260} \begin {gather*} \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 )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 260
Rule 635
Rule 1629
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.03, size = 73, normalized size = 0.76 \begin {gather*} \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} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^2}{(c+d x) \left (a+b x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.23, size = 162, normalized size = 1.69 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.26, size = 85, normalized size = 0.89 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 87, normalized size = 0.91 \begin {gather*} -\frac {a c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\left (a \,d^{2}+b \,c^{2}\right ) \sqrt {a b}}+\frac {a d \ln \left (b \,x^{2}+a \right )}{2 \left (a \,d^{2}+b \,c^{2}\right ) b}+\frac {c^{2} \ln \left (d x +c \right )}{\left (a \,d^{2}+b \,c^{2}\right ) d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.22, size = 84, normalized size = 0.88 \begin {gather*} \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 (d x + c\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.13, size = 347, normalized size = 3.61 \begin {gather*} \frac {\ln \left (a\,c+a\,d\,x+\frac {\left (c\,\sqrt {-a\,b^3}+a\,b\,d\right )\,\left (x\,\left (2\,b^2\,c^2-5\,a\,b\,d^2\right )-5\,a\,b\,c\,d+\frac {2\,b^2\,d\,\left (c\,\sqrt {-a\,b^3}+a\,b\,d\right )\,\left (-b\,x\,c^2+4\,a\,c\,d+3\,a\,x\,d^2\right )}{2\,b^3\,c^2+2\,a\,b^2\,d^2}\right )}{2\,b^3\,c^2+2\,a\,b^2\,d^2}\right )\,\left (c\,\sqrt {-a\,b^3}+a\,b\,d\right )}{2\,b^3\,c^2+2\,a\,b^2\,d^2}-\frac {\ln \left (a\,c+a\,d\,x+\frac {\left (c\,\sqrt {-a\,b^3}-a\,b\,d\right )\,\left (b\,x\,\left (5\,a\,d^2-2\,b\,c^2\right )+5\,a\,b\,c\,d+\frac {d\,\left (c\,\sqrt {-a\,b^3}-a\,b\,d\right )\,\left (-b\,x\,c^2+4\,a\,c\,d+3\,a\,x\,d^2\right )}{b\,c^2+a\,d^2}\right )}{2\,b^2\,\left (b\,c^2+a\,d^2\right )}\right )\,\left (c\,\sqrt {-a\,b^3}-a\,b\,d\right )}{2\,\left (b^3\,c^2+a\,b^2\,d^2\right )}+\frac {c^2\,\ln \left (c+d\,x\right )}{b\,c^2\,d+a\,d^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________