Optimal. Leaf size=45 \[ \frac {a (c+d x)^2}{2 d}-\frac {b (c+d x) \cos (e+f x)}{f}+\frac {b d \sin (e+f x)}{f^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {3317, 3296, 2637} \[ \frac {a (c+d x)^2}{2 d}-\frac {b (c+d x) \cos (e+f x)}{f}+\frac {b d \sin (e+f x)}{f^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 3296
Rule 3317
Rubi steps
\begin {align*} \int (c+d x) (a+b \sin (e+f x)) \, dx &=\int (a (c+d x)+b (c+d x) \sin (e+f x)) \, dx\\ &=\frac {a (c+d x)^2}{2 d}+b \int (c+d x) \sin (e+f x) \, dx\\ &=\frac {a (c+d x)^2}{2 d}-\frac {b (c+d x) \cos (e+f x)}{f}+\frac {(b d) \int \cos (e+f x) \, dx}{f}\\ &=\frac {a (c+d x)^2}{2 d}-\frac {b (c+d x) \cos (e+f x)}{f}+\frac {b d \sin (e+f x)}{f^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 43, normalized size = 0.96 \[ \frac {1}{2} a x (2 c+d x)-\frac {b (c+d x) \cos (e+f x)}{f}+\frac {b d \sin (e+f x)}{f^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.69, size = 51, normalized size = 1.13 \[ \frac {a d f^{2} x^{2} + 2 \, a c f^{2} x + 2 \, b d \sin \left (f x + e\right ) - 2 \, {\left (b d f x + b c f\right )} \cos \left (f x + e\right )}{2 \, f^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.74, size = 47, normalized size = 1.04 \[ \frac {1}{2} \, a d x^{2} + a c x + \frac {b d \sin \left (f x + e\right )}{f^{2}} - \frac {{\left (b d f x + b c f\right )} \cos \left (f x + e\right )}{f^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 90, normalized size = 2.00 \[ \frac {\frac {a d \left (f x +e \right )^{2}}{2 f}+a c \left (f x +e \right )-\frac {a d e \left (f x +e \right )}{f}+\frac {b d \left (\sin \left (f x +e \right )-\left (f x +e \right ) \cos \left (f x +e \right )\right )}{f}-c b \cos \left (f x +e \right )+\frac {b d e \cos \left (f x +e \right )}{f}}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 93, normalized size = 2.07 \[ \frac {2 \, {\left (f x + e\right )} a c + \frac {{\left (f x + e\right )}^{2} a d}{f} - \frac {2 \, {\left (f x + e\right )} a d e}{f} - 2 \, b c \cos \left (f x + e\right ) + \frac {2 \, b d e \cos \left (f x + e\right )}{f} - \frac {2 \, {\left ({\left (f x + e\right )} \cos \left (f x + e\right ) - \sin \left (f x + e\right )\right )} b d}{f}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.63, size = 50, normalized size = 1.11 \[ a\,c\,x-\frac {f\,\left (b\,c\,\cos \left (e+f\,x\right )+b\,d\,x\,\cos \left (e+f\,x\right )\right )-b\,d\,\sin \left (e+f\,x\right )}{f^2}+\frac {a\,d\,x^2}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.31, size = 68, normalized size = 1.51 \[ \begin {cases} a c x + \frac {a d x^{2}}{2} - \frac {b c \cos {\left (e + f x \right )}}{f} - \frac {b d x \cos {\left (e + f x \right )}}{f} + \frac {b d \sin {\left (e + f x \right )}}{f^{2}} & \text {for}\: f \neq 0 \\\left (a + b \sin {\relax (e )}\right ) \left (c x + \frac {d x^{2}}{2}\right ) & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________