Integrand size = 30, antiderivative size = 430 \[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=-\frac {3 b f^2 g x \sqrt {1+c^2 x^2}}{c \sqrt {d+c^2 d x^2}}+\frac {2 b g^3 x \sqrt {1+c^2 x^2}}{3 c^3 \sqrt {d+c^2 d x^2}}-\frac {3 b f g^2 x^2 \sqrt {1+c^2 x^2}}{4 c \sqrt {d+c^2 d x^2}}-\frac {b g^3 x^3 \sqrt {1+c^2 x^2}}{9 c \sqrt {d+c^2 d x^2}}+\frac {3 f^2 g \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{c^2 \sqrt {d+c^2 d x^2}}-\frac {2 g^3 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^4 \sqrt {d+c^2 d x^2}}+\frac {3 f g^2 x \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {g^3 x^2 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^3 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {3 f g^2 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{4 b c^3 \sqrt {d+c^2 d x^2}} \]
[Out]
Time = 0.40 (sec) , antiderivative size = 430, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.233, Rules used = {5845, 5838, 5783, 5798, 8, 5812, 30} \[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\frac {f^3 \sqrt {c^2 x^2+1} (a+b \text {arcsinh}(c x))^2}{2 b c \sqrt {c^2 d x^2+d}}+\frac {3 f^2 g \left (c^2 x^2+1\right ) (a+b \text {arcsinh}(c x))}{c^2 \sqrt {c^2 d x^2+d}}+\frac {3 f g^2 x \left (c^2 x^2+1\right ) (a+b \text {arcsinh}(c x))}{2 c^2 \sqrt {c^2 d x^2+d}}+\frac {g^3 x^2 \left (c^2 x^2+1\right ) (a+b \text {arcsinh}(c x))}{3 c^2 \sqrt {c^2 d x^2+d}}-\frac {2 g^3 \left (c^2 x^2+1\right ) (a+b \text {arcsinh}(c x))}{3 c^4 \sqrt {c^2 d x^2+d}}-\frac {3 f g^2 \sqrt {c^2 x^2+1} (a+b \text {arcsinh}(c x))^2}{4 b c^3 \sqrt {c^2 d x^2+d}}-\frac {3 b f^2 g x \sqrt {c^2 x^2+1}}{c \sqrt {c^2 d x^2+d}}-\frac {3 b f g^2 x^2 \sqrt {c^2 x^2+1}}{4 c \sqrt {c^2 d x^2+d}}-\frac {b g^3 x^3 \sqrt {c^2 x^2+1}}{9 c \sqrt {c^2 d x^2+d}}+\frac {2 b g^3 x \sqrt {c^2 x^2+1}}{3 c^3 \sqrt {c^2 d x^2+d}} \]
[In]
[Out]
Rule 8
Rule 30
Rule 5783
Rule 5798
Rule 5812
Rule 5838
Rule 5845
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {1+c^2 x^2} \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}} \\ & = \frac {\sqrt {1+c^2 x^2} \int \left (\frac {f^3 (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}}+\frac {3 f^2 g x (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}}+\frac {3 f g^2 x^2 (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}}+\frac {g^3 x^3 (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}}\right ) \, dx}{\sqrt {d+c^2 d x^2}} \\ & = \frac {\left (f^3 \sqrt {1+c^2 x^2}\right ) \int \frac {a+b \text {arcsinh}(c x)}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}+\frac {\left (3 f^2 g \sqrt {1+c^2 x^2}\right ) \int \frac {x (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}+\frac {\left (3 f g^2 \sqrt {1+c^2 x^2}\right ) \int \frac {x^2 (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}+\frac {\left (g^3 \sqrt {1+c^2 x^2}\right ) \int \frac {x^3 (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}} \\ & = \frac {3 f^2 g \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{c^2 \sqrt {d+c^2 d x^2}}+\frac {3 f g^2 x \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {g^3 x^2 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^3 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {\left (3 b f^2 g \sqrt {1+c^2 x^2}\right ) \int 1 \, dx}{c \sqrt {d+c^2 d x^2}}-\frac {\left (3 f g^2 \sqrt {1+c^2 x^2}\right ) \int \frac {a+b \text {arcsinh}(c x)}{\sqrt {1+c^2 x^2}} \, dx}{2 c^2 \sqrt {d+c^2 d x^2}}-\frac {\left (3 b f g^2 \sqrt {1+c^2 x^2}\right ) \int x \, dx}{2 c \sqrt {d+c^2 d x^2}}-\frac {\left (2 g^3 \sqrt {1+c^2 x^2}\right ) \int \frac {x (a+b \text {arcsinh}(c x))}{\sqrt {1+c^2 x^2}} \, dx}{3 c^2 \sqrt {d+c^2 d x^2}}-\frac {\left (b g^3 \sqrt {1+c^2 x^2}\right ) \int x^2 \, dx}{3 c \sqrt {d+c^2 d x^2}} \\ & = -\frac {3 b f^2 g x \sqrt {1+c^2 x^2}}{c \sqrt {d+c^2 d x^2}}-\frac {3 b f g^2 x^2 \sqrt {1+c^2 x^2}}{4 c \sqrt {d+c^2 d x^2}}-\frac {b g^3 x^3 \sqrt {1+c^2 x^2}}{9 c \sqrt {d+c^2 d x^2}}+\frac {3 f^2 g \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{c^2 \sqrt {d+c^2 d x^2}}-\frac {2 g^3 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^4 \sqrt {d+c^2 d x^2}}+\frac {3 f g^2 x \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {g^3 x^2 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^3 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {3 f g^2 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{4 b c^3 \sqrt {d+c^2 d x^2}}+\frac {\left (2 b g^3 \sqrt {1+c^2 x^2}\right ) \int 1 \, dx}{3 c^3 \sqrt {d+c^2 d x^2}} \\ & = -\frac {3 b f^2 g x \sqrt {1+c^2 x^2}}{c \sqrt {d+c^2 d x^2}}+\frac {2 b g^3 x \sqrt {1+c^2 x^2}}{3 c^3 \sqrt {d+c^2 d x^2}}-\frac {3 b f g^2 x^2 \sqrt {1+c^2 x^2}}{4 c \sqrt {d+c^2 d x^2}}-\frac {b g^3 x^3 \sqrt {1+c^2 x^2}}{9 c \sqrt {d+c^2 d x^2}}+\frac {3 f^2 g \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{c^2 \sqrt {d+c^2 d x^2}}-\frac {2 g^3 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^4 \sqrt {d+c^2 d x^2}}+\frac {3 f g^2 x \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {g^3 x^2 \left (1+c^2 x^2\right ) (a+b \text {arcsinh}(c x))}{3 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^3 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {3 f g^2 \sqrt {1+c^2 x^2} (a+b \text {arcsinh}(c x))^2}{4 b c^3 \sqrt {d+c^2 d x^2}} \\ \end{align*}
Time = 1.01 (sec) , antiderivative size = 304, normalized size of antiderivative = 0.71 \[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\frac {4 \sqrt {d} g \left (-2 b c x \sqrt {1+c^2 x^2} \left (-6 g^2+c^2 \left (27 f^2+g^2 x^2\right )\right )+3 a \left (1+c^2 x^2\right ) \left (-4 g^2+c^2 \left (18 f^2+9 f g x+2 g^2 x^2\right )\right )\right )+12 b \sqrt {d} g \left (1+c^2 x^2\right ) \left (-4 g^2+c^2 \left (18 f^2+9 f g x+2 g^2 x^2\right )\right ) \text {arcsinh}(c x)+18 b c \sqrt {d} f \left (2 c^2 f^2-3 g^2\right ) \sqrt {1+c^2 x^2} \text {arcsinh}(c x)^2-27 b c \sqrt {d} f g^2 \sqrt {1+c^2 x^2} \cosh (2 \text {arcsinh}(c x))+36 a c f \left (2 c^2 f^2-3 g^2\right ) \sqrt {d+c^2 d x^2} \log \left (c d x+\sqrt {d} \sqrt {d+c^2 d x^2}\right )}{72 c^4 \sqrt {d} \sqrt {d+c^2 d x^2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(784\) vs. \(2(382)=764\).
Time = 0.93 (sec) , antiderivative size = 785, normalized size of antiderivative = 1.83
method | result | size |
default | \(a \left (\frac {f^{3} \ln \left (\frac {c^{2} d x}{\sqrt {c^{2} d}}+\sqrt {c^{2} d \,x^{2}+d}\right )}{\sqrt {c^{2} d}}+g^{3} \left (\frac {x^{2} \sqrt {c^{2} d \,x^{2}+d}}{3 c^{2} d}-\frac {2 \sqrt {c^{2} d \,x^{2}+d}}{3 d \,c^{4}}\right )+3 f \,g^{2} \left (\frac {x \sqrt {c^{2} d \,x^{2}+d}}{2 c^{2} d}-\frac {\ln \left (\frac {c^{2} d x}{\sqrt {c^{2} d}}+\sqrt {c^{2} d \,x^{2}+d}\right )}{2 c^{2} \sqrt {c^{2} d}}\right )+\frac {3 f^{2} g \sqrt {c^{2} d \,x^{2}+d}}{c^{2} d}\right )+b \left (\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, f \operatorname {arcsinh}\left (c x \right )^{2} \left (2 c^{2} f^{2}-3 g^{2}\right )}{4 \sqrt {c^{2} x^{2}+1}\, c^{3} d}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (4 c^{4} x^{4}+4 c^{3} x^{3} \sqrt {c^{2} x^{2}+1}+5 c^{2} x^{2}+3 c x \sqrt {c^{2} x^{2}+1}+1\right ) g^{3} \left (-1+3 \,\operatorname {arcsinh}\left (c x \right )\right )}{72 c^{4} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (2 c^{3} x^{3}+2 c^{2} x^{2} \sqrt {c^{2} x^{2}+1}+2 c x +\sqrt {c^{2} x^{2}+1}\right ) f \,g^{2} \left (-1+2 \,\operatorname {arcsinh}\left (c x \right )\right )}{16 c^{3} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (c^{2} x^{2}+c x \sqrt {c^{2} x^{2}+1}+1\right ) g \left (4 \,\operatorname {arcsinh}\left (c x \right ) c^{2} f^{2}-4 c^{2} f^{2}-\operatorname {arcsinh}\left (c x \right ) g^{2}+g^{2}\right )}{8 c^{4} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (c^{2} x^{2}-c x \sqrt {c^{2} x^{2}+1}+1\right ) g \left (4 \,\operatorname {arcsinh}\left (c x \right ) c^{2} f^{2}+4 c^{2} f^{2}-\operatorname {arcsinh}\left (c x \right ) g^{2}-g^{2}\right )}{8 c^{4} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (2 c^{3} x^{3}-2 c^{2} x^{2} \sqrt {c^{2} x^{2}+1}+2 c x -\sqrt {c^{2} x^{2}+1}\right ) f \,g^{2} \left (1+2 \,\operatorname {arcsinh}\left (c x \right )\right )}{16 c^{3} d \left (c^{2} x^{2}+1\right )}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (4 c^{4} x^{4}-4 c^{3} x^{3} \sqrt {c^{2} x^{2}+1}+5 c^{2} x^{2}-3 c x \sqrt {c^{2} x^{2}+1}+1\right ) g^{3} \left (3 \,\operatorname {arcsinh}\left (c x \right )+1\right )}{72 c^{4} d \left (c^{2} x^{2}+1\right )}\right )\) | \(785\) |
parts | \(a \left (\frac {f^{3} \ln \left (\frac {c^{2} d x}{\sqrt {c^{2} d}}+\sqrt {c^{2} d \,x^{2}+d}\right )}{\sqrt {c^{2} d}}+g^{3} \left (\frac {x^{2} \sqrt {c^{2} d \,x^{2}+d}}{3 c^{2} d}-\frac {2 \sqrt {c^{2} d \,x^{2}+d}}{3 d \,c^{4}}\right )+3 f \,g^{2} \left (\frac {x \sqrt {c^{2} d \,x^{2}+d}}{2 c^{2} d}-\frac {\ln \left (\frac {c^{2} d x}{\sqrt {c^{2} d}}+\sqrt {c^{2} d \,x^{2}+d}\right )}{2 c^{2} \sqrt {c^{2} d}}\right )+\frac {3 f^{2} g \sqrt {c^{2} d \,x^{2}+d}}{c^{2} d}\right )+b \left (\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, f \operatorname {arcsinh}\left (c x \right )^{2} \left (2 c^{2} f^{2}-3 g^{2}\right )}{4 \sqrt {c^{2} x^{2}+1}\, c^{3} d}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (4 c^{4} x^{4}+4 c^{3} x^{3} \sqrt {c^{2} x^{2}+1}+5 c^{2} x^{2}+3 c x \sqrt {c^{2} x^{2}+1}+1\right ) g^{3} \left (-1+3 \,\operatorname {arcsinh}\left (c x \right )\right )}{72 c^{4} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (2 c^{3} x^{3}+2 c^{2} x^{2} \sqrt {c^{2} x^{2}+1}+2 c x +\sqrt {c^{2} x^{2}+1}\right ) f \,g^{2} \left (-1+2 \,\operatorname {arcsinh}\left (c x \right )\right )}{16 c^{3} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (c^{2} x^{2}+c x \sqrt {c^{2} x^{2}+1}+1\right ) g \left (4 \,\operatorname {arcsinh}\left (c x \right ) c^{2} f^{2}-4 c^{2} f^{2}-\operatorname {arcsinh}\left (c x \right ) g^{2}+g^{2}\right )}{8 c^{4} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (c^{2} x^{2}-c x \sqrt {c^{2} x^{2}+1}+1\right ) g \left (4 \,\operatorname {arcsinh}\left (c x \right ) c^{2} f^{2}+4 c^{2} f^{2}-\operatorname {arcsinh}\left (c x \right ) g^{2}-g^{2}\right )}{8 c^{4} d \left (c^{2} x^{2}+1\right )}+\frac {3 \sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (2 c^{3} x^{3}-2 c^{2} x^{2} \sqrt {c^{2} x^{2}+1}+2 c x -\sqrt {c^{2} x^{2}+1}\right ) f \,g^{2} \left (1+2 \,\operatorname {arcsinh}\left (c x \right )\right )}{16 c^{3} d \left (c^{2} x^{2}+1\right )}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (4 c^{4} x^{4}-4 c^{3} x^{3} \sqrt {c^{2} x^{2}+1}+5 c^{2} x^{2}-3 c x \sqrt {c^{2} x^{2}+1}+1\right ) g^{3} \left (3 \,\operatorname {arcsinh}\left (c x \right )+1\right )}{72 c^{4} d \left (c^{2} x^{2}+1\right )}\right )\) | \(785\) |
[In]
[Out]
\[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\int { \frac {{\left (g x + f\right )}^{3} {\left (b \operatorname {arsinh}\left (c x\right ) + a\right )}}{\sqrt {c^{2} d x^{2} + d}} \,d x } \]
[In]
[Out]
\[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\int \frac {\left (a + b \operatorname {asinh}{\left (c x \right )}\right ) \left (f + g x\right )^{3}}{\sqrt {d \left (c^{2} x^{2} + 1\right )}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
\[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\int { \frac {{\left (g x + f\right )}^{3} {\left (b \operatorname {arsinh}\left (c x\right ) + a\right )}}{\sqrt {c^{2} d x^{2} + d}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(f+g x)^3 (a+b \text {arcsinh}(c x))}{\sqrt {d+c^2 d x^2}} \, dx=\int \frac {{\left (f+g\,x\right )}^3\,\left (a+b\,\mathrm {asinh}\left (c\,x\right )\right )}{\sqrt {d\,c^2\,x^2+d}} \,d x \]
[In]
[Out]