Integrand size = 16, antiderivative size = 76 \[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=-\frac {2 x \text {arctanh}\left (e^{i x}\right ) \sec (x)}{\sqrt {a \sec ^2(x)}}+\frac {i \operatorname {PolyLog}\left (2,-e^{i x}\right ) \sec (x)}{\sqrt {a \sec ^2(x)}}-\frac {i \operatorname {PolyLog}\left (2,e^{i x}\right ) \sec (x)}{\sqrt {a \sec ^2(x)}} \] Output:
-2*x*arctanh(exp(I*x))*sec(x)/(a*sec(x)^2)^(1/2)+I*polylog(2,-exp(I*x))*se c(x)/(a*sec(x)^2)^(1/2)-I*polylog(2,exp(I*x))*sec(x)/(a*sec(x)^2)^(1/2)
Time = 0.09 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.91 \[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=\frac {\left (x \left (\log \left (1-e^{i x}\right )-\log \left (1+e^{i x}\right )\right )+i \operatorname {PolyLog}\left (2,-e^{i x}\right )-i \operatorname {PolyLog}\left (2,e^{i x}\right )\right ) \sec (x)}{\sqrt {a \sec ^2(x)}} \] Input:
Integrate[(x*Csc[x]*Sec[x])/Sqrt[a*Sec[x]^2],x]
Output:
((x*(Log[1 - E^(I*x)] - Log[1 + E^(I*x)]) + I*PolyLog[2, -E^(I*x)] - I*Pol yLog[2, E^(I*x)])*Sec[x])/Sqrt[a*Sec[x]^2]
Time = 0.67 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.70, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.312, Rules used = {7271, 3042, 4671, 2715, 2838}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx\) |
\(\Big \downarrow \) 7271 |
\(\displaystyle \frac {\sec (x) \int x \csc (x)dx}{\sqrt {a \sec ^2(x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\sec (x) \int x \csc (x)dx}{\sqrt {a \sec ^2(x)}}\) |
\(\Big \downarrow \) 4671 |
\(\displaystyle \frac {\sec (x) \left (-\int \log \left (1-e^{i x}\right )dx+\int \log \left (1+e^{i x}\right )dx-2 x \text {arctanh}\left (e^{i x}\right )\right )}{\sqrt {a \sec ^2(x)}}\) |
\(\Big \downarrow \) 2715 |
\(\displaystyle \frac {\sec (x) \left (i \int e^{-i x} \log \left (1-e^{i x}\right )de^{i x}-i \int e^{-i x} \log \left (1+e^{i x}\right )de^{i x}-2 x \text {arctanh}\left (e^{i x}\right )\right )}{\sqrt {a \sec ^2(x)}}\) |
\(\Big \downarrow \) 2838 |
\(\displaystyle \frac {\sec (x) \left (-2 x \text {arctanh}\left (e^{i x}\right )+i \operatorname {PolyLog}\left (2,-e^{i x}\right )-i \operatorname {PolyLog}\left (2,e^{i x}\right )\right )}{\sqrt {a \sec ^2(x)}}\) |
Input:
Int[(x*Csc[x]*Sec[x])/Sqrt[a*Sec[x]^2],x]
Output:
((-2*x*ArcTanh[E^(I*x)] + I*PolyLog[2, -E^(I*x)] - I*PolyLog[2, E^(I*x)])* Sec[x])/Sqrt[a*Sec[x]^2]
Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Simp[1/(d*e*n*Log[F]) Subst[Int[Log[a + b*x]/x, x], x, (F^(e*(c + d*x) ))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]
Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2 , (-c)*e*x^n]/n, x] /; FreeQ[{c, d, e, n}, x] && EqQ[c*d, 1]
Int[csc[(e_.) + (f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[- 2*(c + d*x)^m*(ArcTanh[E^(I*(e + f*x))]/f), x] + (-Simp[d*(m/f) Int[(c + d*x)^(m - 1)*Log[1 - E^(I*(e + f*x))], x], x] + Simp[d*(m/f) Int[(c + d*x )^(m - 1)*Log[1 + E^(I*(e + f*x))], x], x]) /; FreeQ[{c, d, e, f}, x] && IG tQ[m, 0]
Int[(u_.)*((a_.)*(v_)^(m_.))^(p_), x_Symbol] :> Simp[a^IntPart[p]*((a*v^m)^ FracPart[p]/v^(m*FracPart[p])) Int[u*v^(m*p), x], x] /; FreeQ[{a, m, p}, x] && !IntegerQ[p] && !FreeQ[v, x] && !(EqQ[a, 1] && EqQ[m, 1]) && !(Eq Q[v, x] && EqQ[m, 1])
Time = 0.18 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.09
method | result | size |
risch | \(-\frac {2 i {\mathrm e}^{i x} \left (\frac {i x \ln \left (1-{\mathrm e}^{i x}\right )}{2}+\frac {\operatorname {polylog}\left (2, {\mathrm e}^{i x}\right )}{2}-\frac {i x \ln \left ({\mathrm e}^{i x}+1\right )}{2}-\frac {\operatorname {polylog}\left (2, -{\mathrm e}^{i x}\right )}{2}\right )}{\sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left (1+{\mathrm e}^{2 i x}\right )^{2}}}\, \left (1+{\mathrm e}^{2 i x}\right )}\) | \(83\) |
Input:
int(x*csc(x)*sec(x)/(a*sec(x)^2)^(1/2),x,method=_RETURNVERBOSE)
Output:
-2*I/(a*exp(2*I*x)/(1+exp(2*I*x))^2)^(1/2)/(1+exp(2*I*x))*exp(I*x)*(1/2*I* x*ln(1-exp(I*x))+1/2*polylog(2,exp(I*x))-1/2*I*x*ln(exp(I*x)+1)-1/2*polylo g(2,-exp(I*x)))
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 124 vs. \(2 (55) = 110\).
Time = 0.09 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.63 \[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=-\frac {{\left (x \cos \left (x\right ) \log \left (\cos \left (x\right ) + i \, \sin \left (x\right ) + 1\right ) + x \cos \left (x\right ) \log \left (\cos \left (x\right ) - i \, \sin \left (x\right ) + 1\right ) - x \cos \left (x\right ) \log \left (-\cos \left (x\right ) + i \, \sin \left (x\right ) + 1\right ) - x \cos \left (x\right ) \log \left (-\cos \left (x\right ) - i \, \sin \left (x\right ) + 1\right ) + i \, \cos \left (x\right ) {\rm Li}_2\left (\cos \left (x\right ) + i \, \sin \left (x\right )\right ) - i \, \cos \left (x\right ) {\rm Li}_2\left (\cos \left (x\right ) - i \, \sin \left (x\right )\right ) + i \, \cos \left (x\right ) {\rm Li}_2\left (-\cos \left (x\right ) + i \, \sin \left (x\right )\right ) - i \, \cos \left (x\right ) {\rm Li}_2\left (-\cos \left (x\right ) - i \, \sin \left (x\right )\right )\right )} \sqrt {\frac {a}{\cos \left (x\right )^{2}}}}{2 \, a} \] Input:
integrate(x*csc(x)*sec(x)/(a*sec(x)^2)^(1/2),x, algorithm="fricas")
Output:
-1/2*(x*cos(x)*log(cos(x) + I*sin(x) + 1) + x*cos(x)*log(cos(x) - I*sin(x) + 1) - x*cos(x)*log(-cos(x) + I*sin(x) + 1) - x*cos(x)*log(-cos(x) - I*si n(x) + 1) + I*cos(x)*dilog(cos(x) + I*sin(x)) - I*cos(x)*dilog(cos(x) - I* sin(x)) + I*cos(x)*dilog(-cos(x) + I*sin(x)) - I*cos(x)*dilog(-cos(x) - I* sin(x)))*sqrt(a/cos(x)^2)/a
\[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=\int \frac {x \csc {\left (x \right )} \sec {\left (x \right )}}{\sqrt {a \sec ^{2}{\left (x \right )}}}\, dx \] Input:
integrate(x*csc(x)*sec(x)/(a*sec(x)**2)**(1/2),x)
Output:
Integral(x*csc(x)*sec(x)/sqrt(a*sec(x)**2), x)
Time = 0.13 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.04 \[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=-\frac {2 i \, x \arctan \left (\sin \left (x\right ), \cos \left (x\right ) + 1\right ) + 2 i \, x \arctan \left (\sin \left (x\right ), -\cos \left (x\right ) + 1\right ) + x \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) - x \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right ) - 2 i \, {\rm Li}_2\left (-e^{\left (i \, x\right )}\right ) + 2 i \, {\rm Li}_2\left (e^{\left (i \, x\right )}\right )}{2 \, \sqrt {a}} \] Input:
integrate(x*csc(x)*sec(x)/(a*sec(x)^2)^(1/2),x, algorithm="maxima")
Output:
-1/2*(2*I*x*arctan2(sin(x), cos(x) + 1) + 2*I*x*arctan2(sin(x), -cos(x) + 1) + x*log(cos(x)^2 + sin(x)^2 + 2*cos(x) + 1) - x*log(cos(x)^2 + sin(x)^2 - 2*cos(x) + 1) - 2*I*dilog(-e^(I*x)) + 2*I*dilog(e^(I*x)))/sqrt(a)
\[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=\int { \frac {x \csc \left (x\right ) \sec \left (x\right )}{\sqrt {a \sec \left (x\right )^{2}}} \,d x } \] Input:
integrate(x*csc(x)*sec(x)/(a*sec(x)^2)^(1/2),x, algorithm="giac")
Output:
integrate(x*csc(x)*sec(x)/sqrt(a*sec(x)^2), x)
Timed out. \[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=\int \frac {x}{\cos \left (x\right )\,\sin \left (x\right )\,\sqrt {\frac {a}{{\cos \left (x\right )}^2}}} \,d x \] Input:
int(x/(cos(x)*sin(x)*(a/cos(x)^2)^(1/2)),x)
Output:
int(x/(cos(x)*sin(x)*(a/cos(x)^2)^(1/2)), x)
\[ \int \frac {x \csc (x) \sec (x)}{\sqrt {a \sec ^2(x)}} \, dx=\frac {\sqrt {a}\, \left (\int \csc \left (x \right ) x d x \right )}{a} \] Input:
int(x*csc(x)*sec(x)/(a*sec(x)^2)^(1/2),x)
Output:
(sqrt(a)*int(csc(x)*x,x))/a