Optimal. Leaf size=58 \[ \sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1+x}\right )-\sqrt {2 \pi } C\left (\sqrt {\frac {2}{\pi }} \sqrt {1+x}\right ) \sin (1) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3387, 3386,
3432, 3385, 3433} \begin {gather*} \sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {x+1}\right )-\sqrt {2 \pi } \sin (1) C\left (\sqrt {\frac {2}{\pi }} \sqrt {x+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3385
Rule 3386
Rule 3387
Rule 3432
Rule 3433
Rubi steps
\begin {align*} \int \frac {\sin (x)}{\sqrt {1+x}} \, dx &=\cos (1) \int \frac {\sin (1+x)}{\sqrt {1+x}} \, dx-\sin (1) \int \frac {\cos (1+x)}{\sqrt {1+x}} \, dx\\ &=(2 \cos (1)) \text {Subst}\left (\int \sin \left (x^2\right ) \, dx,x,\sqrt {1+x}\right )-(2 \sin (1)) \text {Subst}\left (\int \cos \left (x^2\right ) \, dx,x,\sqrt {1+x}\right )\\ &=\sqrt {2 \pi } \cos (1) S\left (\sqrt {\frac {2}{\pi }} \sqrt {1+x}\right )-\sqrt {2 \pi } C\left (\sqrt {\frac {2}{\pi }} \sqrt {1+x}\right ) \sin (1)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.01, size = 68, normalized size = 1.17 \begin {gather*} -\frac {e^{-i} \left (\sqrt {-i (1+x)} \Gamma \left (\frac {1}{2},-i (1+x)\right )+e^{2 i} \sqrt {i (1+x)} \Gamma \left (\frac {1}{2},i (1+x)\right )\right )}{2 \sqrt {1+x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: maximum recursion depth exceeded while calling a Python object} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 42, normalized size = 0.72
method | result | size |
derivativedivides | \(\sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (1\right ) \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {1+x}}{\sqrt {\pi }}\right )-\sin \left (1\right ) \FresnelC \left (\frac {\sqrt {2}\, \sqrt {1+x}}{\sqrt {\pi }}\right )\right )\) | \(42\) |
default | \(\sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (1\right ) \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {1+x}}{\sqrt {\pi }}\right )-\sin \left (1\right ) \FresnelC \left (\frac {\sqrt {2}\, \sqrt {1+x}}{\sqrt {\pi }}\right )\right )\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.37, size = 112, normalized size = 1.93 \begin {gather*} \frac {1}{8} \, \sqrt {\pi } {\left ({\left (\left (i + 1\right ) \, \sqrt {2} \cos \left (1\right ) + \left (i - 1\right ) \, \sqrt {2} \sin \left (1\right )\right )} \operatorname {erf}\left (\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x + 1}\right ) + {\left (\left (i - 1\right ) \, \sqrt {2} \cos \left (1\right ) + \left (i + 1\right ) \, \sqrt {2} \sin \left (1\right )\right )} \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x + 1}\right ) + {\left (-\left (i - 1\right ) \, \sqrt {2} \cos \left (1\right ) - \left (i + 1\right ) \, \sqrt {2} \sin \left (1\right )\right )} \operatorname {erf}\left (\sqrt {-i} \sqrt {x + 1}\right ) + {\left (\left (i + 1\right ) \, \sqrt {2} \cos \left (1\right ) + \left (i - 1\right ) \, \sqrt {2} \sin \left (1\right )\right )} \operatorname {erf}\left (\left (-1\right )^{\frac {1}{4}} \sqrt {x + 1}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.45, size = 46, normalized size = 0.79 \begin {gather*} \sqrt {2} \sqrt {\pi } \cos \left (1\right ) \operatorname {S}\left (\frac {\sqrt {2} \sqrt {x + 1}}{\sqrt {\pi }}\right ) - \sqrt {2} \sqrt {\pi } \operatorname {C}\left (\frac {\sqrt {2} \sqrt {x + 1}}{\sqrt {\pi }}\right ) \sin \left (1\right ) \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 {\sin {\left (x \right )}}{\sqrt {x + 1}}\, 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.00, size = 80, normalized size = 1.38 \begin {gather*} 2 \left (\frac {2 \sqrt {\pi } \mathrm {e}^{-\mathrm {i}} \mathrm {erf}\left (\frac {\mathrm {i} \sqrt {2} \sqrt {x+1}}{1-\mathrm {i}}\right )}{\left (-1+\mathrm {i}\right ) \sqrt {2}\cdot 2 2 \mathrm {i}}+\frac {2 \mathrm {i} \sqrt {\pi } \mathrm {e}^{\mathrm {i}} \mathrm {erf}\left (-\frac {\sqrt {2} \sqrt {x+1}}{1-\mathrm {i}}\right )}{\left (-1-\mathrm {i}\right ) \sqrt {2}\cdot 2\cdot 2}\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.02 \begin {gather*} \int \frac {\sin \left (x\right )}{\sqrt {x+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________