Optimal. Leaf size=141 \[ -2 \sqrt {2 \pi } \sin (1) C\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )-\sqrt {\frac {\pi }{2}} \cos (1) C\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )-\sqrt {\frac {\pi }{2}} \sin (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )+2 \sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )+\sqrt {1-x} \cos (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 141, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6129, 6742, 3353, 3352, 3351, 3385, 3354} \[ -2 \sqrt {2 \pi } \sin (1) \text {FresnelC}\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )-\sqrt {\frac {\pi }{2}} \cos (1) \text {FresnelC}\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )-\sqrt {\frac {\pi }{2}} \sin (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )+2 \sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )+\sqrt {1-x} \cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3351
Rule 3352
Rule 3353
Rule 3354
Rule 3385
Rule 6129
Rule 6742
Rubi steps
\begin {align*} \int e^{\tanh ^{-1}(x)} \sqrt {1+x} \sin (x) \, dx &=\int \frac {(1+x) \sin (x)}{\sqrt {1-x}} \, dx\\ &=2 \operatorname {Subst}\left (\int \left (-2+x^2\right ) \sin \left (1-x^2\right ) \, dx,x,\sqrt {1-x}\right )\\ &=2 \operatorname {Subst}\left (\int \left (-2 \sin \left (1-x^2\right )+x^2 \sin \left (1-x^2\right )\right ) \, dx,x,\sqrt {1-x}\right )\\ &=2 \operatorname {Subst}\left (\int x^2 \sin \left (1-x^2\right ) \, dx,x,\sqrt {1-x}\right )-4 \operatorname {Subst}\left (\int \sin \left (1-x^2\right ) \, dx,x,\sqrt {1-x}\right )\\ &=\sqrt {1-x} \cos (x)+(4 \cos (1)) \operatorname {Subst}\left (\int \sin \left (x^2\right ) \, dx,x,\sqrt {1-x}\right )-(4 \sin (1)) \operatorname {Subst}\left (\int \cos \left (x^2\right ) \, dx,x,\sqrt {1-x}\right )-\operatorname {Subst}\left (\int \cos \left (1-x^2\right ) \, dx,x,\sqrt {1-x}\right )\\ &=\sqrt {1-x} \cos (x)+2 \sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )-2 \sqrt {2 \pi } C\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right ) \sin (1)-\cos (1) \operatorname {Subst}\left (\int \cos \left (x^2\right ) \, dx,x,\sqrt {1-x}\right )-\sin (1) \operatorname {Subst}\left (\int \sin \left (x^2\right ) \, dx,x,\sqrt {1-x}\right )\\ &=\sqrt {1-x} \cos (x)-\sqrt {\frac {\pi }{2}} \cos (1) C\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )+2 \sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right )-2 \sqrt {2 \pi } C\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right ) \sin (1)-\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {1-x}\right ) \sin (1)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 8.42, size = 134, normalized size = 0.95 \[ \left (\frac {1}{8}+\frac {i}{8}\right ) \left (\frac {e^{-i x} \sqrt {1-x^2} \left ((4+i) \sqrt {2 \pi } e^{i (x+1)} \text {erfi}\left (\frac {(1+i) \sqrt {x-1}}{\sqrt {2}}\right )+(2-2 i) \sqrt {x-1} \left (1+e^{2 i x}\right )\right )}{\sqrt {x-1} \sqrt {x+1}}-(4-i) e^{-i} \sqrt {2 \pi } \text {erfi}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt {2-2 x}\right )\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 2.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sqrt {-x^{2} + 1} \sqrt {x + 1} \sin \relax (x)}{x - 1}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.18, size = 74, normalized size = 0.52 \[ -\left (\frac {5}{8} i + \frac {3}{8}\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {-x + 1}\right ) e^{i} + \left (\frac {5}{8} i - \frac {3}{8}\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {-x + 1}\right ) e^{\left (-i\right )} + \frac {1}{2} \, \sqrt {-x + 1} e^{\left (i \, x\right )} + \frac {1}{2} \, \sqrt {-x + 1} e^{\left (-i \, x\right )} + 1.99284503743000 \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.36, size = 0, normalized size = 0.00 \[ \int \frac {\left (1+x \right )^{\frac {3}{2}} \sin \relax (x )}{\sqrt {-x^{2}+1}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.41, size = 349, normalized size = 2.48 \[ -\frac {{\left ({\left ({\left ({\left (-i \, \cos \relax (1) - \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, i \, x - i\right ) + {\left (i \, \cos \relax (1) - \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, -i \, x + i\right )\right )} \cos \left (\frac {3}{2} \, \arctan \left (x - 1, 0\right )\right ) - {\left ({\left (\cos \relax (1) - i \, \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, i \, x - i\right ) + {\left (\cos \relax (1) + i \, \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, -i \, x + i\right )\right )} \sin \left (\frac {3}{2} \, \arctan \left (x - 1, 0\right )\right )\right )} x + {\left ({\left ({\left (2 i \, \sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {i \, x - i}\right ) - 1\right )} - 2 i \, \sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {-i \, x + i}\right ) - 1\right )}\right )} \cos \relax (1) + 2 \, {\left (\sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {i \, x - i}\right ) - 1\right )} + \sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {-i \, x + i}\right ) - 1\right )}\right )} \sin \relax (1)\right )} \cos \left (\frac {1}{2} \, \arctan \left (x - 1, 0\right )\right ) + {\left (2 \, {\left (\sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {i \, x - i}\right ) - 1\right )} + \sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {-i \, x + i}\right ) - 1\right )}\right )} \cos \relax (1) + {\left (-2 i \, \sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {i \, x - i}\right ) - 1\right )} + 2 i \, \sqrt {\pi } {\left (\operatorname {erf}\left (\sqrt {-i \, x + i}\right ) - 1\right )}\right )} \sin \relax (1)\right )} \sin \left (\frac {1}{2} \, \arctan \left (x - 1, 0\right )\right )\right )} {\left | x - 1 \right |} + {\left ({\left (i \, \cos \relax (1) + \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, i \, x - i\right ) + {\left (-i \, \cos \relax (1) + \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, -i \, x + i\right )\right )} \cos \left (\frac {3}{2} \, \arctan \left (x - 1, 0\right )\right ) + {\left ({\left (\cos \relax (1) - i \, \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, i \, x - i\right ) + {\left (\cos \relax (1) + i \, \sin \relax (1)\right )} \Gamma \left (\frac {3}{2}, -i \, x + i\right )\right )} \sin \left (\frac {3}{2} \, \arctan \left (x - 1, 0\right )\right )\right )} \sqrt {-x + 1} \sqrt {{\left | x - 1 \right |}}}{2 \, {\left (x - 1\right )}^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sin \relax (x)\,{\left (x+1\right )}^{3/2}}{\sqrt {1-x^2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (x + 1\right )^{\frac {3}{2}} \sin {\relax (x )}}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________