Optimal. Leaf size=156 \[ -\frac {e \sqrt {a+b \text {ArcSin}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \text {ArcSin}(c+d x)}}{2 d}+\frac {\sqrt {b} e \sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right )}{8 d}+\frac {\sqrt {b} e \sqrt {\pi } S\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.26, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 10, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.435, Rules used = {4889, 12,
4725, 4809, 3393, 3387, 3386, 3432, 3385, 3433} \begin {gather*} \frac {\sqrt {\pi } \sqrt {b} e \cos \left (\frac {2 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {\pi } \sqrt {b}}\right )}{8 d}+\frac {\sqrt {\pi } \sqrt {b} e \sin \left (\frac {2 a}{b}\right ) S\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right )}{8 d}+\frac {e (c+d x)^2 \sqrt {a+b \text {ArcSin}(c+d x)}}{2 d}-\frac {e \sqrt {a+b \text {ArcSin}(c+d x)}}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3385
Rule 3386
Rule 3387
Rule 3393
Rule 3432
Rule 3433
Rule 4725
Rule 4809
Rule 4889
Rubi steps
\begin {align*} \int (c e+d e x) \sqrt {a+b \sin ^{-1}(c+d x)} \, dx &=\frac {\text {Subst}\left (\int e x \sqrt {a+b \sin ^{-1}(x)} \, dx,x,c+d x\right )}{d}\\ &=\frac {e \text {Subst}\left (\int x \sqrt {a+b \sin ^{-1}(x)} \, dx,x,c+d x\right )}{d}\\ &=\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {x^2}{\sqrt {1-x^2} \sqrt {a+b \sin ^{-1}(x)}} \, dx,x,c+d x\right )}{4 d}\\ &=\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {\sin ^2(x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c+d x)\right )}{4 d}\\ &=\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \left (\frac {1}{2 \sqrt {a+b x}}-\frac {\cos (2 x)}{2 \sqrt {a+b x}}\right ) \, dx,x,\sin ^{-1}(c+d x)\right )}{4 d}\\ &=-\frac {e \sqrt {a+b \sin ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}+\frac {(b e) \text {Subst}\left (\int \frac {\cos (2 x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d}\\ &=-\frac {e \sqrt {a+b \sin ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}+\frac {\left (b e \cos \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {2 a}{b}+2 x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d}+\frac {\left (b e \sin \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {2 a}{b}+2 x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d}\\ &=-\frac {e \sqrt {a+b \sin ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}+\frac {\left (e \cos \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \cos \left (\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{4 d}+\frac {\left (e \sin \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \sin \left (\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{4 d}\\ &=-\frac {e \sqrt {a+b \sin ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \sin ^{-1}(c+d x)}}{2 d}+\frac {\sqrt {b} e \sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) C\left (\frac {2 \sqrt {a+b \sin ^{-1}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right )}{8 d}+\frac {\sqrt {b} e \sqrt {\pi } S\left (\frac {2 \sqrt {a+b \sin ^{-1}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )}{8 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.06, size = 154, normalized size = 0.99 \begin {gather*} -\frac {e e^{-\frac {2 i a}{b}} \sqrt {a+b \text {ArcSin}(c+d x)} \left (\sqrt {\frac {i (a+b \text {ArcSin}(c+d x))}{b}} \text {Gamma}\left (\frac {3}{2},-\frac {2 i (a+b \text {ArcSin}(c+d x))}{b}\right )+e^{\frac {4 i a}{b}} \sqrt {-\frac {i (a+b \text {ArcSin}(c+d x))}{b}} \text {Gamma}\left (\frac {3}{2},\frac {2 i (a+b \text {ArcSin}(c+d x))}{b}\right )\right )}{8 \sqrt {2} d \sqrt {\frac {(a+b \text {ArcSin}(c+d x))^2}{b^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.24, size = 209, normalized size = 1.34
method | result | size |
default | \(-\frac {e \left (-\sqrt {a +b \arcsin \left (d x +c \right )}\, \sqrt {-\frac {2}{b}}\, \sqrt {\pi }\, \sqrt {2}\, \cos \left (\frac {2 a}{b}\right ) \FresnelC \left (\frac {2 \sqrt {2}\, \sqrt {a +b \arcsin \left (d x +c \right )}}{\sqrt {\pi }\, \sqrt {-\frac {2}{b}}\, b}\right ) b +\sqrt {a +b \arcsin \left (d x +c \right )}\, \sqrt {-\frac {2}{b}}\, \sqrt {\pi }\, \sqrt {2}\, \sin \left (\frac {2 a}{b}\right ) \mathrm {S}\left (\frac {2 \sqrt {2}\, \sqrt {a +b \arcsin \left (d x +c \right )}}{\sqrt {\pi }\, \sqrt {-\frac {2}{b}}\, b}\right ) b +4 \arcsin \left (d x +c \right ) \cos \left (-\frac {2 \left (a +b \arcsin \left (d x +c \right )\right )}{b}+\frac {2 a}{b}\right ) b +4 \cos \left (-\frac {2 \left (a +b \arcsin \left (d x +c \right )\right )}{b}+\frac {2 a}{b}\right ) a \right )}{16 d \sqrt {a +b \arcsin \left (d x +c \right )}}\) | \(209\) |
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 [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e \left (\int c \sqrt {a + b \operatorname {asin}{\left (c + d x \right )}}\, dx + \int d x \sqrt {a + b \operatorname {asin}{\left (c + d x \right )}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 1.10, size = 488, normalized size = 3.13 \begin {gather*} \frac {i \, \sqrt {\pi } a \sqrt {b} e \operatorname {erf}\left (-\frac {\sqrt {b \arcsin \left (d x + c\right ) + a}}{\sqrt {b}} - \frac {i \, \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {b}}{{\left | b \right |}}\right ) e^{\left (\frac {2 i \, a}{b}\right )}}{4 \, {\left (b + \frac {i \, b^{2}}{{\left | b \right |}}\right )} d} - \frac {\sqrt {\pi } b^{\frac {3}{2}} e \operatorname {erf}\left (-\frac {\sqrt {b \arcsin \left (d x + c\right ) + a}}{\sqrt {b}} - \frac {i \, \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {b}}{{\left | b \right |}}\right ) e^{\left (\frac {2 i \, a}{b}\right )}}{16 \, {\left (b + \frac {i \, b^{2}}{{\left | b \right |}}\right )} d} - \frac {i \, \sqrt {\pi } a \sqrt {b} e \operatorname {erf}\left (-\frac {\sqrt {b \arcsin \left (d x + c\right ) + a}}{\sqrt {b}} + \frac {i \, \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {b}}{{\left | b \right |}}\right ) e^{\left (-\frac {2 i \, a}{b}\right )}}{4 \, {\left (b - \frac {i \, b^{2}}{{\left | b \right |}}\right )} d} - \frac {\sqrt {\pi } b^{\frac {3}{2}} e \operatorname {erf}\left (-\frac {\sqrt {b \arcsin \left (d x + c\right ) + a}}{\sqrt {b}} + \frac {i \, \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {b}}{{\left | b \right |}}\right ) e^{\left (-\frac {2 i \, a}{b}\right )}}{16 \, {\left (b - \frac {i \, b^{2}}{{\left | b \right |}}\right )} d} + \frac {i \, \sqrt {\pi } a e \operatorname {erf}\left (-\frac {\sqrt {b \arcsin \left (d x + c\right ) + a}}{\sqrt {b}} + \frac {i \, \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {b}}{{\left | b \right |}}\right ) e^{\left (-\frac {2 i \, a}{b}\right )}}{4 \, d {\left (\sqrt {b} - \frac {i \, b^{\frac {3}{2}}}{{\left | b \right |}}\right )}} - \frac {i \, \sqrt {\pi } a e \operatorname {erf}\left (-\frac {\sqrt {b \arcsin \left (d x + c\right ) + a}}{\sqrt {b}} - \frac {i \, \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {b}}{{\left | b \right |}}\right ) e^{\left (\frac {2 i \, a}{b}\right )}}{4 \, \sqrt {b} d {\left (\frac {i \, b}{{\left | b \right |}} + 1\right )}} - \frac {\sqrt {b \arcsin \left (d x + c\right ) + a} e e^{\left (2 i \, \arcsin \left (d x + c\right )\right )}}{8 \, d} - \frac {\sqrt {b \arcsin \left (d x + c\right ) + a} e e^{\left (-2 i \, \arcsin \left (d x + c\right )\right )}}{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 )\,\sqrt {a+b\,\mathrm {asin}\left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________