Optimal. Leaf size=163 \[ \frac{3}{2} \sqrt{\frac{\pi }{2}} \sin (1) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )-\sqrt{\frac{\pi }{2}} \cos (1) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )-\sqrt{\frac{\pi }{2}} \sin (1) S\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )-\frac{3}{2} \sqrt{\frac{\pi }{2}} \cos (1) S\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )+\frac{3}{2} \sqrt{x+1} \sin (x)+(x+1)^{3/2} (-\cos (x))+\sqrt{x+1} \cos (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.297927, antiderivative size = 163, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 8, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.471, Rules used = {6129, 6742, 3385, 3354, 3352, 3351, 3386, 3353} \[ \frac{3}{2} \sqrt{\frac{\pi }{2}} \sin (1) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )-\sqrt{\frac{\pi }{2}} \cos (1) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )-\sqrt{\frac{\pi }{2}} \sin (1) S\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )-\frac{3}{2} \sqrt{\frac{\pi }{2}} \cos (1) S\left (\sqrt{\frac{2}{\pi }} \sqrt{x+1}\right )+\frac{3}{2} \sqrt{x+1} \sin (x)+(x+1)^{3/2} (-\cos (x))+\sqrt{x+1} \cos (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6129
Rule 6742
Rule 3385
Rule 3354
Rule 3352
Rule 3351
Rule 3386
Rule 3353
Rubi steps
\begin{align*} \int e^{\tanh ^{-1}(x)} \sqrt{1-x} x \sin (x) \, dx &=\int x \sqrt{1+x} \sin (x) \, dx\\ &=-\left (2 \operatorname{Subst}\left (\int x^2 \left (-1+x^2\right ) \sin \left (1-x^2\right ) \, dx,x,\sqrt{1+x}\right )\right )\\ &=-\left (2 \operatorname{Subst}\left (\int \left (-x^2 \sin \left (1-x^2\right )+x^4 \sin \left (1-x^2\right )\right ) \, dx,x,\sqrt{1+x}\right )\right )\\ &=2 \operatorname{Subst}\left (\int x^2 \sin \left (1-x^2\right ) \, dx,x,\sqrt{1+x}\right )-2 \operatorname{Subst}\left (\int x^4 \sin \left (1-x^2\right ) \, dx,x,\sqrt{1+x}\right )\\ &=\sqrt{1+x} \cos (x)-(1+x)^{3/2} \cos (x)+3 \operatorname{Subst}\left (\int x^2 \cos \left (1-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)-(1+x)^{3/2} \cos (x)+\frac{3}{2} \sqrt{1+x} \sin (x)+\frac{3}{2} \operatorname{Subst}\left (\int \sin \left (1-x^2\right ) \, dx,x,\sqrt{1+x}\right )-\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)-(1+x)^{3/2} \cos (x)-\sqrt{\frac{\pi }{2}} \cos (1) C\left (\sqrt{\frac{2}{\pi }} \sqrt{1+x}\right )-\sqrt{\frac{\pi }{2}} S\left (\sqrt{\frac{2}{\pi }} \sqrt{1+x}\right ) \sin (1)+\frac{3}{2} \sqrt{1+x} \sin (x)-\frac{1}{2} (3 \cos (1)) \operatorname{Subst}\left (\int \sin \left (x^2\right ) \, dx,x,\sqrt{1+x}\right )+\frac{1}{2} (3 \sin (1)) \operatorname{Subst}\left (\int \cos \left (x^2\right ) \, dx,x,\sqrt{1+x}\right )\\ &=\sqrt{1+x} \cos (x)-(1+x)^{3/2} \cos (x)-\sqrt{\frac{\pi }{2}} \cos (1) C\left (\sqrt{\frac{2}{\pi }} \sqrt{1+x}\right )-\frac{3}{2} \sqrt{\frac{\pi }{2}} \cos (1) S\left (\sqrt{\frac{2}{\pi }} \sqrt{1+x}\right )+\frac{3}{2} \sqrt{\frac{\pi }{2}} 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)+\frac{3}{2} \sqrt{1+x} \sin (x)\\ \end{align*}
Mathematica [C] time = 8.52325, size = 168, normalized size = 1.03 \[ \frac{\left (\frac{1}{16}+\frac{i}{16}\right ) e^{-i (x+1)} \sqrt{1-x} \left (e^i \left ((3-2 i) \sqrt{2 \pi } e^{i (x+1)} \sqrt{-x-1} \text{Erfi}\left (\frac{(1+i) \sqrt{-x-1}}{\sqrt{2}}\right )+(2+2 i) \left (e^{2 i x} (-3+2 i x)+2 i x+3\right ) (x+1)\right )-(3+2 i) \sqrt{2 \pi } e^{i x} \sqrt{-x-1} \text{Erf}\left (\frac{(1+i) \sqrt{-x-1}}{\sqrt{2}}\right )\right )}{\sqrt{1-x^2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.305, size = 0, normalized size = 0. \begin{align*} \int{x \left ( 1+x \right ) \sin \left ( x \right ) \sqrt{1-x}{\frac{1}{\sqrt{-{x}^{2}+1}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.46475, size = 1227, normalized size = 7.53 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\sqrt{-x^{2} + 1} x \sqrt{-x + 1} \sin \left (x\right )}{x - 1}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.2461, size = 146, normalized size = 0.9 \begin{align*} \left (\frac{1}{16} i + \frac{5}{16}\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{1}{16} i - \frac{5}{16}\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}{4} i \,{\left (2 i \,{\left (x + 1\right )}^{\frac{3}{2}} - \left (4 i + 3\right ) \, \sqrt{x + 1}\right )} e^{\left (i \, x\right )} + \frac{1}{4} i \,{\left (2 i \,{\left (x + 1\right )}^{\frac{3}{2}} - \left (4 i - 3\right ) \, \sqrt{x + 1}\right )} e^{\left (-i \, x\right )} - \frac{1}{2} \, \sqrt{x + 1} e^{\left (i \, x\right )} - \frac{1}{2} \, \sqrt{x + 1} e^{\left (-i \, x\right )} - 0.537182832596 \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]