Integrand size = 38, antiderivative size = 27 \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\frac {x^{1+p} \left (b x+c x^3\right )^{1+p}}{2 (1+p)} \]
[Out]
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.07 (sec) , antiderivative size = 116, normalized size of antiderivative = 4.30, number of steps used = 7, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {2057, 372, 371} \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\frac {b x^{p+2} \left (b x+c x^3\right )^p \left (\frac {c x^2}{b}+1\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,p+1,p+2,-\frac {c x^2}{b}\right )}{2 (p+1)}+\frac {c x^{p+4} \left (b x+c x^3\right )^p \left (\frac {c x^2}{b}+1\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,p+2,p+3,-\frac {c x^2}{b}\right )}{p+2} \]
[In]
[Out]
Rule 371
Rule 372
Rule 2057
Rubi steps \begin{align*} \text {integral}& = b \int x^{1+p} \left (b x+c x^3\right )^p \, dx+(2 c) \int x^{3+p} \left (b x+c x^3\right )^p \, dx \\ & = \left (b x^{-p} \left (b+c x^2\right )^{-p} \left (b x+c x^3\right )^p\right ) \int x^{1+2 p} \left (b+c x^2\right )^p \, dx+\left (2 c x^{-p} \left (b+c x^2\right )^{-p} \left (b x+c x^3\right )^p\right ) \int x^{3+2 p} \left (b+c x^2\right )^p \, dx \\ & = \left (b x^{-p} \left (1+\frac {c x^2}{b}\right )^{-p} \left (b x+c x^3\right )^p\right ) \int x^{1+2 p} \left (1+\frac {c x^2}{b}\right )^p \, dx+\left (2 c x^{-p} \left (1+\frac {c x^2}{b}\right )^{-p} \left (b x+c x^3\right )^p\right ) \int x^{3+2 p} \left (1+\frac {c x^2}{b}\right )^p \, dx \\ & = \frac {b x^{2+p} \left (1+\frac {c x^2}{b}\right )^{-p} \left (b x+c x^3\right )^p \, _2F_1\left (-p,1+p;2+p;-\frac {c x^2}{b}\right )}{2 (1+p)}+\frac {c x^{4+p} \left (1+\frac {c x^2}{b}\right )^{-p} \left (b x+c x^3\right )^p \, _2F_1\left (-p,2+p;3+p;-\frac {c x^2}{b}\right )}{2+p} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.00 (sec) , antiderivative size = 97, normalized size of antiderivative = 3.59 \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\frac {x^{2+p} \left (x \left (b+c x^2\right )\right )^p \left (1+\frac {c x^2}{b}\right )^{-p} \left (b (2+p) \operatorname {Hypergeometric2F1}\left (-p,1+p,2+p,-\frac {c x^2}{b}\right )+2 c (1+p) x^2 \operatorname {Hypergeometric2F1}\left (-p,2+p,3+p,-\frac {c x^2}{b}\right )\right )}{2 (1+p) (2+p)} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 4.74 (sec) , antiderivative size = 97, normalized size of antiderivative = 3.59
method | result | size |
risch | \(\frac {\left (c \,x^{2}+b \right ) x \,x^{1+p} \left (c \,x^{2}+b \right )^{p} x^{p} {\mathrm e}^{-\frac {i \operatorname {csgn}\left (i x \left (c \,x^{2}+b \right )\right ) \pi p \left (-\operatorname {csgn}\left (i x \left (c \,x^{2}+b \right )\right )+\operatorname {csgn}\left (i \left (c \,x^{2}+b \right )\right )\right ) \left (-\operatorname {csgn}\left (i x \left (c \,x^{2}+b \right )\right )+\operatorname {csgn}\left (i x \right )\right )}{2}}}{2+2 p}\) | \(97\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.22 \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\frac {{\left (c x^{2} + b\right )} {\left (c x^{3} + b x\right )}^{p} x^{p + 3}}{2 \, {\left (p + 1\right )} x} \]
[In]
[Out]
\[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\int \left (x \left (b + c x^{2}\right )\right )^{p} \left (b x^{p + 1} + 2 c x^{p + 3}\right )\, dx \]
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.30 \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\frac {{\left (c x^{4} + b x^{2}\right )} e^{\left (p \log \left (c x^{2} + b\right ) + 2 \, p \log \left (x\right )\right )}}{2 \, {\left (p + 1\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (25) = 50\).
Time = 0.31 (sec) , antiderivative size = 54, normalized size of antiderivative = 2.00 \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\frac {c x^{3} e^{\left (p \log \left (c x^{2} + b\right ) + 2 \, p \log \left (x\right ) + \log \left (x\right )\right )} + b x e^{\left (p \log \left (c x^{2} + b\right ) + 2 \, p \log \left (x\right ) + \log \left (x\right )\right )}}{2 \, {\left (p + 1\right )}} \]
[In]
[Out]
Timed out. \[ \int \left (b x^{1+p} \left (b x+c x^3\right )^p+2 c x^{3+p} \left (b x+c x^3\right )^p\right ) \, dx=\int b\,x^{p+1}\,{\left (c\,x^3+b\,x\right )}^p+2\,c\,x^{p+3}\,{\left (c\,x^3+b\,x\right )}^p \,d x \]
[In]
[Out]