3.1 \(\int \frac {2}{-1+3 \cosh (4+6 x)} \, dx\)

Optimal. Leaf size=22 \[ \frac {\tan ^{-1}\left (\sqrt {2} \tanh (3 x+2)\right )}{3 \sqrt {2}} \]

[Out]

1/6*arctan(2^(1/2)*tanh(2+3*x))*2^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {12, 2659, 206} \[ \frac {\tan ^{-1}\left (\sqrt {2} \tanh (3 x+2)\right )}{3 \sqrt {2}} \]

Antiderivative was successfully verified.

[In]

Int[2/(-1 + 3*Cosh[4 + 6*x]),x]

[Out]

ArcTan[Sqrt[2]*Tanh[2 + 3*x]]/(3*Sqrt[2])

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 2659

Int[((a_) + (b_.)*sin[Pi/2 + (c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> With[{e = FreeFactors[Tan[(c + d*x)/2], x
]}, Dist[(2*e)/d, Subst[Int[1/(a + b + (a - b)*e^2*x^2), x], x, Tan[(c + d*x)/2]/e], x]] /; FreeQ[{a, b, c, d}
, x] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {2}{-1+3 \cosh (4+6 x)} \, dx &=2 \int \frac {1}{-1+3 \cosh (4+6 x)} \, dx\\ &=-\left (\frac {2}{3} i \operatorname {Subst}\left (\int \frac {1}{2-4 x^2} \, dx,x,\tan \left (\frac {1}{2} (4 i+6 i x)\right )\right )\right )\\ &=\frac {\tan ^{-1}\left (\sqrt {2} \tanh (2+3 x)\right )}{3 \sqrt {2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.08, size = 47, normalized size = 2.14 \[ \frac {\tan ^{-1}\left (\frac {\left (3+2 e^4+3 e^8\right ) \tanh (3 x)+3 \left (e^8-1\right )}{4 \sqrt {2} e^4}\right )}{3 \sqrt {2}} \]

Antiderivative was successfully verified.

[In]

Integrate[2/(-1 + 3*Cosh[4 + 6*x]),x]

[Out]

ArcTan[(3*(-1 + E^8) + (3 + 2*E^4 + 3*E^8)*Tanh[3*x])/(4*Sqrt[2]*E^4)]/(3*Sqrt[2])

________________________________________________________________________________________

fricas [B]  time = 0.41, size = 34, normalized size = 1.55 \[ \frac {1}{6} \, \sqrt {2} \arctan \left (\frac {3}{4} \, \sqrt {2} \cosh \left (6 \, x + 4\right ) + \frac {3}{4} \, \sqrt {2} \sinh \left (6 \, x + 4\right ) - \frac {1}{4} \, \sqrt {2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/(-1+3*cosh(4+6*x)),x, algorithm="fricas")

[Out]

1/6*sqrt(2)*arctan(3/4*sqrt(2)*cosh(6*x + 4) + 3/4*sqrt(2)*sinh(6*x + 4) - 1/4*sqrt(2))

________________________________________________________________________________________

giac [A]  time = 0.13, size = 21, normalized size = 0.95 \[ \frac {1}{6} \, \sqrt {2} \arctan \left (\frac {1}{4} \, \sqrt {2} {\left (3 \, e^{\left (6 \, x + 4\right )} - 1\right )}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/(-1+3*cosh(4+6*x)),x, algorithm="giac")

[Out]

1/6*sqrt(2)*arctan(1/4*sqrt(2)*(3*e^(6*x + 4) - 1))

________________________________________________________________________________________

maple [A]  time = 0.13, size = 17, normalized size = 0.77 \[ \frac {\arctan \left (\sqrt {2}\, \tanh \left (2+3 x \right )\right ) \sqrt {2}}{6} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2/(-1+3*cosh(4+6*x)),x)

[Out]

1/6*arctan(2^(1/2)*tanh(2+3*x))*2^(1/2)

________________________________________________________________________________________

maxima [A]  time = 0.48, size = 21, normalized size = 0.95 \[ -\frac {1}{6} \, \sqrt {2} \arctan \left (\frac {1}{4} \, \sqrt {2} {\left (3 \, e^{\left (-6 \, x - 4\right )} - 1\right )}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/(-1+3*cosh(4+6*x)),x, algorithm="maxima")

[Out]

-1/6*sqrt(2)*arctan(1/4*sqrt(2)*(3*e^(-6*x - 4) - 1))

________________________________________________________________________________________

mupad [B]  time = 0.12, size = 21, normalized size = 0.95 \[ \frac {\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\left (3\,{\mathrm {e}}^{6\,x+4}-1\right )}{4}\right )}{6} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2/(3*cosh(6*x + 4) - 1),x)

[Out]

(2^(1/2)*atan((2^(1/2)*(3*exp(6*x + 4) - 1))/4))/6

________________________________________________________________________________________

sympy [A]  time = 0.27, size = 19, normalized size = 0.86 \[ \frac {\sqrt {2} \operatorname {atan}{\left (\sqrt {2} \tanh {\left (3 x + 2 \right )} \right )}}{6} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/(-1+3*cosh(4+6*x)),x)

[Out]

sqrt(2)*atan(sqrt(2)*tanh(3*x + 2))/6

________________________________________________________________________________________