Optimal. Leaf size=55 \[ \frac {3}{2} a \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}+\frac {1}{2} a \text {Ci}\left (\frac {3 x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3319, 3312, 3302} \[ \frac {3}{2} a \text {CosIntegral}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a}+\frac {1}{2} a \text {CosIntegral}\left (\frac {3 x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3302
Rule 3312
Rule 3319
Rubi steps
\begin {align*} \int \frac {(a+a \cos (x))^{3/2}}{x} \, dx &=\left (2 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos ^3\left (\frac {x}{2}\right )}{x} \, dx\\ &=\left (2 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \left (\frac {3 \cos \left (\frac {x}{2}\right )}{4 x}+\frac {\cos \left (\frac {3 x}{2}\right )}{4 x}\right ) \, dx\\ &=\frac {1}{2} \left (a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos \left (\frac {3 x}{2}\right )}{x} \, dx+\frac {1}{2} \left (3 a \sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos \left (\frac {x}{2}\right )}{x} \, dx\\ &=\frac {3}{2} a \sqrt {a+a \cos (x)} \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right )+\frac {1}{2} a \sqrt {a+a \cos (x)} \text {Ci}\left (\frac {3 x}{2}\right ) \sec \left (\frac {x}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 36, normalized size = 0.65 \[ \frac {1}{2} a \left (3 \text {Ci}\left (\frac {x}{2}\right )+\text {Ci}\left (\frac {3 x}{2}\right )\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a (\cos (x)+1)} \]
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.42, size = 32, normalized size = 0.58 \[ \frac {1}{2} \, \sqrt {2} {\left (a \operatorname {Ci}\left (\frac {3}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) + 3 \, a \operatorname {Ci}\left (\frac {1}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right )\right )} \sqrt {a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.06, size = 0, normalized size = 0.00 \[ \int \frac {\left (a +a \cos \relax (x )\right )^{\frac {3}{2}}}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 1.18, size = 29, normalized size = 0.53 \[ \frac {1}{4} \, \sqrt {2} a^{\frac {3}{2}} {\left ({\rm Ei}\left (\frac {3}{2} i \, x\right ) + 3 \, {\rm Ei}\left (\frac {1}{2} i \, x\right ) + 3 \, {\rm Ei}\left (-\frac {1}{2} i \, x\right ) + {\rm Ei}\left (-\frac {3}{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.02 \[ \int \frac {{\left (a+a\,\cos \relax (x)\right )}^{3/2}}{x} \,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 (a \left (\cos {\relax (x )} + 1\right )\right )^{\frac {3}{2}}}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________