Optimal. Leaf size=38 \[ \frac {\tanh ^{-1}\left (\frac {2 \sqrt {d} \sqrt {f} x}{e+2 f x^n}\right )}{2 \sqrt {d} \sqrt {f}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {2118, 214}
\begin {gather*} \frac {\tanh ^{-1}\left (\frac {2 \sqrt {d} \sqrt {f} x}{e+2 f x^n}\right )}{2 \sqrt {d} \sqrt {f}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 2118
Rubi steps
\begin {align*} \int \frac {e-2 f (-1+n) x^n}{e^2-4 d f x^2+4 e f x^n+4 f^2 x^{2 n}} \, dx &=-\left (\left (e^2 (1-n)\right ) \text {Subst}\left (\int \frac {1}{e^2-4 d e^2 f (-1+n)^2 x^2} \, dx,x,\frac {x}{e (-1+n)+2 f (-1+n) x^n}\right )\right )\\ &=\frac {\tanh ^{-1}\left (\frac {2 \sqrt {d} \sqrt {f} x}{e+2 f x^n}\right )}{2 \sqrt {d} \sqrt {f}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 0.25, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {e-2 f (-1+n) x^n}{e^2-4 d f x^2+4 e f x^n+4 f^2 x^{2 n}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(71\) vs.
\(2(28)=56\).
time = 0.04, size = 72, normalized size = 1.89
method | result | size |
risch | \(\frac {\ln \left (x^{n}+\frac {2 d f x +\sqrt {d f}\, e}{2 \sqrt {d f}\, f}\right )}{4 \sqrt {d f}}-\frac {\ln \left (x^{n}+\frac {-2 d f x +\sqrt {d f}\, e}{2 \sqrt {d f}\, f}\right )}{4 \sqrt {d f}}\) | \(72\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.47, size = 146, normalized size = 3.84 \begin {gather*} \left [\frac {\sqrt {d f} \log \left (-\frac {4 \, d f x^{2} + 4 \, f^{2} x^{2 \, n} + 4 \, \sqrt {d f} x e + 4 \, {\left (2 \, \sqrt {d f} f x + f e\right )} x^{n} + e^{2}}{4 \, d f x^{2} - 4 \, f^{2} x^{2 \, n} - 4 \, f x^{n} e - e^{2}}\right )}{4 \, d f}, -\frac {\sqrt {-d f} \arctan \left (\frac {2 \, \sqrt {-d f} f x^{n} + \sqrt {-d f} e}{2 \, d f x}\right )}{2 \, d f}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {e}{4 d f x^{2} - e^{2} - 4 e f x^{n} - 4 f^{2} x^{2 n}}\, dx - \int \frac {2 f x^{n}}{4 d f x^{2} - e^{2} - 4 e f x^{n} - 4 f^{2} x^{2 n}}\, dx - \int \left (- \frac {2 f n x^{n}}{4 d f x^{2} - e^{2} - 4 e f x^{n} - 4 f^{2} x^{2 n}}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.30, size = 139, normalized size = 3.66 \begin {gather*} \frac {\ln \left (\frac {\left (e+2\,f\,x^n+2\,\sqrt {d}\,\sqrt {f}\,x\right )\,\left (e\,n+2\,\sqrt {d}\,\sqrt {f}\,x-2\,\sqrt {d}\,\sqrt {f}\,n\,x\right )}{x}\right )}{4\,\sqrt {d}\,\sqrt {f}}-\frac {\ln \left (\frac {\left (e+2\,f\,x^n-2\,\sqrt {d}\,\sqrt {f}\,x\right )\,\left (e\,n-2\,\sqrt {d}\,\sqrt {f}\,x+2\,\sqrt {d}\,\sqrt {f}\,n\,x\right )}{x}\right )}{4\,\sqrt {d}\,\sqrt {f}}-\frac {\mathrm {atan}\left (\frac {2\,\sqrt {d}\,\sqrt {f}\,x\,\left (n\,1{}\mathrm {i}-\mathrm {i}\right )}{e\,n}\right )\,1{}\mathrm {i}}{2\,\sqrt {d}\,\sqrt {f}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________