Optimal. Leaf size=34 \[ \frac{\left (a x+\frac{b x^2}{2}\right )^{n+1}}{n+1}+a x+\frac{b x^2}{2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.019103, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.045 \[ \frac{\left (a x+\frac{b x^2}{2}\right )^{n+1}}{n+1}+a x+\frac{b x^2}{2} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)*(1 + (a*x + (b*x^2)/2)^n),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 2.34797, size = 26, normalized size = 0.76 \[ a x + \frac{b x^{2}}{2} + \frac{\left (a x + \frac{b x^{2}}{2}\right )^{n + 1}}{n + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)*(1+(a*x+1/2*b*x**2)**n),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0301894, size = 34, normalized size = 1. \[ \frac{x (2 a+b x) \left (\left (a x+\frac{b x^2}{2}\right )^n+n+1\right )}{2 (n+1)} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)*(1 + (a*x + (b*x^2)/2)^n),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.002, size = 31, normalized size = 0.9 \[ ax+{\frac{b{x}^{2}}{2}}+{\frac{1}{1+n} \left ( ax+{\frac{b{x}^{2}}{2}} \right ) ^{1+n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)*(1+(a*x+1/2*b*x^2)^n),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.991402, size = 70, normalized size = 2.06 \[ \frac{1}{2} \, b x^{2} + a x + \frac{{\left (b x^{2} + 2 \, a x\right )} e^{\left (n \log \left (b x + 2 \, a\right ) + n \log \left (x\right )\right )}}{2^{n + 1} n + 2^{n + 1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)*((1/2*b*x^2 + a*x)^n + 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.291046, size = 65, normalized size = 1.91 \[ \frac{{\left (b n + b\right )} x^{2} +{\left (b x^{2} + 2 \, a x\right )}{\left (\frac{1}{2} \, b x^{2} + a x\right )}^{n} + 2 \,{\left (a n + a\right )} x}{2 \,{\left (n + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)*((1/2*b*x^2 + a*x)^n + 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)*(1+(a*x+1/2*b*x**2)**n),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.261112, size = 41, normalized size = 1.21 \[ \frac{1}{2} \, b x^{2} + a x + \frac{{\left (\frac{1}{2} \, b x^{2} + a x\right )}^{n + 1}}{n + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)*((1/2*b*x^2 + a*x)^n + 1),x, algorithm="giac")
[Out]