Optimal. Leaf size=154 \[ \frac {\cos (2 a+2 b x)}{4 b^2}-\frac {\text {CosIntegral}(2 a+2 b x)}{2 b^2}+\frac {\log (a+b x)}{2 b^2}-\frac {a \cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {\sin (a+b x) \text {Si}(a+b x)}{b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}+\frac {a \text {Si}(2 a+2 b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 154, normalized size of antiderivative = 1.00, number of steps
used = 17, number of rules used = 14, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.400, Rules used =
{6644, 6648, 4669, 6873, 6874, 2718, 3380, 6652, 3393, 3383, 6640, 6646, 4491, 12}
\begin {gather*} -\frac {\text {CosIntegral}(2 a+2 b x)}{2 b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {a \text {Si}(2 a+2 b x)}{b^2}-\frac {\text {Si}(a+b x) \sin (a+b x)}{b^2}-\frac {a \text {Si}(a+b x) \cos (a+b x)}{b^2}+\frac {\log (a+b x)}{2 b^2}+\frac {\cos (2 a+2 b x)}{4 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}+\frac {x \text {Si}(a+b x) \cos (a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2718
Rule 3380
Rule 3383
Rule 3393
Rule 4491
Rule 4669
Rule 6640
Rule 6644
Rule 6646
Rule 6648
Rule 6652
Rule 6873
Rule 6874
Rubi steps
\begin {align*} \int x \text {Si}(a+b x)^2 \, dx &=\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}-\frac {a \int \text {Si}(a+b x)^2 \, dx}{2 b}-\int x \sin (a+b x) \text {Si}(a+b x) \, dx\\ &=\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}-\frac {\int \cos (a+b x) \text {Si}(a+b x) \, dx}{b}+\frac {a \int \sin (a+b x) \text {Si}(a+b x) \, dx}{b}-\int \frac {x \cos (a+b x) \sin (a+b x)}{a+b x} \, dx\\ &=-\frac {a \cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {\sin (a+b x) \text {Si}(a+b x)}{b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}-\frac {1}{2} \int \frac {x \sin (2 (a+b x))}{a+b x} \, dx+\frac {\int \frac {\sin ^2(a+b x)}{a+b x} \, dx}{b}+\frac {a \int \frac {\cos (a+b x) \sin (a+b x)}{a+b x} \, dx}{b}\\ &=-\frac {a \cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {\sin (a+b x) \text {Si}(a+b x)}{b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}-\frac {1}{2} \int \frac {x \sin (2 a+2 b x)}{a+b x} \, dx+\frac {\int \left (\frac {1}{2 (a+b x)}-\frac {\cos (2 a+2 b x)}{2 (a+b x)}\right ) \, dx}{b}+\frac {a \int \frac {\sin (2 a+2 b x)}{2 (a+b x)} \, dx}{b}\\ &=\frac {\log (a+b x)}{2 b^2}-\frac {a \cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {\sin (a+b x) \text {Si}(a+b x)}{b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}-\frac {1}{2} \int \left (\frac {\sin (2 a+2 b x)}{b}+\frac {a \sin (2 a+2 b x)}{b (-a-b x)}\right ) \, dx-\frac {\int \frac {\cos (2 a+2 b x)}{a+b x} \, dx}{2 b}+\frac {a \int \frac {\sin (2 a+2 b x)}{a+b x} \, dx}{2 b}\\ &=-\frac {\text {Ci}(2 a+2 b x)}{2 b^2}+\frac {\log (a+b x)}{2 b^2}-\frac {a \cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {\sin (a+b x) \text {Si}(a+b x)}{b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}+\frac {a \text {Si}(2 a+2 b x)}{2 b^2}-\frac {\int \sin (2 a+2 b x) \, dx}{2 b}-\frac {a \int \frac {\sin (2 a+2 b x)}{-a-b x} \, dx}{2 b}\\ &=\frac {\cos (2 a+2 b x)}{4 b^2}-\frac {\text {Ci}(2 a+2 b x)}{2 b^2}+\frac {\log (a+b x)}{2 b^2}-\frac {a \cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \cos (a+b x) \text {Si}(a+b x)}{b}-\frac {\sin (a+b x) \text {Si}(a+b x)}{b^2}-\frac {a (a+b x) \text {Si}(a+b x)^2}{2 b^2}+\frac {x (a+b x) \text {Si}(a+b x)^2}{2 b}+\frac {a \text {Si}(2 a+2 b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 95, normalized size = 0.62 \begin {gather*} \frac {\cos (2 (a+b x))-2 \text {CosIntegral}(2 (a+b x))+2 \log (a+b x)-4 ((a-b x) \cos (a+b x)+\sin (a+b x)) \text {Si}(a+b x)-2 \left (a^2-b^2 x^2\right ) \text {Si}(a+b x)^2+4 a \text {Si}(2 (a+b x))}{4 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.57, size = 111, normalized size = 0.72
method | result | size |
derivativedivides | \(\frac {\sinIntegral \left (b x +a \right )^{2} \left (-a \left (b x +a \right )+\frac {\left (b x +a \right )^{2}}{2}\right )-2 \sinIntegral \left (b x +a \right ) \left (a \cos \left (b x +a \right )+\frac {\sin \left (b x +a \right )}{2}-\frac {\left (b x +a \right ) \cos \left (b x +a \right )}{2}\right )+a \sinIntegral \left (2 b x +2 a \right )+\frac {\ln \left (b x +a \right )}{2}-\frac {\cosineIntegral \left (2 b x +2 a \right )}{2}+\frac {\left (\cos ^{2}\left (b x +a \right )\right )}{2}}{b^{2}}\) | \(111\) |
default | \(\frac {\sinIntegral \left (b x +a \right )^{2} \left (-a \left (b x +a \right )+\frac {\left (b x +a \right )^{2}}{2}\right )-2 \sinIntegral \left (b x +a \right ) \left (a \cos \left (b x +a \right )+\frac {\sin \left (b x +a \right )}{2}-\frac {\left (b x +a \right ) \cos \left (b x +a \right )}{2}\right )+a \sinIntegral \left (2 b x +2 a \right )+\frac {\ln \left (b x +a \right )}{2}-\frac {\cosineIntegral \left (2 b x +2 a \right )}{2}+\frac {\left (\cos ^{2}\left (b x +a \right )\right )}{2}}{b^{2}}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 116, normalized size = 0.75 \begin {gather*} \frac {4 \, {\left (b x - a\right )} \cos \left (b x + a\right ) \operatorname {Si}\left (b x + a\right ) + 2 \, {\left (b^{2} x^{2} - a^{2}\right )} \operatorname {Si}\left (b x + a\right )^{2} + 2 \, \cos \left (b x + a\right )^{2} + 4 \, a \operatorname {Si}\left (2 \, b x + 2 \, a\right ) - 4 \, \sin \left (b x + a\right ) \operatorname {Si}\left (b x + a\right ) - \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) - \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) + 2 \, \log \left (b x + a\right )}{4 \, b^{2}} \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 x \operatorname {Si}^{2}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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 x\,{\mathrm {sinint}\left (a+b\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________