Optimal. Leaf size=44 \[ \frac {b x^2}{2}+\frac {c x^3}{3}+\frac {\left (\frac {b x^2}{2}+\frac {c x^3}{3}\right )^{1+n}}{1+n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.032, Rules used = {1605}
\begin {gather*} \frac {\left (\frac {b x^2}{2}+\frac {c x^3}{3}\right )^{n+1}}{n+1}+\frac {b x^2}{2}+\frac {c x^3}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1605
Rubi steps
\begin {align*} \int \left (b x+c x^2\right ) \left (1+\left (\frac {b x^2}{2}+\frac {c x^3}{3}\right )^n\right ) \, dx &=\text {Subst}\left (\int \left (1+x^n\right ) \, dx,x,\frac {b x^2}{2}+\frac {c x^3}{3}\right )\\ &=\frac {b x^2}{2}+\frac {c x^3}{3}+\frac {\left (\frac {b x^2}{2}+\frac {c x^3}{3}\right )^{1+n}}{1+n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 42, normalized size = 0.95 \begin {gather*} \frac {x^2 (3 b+2 c x) \left (1+n+\left (\frac {b x^2}{2}+\frac {c x^3}{3}\right )^n\right )}{6 (1+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 37, normalized size = 0.84
method | result | size |
derivativedivides | \(\frac {b \,x^{2}}{2}+\frac {c \,x^{3}}{3}+\frac {\left (\frac {1}{2} b \,x^{2}+\frac {1}{3} c \,x^{3}\right )^{1+n}}{1+n}\) | \(37\) |
default | \(\frac {b \,x^{2}}{2}+\frac {c \,x^{3}}{3}+\frac {\left (\frac {1}{2} b \,x^{2}+\frac {1}{3} c \,x^{3}\right )^{1+n}}{1+n}\) | \(37\) |
risch | \(\frac {b \,x^{2}}{2}+\frac {c \,x^{3}}{3}+\frac {x^{2} \left (2 c x +3 b \right ) \left (\frac {1}{3}\right )^{n} \left (\frac {1}{2}\right )^{n} \left (x^{2} \left (2 c x +3 b \right )\right )^{n}}{6 n +6}\) | \(52\) |
norman | \(\frac {b \,x^{2}}{2}+\frac {c \,x^{3}}{3}+\frac {b \,x^{2} {\mathrm e}^{n \ln \left (\frac {1}{2} b \,x^{2}+\frac {1}{3} c \,x^{3}\right )}}{2+2 n}+\frac {c \,x^{3} {\mathrm e}^{n \ln \left (\frac {1}{2} b \,x^{2}+\frac {1}{3} c \,x^{3}\right )}}{3+3 n}\) | \(70\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.53, size = 71, normalized size = 1.61 \begin {gather*} \frac {1}{3} \, c x^{3} + \frac {1}{2} \, b x^{2} + \frac {{\left (2 \, c x^{3} + 3 \, b x^{2}\right )} e^{\left (n \log \left (2 \, c x + 3 \, b\right ) + 2 \, n \log \left (x\right )\right )}}{3^{n + 1} 2^{n + 1} n + 3^{n + 1} 2^{n + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 57, normalized size = 1.30 \begin {gather*} \frac {2 \, {\left (c n + c\right )} x^{3} + 3 \, {\left (b n + b\right )} x^{2} + {\left (2 \, c x^{3} + 3 \, b x^{2}\right )} {\left (\frac {1}{3} \, c x^{3} + \frac {1}{2} \, b x^{2}\right )}^{n}}{6 \, {\left (n + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 189 vs.
\(2 (32) = 64\).
time = 96.62, size = 189, normalized size = 4.30 \begin {gather*} \begin {cases} \frac {3 \cdot 6^{n} b n x^{2}}{6 \cdot 6^{n} n + 6 \cdot 6^{n}} + \frac {3 \cdot 6^{n} b x^{2}}{6 \cdot 6^{n} n + 6 \cdot 6^{n}} + \frac {2 \cdot 6^{n} c n x^{3}}{6 \cdot 6^{n} n + 6 \cdot 6^{n}} + \frac {2 \cdot 6^{n} c x^{3}}{6 \cdot 6^{n} n + 6 \cdot 6^{n}} + \frac {3 b x^{2} \left (3 b x^{2} + 2 c x^{3}\right )^{n}}{6 \cdot 6^{n} n + 6 \cdot 6^{n}} + \frac {2 c x^{3} \left (3 b x^{2} + 2 c x^{3}\right )^{n}}{6 \cdot 6^{n} n + 6 \cdot 6^{n}} & \text {for}\: n \neq -1 \\\frac {b x^{2}}{2} + \frac {c x^{3}}{3} + 2 \log {\left (x \right )} + \log {\left (\frac {3 b}{2 c} + x \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.70, size = 36, normalized size = 0.82 \begin {gather*} \frac {1}{3} \, c x^{3} + \frac {1}{2} \, b x^{2} + \frac {{\left (\frac {1}{3} \, c x^{3} + \frac {1}{2} \, b x^{2}\right )}^{n + 1}}{n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.21, size = 37, normalized size = 0.84 \begin {gather*} \frac {x^2\,\left (3\,b+2\,c\,x\right )\,\left (n+{\left (\frac {c\,x^3}{3}+\frac {b\,x^2}{2}\right )}^n+1\right )}{6\,\left (n+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________