Optimal. Leaf size=89 \[ \frac {3 \cos (a) \text {Ci}(b x)}{4 b}-\frac {\cos (3 a) \text {Ci}(3 b x)}{12 b}-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {3 \sin (a) \text {Si}(b x)}{4 b}+\frac {\sin (3 a) \text {Si}(3 b x)}{12 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 8, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.727, Rules used = {2713, 2634,
12, 6874, 3384, 3380, 3383, 3393} \begin {gather*} \frac {3 \cos (a) \text {CosIntegral}(b x)}{4 b}-\frac {\cos (3 a) \text {CosIntegral}(3 b x)}{12 b}-\frac {3 \sin (a) \text {Si}(b x)}{4 b}+\frac {\sin (3 a) \text {Si}(3 b x)}{12 b}+\frac {\log (x) \cos ^3(a+b x)}{3 b}-\frac {\log (x) \cos (a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2634
Rule 2713
Rule 3380
Rule 3383
Rule 3384
Rule 3393
Rule 6874
Rubi steps
\begin {align*} \int \log (x) \sin ^3(a+b x) \, dx &=-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\int \frac {\cos (a+b x) \left (-3+\cos ^2(a+b x)\right )}{3 b x} \, dx\\ &=-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {\int \frac {\cos (a+b x) \left (-3+\cos ^2(a+b x)\right )}{x} \, dx}{3 b}\\ &=-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {\int \left (-\frac {3 \cos (a+b x)}{x}+\frac {\cos ^3(a+b x)}{x}\right ) \, dx}{3 b}\\ &=-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {\int \frac {\cos ^3(a+b x)}{x} \, dx}{3 b}+\frac {\int \frac {\cos (a+b x)}{x} \, dx}{b}\\ &=-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {\int \left (\frac {3 \cos (a+b x)}{4 x}+\frac {\cos (3 a+3 b x)}{4 x}\right ) \, dx}{3 b}+\frac {\cos (a) \int \frac {\cos (b x)}{x} \, dx}{b}-\frac {\sin (a) \int \frac {\sin (b x)}{x} \, dx}{b}\\ &=\frac {\cos (a) \text {Ci}(b x)}{b}-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {\sin (a) \text {Si}(b x)}{b}-\frac {\int \frac {\cos (3 a+3 b x)}{x} \, dx}{12 b}-\frac {\int \frac {\cos (a+b x)}{x} \, dx}{4 b}\\ &=\frac {\cos (a) \text {Ci}(b x)}{b}-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {\sin (a) \text {Si}(b x)}{b}-\frac {\cos (a) \int \frac {\cos (b x)}{x} \, dx}{4 b}-\frac {\cos (3 a) \int \frac {\cos (3 b x)}{x} \, dx}{12 b}+\frac {\sin (a) \int \frac {\sin (b x)}{x} \, dx}{4 b}+\frac {\sin (3 a) \int \frac {\sin (3 b x)}{x} \, dx}{12 b}\\ &=\frac {3 \cos (a) \text {Ci}(b x)}{4 b}-\frac {\cos (3 a) \text {Ci}(3 b x)}{12 b}-\frac {\cos (a+b x) \log (x)}{b}+\frac {\cos ^3(a+b x) \log (x)}{3 b}-\frac {3 \sin (a) \text {Si}(b x)}{4 b}+\frac {\sin (3 a) \text {Si}(3 b x)}{12 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 66, normalized size = 0.74 \begin {gather*} \frac {9 \cos (a) \text {Ci}(b x)-\cos (3 a) \text {Ci}(3 b x)-9 \cos (a+b x) \log (x)+\cos (3 (a+b x)) \log (x)-9 \sin (a) \text {Si}(b x)+\sin (3 a) \text {Si}(3 b x)}{12 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.09, size = 162, normalized size = 1.82
method | result | size |
risch | \(-\frac {3 \cos \left (b x +a \right ) \ln \left (x \right )}{4 b}+\frac {\ln \left (x \right ) \cos \left (3 b x +3 a \right )}{12 b}-\frac {i {\mathrm e}^{-3 i a} \pi \,\mathrm {csgn}\left (b x \right )}{24 b}+\frac {i {\mathrm e}^{-3 i a} \sinIntegral \left (3 b x \right )}{12 b}+\frac {{\mathrm e}^{-3 i a} \expIntegral \left (1, -3 i b x \right )}{24 b}+\frac {3 i {\mathrm e}^{-i a} \pi \,\mathrm {csgn}\left (b x \right )}{8 b}-\frac {3 i {\mathrm e}^{-i a} \sinIntegral \left (b x \right )}{4 b}-\frac {3 \,{\mathrm e}^{-i a} \expIntegral \left (1, -i b x \right )}{8 b}-\frac {3 \,{\mathrm e}^{i a} \expIntegral \left (1, -i b x \right )}{8 b}+\frac {{\mathrm e}^{3 i a} \expIntegral \left (1, -3 i b x \right )}{24 b}\) | \(162\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.34, size = 110, normalized size = 1.24 \begin {gather*} \frac {{\left (\cos \left (b x + a\right )^{3} - 3 \, \cos \left (b x + a\right )\right )} \log \left (x\right )}{3 \, b} + \frac {{\left (E_{1}\left (3 i \, b x\right ) + E_{1}\left (-3 i \, b x\right )\right )} \cos \left (3 \, a\right ) - 9 \, {\left (E_{1}\left (i \, b x\right ) + E_{1}\left (-i \, b x\right )\right )} \cos \left (a\right ) - {\left (i \, E_{1}\left (3 i \, b x\right ) - i \, E_{1}\left (-3 i \, b x\right )\right )} \sin \left (3 \, a\right ) + 9 \, {\left (i \, E_{1}\left (i \, b x\right ) - i \, E_{1}\left (-i \, b x\right )\right )} \sin \left (a\right )}{24 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 76, normalized size = 0.85 \begin {gather*} -\frac {{\left (\operatorname {Ci}\left (3 \, b x\right ) + \operatorname {Ci}\left (-3 \, b x\right )\right )} \cos \left (3 \, a\right ) - 9 \, {\left (\operatorname {Ci}\left (b x\right ) + \operatorname {Ci}\left (-b x\right )\right )} \cos \left (a\right ) - 8 \, {\left (\cos \left (b x + a\right )^{3} - 3 \, \cos \left (b x + a\right )\right )} \log \left (x\right ) - 2 \, \sin \left (3 \, a\right ) \operatorname {Si}\left (3 \, b x\right ) + 18 \, \sin \left (a\right ) \operatorname {Si}\left (b x\right )}{24 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \log {\left (x \right )} \sin ^{3}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 3.84, size = 454, normalized size = 5.10 \begin {gather*} \frac {1}{3} \, {\left (\frac {\cos \left (b x + a\right )^{3}}{b} - \frac {3 \, \cos \left (b x + a\right )}{b}\right )} \log \left (x\right ) + \frac {\Re \left ( \operatorname {Ci}\left (3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} - 9 \, \Re \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} - 9 \, \Re \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} + \Re \left ( \operatorname {Ci}\left (-3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} - 18 \, \Im \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right ) + 18 \, \Im \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right ) - 36 \, \operatorname {Si}\left (b x\right ) \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right ) + 2 \, \Im \left ( \operatorname {Ci}\left (3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right ) \tan \left (\frac {1}{2} \, a\right )^{2} - 2 \, \Im \left ( \operatorname {Ci}\left (-3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right ) \tan \left (\frac {1}{2} \, a\right )^{2} + 4 \, \operatorname {Si}\left (3 \, b x\right ) \tan \left (\frac {3}{2} \, a\right ) \tan \left (\frac {1}{2} \, a\right )^{2} + \Re \left ( \operatorname {Ci}\left (3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} + 9 \, \Re \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} + 9 \, \Re \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} + \Re \left ( \operatorname {Ci}\left (-3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right )^{2} - \Re \left ( \operatorname {Ci}\left (3 \, b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} - 9 \, \Re \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} - 9 \, \Re \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} - \Re \left ( \operatorname {Ci}\left (-3 \, b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, \Im \left ( \operatorname {Ci}\left (3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right ) - 2 \, \Im \left ( \operatorname {Ci}\left (-3 \, b x\right ) \right ) \tan \left (\frac {3}{2} \, a\right ) + 4 \, \operatorname {Si}\left (3 \, b x\right ) \tan \left (\frac {3}{2} \, a\right ) - 18 \, \Im \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right ) + 18 \, \Im \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right ) - 36 \, \operatorname {Si}\left (b x\right ) \tan \left (\frac {1}{2} \, a\right ) - \Re \left ( \operatorname {Ci}\left (3 \, b x\right ) \right ) + 9 \, \Re \left ( \operatorname {Ci}\left (b x\right ) \right ) + 9 \, \Re \left ( \operatorname {Ci}\left (-b x\right ) \right ) - \Re \left ( \operatorname {Ci}\left (-3 \, b x\right ) \right )}{24 \, {\left (b \tan \left (\frac {3}{2} \, a\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} + b \tan \left (\frac {3}{2} \, a\right )^{2} + b \tan \left (\frac {1}{2} \, a\right )^{2} + b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\sin \left (a+b\,x\right )}^3\,\ln \left (x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________