Optimal. Leaf size=417 \[ -\frac{c^2 d \log \left (a+b x^4\right )}{4 \left (a d^4+b c^4\right )}+\frac{c \left (\sqrt{a} d^2+\sqrt{b} c^2\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )}-\frac{c \left (\sqrt{a} d^2+\sqrt{b} c^2\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )}+\frac{\sqrt{a} d^3 \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{b} \left (a d^4+b c^4\right )}+\frac{c^2 d \log (c+d x)}{a d^4+b c^4}-\frac{c \left (\sqrt{b} c^2-\sqrt{a} d^2\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )}+\frac{c \left (\sqrt{b} c^2-\sqrt{a} d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.546728, antiderivative size = 417, normalized size of antiderivative = 1., number of steps used = 16, number of rules used = 12, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {6725, 1461, 1168, 1162, 617, 204, 1165, 628, 1248, 635, 205, 260} \[ -\frac{c^2 d \log \left (a+b x^4\right )}{4 \left (a d^4+b c^4\right )}+\frac{c \left (\sqrt{a} d^2+\sqrt{b} c^2\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )}-\frac{c \left (\sqrt{a} d^2+\sqrt{b} c^2\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )}+\frac{\sqrt{a} d^3 \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{b} \left (a d^4+b c^4\right )}+\frac{c^2 d \log (c+d x)}{a d^4+b c^4}-\frac{c \left (\sqrt{b} c^2-\sqrt{a} d^2\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )}+\frac{c \left (\sqrt{b} c^2-\sqrt{a} d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \left (a d^4+b c^4\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6725
Rule 1461
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rule 1248
Rule 635
Rule 205
Rule 260
Rubi steps
\begin{align*} \int \frac{x^2}{(c+d x) \left (a+b x^4\right )} \, dx &=\int \left (\frac{c^2 d^2}{\left (b c^4+a d^4\right ) (c+d x)}+\frac{(c-d x) \left (-a d^2+b c^2 x^2\right )}{\left (b c^4+a d^4\right ) \left (a+b x^4\right )}\right ) \, dx\\ &=\frac{c^2 d \log (c+d x)}{b c^4+a d^4}+\frac{\int \frac{(c-d x) \left (-a d^2+b c^2 x^2\right )}{a+b x^4} \, dx}{b c^4+a d^4}\\ &=\frac{c^2 d \log (c+d x)}{b c^4+a d^4}+\frac{c \int \frac{-a d^2+b c^2 x^2}{a+b x^4} \, dx}{b c^4+a d^4}-\frac{d \int \frac{x \left (-a d^2+b c^2 x^2\right )}{a+b x^4} \, dx}{b c^4+a d^4}\\ &=\frac{c^2 d \log (c+d x)}{b c^4+a d^4}-\frac{d \operatorname{Subst}\left (\int \frac{-a d^2+b c^2 x}{a+b x^2} \, dx,x,x^2\right )}{2 \left (b c^4+a d^4\right )}+\frac{\left (c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \int \frac{\sqrt{a} \sqrt{b}+b x^2}{a+b x^4} \, dx}{2 \left (b c^4+a d^4\right )}-\frac{\left (c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \int \frac{\sqrt{a} \sqrt{b}-b x^2}{a+b x^4} \, dx}{2 \left (b c^4+a d^4\right )}\\ &=\frac{c^2 d \log (c+d x)}{b c^4+a d^4}-\frac{\left (b c^2 d\right ) \operatorname{Subst}\left (\int \frac{x}{a+b x^2} \, dx,x,x^2\right )}{2 \left (b c^4+a d^4\right )}+\frac{\left (a d^3\right ) \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,x^2\right )}{2 \left (b c^4+a d^4\right )}+\frac{\left (c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 \left (b c^4+a d^4\right )}+\frac{\left (c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx}{4 \left (b c^4+a d^4\right )}+\frac{\left (\sqrt [4]{b} c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}+\frac{\left (\sqrt [4]{b} c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx}{4 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}\\ &=\frac{\sqrt{a} d^3 \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{b} \left (b c^4+a d^4\right )}+\frac{c^2 d \log (c+d x)}{b c^4+a d^4}+\frac{\sqrt [4]{b} c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}-\frac{\sqrt [4]{b} c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}-\frac{c^2 d \log \left (a+b x^4\right )}{4 \left (b c^4+a d^4\right )}+\frac{\left (\sqrt [4]{b} c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}-\frac{\left (\sqrt [4]{b} c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}\\ &=\frac{\sqrt{a} d^3 \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{b} \left (b c^4+a d^4\right )}-\frac{\sqrt [4]{b} c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}+\frac{\sqrt [4]{b} c \left (c^2-\frac{\sqrt{a} d^2}{\sqrt{b}}\right ) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}+\frac{c^2 d \log (c+d x)}{b c^4+a d^4}+\frac{\sqrt [4]{b} c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}-\frac{\sqrt [4]{b} c \left (c^2+\frac{\sqrt{a} d^2}{\sqrt{b}}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{b} x^2\right )}{4 \sqrt{2} \sqrt [4]{a} \left (b c^4+a d^4\right )}-\frac{c^2 d \log \left (a+b x^4\right )}{4 \left (b c^4+a d^4\right )}\\ \end{align*}
Mathematica [A] time = 0.250189, size = 370, normalized size = 0.89 \[ \frac{-2 \left (2 a^{3/4} d^3-\sqrt{2} \sqrt{a} \sqrt [4]{b} c d^2+\sqrt{2} b^{3/4} c^3\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )+2 \left (-2 a^{3/4} d^3-\sqrt{2} \sqrt{a} \sqrt [4]{b} c d^2+\sqrt{2} b^{3/4} c^3\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )+\sqrt [4]{b} c \left (\sqrt{2} \left (\sqrt{a} d^2+\sqrt{b} c^2\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-\sqrt{2} \sqrt{b} c^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-2 \sqrt [4]{a} \sqrt [4]{b} c d \log \left (a+b x^4\right )+8 \sqrt [4]{a} \sqrt [4]{b} c d \log (c+d x)-\sqrt{2} \sqrt{a} d^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )\right )}{8 \sqrt [4]{a} \sqrt{b} \left (a d^4+b c^4\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 422, normalized size = 1. \begin{align*} -{\frac{c{d}^{2}\sqrt{2}}{4\,a{d}^{4}+4\,b{c}^{4}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }-{\frac{c{d}^{2}\sqrt{2}}{8\,a{d}^{4}+8\,b{c}^{4}}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{c{d}^{2}\sqrt{2}}{4\,a{d}^{4}+4\,b{c}^{4}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{a{d}^{3}}{2\,a{d}^{4}+2\,b{c}^{4}}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{{c}^{3}\sqrt{2}}{8\,a{d}^{4}+8\,b{c}^{4}}\ln \left ({ \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{{c}^{3}\sqrt{2}}{4\,a{d}^{4}+4\,b{c}^{4}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{{c}^{3}\sqrt{2}}{4\,a{d}^{4}+4\,b{c}^{4}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{{c}^{2}d\ln \left ( b{x}^{4}+a \right ) }{4\,a{d}^{4}+4\,b{c}^{4}}}+{\frac{{c}^{2}d\ln \left ( dx+c \right ) }{a{d}^{4}+b{c}^{4}}} \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 [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20294, size = 575, normalized size = 1.38 \begin{align*} \frac{c^{2} d^{2} \log \left ({\left | d x + c \right |}\right )}{b c^{4} d + a d^{5}} - \frac{c^{2} d \log \left ({\left | b x^{4} + a \right |}\right )}{4 \,{\left (b c^{4} + a d^{4}\right )}} - \frac{{\left (\sqrt{2} a^{2} b^{3} d - \left (a b^{3}\right )^{\frac{3}{4}} a b c\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{2 \,{\left (\sqrt{2} a^{2} b^{4} c^{2} + \sqrt{2} \sqrt{a b} a^{2} b^{3} d^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a^{2} b^{3} c d\right )}} + \frac{{\left (\sqrt{2} a^{2} b^{3} d + \left (a b^{3}\right )^{\frac{3}{4}} a b c\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{2 \,{\left (\sqrt{2} a^{2} b^{4} c^{2} + \sqrt{2} \sqrt{a b} a^{2} b^{3} d^{2} + 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a^{2} b^{3} c d\right )}} - \frac{{\left (\left (a b^{3}\right )^{\frac{1}{4}} a b c d^{2} + \left (a b^{3}\right )^{\frac{3}{4}} c^{3}\right )} \log \left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{4 \,{\left (\sqrt{2} a b^{3} c^{4} + \sqrt{2} a^{2} b^{2} d^{4}\right )}} + \frac{{\left (\left (a b^{3}\right )^{\frac{1}{4}} a b c d^{2} + \left (a b^{3}\right )^{\frac{3}{4}} c^{3}\right )} \log \left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{4 \,{\left (\sqrt{2} a b^{3} c^{4} + \sqrt{2} a^{2} b^{2} d^{4}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]