Optimal. Leaf size=118 \[ -\frac {2 \tan (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{f^3}+\frac {2 x \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{f^2}+\frac {x^2 \tan (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {4604, 3296, 2637} \[ \frac {2 x \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{f^2}-\frac {2 \tan (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{f^3}+\frac {x^2 \tan (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 3296
Rule 4604
Rubi steps
\begin {align*} \int x^2 \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \, dx &=\left (\sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}\right ) \int x^2 \cos (e+f x) \, dx\\ &=\frac {x^2 \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{f}-\frac {\left (2 \sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}\right ) \int x \sin (e+f x) \, dx}{f}\\ &=\frac {2 x \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{f^2}+\frac {x^2 \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{f}-\frac {\left (2 \sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}\right ) \int \cos (e+f x) \, dx}{f^2}\\ &=\frac {2 x \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{f^2}-\frac {2 \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{f^3}+\frac {x^2 \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.33, size = 54, normalized size = 0.46 \[ \frac {\left (\left (f^2 x^2-2\right ) \tan (e+f x)+2 f x\right ) \sqrt {a-a \sin (e+f x)} \sqrt {c (\sin (e+f x)+1)}}{f^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.18, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {c +c \sin \left (f x +e \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-a \sin \left (f x + e\right ) + a} \sqrt {c \sin \left (f x + e\right ) + c} x^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.81, size = 86, normalized size = 0.73 \[ \frac {\sqrt {-a\,\left (\sin \left (e+f\,x\right )-1\right )}\,\sqrt {c\,\left (\sin \left (e+f\,x\right )+1\right )}\,\left (2\,f\,x-2\,\sin \left (2\,e+2\,f\,x\right )+2\,f\,x\,\left (2\,{\cos \left (e+f\,x\right )}^2-1\right )+f^2\,x^2\,\sin \left (2\,e+2\,f\,x\right )\right )}{2\,f^3\,{\cos \left (e+f\,x\right )}^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} \sqrt {c \left (\sin {\left (e + f x \right )} + 1\right )} \sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________