3.111 \(\int \csc (a+b x) \, dx\)

Optimal. Leaf size=12 \[ -\frac{\tanh ^{-1}(\cos (a+b x))}{b} \]

[Out]

-(ArcTanh[Cos[a + b*x]]/b)

_______________________________________________________________________________________

Rubi [A]  time = 0.00855027, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167 \[ -\frac{\tanh ^{-1}(\cos (a+b x))}{b} \]

Antiderivative was successfully verified.

[In]  Int[Csc[a + b*x],x]

[Out]

-(ArcTanh[Cos[a + b*x]]/b)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 0.613439, size = 10, normalized size = 0.83 \[ - \frac{\operatorname{atanh}{\left (\cos{\left (a + b x \right )} \right )}}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(1/sin(b*x+a),x)

[Out]

-atanh(cos(a + b*x))/b

_______________________________________________________________________________________

Mathematica [B]  time = 0.0162692, size = 38, normalized size = 3.17 \[ \frac{\log \left (\sin \left (\frac{a}{2}+\frac{b x}{2}\right )\right )}{b}-\frac{\log \left (\cos \left (\frac{a}{2}+\frac{b x}{2}\right )\right )}{b} \]

Antiderivative was successfully verified.

[In]  Integrate[Csc[a + b*x],x]

[Out]

-(Log[Cos[a/2 + (b*x)/2]]/b) + Log[Sin[a/2 + (b*x)/2]]/b

_______________________________________________________________________________________

Maple [A]  time = 0.004, size = 21, normalized size = 1.8 \[{\frac{\ln \left ( \csc \left ( bx+a \right ) -\cot \left ( bx+a \right ) \right ) }{b}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(1/sin(b*x+a),x)

[Out]

1/b*ln(csc(b*x+a)-cot(b*x+a))

_______________________________________________________________________________________

Maxima [A]  time = 1.39045, size = 35, normalized size = 2.92 \[ -\frac{\log \left (\cos \left (b x + a\right ) + 1\right ) - \log \left (\cos \left (b x + a\right ) - 1\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/sin(b*x + a),x, algorithm="maxima")

[Out]

-1/2*(log(cos(b*x + a) + 1) - log(cos(b*x + a) - 1))/b

_______________________________________________________________________________________

Fricas [A]  time = 0.232736, size = 41, normalized size = 3.42 \[ -\frac{\log \left (\frac{1}{2} \, \cos \left (b x + a\right ) + \frac{1}{2}\right ) - \log \left (-\frac{1}{2} \, \cos \left (b x + a\right ) + \frac{1}{2}\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/sin(b*x + a),x, algorithm="fricas")

[Out]

-1/2*(log(1/2*cos(b*x + a) + 1/2) - log(-1/2*cos(b*x + a) + 1/2))/b

_______________________________________________________________________________________

Sympy [A]  time = 0.908169, size = 17, normalized size = 1.42 \[ \begin{cases} \frac{\log{\left (\tan{\left (\frac{a}{2} + \frac{b x}{2} \right )} \right )}}{b} & \text{for}\: b \neq 0 \\\frac{x}{\sin{\left (a \right )}} & \text{otherwise} \end{cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/sin(b*x+a),x)

[Out]

Piecewise((log(tan(a/2 + b*x/2))/b, Ne(b, 0)), (x/sin(a), True))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.212015, size = 69, normalized size = 5.75 \[ \frac{{\rm ln}\left ({\left | -\frac{\cos \left (b x + a\right )}{b} + \frac{1}{{\left | b \right |}} \right |}\right )}{2 \,{\left | b \right |}} - \frac{{\rm ln}\left ({\left | -\frac{\cos \left (b x + a\right )}{b} - \frac{1}{{\left | b \right |}} \right |}\right )}{2 \,{\left | b \right |}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/sin(b*x + a),x, algorithm="giac")

[Out]

1/2*ln(abs(-cos(b*x + a)/b + 1/abs(b)))/abs(b) - 1/2*ln(abs(-cos(b*x + a)/b - 1/
abs(b)))/abs(b)