Optimal. Leaf size=211 \[ -\frac {c \sqrt {2 \pi } \cos \left (\frac {a}{b}\right ) \text {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b}}\right )}{\sqrt {b} d^2}+\frac {\sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) S\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right )}{2 \sqrt {b} d^2}-\frac {c \sqrt {2 \pi } S\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b}}\right ) \sin \left (\frac {a}{b}\right )}{\sqrt {b} d^2}-\frac {\sqrt {\pi } \text {FresnelC}\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )}{2 \sqrt {b} d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.33, antiderivative size = 211, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 8, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4889, 4831,
6873, 6874, 3435, 3433, 3432, 3434} \begin {gather*} -\frac {\sqrt {\pi } \sin \left (\frac {2 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {\pi } \sqrt {b}}\right )}{2 \sqrt {b} d^2}-\frac {\sqrt {2 \pi } c \cos \left (\frac {a}{b}\right ) \text {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b}}\right )}{\sqrt {b} d^2}-\frac {\sqrt {2 \pi } c \sin \left (\frac {a}{b}\right ) S\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b}}\right )}{\sqrt {b} d^2}+\frac {\sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) S\left (\frac {2 \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right )}{2 \sqrt {b} d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3432
Rule 3433
Rule 3434
Rule 3435
Rule 4831
Rule 4889
Rule 6873
Rule 6874
Rubi steps
\begin {align*} \int \frac {x}{\sqrt {a+b \sin ^{-1}(c+d x)}} \, dx &=\frac {\text {Subst}\left (\int \frac {-\frac {c}{d}+\frac {x}{d}}{\sqrt {a+b \sin ^{-1}(x)}} \, dx,x,c+d x\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {\cos (x) \left (-\frac {c}{d}+\frac {\sin (x)}{d}\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c+d x)\right )}{d}\\ &=-\frac {2 \text {Subst}\left (\int \cos \left (\frac {a-x^2}{b}\right ) \left (c+\sin \left (\frac {a-x^2}{b}\right )\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}\\ &=-\frac {2 \text {Subst}\left (\int \cos \left (\frac {a}{b}-\frac {x^2}{b}\right ) \left (c+\sin \left (\frac {a-x^2}{b}\right )\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}\\ &=-\frac {2 \text {Subst}\left (\int \left (c \cos \left (\frac {a}{b}-\frac {x^2}{b}\right )+\frac {1}{2} \sin \left (\frac {2 a}{b}-\frac {2 x^2}{b}\right )\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}\\ &=-\frac {\text {Subst}\left (\int \sin \left (\frac {2 a}{b}-\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}-\frac {(2 c) \text {Subst}\left (\int \cos \left (\frac {a}{b}-\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}\\ &=-\frac {\left (2 c \cos \left (\frac {a}{b}\right )\right ) \text {Subst}\left (\int \cos \left (\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}+\frac {\cos \left (\frac {2 a}{b}\right ) \text {Subst}\left (\int \sin \left (\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}-\frac {\left (2 c \sin \left (\frac {a}{b}\right )\right ) \text {Subst}\left (\int \sin \left (\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}-\frac {\sin \left (\frac {2 a}{b}\right ) \text {Subst}\left (\int \cos \left (\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c+d x)}\right )}{b d^2}\\ &=-\frac {c \sqrt {2 \pi } \cos \left (\frac {a}{b}\right ) C\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \sin ^{-1}(c+d x)}}{\sqrt {b}}\right )}{\sqrt {b} d^2}+\frac {\sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) S\left (\frac {2 \sqrt {a+b \sin ^{-1}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right )}{2 \sqrt {b} d^2}-\frac {c \sqrt {2 \pi } S\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \sin ^{-1}(c+d x)}}{\sqrt {b}}\right ) \sin \left (\frac {a}{b}\right )}{\sqrt {b} d^2}-\frac {\sqrt {\pi } C\left (\frac {2 \sqrt {a+b \sin ^{-1}(c+d x)}}{\sqrt {b} \sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )}{2 \sqrt {b} d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.41, size = 224, normalized size = 1.06 \begin {gather*} \frac {\frac {i c e^{-\frac {i a}{b}} \left (\sqrt {-\frac {i (a+b \text {ArcSin}(c+d x))}{b}} \text {Gamma}\left (\frac {1}{2},-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )-e^{\frac {2 i a}{b}} \sqrt {\frac {i (a+b \text {ArcSin}(c+d x))}{b}} \text {Gamma}\left (\frac {1}{2},\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )\right )}{\sqrt {a+b \text {ArcSin}(c+d x)}}+\sqrt {\frac {1}{b}} \sqrt {\pi } \left (\cos \left (\frac {2 a}{b}\right ) S\left (\frac {2 \sqrt {\frac {1}{b}} \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {\pi }}\right )-\text {FresnelC}\left (\frac {2 \sqrt {\frac {1}{b}} \sqrt {a+b \text {ArcSin}(c+d x)}}{\sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )\right )}{2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.36, size = 208, normalized size = 0.99
method | result | size |
default | \(\frac {\sqrt {\pi }\, \sqrt {2}\, \sqrt {-\frac {2}{b}}\, \left (2 \cos \left (\frac {a}{b}\right ) \FresnelC \left (\frac {\sqrt {2}\, \sqrt {a +b \arcsin \left (d x +c \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right ) \sqrt {-\frac {1}{b}}\, \sqrt {-\frac {2}{b}}\, b c -2 \sin \left (\frac {a}{b}\right ) \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {a +b \arcsin \left (d x +c \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right ) \sqrt {-\frac {1}{b}}\, \sqrt {-\frac {2}{b}}\, b c -\cos \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 )-\sin \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 )\right )}{4 d^{2}}\) | \(208\) |
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*} \int \frac {x}{\sqrt {a + b \operatorname {asin}{\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.59, size = 306, normalized size = 1.45 \begin {gather*} \frac {\sqrt {\pi } c \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (d x + c\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (\frac {i \, a}{b}\right )}}{d^{2} {\left (\frac {i \, \sqrt {2} b}{\sqrt {{\left | b \right |}}} + \sqrt {2} \sqrt {{\left | b \right |}}\right )}} + \frac {\sqrt {\pi } c \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (d x + c\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (d x + c\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (-\frac {i \, a}{b}\right )}}{d^{2} {\left (-\frac {i \, \sqrt {2} b}{\sqrt {{\left | b \right |}}} + \sqrt {2} \sqrt {{\left | b \right |}}\right )}} + \frac {i \, \sqrt {\pi } \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^{2} {\left (\sqrt {b} - \frac {i \, b^{\frac {3}{2}}}{{\left | b \right |}}\right )}} - \frac {i \, \sqrt {\pi } \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^{2} {\left (\frac {i \, b}{{\left | b \right |}} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x}{\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]
________________________________________________________________________________________