Optimal. Leaf size=25 \[ \frac {x}{2}-\frac {\sin (a+b x) \cos (a+b x)}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2635, 8} \[ \frac {x}{2}-\frac {\sin (a+b x) \cos (a+b x)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rubi steps
\begin {align*} \int \sin ^2(a+b x) \, dx &=-\frac {\cos (a+b x) \sin (a+b x)}{2 b}+\frac {\int 1 \, dx}{2}\\ &=\frac {x}{2}-\frac {\cos (a+b x) \sin (a+b x)}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 23, normalized size = 0.92 \[ -\frac {\sin (2 (a+b x))-2 (a+b x)}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 23, normalized size = 0.92 \[ \frac {b x - \cos \left (b x + a\right ) \sin \left (b x + a\right )}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.20, size = 18, normalized size = 0.72 \[ \frac {1}{2} \, x - \frac {\sin \left (2 \, b x + 2 \, a\right )}{4 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 27, normalized size = 1.08 \[ \frac {\frac {b x}{2}-\frac {\cos \left (b x +a \right ) \sin \left (b x +a \right )}{2}+\frac {a}{2}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 24, normalized size = 0.96 \[ \frac {2 \, b x + 2 \, a - \sin \left (2 \, b x + 2 \, a\right )}{4 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.21, size = 18, normalized size = 0.72 \[ \frac {x}{2}-\frac {\sin \left (2\,a+2\,b\,x\right )}{4\,b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.23, size = 46, normalized size = 1.84 \[ \begin {cases} \frac {x \sin ^{2}{\left (a + b x \right )}}{2} + \frac {x \cos ^{2}{\left (a + b x \right )}}{2} - \frac {\sin {\left (a + b x \right )} \cos {\left (a + b x \right )}}{2 b} & \text {for}\: b \neq 0 \\x \sin ^{2}{\relax (a )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________