Optimal. Leaf size=107 \[ \frac {\left (d^2-a f^2\right ) \left (d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )^{-1+n}}{2 e (1-n)}+\frac {\left (d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )^{1+n}}{2 e (1+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {2143, 2141, 12,
14} \begin {gather*} \frac {\left (d^2-a f^2\right ) \left (f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}+d+e x\right )^{n-1}}{2 e (1-n)}+\frac {\left (f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}+d+e x\right )^{n+1}}{2 e (n+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2141
Rule 2143
Rubi steps
\begin {align*} \int \left (d+e x+f \sqrt {\frac {a f^2+e x (2 d+e x)}{f^2}}\right )^n \, dx &=\int \left (d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )^n \, dx\\ &=2 \text {Subst}\left (\int \frac {x^{-2+n} \left (d^2 e-\left (-a e+\frac {2 d^2 e}{f^2}\right ) f^2+e x^2\right )}{4 e^2} \, dx,x,d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )\\ &=\frac {\text {Subst}\left (\int x^{-2+n} \left (d^2 e-\left (-a e+\frac {2 d^2 e}{f^2}\right ) f^2+e x^2\right ) \, dx,x,d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )}{2 e^2}\\ &=\frac {\text {Subst}\left (\int \left (-e \left (d^2-a f^2\right ) x^{-2+n}+e x^n\right ) \, dx,x,d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )}{2 e^2}\\ &=\frac {\left (d^2-a f^2\right ) \left (d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )^{-1+n}}{2 e (1-n)}+\frac {\left (d+e x+f \sqrt {a+\frac {2 d e x}{f^2}+\frac {e^2 x^2}{f^2}}\right )^{1+n}}{2 e (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 89, normalized size = 0.83 \begin {gather*} \frac {\left (d+e x+f \sqrt {a+\frac {e x (2 d+e x)}{f^2}}\right )^{-1+n} \left (\frac {-d^2+a f^2}{-1+n}+\frac {\left (d+e x+f \sqrt {a+\frac {e x (2 d+e x)}{f^2}}\right )^2}{1+n}\right )}{2 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \left (d +e x +f \sqrt {\frac {a \,f^{2}+e x \left (e x +2 d \right )}{f^{2}}}\right )^{n}\, dx\]
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.38, size = 80, normalized size = 0.75 \begin {gather*} \frac {{\left (f n \sqrt {\frac {a f^{2} + x^{2} e^{2} + 2 \, d x e}{f^{2}}} - x e - d\right )} {\left (x e + f \sqrt {\frac {a f^{2} + x^{2} e^{2} + 2 \, d x e}{f^{2}}} + d\right )}^{n} e^{\left (-1\right )}}{n^{2} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
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]
________________________________________________________________________________________
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 [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (d+e\,x+f\,\sqrt {\frac {a\,f^2+e\,x\,\left (2\,d+e\,x\right )}{f^2}}\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________