### 3.834 $$\int \frac{\cosh ^2(x)}{a+b \cosh (x)+c \cosh ^2(x)} \, dx$$

Optimal. Leaf size=255 $-\frac{2 \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\tanh \left (\frac{x}{2}\right ) \sqrt{-\sqrt{b^2-4 a c}+b-2 c}}{\sqrt{-\sqrt{b^2-4 a c}+b+2 c}}\right )}{c \sqrt{-\sqrt{b^2-4 a c}+b-2 c} \sqrt{-\sqrt{b^2-4 a c}+b+2 c}}-\frac{2 \left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tanh ^{-1}\left (\frac{\tanh \left (\frac{x}{2}\right ) \sqrt{\sqrt{b^2-4 a c}+b-2 c}}{\sqrt{\sqrt{b^2-4 a c}+b+2 c}}\right )}{c \sqrt{\sqrt{b^2-4 a c}+b-2 c} \sqrt{\sqrt{b^2-4 a c}+b+2 c}}+\frac{x}{c}$

[Out]

x/c - (2*(b - (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[b - 2*c - Sqrt[b^2 - 4*a*c]]*Tanh[x/2])/Sqrt[b +
2*c - Sqrt[b^2 - 4*a*c]]])/(c*Sqrt[b - 2*c - Sqrt[b^2 - 4*a*c]]*Sqrt[b + 2*c - Sqrt[b^2 - 4*a*c]]) - (2*(b + (
b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[b - 2*c + Sqrt[b^2 - 4*a*c]]*Tanh[x/2])/Sqrt[b + 2*c + Sqrt[b^2
- 4*a*c]]])/(c*Sqrt[b - 2*c + Sqrt[b^2 - 4*a*c]]*Sqrt[b + 2*c + Sqrt[b^2 - 4*a*c]])

________________________________________________________________________________________

Rubi [A]  time = 1.29051, antiderivative size = 255, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 4, integrand size = 19, $$\frac{\text{number of rules}}{\text{integrand size}}$$ = 0.21, Rules used = {3257, 3293, 2659, 208} $-\frac{2 \left (b-\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}\right ) \tanh ^{-1}\left (\frac{\tanh \left (\frac{x}{2}\right ) \sqrt{-\sqrt{b^2-4 a c}+b-2 c}}{\sqrt{-\sqrt{b^2-4 a c}+b+2 c}}\right )}{c \sqrt{-\sqrt{b^2-4 a c}+b-2 c} \sqrt{-\sqrt{b^2-4 a c}+b+2 c}}-\frac{2 \left (\frac{b^2-2 a c}{\sqrt{b^2-4 a c}}+b\right ) \tanh ^{-1}\left (\frac{\tanh \left (\frac{x}{2}\right ) \sqrt{\sqrt{b^2-4 a c}+b-2 c}}{\sqrt{\sqrt{b^2-4 a c}+b+2 c}}\right )}{c \sqrt{\sqrt{b^2-4 a c}+b-2 c} \sqrt{\sqrt{b^2-4 a c}+b+2 c}}+\frac{x}{c}$

Antiderivative was successfully veriﬁed.

[In]

Int[Cosh[x]^2/(a + b*Cosh[x] + c*Cosh[x]^2),x]

[Out]

x/c - (2*(b - (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[b - 2*c - Sqrt[b^2 - 4*a*c]]*Tanh[x/2])/Sqrt[b +
2*c - Sqrt[b^2 - 4*a*c]]])/(c*Sqrt[b - 2*c - Sqrt[b^2 - 4*a*c]]*Sqrt[b + 2*c - Sqrt[b^2 - 4*a*c]]) - (2*(b + (
b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*ArcTanh[(Sqrt[b - 2*c + Sqrt[b^2 - 4*a*c]]*Tanh[x/2])/Sqrt[b + 2*c + Sqrt[b^2
- 4*a*c]]])/(c*Sqrt[b - 2*c + Sqrt[b^2 - 4*a*c]]*Sqrt[b + 2*c + Sqrt[b^2 - 4*a*c]])

Rule 3257

Int[cos[(d_.) + (e_.)*(x_)]^(m_.)*((a_.) + cos[(d_.) + (e_.)*(x_)]^(n_.)*(b_.) + cos[(d_.) + (e_.)*(x_)]^(n2_.
)*(c_.))^(p_), x_Symbol] :> Int[ExpandTrig[cos[d + e*x]^m*(a + b*cos[d + e*x]^n + c*cos[d + e*x]^(2*n))^p, x],
x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0] && IntegersQ[m, n, p]

Rule 3293

Int[(cos[(d_.) + (e_.)*(x_)]*(B_.) + (A_))/((a_.) + cos[(d_.) + (e_.)*(x_)]*(b_.) + cos[(d_.) + (e_.)*(x_)]^2*
(c_.)), x_Symbol] :> Module[{q = Rt[b^2 - 4*a*c, 2]}, Dist[B + (b*B - 2*A*c)/q, Int[1/(b + q + 2*c*Cos[d + e*x
]), x], x] + Dist[B - (b*B - 2*A*c)/q, Int[1/(b - q + 2*c*Cos[d + e*x]), x], x]] /; FreeQ[{a, b, c, d, e, A, B
}, x] && NeQ[b^2 - 4*a*c, 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]

Rule 208

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

Rubi steps

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

Mathematica [A]  time = 0.564417, size = 264, normalized size = 1.04 $\frac{\frac{\sqrt{2} \left (b \sqrt{b^2-4 a c}-2 a c+b^2\right ) \tan ^{-1}\left (\frac{\tanh \left (\frac{x}{2}\right ) \left (\sqrt{b^2-4 a c}+b-2 c\right )}{\sqrt{-2 b \sqrt{b^2-4 a c}+4 c (a+c)-2 b^2}}\right )}{\sqrt{b^2-4 a c} \sqrt{-b \sqrt{b^2-4 a c}+2 c (a+c)-b^2}}-\frac{\sqrt{2} \left (b \sqrt{b^2-4 a c}+2 a c-b^2\right ) \tan ^{-1}\left (\frac{\tanh \left (\frac{x}{2}\right ) \left (\sqrt{b^2-4 a c}-b+2 c\right )}{\sqrt{2 b \sqrt{b^2-4 a c}+4 c (a+c)-2 b^2}}\right )}{\sqrt{b^2-4 a c} \sqrt{b \sqrt{b^2-4 a c}+2 c (a+c)-b^2}}+x}{c}$

Antiderivative was successfully veriﬁed.

[In]

Integrate[Cosh[x]^2/(a + b*Cosh[x] + c*Cosh[x]^2),x]

[Out]

(x + (Sqrt[2]*(b^2 - 2*a*c + b*Sqrt[b^2 - 4*a*c])*ArcTan[((b - 2*c + Sqrt[b^2 - 4*a*c])*Tanh[x/2])/Sqrt[-2*b^2
+ 4*c*(a + c) - 2*b*Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[-b^2 + 2*c*(a + c) - b*Sqrt[b^2 - 4*a*c]]) -
(Sqrt[2]*(-b^2 + 2*a*c + b*Sqrt[b^2 - 4*a*c])*ArcTan[((-b + 2*c + Sqrt[b^2 - 4*a*c])*Tanh[x/2])/Sqrt[-2*b^2 +
4*c*(a + c) + 2*b*Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[-b^2 + 2*c*(a + c) + b*Sqrt[b^2 - 4*a*c]]))/c

________________________________________________________________________________________

Maple [B]  time = 0.043, size = 1957, normalized size = 7.7 \begin{align*} \text{result too large to display} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(x)^2/(a+b*cosh(x)+c*cosh(x)^2),x)

[Out]

a/(a-b+c)/(((-4*a*c+b^2)^(1/2)-a+c)*(a-b+c))^(1/2)*arctan((a-b+c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/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((a-b+c)*tanh(1/2*x)/(((-4*a
*c+b^2)^(1/2)-a+c)*(a-b+c))^(1/2))*b^3-a/(-4*a*c+b^2)^(1/2)/(a-b+c)/(((-4*a*c+b^2)^(1/2)-a+c)*(a-b+c))^(1/2)*a
rctan((a-b+c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/2)-a+c)*(a-b+c))^(1/2))*b+2*a/(-4*a*c+b^2)^(1/2)/(a-b+c)/(((-4*a*c
+b^2)^(1/2)-a+c)*(a-b+c))^(1/2)*arctan((a-b+c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/2)-a+c)*(a-b+c))^(1/2))*c+a/(-4*a
*c+b^2)^(1/2)/(a-b+c)/(((-4*a*c+b^2)^(1/2)+a-c)*(a-b+c))^(1/2)*arctanh((-a+b-c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/
2)+a-c)*(a-b+c))^(1/2))*b-2*a/(-4*a*c+b^2)^(1/2)/(a-b+c)/(((-4*a*c+b^2)^(1/2)+a-c)*(a-b+c))^(1/2)*arctanh((-a+
b-c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/2)+a-c)*(a-b+c))^(1/2))*c-2/c*a/(a-b+c)/(((-4*a*c+b^2)^(1/2)-a+c)*(a-b+c))^
(1/2)*arctan((a-b+c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/2)-a+c)*(a-b+c))^(1/2))*b-2/c*a/(a-b+c)/(((-4*a*c+b^2)^(1/2
)+a-c)*(a-b+c))^(1/2)*arctanh((-a+b-c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/2)+a-c)*(a-b+c))^(1/2))*b-1/c/(-4*a*c+b^2
)^(1/2)/(a-b+c)/(((-4*a*c+b^2)^(1/2)+a-c)*(a-b+c))^(1/2)*arctanh((-a+b-c)*tanh(1/2*x)/(((-4*a*c+b^2)^(1/2)+a-c
)*(a-b+c))^(1/2))*b^3

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{x}{c} - \frac{1}{4} \, \int \frac{8 \,{\left (b e^{\left (3 \, x\right )} + 2 \, a e^{\left (2 \, x\right )} + b e^{x}\right )}}{c^{2} e^{\left (4 \, x\right )} + 2 \, b c e^{\left (3 \, x\right )} + 2 \, b c e^{x} + c^{2} + 2 \,{\left (2 \, a c + c^{2}\right )} e^{\left (2 \, x\right )}}\,{d x} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)^2/(a+b*cosh(x)+c*cosh(x)^2),x, algorithm="maxima")

[Out]

x/c - 1/4*integrate(8*(b*e^(3*x) + 2*a*e^(2*x) + b*e^x)/(c^2*e^(4*x) + 2*b*c*e^(3*x) + 2*b*c*e^x + c^2 + 2*(2*
a*c + c^2)*e^(2*x)), x)

________________________________________________________________________________________

Fricas [B]  time = 4.40243, size = 9950, normalized size = 39.02 \begin{align*} \text{result too large to display} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)^2/(a+b*cosh(x)+c*cosh(x)^2),x, algorithm="fricas")

[Out]

-1/2*(sqrt(2)*c*sqrt(-(a^2*b^2 - b^4 - 2*a^2*c^2 - 2*(a^3 - 2*a*b^2)*c + (4*a*c^5 + (8*a^2 - b^2)*c^4 + 2*(2*a
^3 - 3*a*b^2)*c^3 - (a^2*b^2 - b^4)*c^2)*sqrt(-(a^4*b^2 - 2*a^2*b^4 + b^6 + 4*a^2*b^2*c^2 + 4*(a^3*b^2 - a*b^4
)*c)/(4*a*c^9 + (16*a^2 - b^2)*c^8 + 12*(2*a^3 - a*b^2)*c^7 + 2*(8*a^4 - 11*a^2*b^2 + b^4)*c^6 + 4*(a^5 - 3*a^
3*b^2 + 2*a*b^4)*c^5 - (a^4*b^2 - 2*a^2*b^4 + b^6)*c^4)))/(4*a*c^5 + (8*a^2 - b^2)*c^4 + 2*(2*a^3 - 3*a*b^2)*c
^3 - (a^2*b^2 - b^4)*c^2))*log(2*a^4*b^2 - 2*a^2*b^4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c^2 + (a^4*b - a^2*b^3)*c)*cosh(x) + 4*(2*a^3*b*c^2 + (a^4*b - a^2*b^3)*c)*sinh(x) - 2*(4*a^3*
c^5 + (8*a^4 - a^2*b^2)*c^4 + 2*(2*a^5 - 3*a^3*b^2)*c^3 - (a^4*b^2 - a^2*b^4)*c^2)*sqrt(-(a^4*b^2 - 2*a^2*b^4
+ b^6 + 4*a^2*b^2*c^2 + 4*(a^3*b^2 - a*b^4)*c)/(4*a*c^9 + (16*a^2 - b^2)*c^8 + 12*(2*a^3 - a*b^2)*c^7 + 2*(8*a
^4 - 11*a^2*b^2 + b^4)*c^6 + 4*(a^5 - 3*a^3*b^2 + 2*a*b^4)*c^5 - (a^4*b^2 - 2*a^2*b^4 + b^6)*c^4))) - 2*x)/c

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)**2/(a+b*cosh(x)+c*cosh(x)**2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 5.94562, size = 7, normalized size = 0.03 \begin{align*} \frac{x}{c} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)^2/(a+b*cosh(x)+c*cosh(x)^2),x, algorithm="giac")

[Out]

x/c