Optimal. Leaf size=99 \[ \frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{\frac {a}{b}} \sqrt {x}}{\sqrt {\frac {a}{b}}-x}\right )+\log \left (\frac {\sqrt {\frac {a}{b}}+\sqrt {2} \sqrt [4]{\frac {a}{b}} \sqrt {x}+x}{\sqrt {a+b x^2}}\right )}{\sqrt {2} \left (\frac {a}{b}\right )^{3/4} b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 192, normalized size of antiderivative = 1.94, number of steps
used = 10, number of rules used = 7, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.467, Rules used = {335, 217,
1179, 642, 1176, 631, 210} \begin {gather*} -\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}}+\frac {\arctan \left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}}-\frac {\log \left (-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {a}+\sqrt {b} x\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}+\frac {\log \left (\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {a}+\sqrt {b} x\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 217
Rule 335
Rule 631
Rule 642
Rule 1176
Rule 1179
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=2 \text {Subst}\left (\int \frac {1}{a+b x^4} \, dx,x,\sqrt {x}\right )\\ &=\frac {\text {Subst}\left (\int \frac {\sqrt {a}-\sqrt {b} x^2}{a+b x^4} \, dx,x,\sqrt {x}\right )}{\sqrt {a}}+\frac {\text {Subst}\left (\int \frac {\sqrt {a}+\sqrt {b} x^2}{a+b x^4} \, dx,x,\sqrt {x}\right )}{\sqrt {a}}\\ &=\frac {\text {Subst}\left (\int \frac {1}{\frac {\sqrt {a}}{\sqrt {b}}-\frac {\sqrt {2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx,x,\sqrt {x}\right )}{2 \sqrt {a} \sqrt {b}}+\frac {\text {Subst}\left (\int \frac {1}{\frac {\sqrt {a}}{\sqrt {b}}+\frac {\sqrt {2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx,x,\sqrt {x}\right )}{2 \sqrt {a} \sqrt {b}}-\frac {\text {Subst}\left (\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,x,\sqrt {x}\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}-\frac {\text {Subst}\left (\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,x,\sqrt {x}\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}\\ &=-\frac {\log \left (\sqrt {a}-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}+\frac {\log \left (\sqrt {a}+\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}+\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}}-\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}}\\ &=-\frac {\arctan \left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}}+\frac {\arctan \left (1+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}}-\frac {\log \left (\sqrt {a}-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}+\frac {\log \left (\sqrt {a}+\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{2 \sqrt {2} a^{3/4} \sqrt [4]{b}}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 92, normalized size = 0.93 \begin {gather*} \frac {-\arctan \left (\frac {\sqrt {a}-\sqrt {b} x}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}\right )+\text {arctanh}\left (\frac {\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}{\sqrt {a}+\sqrt {b} x}\right )}{\sqrt {2} a^{3/4} \sqrt [4]{b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 106, normalized size = 1.07
method | result | size |
derivativedivides | \(\frac {\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}+\sqrt {\frac {a}{b}}}{x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{4 a}\) | \(106\) |
default | \(\frac {\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}+\sqrt {\frac {a}{b}}}{x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {2}\, \sqrt {x}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{4 a}\) | \(106\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 172 vs.
\(2 (79) = 158\).
time = 0.42, size = 172, normalized size = 1.74 \begin {gather*} \frac {\sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} + 2 \, \sqrt {b} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {a} \sqrt {b}}}\right )}{2 \, \sqrt {a} \sqrt {\sqrt {a} \sqrt {b}}} + \frac {\sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} - 2 \, \sqrt {b} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {a} \sqrt {b}}}\right )}{2 \, \sqrt {a} \sqrt {\sqrt {a} \sqrt {b}}} + \frac {\sqrt {2} \log \left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {x} + \sqrt {b} x + \sqrt {a}\right )}{4 \, a^{\frac {3}{4}} b^{\frac {1}{4}}} - \frac {\sqrt {2} \log \left (-\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {x} + \sqrt {b} x + \sqrt {a}\right )}{4 \, a^{\frac {3}{4}} b^{\frac {1}{4}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.59, size = 126, normalized size = 1.27 \begin {gather*} 2 \, \left (-\frac {1}{a^{3} b}\right )^{\frac {1}{4}} \arctan \left (\sqrt {a^{2} \sqrt {-\frac {1}{a^{3} b}} + x} a^{2} b \left (-\frac {1}{a^{3} b}\right )^{\frac {3}{4}} - a^{2} b \sqrt {x} \left (-\frac {1}{a^{3} b}\right )^{\frac {3}{4}}\right ) + \frac {1}{2} \, \left (-\frac {1}{a^{3} b}\right )^{\frac {1}{4}} \log \left (a \left (-\frac {1}{a^{3} b}\right )^{\frac {1}{4}} + \sqrt {x}\right ) - \frac {1}{2} \, \left (-\frac {1}{a^{3} b}\right )^{\frac {1}{4}} \log \left (-a \left (-\frac {1}{a^{3} b}\right )^{\frac {1}{4}} + \sqrt {x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.59, size = 104, normalized size = 1.05 \begin {gather*} \begin {cases} \frac {\tilde {\infty }}{x^{\frac {3}{2}}} & \text {for}\: a = 0 \wedge b = 0 \\- \frac {2}{3 b x^{\frac {3}{2}}} & \text {for}\: a = 0 \\\frac {2 \sqrt {x}}{a} & \text {for}\: b = 0 \\- \frac {\sqrt [4]{- \frac {a}{b}} \log {\left (\sqrt {x} - \sqrt [4]{- \frac {a}{b}} \right )}}{2 a} + \frac {\sqrt [4]{- \frac {a}{b}} \log {\left (\sqrt {x} + \sqrt [4]{- \frac {a}{b}} \right )}}{2 a} + \frac {\sqrt [4]{- \frac {a}{b}} \operatorname {atan}{\left (\frac {\sqrt {x}}{\sqrt [4]{- \frac {a}{b}}} \right )}}{a} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 182 vs.
\(2 (79) = 158\).
time = 0.43, size = 182, normalized size = 1.84 \begin {gather*} \frac {\sqrt {2} \left (a b^{3}\right )^{\frac {1}{4}} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {a}{b}\right )^{\frac {1}{4}} + 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{2 \, a b} + \frac {\sqrt {2} \left (a b^{3}\right )^{\frac {1}{4}} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {a}{b}\right )^{\frac {1}{4}} - 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{2 \, a b} + \frac {\sqrt {2} \left (a b^{3}\right )^{\frac {1}{4}} \log \left (\sqrt {2} \sqrt {x} \left (\frac {a}{b}\right )^{\frac {1}{4}} + x + \sqrt {\frac {a}{b}}\right )}{4 \, a b} - \frac {\sqrt {2} \left (a b^{3}\right )^{\frac {1}{4}} \log \left (-\sqrt {2} \sqrt {x} \left (\frac {a}{b}\right )^{\frac {1}{4}} + x + \sqrt {\frac {a}{b}}\right )}{4 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 37, normalized size = 0.37 \begin {gather*} -\frac {\mathrm {atan}\left (\frac {b^{1/4}\,\sqrt {x}}{{\left (-a\right )}^{1/4}}\right )+\mathrm {atanh}\left (\frac {b^{1/4}\,\sqrt {x}}{{\left (-a\right )}^{1/4}}\right )}{{\left (-a\right )}^{3/4}\,b^{1/4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________