3.154 \(\int \frac {\sqrt {a+a \cos (x)}}{x} \, dx\)

Optimal. Leaf size=23 \[ \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a} \]

[Out]

Ci(1/2*x)*sec(1/2*x)*(a+a*cos(x))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3319, 3302} \[ \text {CosIntegral}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a \cos (x)+a} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + a*Cos[x]]/x,x]

[Out]

Sqrt[a + a*Cos[x]]*CosIntegral[x/2]*Sec[x/2]

Rule 3302

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]

Rule 3319

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[((2*a)^IntPart[n
]*(a + b*Sin[e + f*x])^FracPart[n])/Sin[e/2 + (a*Pi)/(4*b) + (f*x)/2]^(2*FracPart[n]), Int[(c + d*x)^m*Sin[e/2
 + (a*Pi)/(4*b) + (f*x)/2]^(2*n), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[n
 + 1/2] && (GtQ[n, 0] || IGtQ[m, 0])

Rubi steps

\begin {align*} \int \frac {\sqrt {a+a \cos (x)}}{x} \, dx &=\left (\sqrt {a+a \cos (x)} \sec \left (\frac {x}{2}\right )\right ) \int \frac {\cos \left (\frac {x}{2}\right )}{x} \, dx\\ &=\sqrt {a+a \cos (x)} \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 23, normalized size = 1.00 \[ \text {Ci}\left (\frac {x}{2}\right ) \sec \left (\frac {x}{2}\right ) \sqrt {a (\cos (x)+1)} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + a*Cos[x]]/x,x]

[Out]

Sqrt[a*(1 + Cos[x])]*CosIntegral[x/2]*Sec[x/2]

________________________________________________________________________________________

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]

integrate((a+a*cos(x))^(1/2)/x,x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ha
s polynomial part)

________________________________________________________________________________________

giac [A]  time = 0.44, size = 16, normalized size = 0.70 \[ \sqrt {2} \sqrt {a} \operatorname {Ci}\left (\frac {1}{2} \, x\right ) \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, x\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))^(1/2)/x,x, algorithm="giac")

[Out]

sqrt(2)*sqrt(a)*cos_integral(1/2*x)*sgn(cos(1/2*x))

________________________________________________________________________________________

maple [F]  time = 0.09, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a +a \cos \relax (x )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*cos(x))^(1/2)/x,x)

[Out]

int((a+a*cos(x))^(1/2)/x,x)

________________________________________________________________________________________

maxima [C]  time = 1.52, size = 17, normalized size = 0.74 \[ \frac {1}{2} \, \sqrt {2} \sqrt {a} {\left ({\rm Ei}\left (\frac {1}{2} i \, x\right ) + {\rm Ei}\left (-\frac {1}{2} i \, x\right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))^(1/2)/x,x, algorithm="maxima")

[Out]

1/2*sqrt(2)*sqrt(a)*(Ei(1/2*I*x) + Ei(-1/2*I*x))

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.04 \[ \int \frac {\sqrt {a+a\,\cos \relax (x)}}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*cos(x))^(1/2)/x,x)

[Out]

int((a + a*cos(x))^(1/2)/x, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a \left (\cos {\relax (x )} + 1\right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*cos(x))**(1/2)/x,x)

[Out]

Integral(sqrt(a*(cos(x) + 1))/x, x)

________________________________________________________________________________________