Optimal. Leaf size=105 \[ -\frac {b^2 e (c+d x)^2}{4 d}+\frac {b e (c+d x) \sqrt {1-(c+d x)^2} (a+b \text {ArcSin}(c+d x))}{2 d}-\frac {e (a+b \text {ArcSin}(c+d x))^2}{4 d}+\frac {e (c+d x)^2 (a+b \text {ArcSin}(c+d x))^2}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {4889, 12, 4723,
4795, 4737, 30} \begin {gather*} \frac {e (c+d x)^2 (a+b \text {ArcSin}(c+d x))^2}{2 d}+\frac {b e \sqrt {1-(c+d x)^2} (c+d x) (a+b \text {ArcSin}(c+d x))}{2 d}-\frac {e (a+b \text {ArcSin}(c+d x))^2}{4 d}-\frac {b^2 e (c+d x)^2}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 30
Rule 4723
Rule 4737
Rule 4795
Rule 4889
Rubi steps
\begin {align*} \int (c e+d e x) \left (a+b \sin ^{-1}(c+d x)\right )^2 \, dx &=\frac {\text {Subst}\left (\int e x \left (a+b \sin ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{d}\\ &=\frac {e \text {Subst}\left (\int x \left (a+b \sin ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{d}\\ &=\frac {e (c+d x)^2 \left (a+b \sin ^{-1}(c+d x)\right )^2}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {x^2 \left (a+b \sin ^{-1}(x)\right )}{\sqrt {1-x^2}} \, dx,x,c+d x\right )}{d}\\ &=\frac {b e (c+d x) \sqrt {1-(c+d x)^2} \left (a+b \sin ^{-1}(c+d x)\right )}{2 d}+\frac {e (c+d x)^2 \left (a+b \sin ^{-1}(c+d x)\right )^2}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {a+b \sin ^{-1}(x)}{\sqrt {1-x^2}} \, dx,x,c+d x\right )}{2 d}-\frac {\left (b^2 e\right ) \text {Subst}(\int x \, dx,x,c+d x)}{2 d}\\ &=-\frac {b^2 e (c+d x)^2}{4 d}+\frac {b e (c+d x) \sqrt {1-(c+d x)^2} \left (a+b \sin ^{-1}(c+d x)\right )}{2 d}-\frac {e \left (a+b \sin ^{-1}(c+d x)\right )^2}{4 d}+\frac {e (c+d x)^2 \left (a+b \sin ^{-1}(c+d x)\right )^2}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 86, normalized size = 0.82 \begin {gather*} -\frac {e \left (b^2 (c+d x)^2-2 b (c+d x) \sqrt {1-(c+d x)^2} (a+b \text {ArcSin}(c+d x))+(a+b \text {ArcSin}(c+d x))^2-2 (c+d x)^2 (a+b \text {ArcSin}(c+d x))^2\right )}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 146, normalized size = 1.39
method | result | size |
derivativedivides | \(\frac {\frac {e \left (d x +c \right )^{2} a^{2}}{2}+e \,b^{2} \left (\frac {\left (\left (d x +c \right )^{2}-1\right ) \arcsin \left (d x +c \right )^{2}}{2}+\frac {\arcsin \left (d x +c \right ) \left (\left (d x +c \right ) \sqrt {1-\left (d x +c \right )^{2}}+\arcsin \left (d x +c \right )\right )}{2}-\frac {\arcsin \left (d x +c \right )^{2}}{4}-\frac {\left (d x +c \right )^{2}}{4}\right )+2 e a b \left (\frac {\left (d x +c \right )^{2} \arcsin \left (d x +c \right )}{2}+\frac {\left (d x +c \right ) \sqrt {1-\left (d x +c \right )^{2}}}{4}-\frac {\arcsin \left (d x +c \right )}{4}\right )}{d}\) | \(146\) |
default | \(\frac {\frac {e \left (d x +c \right )^{2} a^{2}}{2}+e \,b^{2} \left (\frac {\left (\left (d x +c \right )^{2}-1\right ) \arcsin \left (d x +c \right )^{2}}{2}+\frac {\arcsin \left (d x +c \right ) \left (\left (d x +c \right ) \sqrt {1-\left (d x +c \right )^{2}}+\arcsin \left (d x +c \right )\right )}{2}-\frac {\arcsin \left (d x +c \right )^{2}}{4}-\frac {\left (d x +c \right )^{2}}{4}\right )+2 e a b \left (\frac {\left (d x +c \right )^{2} \arcsin \left (d x +c \right )}{2}+\frac {\left (d x +c \right ) \sqrt {1-\left (d x +c \right )^{2}}}{4}-\frac {\arcsin \left (d x +c \right )}{4}\right )}{d}\) | \(146\) |
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 = 2.11, size = 186, normalized size = 1.77 \begin {gather*} \frac {{\left (2 \, b^{2} d^{2} x^{2} + 4 \, b^{2} c d x + 2 \, b^{2} c^{2} - b^{2}\right )} \arcsin \left (d x + c\right )^{2} e + 2 \, {\left (2 \, a b d^{2} x^{2} + 4 \, a b c d x + 2 \, a b c^{2} - a b\right )} \arcsin \left (d x + c\right ) e + {\left ({\left (2 \, a^{2} - b^{2}\right )} d^{2} x^{2} + 2 \, {\left (2 \, a^{2} - b^{2}\right )} c d x\right )} e + 2 \, \sqrt {-d^{2} x^{2} - 2 \, c d x - c^{2} + 1} {\left ({\left (b^{2} d x + b^{2} c\right )} \arcsin \left (d x + c\right ) e + {\left (a b d x + a b c\right )} e\right )}}{4 \, d} \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. 335 vs.
\(2 (88) = 176\).
time = 0.20, size = 335, normalized size = 3.19 \begin {gather*} \begin {cases} a^{2} c e x + \frac {a^{2} d e x^{2}}{2} + \frac {a b c^{2} e \operatorname {asin}{\left (c + d x \right )}}{d} + 2 a b c e x \operatorname {asin}{\left (c + d x \right )} + \frac {a b c e \sqrt {- c^{2} - 2 c d x - d^{2} x^{2} + 1}}{2 d} + a b d e x^{2} \operatorname {asin}{\left (c + d x \right )} + \frac {a b e x \sqrt {- c^{2} - 2 c d x - d^{2} x^{2} + 1}}{2} - \frac {a b e \operatorname {asin}{\left (c + d x \right )}}{2 d} + \frac {b^{2} c^{2} e \operatorname {asin}^{2}{\left (c + d x \right )}}{2 d} + b^{2} c e x \operatorname {asin}^{2}{\left (c + d x \right )} - \frac {b^{2} c e x}{2} + \frac {b^{2} c e \sqrt {- c^{2} - 2 c d x - d^{2} x^{2} + 1} \operatorname {asin}{\left (c + d x \right )}}{2 d} + \frac {b^{2} d e x^{2} \operatorname {asin}^{2}{\left (c + d x \right )}}{2} - \frac {b^{2} d e x^{2}}{4} + \frac {b^{2} e x \sqrt {- c^{2} - 2 c d x - d^{2} x^{2} + 1} \operatorname {asin}{\left (c + d x \right )}}{2} - \frac {b^{2} e \operatorname {asin}^{2}{\left (c + d x \right )}}{4 d} & \text {for}\: d \neq 0 \\c e x \left (a + b \operatorname {asin}{\left (c \right )}\right )^{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 184, normalized size = 1.75 \begin {gather*} \frac {{\left ({\left (d x + c\right )}^{2} - 1\right )} b^{2} e \arcsin \left (d x + c\right )^{2}}{2 \, d} + \frac {\sqrt {-{\left (d x + c\right )}^{2} + 1} {\left (d x + c\right )} b^{2} e \arcsin \left (d x + c\right )}{2 \, d} + \frac {{\left ({\left (d x + c\right )}^{2} - 1\right )} a b e \arcsin \left (d x + c\right )}{d} + \frac {b^{2} e \arcsin \left (d x + c\right )^{2}}{4 \, d} + \frac {\sqrt {-{\left (d x + c\right )}^{2} + 1} {\left (d x + c\right )} a b e}{2 \, d} + \frac {{\left ({\left (d x + c\right )}^{2} - 1\right )} a^{2} e}{2 \, d} - \frac {{\left ({\left (d x + c\right )}^{2} - 1\right )} b^{2} e}{4 \, d} + \frac {a b e \arcsin \left (d x + c\right )}{2 \, d} - \frac {b^{2} e}{8 \, d} \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 (c\,e+d\,e\,x\right )\,{\left (a+b\,\mathrm {asin}\left (c+d\,x\right )\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________