Optimal. Leaf size=47 \[ -\frac{9}{4} \cosh (a) \text{Chi}(b x)+\frac{1}{4} \cosh (3 a) \text{Chi}(3 b x)-\frac{9}{4} \sinh (a) \text{Shi}(b x)+\frac{1}{4} \sinh (3 a) \text{Shi}(3 b x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.455922, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {6742, 3303, 3298, 3301, 5448} \[ -\frac{9}{4} \cosh (a) \text{Chi}(b x)+\frac{1}{4} \cosh (3 a) \text{Chi}(3 b x)-\frac{9}{4} \sinh (a) \text{Shi}(b x)+\frac{1}{4} \sinh (3 a) \text{Shi}(3 b x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 3303
Rule 3298
Rule 3301
Rule 5448
Rubi steps
\begin{align*} \int \frac{\cosh (a+b x) \left (-2+\sinh ^2(a+b x)\right )}{x} \, dx &=\int \left (-\frac{2 \cosh (a+b x)}{x}+\frac{\cosh (a+b x) \sinh ^2(a+b x)}{x}\right ) \, dx\\ &=-\left (2 \int \frac{\cosh (a+b x)}{x} \, dx\right )+\int \frac{\cosh (a+b x) \sinh ^2(a+b x)}{x} \, dx\\ &=-\left ((2 \cosh (a)) \int \frac{\cosh (b x)}{x} \, dx\right )-(2 \sinh (a)) \int \frac{\sinh (b x)}{x} \, dx+\int \left (-\frac{\cosh (a+b x)}{4 x}+\frac{\cosh (3 a+3 b x)}{4 x}\right ) \, dx\\ &=-2 \cosh (a) \text{Chi}(b x)-2 \sinh (a) \text{Shi}(b x)-\frac{1}{4} \int \frac{\cosh (a+b x)}{x} \, dx+\frac{1}{4} \int \frac{\cosh (3 a+3 b x)}{x} \, dx\\ &=-2 \cosh (a) \text{Chi}(b x)-2 \sinh (a) \text{Shi}(b x)-\frac{1}{4} \cosh (a) \int \frac{\cosh (b x)}{x} \, dx+\frac{1}{4} \cosh (3 a) \int \frac{\cosh (3 b x)}{x} \, dx-\frac{1}{4} \sinh (a) \int \frac{\sinh (b x)}{x} \, dx+\frac{1}{4} \sinh (3 a) \int \frac{\sinh (3 b x)}{x} \, dx\\ &=-\frac{9}{4} \cosh (a) \text{Chi}(b x)+\frac{1}{4} \cosh (3 a) \text{Chi}(3 b x)-\frac{9}{4} \sinh (a) \text{Shi}(b x)+\frac{1}{4} \sinh (3 a) \text{Shi}(3 b x)\\ \end{align*}
Mathematica [A] time = 0.103917, size = 41, normalized size = 0.87 \[ \frac{1}{4} (-9 \cosh (a) \text{Chi}(b x)+\cosh (3 a) \text{Chi}(3 b x)-9 \sinh (a) \text{Shi}(b x)+\sinh (3 a) \text{Shi}(3 b x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.103, size = 47, normalized size = 1. \begin{align*} -{\frac{{{\rm e}^{-3\,a}}{\it Ei} \left ( 1,3\,bx \right ) }{8}}+{\frac{9\,{{\rm e}^{-a}}{\it Ei} \left ( 1,bx \right ) }{8}}+{\frac{9\,{{\rm e}^{a}}{\it Ei} \left ( 1,-bx \right ) }{8}}-{\frac{{{\rm e}^{3\,a}}{\it Ei} \left ( 1,-3\,bx \right ) }{8}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.30831, size = 57, normalized size = 1.21 \begin{align*} \frac{1}{8} \,{\rm Ei}\left (3 \, b x\right ) e^{\left (3 \, a\right )} - \frac{9}{8} \,{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + \frac{1}{8} \,{\rm Ei}\left (-3 \, b x\right ) e^{\left (-3 \, a\right )} - \frac{9}{8} \,{\rm Ei}\left (b x\right ) e^{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.0089, size = 204, normalized size = 4.34 \begin{align*} \frac{1}{8} \,{\left ({\rm Ei}\left (3 \, b x\right ) +{\rm Ei}\left (-3 \, b x\right )\right )} \cosh \left (3 \, a\right ) - \frac{9}{8} \,{\left ({\rm Ei}\left (b x\right ) +{\rm Ei}\left (-b x\right )\right )} \cosh \left (a\right ) + \frac{1}{8} \,{\left ({\rm Ei}\left (3 \, b x\right ) -{\rm Ei}\left (-3 \, b x\right )\right )} \sinh \left (3 \, a\right ) - \frac{9}{8} \,{\left ({\rm Ei}\left (b x\right ) -{\rm Ei}\left (-b x\right )\right )} \sinh \left (a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (\sinh ^{2}{\left (a + b x \right )} - 2\right ) \cosh{\left (a + b x \right )}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12544, size = 57, normalized size = 1.21 \begin{align*} \frac{1}{8} \,{\rm Ei}\left (3 \, b x\right ) e^{\left (3 \, a\right )} - \frac{9}{8} \,{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + \frac{1}{8} \,{\rm Ei}\left (-3 \, b x\right ) e^{\left (-3 \, a\right )} - \frac{9}{8} \,{\rm Ei}\left (b x\right ) e^{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]