Integrand size = 15, antiderivative size = 25 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=B \log (i+\sinh (x))-\frac {A \cosh (x)}{1-i \sinh (x)} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {4486, 2727, 2746, 31} \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=B \log (\sinh (x)+i)-\frac {A \cosh (x)}{1-i \sinh (x)} \]
[In]
[Out]
Rule 31
Rule 2727
Rule 2746
Rule 4486
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {i A}{-1+i \sinh (x)}+\frac {i B \cosh (x)}{-1+i \sinh (x)}\right ) \, dx \\ & = (i A) \int \frac {1}{-1+i \sinh (x)} \, dx+(i B) \int \frac {\cosh (x)}{-1+i \sinh (x)} \, dx \\ & = -\frac {A \cosh (x)}{1-i \sinh (x)}+B \text {Subst}\left (\int \frac {1}{-1+x} \, dx,x,i \sinh (x)\right ) \\ & = B \log (i+\sinh (x))-\frac {A \cosh (x)}{1-i \sinh (x)} \\ \end{align*}
Time = 0.13 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.92 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=-2 i B \arctan \left (\tanh \left (\frac {x}{2}\right )\right )+B \log (\cosh (x))-\frac {2 i A \sinh \left (\frac {x}{2}\right )}{\cosh \left (\frac {x}{2}\right )-i \sinh \left (\frac {x}{2}\right )} \]
[In]
[Out]
Time = 1.13 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.92
method | result | size |
parts | \(-\frac {2 i A}{\tanh \left (\frac {x}{2}\right )+i}+B \ln \left (i+\sinh \left (x \right )\right )\) | \(23\) |
risch | \(-B x -\frac {2 A}{{\mathrm e}^{x}+i}+2 B \ln \left ({\mathrm e}^{x}+i\right )\) | \(25\) |
default | \(2 B \ln \left (\tanh \left (\frac {x}{2}\right )+i\right )-\frac {2 i A}{\tanh \left (\frac {x}{2}\right )+i}-B \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )-B \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )\) | \(46\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.44 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=-\frac {B x e^{x} + i \, B x - 2 \, {\left (B e^{x} + i \, B\right )} \log \left (e^{x} + i\right ) + 2 \, A}{e^{x} + i} \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.80 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=- \frac {2 A}{e^{x} + i} - B x + 2 B \log {\left (e^{x} + i \right )} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.76 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=B \log \left (\sinh \left (x\right ) + i\right ) - \frac {2 \, A}{e^{\left (-x\right )} - i} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.88 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=-B x + 2 \, B \log \left (e^{x} + i\right ) - \frac {2 \, A}{e^{x} + i} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.96 \[ \int \frac {A+B \cosh (x)}{i+\sinh (x)} \, dx=-B\,x-\frac {2\,A}{{\mathrm {e}}^x+1{}\mathrm {i}}+2\,B\,\ln \left ({\mathrm {e}}^x+1{}\mathrm {i}\right ) \]
[In]
[Out]