Optimal. Leaf size=123 \[ -f \sin (e) \text{CosIntegral}(f x) \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c \sin (e+f x)+c}-f \cos (e) \text{Si}(f x) \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c \sin (e+f x)+c}-\frac{\sqrt{a-a \sin (e+f x)} \sqrt{c \sin (e+f x)+c}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.198508, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.152, Rules used = {4604, 3297, 3303, 3299, 3302} \[ -f \sin (e) \text{CosIntegral}(f x) \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c \sin (e+f x)+c}-f \cos (e) \text{Si}(f x) \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c \sin (e+f x)+c}-\frac{\sqrt{a-a \sin (e+f x)} \sqrt{c \sin (e+f x)+c}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4604
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{\sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}}{x^2} \, dx &=\left (\sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}\right ) \int \frac{\cos (e+f x)}{x^2} \, dx\\ &=-\frac{\sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}}{x}-\left (f \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}\right ) \int \frac{\sin (e+f x)}{x} \, dx\\ &=-\frac{\sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}}{x}-\left (f \cos (e) \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}\right ) \int \frac{\sin (f x)}{x} \, dx-\left (f \sec (e+f x) \sin (e) \sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}\right ) \int \frac{\cos (f x)}{x} \, dx\\ &=-\frac{\sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}}{x}-f \text{Ci}(f x) \sec (e+f x) \sin (e) \sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)}-f \cos (e) \sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c+c \sin (e+f x)} \text{Si}(f x)\\ \end{align*}
Mathematica [A] time = 0.247739, size = 65, normalized size = 0.53 \[ -\frac{\sec (e+f x) \sqrt{a-a \sin (e+f x)} \sqrt{c (\sin (e+f x)+1)} (f x \sin (e) \text{CosIntegral}(f x)+f x \cos (e) \text{Si}(f x)+\cos (e+f x))}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.082, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2}}\sqrt{a-a\sin \left ( fx+e \right ) }\sqrt{c+c\sin \left ( fx+e \right ) }}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-a \sin \left (f x + e\right ) + a} \sqrt{c \sin \left (f x + e\right ) + c}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{c \left (\sin{\left (e + f x \right )} + 1\right )} \sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-a \sin \left (f x + e\right ) + a} \sqrt{c \sin \left (f x + e\right ) + c}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]