Integrand size = 18, antiderivative size = 82 \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx=-\frac {c C \arctan \left (\frac {c \cosh (x)+b \sinh (x)}{\sqrt {b^2-c^2}}\right )}{\left (b^2-c^2\right )^{3/2}}-\frac {b C-A c \cosh (x)-A b \sinh (x)}{\left (b^2-c^2\right ) (b \cosh (x)+c \sinh (x))} \] Output:
-c*C*arctan((c*cosh(x)+b*sinh(x))/(b^2-c^2)^(1/2))/(b^2-c^2)^(3/2)-(b*C-A* c*cosh(x)-A*b*sinh(x))/(b^2-c^2)/(b*cosh(x)+c*sinh(x))
Time = 0.45 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.89 \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx=-\frac {b^2 \sqrt {b-c} (b+c) C+2 b^2 c \sqrt {b+c} C \arctan \left (\frac {c+b \tanh \left (\frac {x}{2}\right )}{\sqrt {b-c} \sqrt {b+c}}\right ) \cosh (x)+\left (-A (b-c)^{3/2} (b+c)^2+2 b c^2 \sqrt {b+c} C \arctan \left (\frac {c+b \tanh \left (\frac {x}{2}\right )}{\sqrt {b-c} \sqrt {b+c}}\right )\right ) \sinh (x)}{b (b-c)^{3/2} (b+c)^2 (b \cosh (x)+c \sinh (x))} \] Input:
Integrate[(A + C*Sinh[x])/(b*Cosh[x] + c*Sinh[x])^2,x]
Output:
-((b^2*Sqrt[b - c]*(b + c)*C + 2*b^2*c*Sqrt[b + c]*C*ArcTan[(c + b*Tanh[x/ 2])/(Sqrt[b - c]*Sqrt[b + c])]*Cosh[x] + (-(A*(b - c)^(3/2)*(b + c)^2) + 2 *b*c^2*Sqrt[b + c]*C*ArcTan[(c + b*Tanh[x/2])/(Sqrt[b - c]*Sqrt[b + c])])* Sinh[x])/(b*(b - c)^(3/2)*(b + c)^2*(b*Cosh[x] + c*Sinh[x])))
Result contains complex when optimal does not.
Time = 0.36 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.10, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {3042, 3633, 3042, 3553, 219}
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 {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {A-i C \sin (i x)}{(b \cos (i x)-i c \sin (i x))^2}dx\) |
\(\Big \downarrow \) 3633 |
\(\displaystyle -\frac {c C \int \frac {1}{b \cosh (x)+c \sinh (x)}dx}{b^2-c^2}-\frac {-A b \sinh (x)-A c \cosh (x)+b C}{\left (b^2-c^2\right ) (b \cosh (x)+c \sinh (x))}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {-A b \sinh (x)-A c \cosh (x)+b C}{\left (b^2-c^2\right ) (b \cosh (x)+c \sinh (x))}-\frac {c C \int \frac {1}{b \cos (i x)-i c \sin (i x)}dx}{b^2-c^2}\) |
\(\Big \downarrow \) 3553 |
\(\displaystyle -\frac {-A b \sinh (x)-A c \cosh (x)+b C}{\left (b^2-c^2\right ) (b \cosh (x)+c \sinh (x))}-\frac {i c C \int \frac {1}{b^2-c^2-(-i c \cosh (x)-i b \sinh (x))^2}d(-i c \cosh (x)-i b \sinh (x))}{b^2-c^2}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle -\frac {-A b \sinh (x)-A c \cosh (x)+b C}{\left (b^2-c^2\right ) (b \cosh (x)+c \sinh (x))}-\frac {i c C \text {arctanh}\left (\frac {-i b \sinh (x)-i c \cosh (x)}{\sqrt {b^2-c^2}}\right )}{\left (b^2-c^2\right )^{3/2}}\) |
Input:
Int[(A + C*Sinh[x])/(b*Cosh[x] + c*Sinh[x])^2,x]
Output:
((-I)*c*C*ArcTanh[((-I)*c*Cosh[x] - I*b*Sinh[x])/Sqrt[b^2 - c^2]])/(b^2 - c^2)^(3/2) - (b*C - A*c*Cosh[x] - A*b*Sinh[x])/((b^2 - c^2)*(b*Cosh[x] + c *Sinh[x]))
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x _Symbol] :> Simp[-d^(-1) Subst[Int[1/(a^2 + b^2 - x^2), x], x, b*Cos[c + d*x] - a*Sin[c + d*x]], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 + b^2, 0]
Int[((A_.) + (C_.)*sin[(d_.) + (e_.)*(x_)])/((a_.) + cos[(d_.) + (e_.)*(x_) ]*(b_.) + (c_.)*sin[(d_.) + (e_.)*(x_)])^2, x_Symbol] :> Simp[-(b*C + (a*C - c*A)*Cos[d + e*x] + b*A*Sin[d + e*x])/(e*(a^2 - b^2 - c^2)*(a + b*Cos[d + e*x] + c*Sin[d + e*x])), x] + Simp[(a*A - c*C)/(a^2 - b^2 - c^2) Int[1/( a + b*Cos[d + e*x] + c*Sin[d + e*x]), x], x] /; FreeQ[{a, b, c, d, e, A, C} , x] && NeQ[a^2 - b^2 - c^2, 0] && NeQ[a*A - c*C, 0]
Time = 7.45 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.40
method | result | size |
default | \(-\frac {2 \left (-\frac {\left (A \,b^{2}-A \,c^{2}-C b c \right ) \tanh \left (\frac {x}{2}\right )}{\left (b^{2}-c^{2}\right ) b}+\frac {b C}{b^{2}-c^{2}}\right )}{b \tanh \left (\frac {x}{2}\right )^{2}+2 c \tanh \left (\frac {x}{2}\right )+b}-\frac {2 c C \arctan \left (\frac {2 b \tanh \left (\frac {x}{2}\right )+2 c}{2 \sqrt {b^{2}-c^{2}}}\right )}{\left (b^{2}-c^{2}\right )^{\frac {3}{2}}}\) | \(115\) |
risch | \(-\frac {2 \left (b C \,{\mathrm e}^{x}+A b -c A \right )}{\left (b -c \right ) \left (b +c \right ) \left (b \,{\mathrm e}^{2 x}+c \,{\mathrm e}^{2 x}+b -c \right )}-\frac {c C \ln \left ({\mathrm e}^{x}+\frac {b -c}{\sqrt {-b^{2}+c^{2}}}\right )}{\sqrt {-b^{2}+c^{2}}\, \left (b +c \right ) \left (b -c \right )}+\frac {c C \ln \left ({\mathrm e}^{x}-\frac {b -c}{\sqrt {-b^{2}+c^{2}}}\right )}{\sqrt {-b^{2}+c^{2}}\, \left (b +c \right ) \left (b -c \right )}\) | \(144\) |
Input:
int((A+C*sinh(x))/(b*cosh(x)+c*sinh(x))^2,x,method=_RETURNVERBOSE)
Output:
-2*(-(A*b^2-A*c^2-C*b*c)/(b^2-c^2)/b*tanh(1/2*x)+b*C/(b^2-c^2))/(b*tanh(1/ 2*x)^2+2*c*tanh(1/2*x)+b)-2*c*C/(b^2-c^2)^(3/2)*arctan(1/2*(2*b*tanh(1/2*x )+2*c)/(b^2-c^2)^(1/2))
Leaf count of result is larger than twice the leaf count of optimal. 310 vs. \(2 (76) = 152\).
Time = 0.11 (sec) , antiderivative size = 679, normalized size of antiderivative = 8.28 \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx =\text {Too large to display} \] Input:
integrate((A+C*sinh(x))/(b*cosh(x)+c*sinh(x))^2,x, algorithm="fricas")
Output:
[-(2*A*b^3 - 2*A*b^2*c - 2*A*b*c^2 + 2*A*c^3 - (C*b*c - C*c^2 + (C*b*c + C *c^2)*cosh(x)^2 + 2*(C*b*c + C*c^2)*cosh(x)*sinh(x) + (C*b*c + C*c^2)*sinh (x)^2)*sqrt(-b^2 + c^2)*log(((b + c)*cosh(x)^2 + 2*(b + c)*cosh(x)*sinh(x) + (b + c)*sinh(x)^2 - 2*sqrt(-b^2 + c^2)*(cosh(x) + sinh(x)) - b + c)/((b + c)*cosh(x)^2 + 2*(b + c)*cosh(x)*sinh(x) + (b + c)*sinh(x)^2 + b - c)) + 2*(C*b^3 - C*b*c^2)*cosh(x) + 2*(C*b^3 - C*b*c^2)*sinh(x))/(b^5 - b^4*c - 2*b^3*c^2 + 2*b^2*c^3 + b*c^4 - c^5 + (b^5 + b^4*c - 2*b^3*c^2 - 2*b^2*c ^3 + b*c^4 + c^5)*cosh(x)^2 + 2*(b^5 + b^4*c - 2*b^3*c^2 - 2*b^2*c^3 + b*c ^4 + c^5)*cosh(x)*sinh(x) + (b^5 + b^4*c - 2*b^3*c^2 - 2*b^2*c^3 + b*c^4 + c^5)*sinh(x)^2), -2*(A*b^3 - A*b^2*c - A*b*c^2 + A*c^3 - (C*b*c - C*c^2 + (C*b*c + C*c^2)*cosh(x)^2 + 2*(C*b*c + C*c^2)*cosh(x)*sinh(x) + (C*b*c + C*c^2)*sinh(x)^2)*sqrt(b^2 - c^2)*arctan(sqrt(b^2 - c^2)/((b + c)*cosh(x) + (b + c)*sinh(x))) + (C*b^3 - C*b*c^2)*cosh(x) + (C*b^3 - C*b*c^2)*sinh(x ))/(b^5 - b^4*c - 2*b^3*c^2 + 2*b^2*c^3 + b*c^4 - c^5 + (b^5 + b^4*c - 2*b ^3*c^2 - 2*b^2*c^3 + b*c^4 + c^5)*cosh(x)^2 + 2*(b^5 + b^4*c - 2*b^3*c^2 - 2*b^2*c^3 + b*c^4 + c^5)*cosh(x)*sinh(x) + (b^5 + b^4*c - 2*b^3*c^2 - 2*b ^2*c^3 + b*c^4 + c^5)*sinh(x)^2)]
Timed out. \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx=\text {Timed out} \] Input:
integrate((A+C*sinh(x))/(b*cosh(x)+c*sinh(x))**2,x)
Output:
Timed out
Exception generated. \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx=\text {Exception raised: ValueError} \] Input:
integrate((A+C*sinh(x))/(b*cosh(x)+c*sinh(x))^2,x, algorithm="maxima")
Output:
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(4*c^2-4*b^2>0)', see `assume?` f or more de
Time = 0.13 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.01 \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx=-\frac {2 \, C c \arctan \left (\frac {b e^{x} + c e^{x}}{\sqrt {b^{2} - c^{2}}}\right )}{{\left (b^{2} - c^{2}\right )}^{\frac {3}{2}}} - \frac {2 \, {\left (C b e^{x} + A b - A c\right )}}{{\left (b^{2} - c^{2}\right )} {\left (b e^{\left (2 \, x\right )} + c e^{\left (2 \, x\right )} + b - c\right )}} \] Input:
integrate((A+C*sinh(x))/(b*cosh(x)+c*sinh(x))^2,x, algorithm="giac")
Output:
-2*C*c*arctan((b*e^x + c*e^x)/sqrt(b^2 - c^2))/(b^2 - c^2)^(3/2) - 2*(C*b* e^x + A*b - A*c)/((b^2 - c^2)*(b*e^(2*x) + c*e^(2*x) + b - c))
Time = 1.15 (sec) , antiderivative size = 168, normalized size of antiderivative = 2.05 \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx=\frac {C\,c\,\ln \left (\frac {2\,C\,c}{{\left (b+c\right )}^{5/2}\,\sqrt {c-b}}-\frac {2\,C\,c\,{\mathrm {e}}^x}{-b^3-b^2\,c+b\,c^2+c^3}\right )}{{\left (b+c\right )}^{3/2}\,{\left (c-b\right )}^{3/2}}-\frac {C\,c\,\ln \left (-\frac {2\,C\,c}{{\left (b+c\right )}^{5/2}\,\sqrt {c-b}}-\frac {2\,C\,c\,{\mathrm {e}}^x}{-b^3-b^2\,c+b\,c^2+c^3}\right )}{{\left (b+c\right )}^{3/2}\,{\left (c-b\right )}^{3/2}}-\frac {\frac {2\,A}{b+c}+\frac {2\,C\,b\,{\mathrm {e}}^x}{\left (b+c\right )\,\left (b-c\right )}}{b-c+{\mathrm {e}}^{2\,x}\,\left (b+c\right )} \] Input:
int((A + C*sinh(x))/(b*cosh(x) + c*sinh(x))^2,x)
Output:
(C*c*log((2*C*c)/((b + c)^(5/2)*(c - b)^(1/2)) - (2*C*c*exp(x))/(b*c^2 - b ^2*c - b^3 + c^3)))/((b + c)^(3/2)*(c - b)^(3/2)) - (C*c*log(- (2*C*c)/((b + c)^(5/2)*(c - b)^(1/2)) - (2*C*c*exp(x))/(b*c^2 - b^2*c - b^3 + c^3)))/ ((b + c)^(3/2)*(c - b)^(3/2)) - ((2*A)/(b + c) + (2*C*b*exp(x))/((b + c)*( b - c)))/(b - c + exp(2*x)*(b + c))
Time = 0.21 (sec) , antiderivative size = 919, normalized size of antiderivative = 11.21 \[ \int \frac {A+C \sinh (x)}{(b \cosh (x)+c \sinh (x))^2} \, dx =\text {Too large to display} \] Input:
int((A+C*sinh(x))/(b*cosh(x)+c*sinh(x))^2,x)
Output:
( - 2*e**(2*x)*sqrt(b**2 - c**2)*atan((e**x*b + e**x*c)/sqrt(b**2 - c**2)) *cosh(x)*b**3*c**2 - 2*e**(2*x)*sqrt(b**2 - c**2)*atan((e**x*b + e**x*c)/s qrt(b**2 - c**2))*cosh(x)*b**2*c**3 - 2*sqrt(b**2 - c**2)*atan((e**x*b + e **x*c)/sqrt(b**2 - c**2))*cosh(x)*b**3*c**2 + 2*sqrt(b**2 - c**2)*atan((e* *x*b + e**x*c)/sqrt(b**2 - c**2))*cosh(x)*b**2*c**3 - 2*e**(2*x)*sqrt(b**2 - c**2)*atan((e**x*b + e**x*c)/sqrt(b**2 - c**2))*sinh(x)*b**2*c**3 - 2*e **(2*x)*sqrt(b**2 - c**2)*atan((e**x*b + e**x*c)/sqrt(b**2 - c**2))*sinh(x )*b*c**4 - 2*sqrt(b**2 - c**2)*atan((e**x*b + e**x*c)/sqrt(b**2 - c**2))*s inh(x)*b**2*c**3 + 2*sqrt(b**2 - c**2)*atan((e**x*b + e**x*c)/sqrt(b**2 - c**2))*sinh(x)*b*c**4 + 2*e**(2*x)*cosh(x)*a*b**5 + 2*e**(2*x)*cosh(x)*a*b **4*c - 2*e**(2*x)*cosh(x)*a*b**3*c**2 - 2*e**(2*x)*cosh(x)*a*b**2*c**3 - 2*e**x*cosh(x)*b**3*c**3 + 2*e**x*cosh(x)*b*c**5 + 2*e**(2*x)*sinh(x)*a*b* *4*c + 2*e**(2*x)*sinh(x)*a*b**3*c**2 - 2*e**(2*x)*sinh(x)*a*b**2*c**3 - 2 *e**(2*x)*sinh(x)*a*b*c**4 - e**(2*x)*b**5*c - e**(2*x)*b**4*c**2 + 2*e**( 2*x)*b**3*c**3 + 2*e**(2*x)*b**2*c**4 - e**(2*x)*b*c**5 - e**(2*x)*c**6 - 2*e**x*sinh(x)*b**2*c**4 + 2*e**x*sinh(x)*c**6 - b**5*c + b**4*c**2 + 2*b* *3*c**3 - 2*b**2*c**4 - b*c**5 + c**6)/(b*(e**(2*x)*cosh(x)*b**6 + e**(2*x )*cosh(x)*b**5*c - 2*e**(2*x)*cosh(x)*b**4*c**2 - 2*e**(2*x)*cosh(x)*b**3* c**3 + e**(2*x)*cosh(x)*b**2*c**4 + e**(2*x)*cosh(x)*b*c**5 + cosh(x)*b**6 - cosh(x)*b**5*c - 2*cosh(x)*b**4*c**2 + 2*cosh(x)*b**3*c**3 + cosh(x)...