Optimal. Leaf size=67 \[ -\frac {1}{8} \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}-\frac {\sqrt {a \cos (x)+a}}{2 x^2}+\frac {\tan \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}}{4 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3319, 3297, 3302} \[ -\frac {1}{8} \text {CosIntegral}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}-\frac {\sqrt {a \cos (x)+a}}{2 x^2}+\frac {\tan \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}}{4 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3297
Rule 3302
Rule 3319
Rubi steps
\begin {align*} \int \frac {\sqrt {a+a \cos (x)}}{x^3} \, dx &=\left (\sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos \left (\frac {x}{2}\right )}{x^3} \, dx\\ &=-\frac {\sqrt {a+a \cos (x)}}{2 x^2}-\frac {1}{4} \left (\sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\sin \left (\frac {x}{2}\right )}{x^2} \, dx\\ &=-\frac {\sqrt {a+a \cos (x)}}{2 x^2}+\frac {\sqrt {a+a \cos (x)} \tan \left (\frac {x}{2}\right )}{4 x}-\frac {1}{8} \left (\sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos \left (\frac {x}{2}\right )}{x} \, dx\\ &=-\frac {\sqrt {a+a \cos (x)}}{2 x^2}-\frac {1}{8} \sqrt {a+a \cos (x)} \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right )+\frac {\sqrt {a+a \cos (x)} \tan \left (\frac {x}{2}\right )}{4 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 44, normalized size = 0.66 \[ -\frac {\sqrt {a (\cos (x)+1)} \left (x^2 \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right )-2 x \tan \left (\frac {x}{2}\right )+4\right )}{8 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.41, size = 48, normalized size = 0.72 \[ -\frac {\sqrt {2} {\left (x^{2} \operatorname {Ci}\left (\frac {1}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) - 2 \, x \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) \sin \left (\frac {1}{2} \, x\right ) + 4 \, \cos \left (\frac {1}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right )\right )} \sqrt {a}}{8 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.07, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a +a \cos \relax (x )}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 1.41, size = 19, normalized size = 0.28 \[ \frac {1}{8} \, \sqrt {2} \sqrt {a} {\left (\Gamma \left (-2, \frac {1}{2} i \, x\right ) + \Gamma \left (-2, -\frac {1}{2} i \, x\right )\right )} \]
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 {\sqrt {a+a\,\cos \relax (x)}}{x^3} \,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 {\sqrt {a \left (\cos {\relax (x )} + 1\right )}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________