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

Optimal. Leaf size=205 $-\frac{a^2 x}{2 \left (a^2-b^2\right )^2}-\frac{4 a^2 b^2 x}{\left (a^2-b^2\right )^3}+\frac{b^2 x}{2 \left (a^2-b^2\right )^2}-\frac{a b \sinh ^2(x)}{\left (a^2-b^2\right )^2}+\frac{a^2 \sinh (x) \cosh (x)}{2 \left (a^2-b^2\right )^2}+\frac{a b^2 \sinh (x)}{\left (a^2-b^2\right )^2 (a \cosh (x)+b \sinh (x))}+\frac{b^2 \sinh (x) \cosh (x)}{2 \left (a^2-b^2\right )^2}+\frac{2 a^3 b \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}+\frac{2 a b^3 \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}$

[Out]

(-4*a^2*b^2*x)/(a^2 - b^2)^3 - (a^2*x)/(2*(a^2 - b^2)^2) + (b^2*x)/(2*(a^2 - b^2)^2) + (2*a^3*b*Log[a*Cosh[x]
+ b*Sinh[x]])/(a^2 - b^2)^3 + (2*a*b^3*Log[a*Cosh[x] + b*Sinh[x]])/(a^2 - b^2)^3 + (a^2*Cosh[x]*Sinh[x])/(2*(a
^2 - b^2)^2) + (b^2*Cosh[x]*Sinh[x])/(2*(a^2 - b^2)^2) - (a*b*Sinh[x]^2)/(a^2 - b^2)^2 + (a*b^2*Sinh[x])/((a^2
- b^2)^2*(a*Cosh[x] + b*Sinh[x]))

________________________________________________________________________________________

Rubi [A]  time = 0.659398, antiderivative size = 205, normalized size of antiderivative = 1., number of steps used = 21, number of rules used = 10, integrand size = 20, $$\frac{\text{number of rules}}{\text{integrand size}}$$ = 0.5, Rules used = {3111, 3109, 2635, 8, 2564, 30, 3098, 3133, 3097, 3075} $-\frac{a^2 x}{2 \left (a^2-b^2\right )^2}-\frac{4 a^2 b^2 x}{\left (a^2-b^2\right )^3}+\frac{b^2 x}{2 \left (a^2-b^2\right )^2}-\frac{a b \sinh ^2(x)}{\left (a^2-b^2\right )^2}+\frac{a^2 \sinh (x) \cosh (x)}{2 \left (a^2-b^2\right )^2}+\frac{a b^2 \sinh (x)}{\left (a^2-b^2\right )^2 (a \cosh (x)+b \sinh (x))}+\frac{b^2 \sinh (x) \cosh (x)}{2 \left (a^2-b^2\right )^2}+\frac{2 a^3 b \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}+\frac{2 a b^3 \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}$

Antiderivative was successfully veriﬁed.

[In]

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

[Out]

(-4*a^2*b^2*x)/(a^2 - b^2)^3 - (a^2*x)/(2*(a^2 - b^2)^2) + (b^2*x)/(2*(a^2 - b^2)^2) + (2*a^3*b*Log[a*Cosh[x]
+ b*Sinh[x]])/(a^2 - b^2)^3 + (2*a*b^3*Log[a*Cosh[x] + b*Sinh[x]])/(a^2 - b^2)^3 + (a^2*Cosh[x]*Sinh[x])/(2*(a
^2 - b^2)^2) + (b^2*Cosh[x]*Sinh[x])/(2*(a^2 - b^2)^2) - (a*b*Sinh[x]^2)/(a^2 - b^2)^2 + (a*b^2*Sinh[x])/((a^2
- b^2)^2*(a*Cosh[x] + b*Sinh[x]))

Rule 3111

Int[cos[(c_.) + (d_.)*(x_)]^(m_.)*sin[(c_.) + (d_.)*(x_)]^(n_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_
.) + (d_.)*(x_)])^(p_), x_Symbol] :> Dist[b/(a^2 + b^2), Int[Cos[c + d*x]^m*Sin[c + d*x]^(n - 1)*(a*Cos[c + d*
x] + b*Sin[c + d*x])^(p + 1), x], x] + (Dist[a/(a^2 + b^2), Int[Cos[c + d*x]^(m - 1)*Sin[c + d*x]^n*(a*Cos[c +
d*x] + b*Sin[c + d*x])^(p + 1), x], x] - Dist[(a*b)/(a^2 + b^2), Int[Cos[c + d*x]^(m - 1)*Sin[c + d*x]^(n - 1
)*(a*Cos[c + d*x] + b*Sin[c + d*x])^p, x], x]) /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 + b^2, 0] && IGtQ[m, 0] &&
IGtQ[n, 0] && ILtQ[p, 0]

Rule 3109

Int[(cos[(c_.) + (d_.)*(x_)]^(m_.)*sin[(c_.) + (d_.)*(x_)]^(n_.))/(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(
c_.) + (d_.)*(x_)]), x_Symbol] :> Dist[b/(a^2 + b^2), Int[Cos[c + d*x]^m*Sin[c + d*x]^(n - 1), x], x] + (Dist[
a/(a^2 + b^2), Int[Cos[c + d*x]^(m - 1)*Sin[c + d*x]^n, x], x] - Dist[(a*b)/(a^2 + b^2), Int[(Cos[c + d*x]^(m
- 1)*Sin[c + d*x]^(n - 1))/(a*Cos[c + d*x] + b*Sin[c + d*x]), x], x]) /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 + b
^2, 0] && IGtQ[m, 0] && IGtQ[n, 0]

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2564

Int[cos[(e_.) + (f_.)*(x_)]^(n_.)*((a_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(a*f), Subst[Int[
x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Sin[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2] &&
!(IntegerQ[(m - 1)/2] && LtQ[0, m, n])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 3098

Int[cos[(c_.) + (d_.)*(x_)]/(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)]), x_Symbol] :> Simp
[(a*x)/(a^2 + b^2), x] + Dist[b/(a^2 + b^2), Int[(b*Cos[c + d*x] - a*Sin[c + d*x])/(a*Cos[c + d*x] + b*Sin[c +
d*x]), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 + b^2, 0]

Rule 3133

Int[((A_.) + cos[(d_.) + (e_.)*(x_)]*(B_.) + (C_.)*sin[(d_.) + (e_.)*(x_)])/((a_.) + cos[(d_.) + (e_.)*(x_)]*(
b_.) + (c_.)*sin[(d_.) + (e_.)*(x_)]), x_Symbol] :> Simp[((b*B + c*C)*x)/(b^2 + c^2), x] + Simp[((c*B - b*C)*L
og[a + b*Cos[d + e*x] + c*Sin[d + e*x]])/(e*(b^2 + c^2)), x] /; FreeQ[{a, b, c, d, e, A, B, C}, x] && NeQ[b^2
+ c^2, 0] && EqQ[A*(b^2 + c^2) - a*(b*B + c*C), 0]

Rule 3097

Int[sin[(c_.) + (d_.)*(x_)]/(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)]), x_Symbol] :> Simp
[(b*x)/(a^2 + b^2), x] - Dist[a/(a^2 + b^2), Int[(b*Cos[c + d*x] - a*Sin[c + d*x])/(a*Cos[c + d*x] + b*Sin[c +
d*x]), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 + b^2, 0]

Rule 3075

Int[(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-2), x_Symbol] :> Simp[Sin[c + d*x]/(a*d*
(a*Cos[c + d*x] + b*Sin[c + d*x])), x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 + b^2, 0]

Rubi steps

\begin{align*} \int \frac{\cosh ^2(x) \sinh ^2(x)}{(a \cosh (x)+b \sinh (x))^2} \, dx &=\frac{a \int \frac{\cosh (x) \sinh ^2(x)}{a \cosh (x)+b \sinh (x)} \, dx}{a^2-b^2}-\frac{b \int \frac{\cosh ^2(x) \sinh (x)}{a \cosh (x)+b \sinh (x)} \, dx}{a^2-b^2}+\frac{(a b) \int \frac{\cosh (x) \sinh (x)}{(a \cosh (x)+b \sinh (x))^2} \, dx}{a^2-b^2}\\ &=\frac{a^2 \int \sinh ^2(x) \, dx}{\left (a^2-b^2\right )^2}-2 \frac{(a b) \int \cosh (x) \sinh (x) \, dx}{\left (a^2-b^2\right )^2}+2 \frac{\left (a^2 b\right ) \int \frac{\sinh (x)}{a \cosh (x)+b \sinh (x)} \, dx}{\left (a^2-b^2\right )^2}+\frac{b^2 \int \cosh ^2(x) \, dx}{\left (a^2-b^2\right )^2}-2 \frac{\left (a b^2\right ) \int \frac{\cosh (x)}{a \cosh (x)+b \sinh (x)} \, dx}{\left (a^2-b^2\right )^2}+\frac{\left (a^2 b^2\right ) \int \frac{1}{(a \cosh (x)+b \sinh (x))^2} \, dx}{\left (a^2-b^2\right )^2}\\ &=\frac{a^2 \cosh (x) \sinh (x)}{2 \left (a^2-b^2\right )^2}+\frac{b^2 \cosh (x) \sinh (x)}{2 \left (a^2-b^2\right )^2}+\frac{a b^2 \sinh (x)}{\left (a^2-b^2\right )^2 (a \cosh (x)+b \sinh (x))}+2 \left (-\frac{a^2 b^2 x}{\left (a^2-b^2\right )^3}+\frac{\left (i a^3 b\right ) \int \frac{-i b \cosh (x)-i a \sinh (x)}{a \cosh (x)+b \sinh (x)} \, dx}{\left (a^2-b^2\right )^3}\right )-2 \left (\frac{a^2 b^2 x}{\left (a^2-b^2\right )^3}-\frac{\left (i a b^3\right ) \int \frac{-i b \cosh (x)-i a \sinh (x)}{a \cosh (x)+b \sinh (x)} \, dx}{\left (a^2-b^2\right )^3}\right )-\frac{a^2 \int 1 \, dx}{2 \left (a^2-b^2\right )^2}+2 \frac{(a b) \operatorname{Subst}(\int x \, dx,x,i \sinh (x))}{\left (a^2-b^2\right )^2}+\frac{b^2 \int 1 \, dx}{2 \left (a^2-b^2\right )^2}\\ &=-\frac{a^2 x}{2 \left (a^2-b^2\right )^2}+\frac{b^2 x}{2 \left (a^2-b^2\right )^2}+2 \left (-\frac{a^2 b^2 x}{\left (a^2-b^2\right )^3}+\frac{a^3 b \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}\right )-2 \left (\frac{a^2 b^2 x}{\left (a^2-b^2\right )^3}-\frac{a b^3 \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}\right )+\frac{a^2 \cosh (x) \sinh (x)}{2 \left (a^2-b^2\right )^2}+\frac{b^2 \cosh (x) \sinh (x)}{2 \left (a^2-b^2\right )^2}-\frac{a b \sinh ^2(x)}{\left (a^2-b^2\right )^2}+\frac{a b^2 \sinh (x)}{\left (a^2-b^2\right )^2 (a \cosh (x)+b \sinh (x))}\\ \end{align*}

Mathematica [A]  time = 1.86382, size = 174, normalized size = 0.85 $\frac{1}{8} \left (-\frac{4 x \left (6 a^2 b^2+a^4+b^4\right )}{(a-b)^3 (a+b)^3}+\frac{2 \left (a^2+b^2\right ) \sinh (2 x)}{(a-b)^2 (a+b)^2}+\frac{\left (6 a^2 b^2+a^4+b^4\right ) \sinh (x)}{a (a-b)^2 (a+b)^2 (a \cosh (x)+b \sinh (x))}+\frac{16 a b \left (a^2+b^2\right ) \log (a \cosh (x)+b \sinh (x))}{\left (a^2-b^2\right )^3}-\frac{\sinh (x)}{a^2 \cosh (x)+a b \sinh (x)}-\frac{4 a b \cosh (2 x)}{(a-b)^2 (a+b)^2}\right )$

Antiderivative was successfully veriﬁed.

[In]

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

[Out]

((-4*(a^4 + 6*a^2*b^2 + b^4)*x)/((a - b)^3*(a + b)^3) - (4*a*b*Cosh[2*x])/((a - b)^2*(a + b)^2) + (16*a*b*(a^2
+ b^2)*Log[a*Cosh[x] + b*Sinh[x]])/(a^2 - b^2)^3 + ((a^4 + 6*a^2*b^2 + b^4)*Sinh[x])/(a*(a - b)^2*(a + b)^2*(
a*Cosh[x] + b*Sinh[x])) - Sinh[x]/(a^2*Cosh[x] + a*b*Sinh[x]) + (2*(a^2 + b^2)*Sinh[2*x])/((a - b)^2*(a + b)^2
))/8

________________________________________________________________________________________

Maple [A]  time = 0.078, size = 286, normalized size = 1.4 \begin{align*} -{\frac{1}{2\, \left ( a-b \right ) ^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}+{\frac{1}{2\, \left ( a-b \right ) ^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{a}{2\, \left ( a-b \right ) ^{3}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }-{\frac{b}{2\, \left ( a-b \right ) ^{3}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }+2\,{\frac{{a}^{3}{b}^{2}\tanh \left ( x/2 \right ) }{ \left ( a-b \right ) ^{3} \left ( a+b \right ) ^{3} \left ( a+2\,\tanh \left ( x/2 \right ) b+a \left ( \tanh \left ( x/2 \right ) \right ) ^{2} \right ) }}-2\,{\frac{{b}^{4}a\tanh \left ( x/2 \right ) }{ \left ( a-b \right ) ^{3} \left ( a+b \right ) ^{3} \left ( a+2\,\tanh \left ( x/2 \right ) b+a \left ( \tanh \left ( x/2 \right ) \right ) ^{2} \right ) }}+2\,{\frac{{a}^{3}b\ln \left ( a+2\,\tanh \left ( x/2 \right ) b+a \left ( \tanh \left ( x/2 \right ) \right ) ^{2} \right ) }{ \left ( a-b \right ) ^{3} \left ( a+b \right ) ^{3}}}+2\,{\frac{a{b}^{3}\ln \left ( a+2\,\tanh \left ( x/2 \right ) b+a \left ( \tanh \left ( x/2 \right ) \right ) ^{2} \right ) }{ \left ( a-b \right ) ^{3} \left ( a+b \right ) ^{3}}}+{\frac{1}{2\, \left ( a+b \right ) ^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{1}{2\, \left ( a+b \right ) ^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{a}{2\, \left ( a+b \right ) ^{3}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) }-{\frac{b}{2\, \left ( a+b \right ) ^{3}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}

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

[In]

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

[Out]

-1/2/(a-b)^2/(tanh(1/2*x)+1)^2+1/2/(a-b)^2/(tanh(1/2*x)+1)-1/2*a/(a-b)^3*ln(tanh(1/2*x)+1)-1/2/(a-b)^3*ln(tanh
(1/2*x)+1)*b+2*a^3*b^2/(a-b)^3/(a+b)^3*tanh(1/2*x)/(a+2*tanh(1/2*x)*b+a*tanh(1/2*x)^2)-2*a*b^4/(a-b)^3/(a+b)^3
*tanh(1/2*x)/(a+2*tanh(1/2*x)*b+a*tanh(1/2*x)^2)+2*a^3*b/(a-b)^3/(a+b)^3*ln(a+2*tanh(1/2*x)*b+a*tanh(1/2*x)^2)
+2*a*b^3/(a-b)^3/(a+b)^3*ln(a+2*tanh(1/2*x)*b+a*tanh(1/2*x)^2)+1/2/(a+b)^2/(tanh(1/2*x)-1)^2+1/2/(a+b)^2/(tanh
(1/2*x)-1)+1/2*a/(a+b)^3*ln(tanh(1/2*x)-1)-1/2/(a+b)^3*ln(tanh(1/2*x)-1)*b

________________________________________________________________________________________

Maxima [A]  time = 1.21942, size = 329, normalized size = 1.6 \begin{align*} -\frac{{\left (a - b\right )} x}{2 \,{\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )}} + \frac{2 \,{\left (a^{3} b + a b^{3}\right )} \log \left (-{\left (a - b\right )} e^{\left (-2 \, x\right )} - a - b\right )}{a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}} + \frac{a^{4} - 2 \, a^{3} b + 2 \, a b^{3} - b^{4} +{\left (a^{4} - 4 \, a^{3} b + 22 \, a^{2} b^{2} - 4 \, a b^{3} + b^{4}\right )} e^{\left (-2 \, x\right )}}{8 \,{\left ({\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} e^{\left (-2 \, x\right )} +{\left (a^{6} - 2 \, a^{5} b - a^{4} b^{2} + 4 \, a^{3} b^{3} - a^{2} b^{4} - 2 \, a b^{5} + b^{6}\right )} e^{\left (-4 \, x\right )}\right )}} - \frac{e^{\left (-2 \, x\right )}}{8 \,{\left (a^{2} - 2 \, a b + b^{2}\right )}} \end{align*}

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

[In]

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

[Out]

-1/2*(a - b)*x/(a^3 + 3*a^2*b + 3*a*b^2 + b^3) + 2*(a^3*b + a*b^3)*log(-(a - b)*e^(-2*x) - a - b)/(a^6 - 3*a^4
*b^2 + 3*a^2*b^4 - b^6) + 1/8*(a^4 - 2*a^3*b + 2*a*b^3 - b^4 + (a^4 - 4*a^3*b + 22*a^2*b^2 - 4*a*b^3 + b^4)*e^
(-2*x))/((a^6 - 3*a^4*b^2 + 3*a^2*b^4 - b^6)*e^(-2*x) + (a^6 - 2*a^5*b - a^4*b^2 + 4*a^3*b^3 - a^2*b^4 - 2*a*b
^5 + b^6)*e^(-4*x)) - 1/8*e^(-2*x)/(a^2 - 2*a*b + b^2)

________________________________________________________________________________________

Fricas [B]  time = 2.69527, size = 3779, normalized size = 18.43 \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*sinh(x)^2/(a*cosh(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- 3*a^4*b^3 +
3*a^3*b^4 + 3*a^2*b^5 - a*b^6 - b^7)*cosh(x)*sinh(x)^3 + (a^7 + a^6*b - 3*a^5*b^2 - 3*a^4*b^3 + 3*a^3*b^4 + 3*
a^2*b^5 - a*b^6 - b^7)*sinh(x)^4 + (a^7 - a^6*b - 3*a^5*b^2 + 3*a^4*b^3 + 3*a^3*b^4 - 3*a^2*b^5 - a*b^6 + b^7)
*cosh(x)^2 + (a^7 - a^6*b - 3*a^5*b^2 + 3*a^4*b^3 + 3*a^3*b^4 - 3*a^2*b^5 - a*b^6 + b^7 + 6*(a^7 + a^6*b - 3*a
^5*b^2 - 3*a^4*b^3 + 3*a^3*b^4 + 3*a^2*b^5 - a*b^6 - b^7)*cosh(x)^2)*sinh(x)^2 + 2*(2*(a^7 + a^6*b - 3*a^5*b^2
- 3*a^4*b^3 + 3*a^3*b^4 + 3*a^2*b^5 - a*b^6 - b^7)*cosh(x)^3 + (a^7 - a^6*b - 3*a^5*b^2 + 3*a^4*b^3 + 3*a^3*b
^4 - 3*a^2*b^5 - a*b^6 + b^7)*cosh(x))*sinh(x))

________________________________________________________________________________________

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*sinh(x)**2/(a*cosh(x)+b*sinh(x))**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.17331, size = 313, normalized size = 1.53 \begin{align*} -\frac{{\left (a + b\right )} x}{2 \,{\left (a^{3} - 3 \, a^{2} b + 3 \, a b^{2} - b^{3}\right )}} + \frac{2 \,{\left (a^{3} b + a b^{3}\right )} \log \left ({\left | a e^{\left (2 \, x\right )} + b e^{\left (2 \, x\right )} + a - b \right |}\right )}{a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}} + \frac{e^{\left (2 \, x\right )}}{8 \,{\left (a^{2} + 2 \, a b + b^{2}\right )}} + \frac{a^{3} e^{\left (4 \, x\right )} - 3 \, a^{2} b e^{\left (4 \, x\right )} + 3 \, a b^{2} e^{\left (4 \, x\right )} - b^{3} e^{\left (4 \, x\right )} - 8 \, a^{2} b e^{\left (2 \, x\right )} - 8 \, a b^{2} e^{\left (2 \, x\right )} - a^{3} - a^{2} b + a b^{2} + b^{3}}{8 \,{\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )}{\left (a e^{\left (4 \, x\right )} + b e^{\left (4 \, x\right )} + a e^{\left (2 \, x\right )} - b e^{\left (2 \, x\right )}\right )}} \end{align*}

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

[In]

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

[Out]

-1/2*(a + b)*x/(a^3 - 3*a^2*b + 3*a*b^2 - b^3) + 2*(a^3*b + a*b^3)*log(abs(a*e^(2*x) + b*e^(2*x) + a - b))/(a^
6 - 3*a^4*b^2 + 3*a^2*b^4 - b^6) + 1/8*e^(2*x)/(a^2 + 2*a*b + b^2) + 1/8*(a^3*e^(4*x) - 3*a^2*b*e^(4*x) + 3*a*
b^2*e^(4*x) - b^3*e^(4*x) - 8*a^2*b*e^(2*x) - 8*a*b^2*e^(2*x) - a^3 - a^2*b + a*b^2 + b^3)/((a^4 - 2*a^2*b^2 +
b^4)*(a*e^(4*x) + b*e^(4*x) + a*e^(2*x) - b*e^(2*x)))