3.170 \(\int \frac {\sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{x^3} \, dx\)
Optimal. Leaf size=176 \[ -\frac {1}{2} f^2 \cos (e) \text {Ci}(f x) \sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}+\frac {1}{2} f^2 \sin (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}}{2 x^2}+\frac {f \tan (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{2 x} \]
[Out]
-1/2*(a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)/x^2-1/2*f^2*Ci(f*x)*cos(e)*sec(f*x+e)*(a-a*sin(f*x+e))^(1/2
)*(c+c*sin(f*x+e))^(1/2)+1/2*f^2*sec(f*x+e)*Si(f*x)*sin(e)*(a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)+1/2*f
*(a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)*tan(f*x+e)/x
________________________________________________________________________________________
Rubi [A] time = 0.23, antiderivative size = 176, normalized size of antiderivative = 1.00,
number of steps used = 6, 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} \[ -\frac {1}{2} f^2 \cos (e) \text {CosIntegral}(f x) \sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}+\frac {1}{2} f^2 \sin (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}}{2 x^2}+\frac {f \tan (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c \sin (e+f x)+c}}{2 x} \]
Antiderivative was successfully verified.
[In]
Int[(Sqrt[a - a*Sin[e + f*x]]*Sqrt[c + c*Sin[e + f*x]])/x^3,x]
[Out]
-(Sqrt[a - a*Sin[e + f*x]]*Sqrt[c + c*Sin[e + f*x]])/(2*x^2) - (f^2*Cos[e]*CosIntegral[f*x]*Sec[e + f*x]*Sqrt[
a - a*Sin[e + f*x]]*Sqrt[c + c*Sin[e + f*x]])/2 + (f^2*Sec[e + f*x]*Sin[e]*Sqrt[a - a*Sin[e + f*x]]*Sqrt[c + c
*Sin[e + f*x]]*SinIntegral[f*x])/2 + (f*Sqrt[a - a*Sin[e + f*x]]*Sqrt[c + c*Sin[e + f*x]]*Tan[e + f*x])/(2*x)
Rule 3297
Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[((c + d*x)^(m + 1)*Sin[e + f*x])/(d*(
m + 1)), x] - Dist[f/(d*(m + 1)), Int[(c + d*x)^(m + 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && LtQ[
m, -1]
Rule 3299
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
e, f}, x] && EqQ[d*e - c*f, 0]
Rule 3302
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]
Rule 3303
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]
Rule 4604
Int[((g_.) + (h_.)*(x_))^(p_.)*((a_) + (b_.)*Sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*Sin[(e_.) + (f_.)*(x_
)])^(n_), x_Symbol] :> Dist[(a^IntPart[m]*c^IntPart[m]*(a + b*Sin[e + f*x])^FracPart[m]*(c + d*Sin[e + f*x])^F
racPart[m])/Cos[e + f*x]^(2*FracPart[m]), Int[(g + h*x)^p*Cos[e + f*x]^(2*m)*(c + d*Sin[e + f*x])^(n - m), x],
x] /; FreeQ[{a, b, c, d, e, f, g, h}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[p] && IntegerQ
[2*m] && IGeQ[n - m, 0]
Rubi steps
\begin {align*} \int \frac {\sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{x^3} \, 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^3} \, dx\\ &=-\frac {\sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{2 x^2}-\frac {1}{2} \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^2} \, dx\\ &=-\frac {\sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{2 x^2}+\frac {f \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{2 x}-\frac {1}{2} \left (f^2 \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} \, dx\\ &=-\frac {\sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{2 x^2}+\frac {f \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{2 x}-\frac {1}{2} \left (f^2 \cos (e) \sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}\right ) \int \frac {\cos (f x)}{x} \, dx+\frac {1}{2} \left (f^2 \sec (e+f x) \sin (e) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}\right ) \int \frac {\sin (f x)}{x} \, dx\\ &=-\frac {\sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}}{2 x^2}-\frac {1}{2} f^2 \cos (e) \text {Ci}(f x) \sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)}+\frac {1}{2} f^2 \sec (e+f x) \sin (e) \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \text {Si}(f x)+\frac {f \sqrt {a-a \sin (e+f x)} \sqrt {c+c \sin (e+f x)} \tan (e+f x)}{2 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.28, size = 87, normalized size = 0.49 \[ \frac {\sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {c (\sin (e+f x)+1)} \left (-f^2 x^2 \cos (e) \text {Ci}(f x)+f^2 x^2 \sin (e) \text {Si}(f x)+f x \sin (e+f x)-\cos (e+f x)\right )}{2 x^2} \]
Antiderivative was successfully verified.
[In]
Integrate[(Sqrt[a - a*Sin[e + f*x]]*Sqrt[c + c*Sin[e + f*x]])/x^3,x]
[Out]
(Sec[e + f*x]*Sqrt[c*(1 + Sin[e + f*x])]*Sqrt[a - a*Sin[e + f*x]]*(-Cos[e + f*x] - f^2*x^2*Cos[e]*CosIntegral[
f*x] + f*x*Sin[e + f*x] + f^2*x^2*Sin[e]*SinIntegral[f*x]))/(2*x^2)
________________________________________________________________________________________
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]
integrate((a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)/x^3,x, algorithm="fricas")
[Out]
Exception raised: TypeError >> Error detected within library code: integrate: implementation incomplete (ha
s polynomial part)
________________________________________________________________________________________
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]
integrate((a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)/x^3,x, algorithm="giac")
[Out]
Exception raised: NotImplementedError >> Unable to parse Giac output: Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)sqrt(2*a)*sqrt(2*c)*(2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))-2*sign(sin(1/
2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*tan(1/2*exp(1))^2-2*sign(sin(1/2*(f*x+exp(1))-1/4*p
i))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*tan(1/2*f*x)^2+2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+e
xp(1))-1/4*pi))*tan(1/2*exp(1))^2*tan(1/2*f*x)^2-8*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1)
)-1/4*pi))*tan(1/2*exp(1))*tan(1/2*f*x)-4*f*x*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4
*pi))*tan(1/2*exp(1))-4*f*x*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*tan(1/2*f*x)
+f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*re(Ci(f*x))+f^2*x^2*sign(sin(1/
2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*re(Ci(-f*x))+4*f*x*sign(sin(1/2*(f*x+exp(1))-1/4*pi
))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*tan(1/2*exp(1))^2*tan(1/2*f*x)+4*f*x*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*
sign(cos(1/2*(f*x+exp(1))-1/4*pi))*tan(1/2*exp(1))*tan(1/2*f*x)^2-4*f^2*x^2*Si(f*x)*sign(sin(1/2*(f*x+exp(1))-
1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*tan(1/2*exp(1))-2*f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(
cos(1/2*(f*x+exp(1))-1/4*pi))*im(Ci(f*x))*tan(1/2*exp(1))+2*f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(co
s(1/2*(f*x+exp(1))-1/4*pi))*im(Ci(-f*x))*tan(1/2*exp(1))-f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1
/2*(f*x+exp(1))-1/4*pi))*re(Ci(f*x))*tan(1/2*exp(1))^2+f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2
*(f*x+exp(1))-1/4*pi))*re(Ci(f*x))*tan(1/2*f*x)^2-f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x
+exp(1))-1/4*pi))*re(Ci(-f*x))*tan(1/2*exp(1))^2+f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+
exp(1))-1/4*pi))*re(Ci(-f*x))*tan(1/2*f*x)^2-4*f^2*x^2*Si(f*x)*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2
*(f*x+exp(1))-1/4*pi))*tan(1/2*exp(1))*tan(1/2*f*x)^2-2*f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/
2*(f*x+exp(1))-1/4*pi))*im(Ci(f*x))*tan(1/2*exp(1))*tan(1/2*f*x)^2+2*f^2*x^2*sign(sin(1/2*(f*x+exp(1))-1/4*pi)
)*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*im(Ci(-f*x))*tan(1/2*exp(1))*tan(1/2*f*x)^2-f^2*x^2*sign(sin(1/2*(f*x+exp
(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*re(Ci(f*x))*tan(1/2*exp(1))^2*tan(1/2*f*x)^2-f^2*x^2*sign(sin
(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*re(Ci(-f*x))*tan(1/2*exp(1))^2*tan(1/2*f*x)^2)/(
8*x^2*tan(1/2*exp(1))^2*tan(1/2*f*x)^2+8*x^2*tan(1/2*exp(1))^2+8*x^2*tan(1/2*f*x)^2+8*x^2)
________________________________________________________________________________________
maple [F] time = 0.18, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {c +c \sin \left (f x +e \right )}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)/x^3,x)
[Out]
int((a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)/x^3,x)
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {-a \sin \left (f x + e\right ) + a} \sqrt {c \sin \left (f x + e\right ) + c}}{x^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a-a*sin(f*x+e))^(1/2)*(c+c*sin(f*x+e))^(1/2)/x^3,x, algorithm="maxima")
[Out]
integrate(sqrt(-a*sin(f*x + e) + a)*sqrt(c*sin(f*x + e) + c)/x^3, x)
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {a-a\,\sin \left (e+f\,x\right )}\,\sqrt {c+c\,\sin \left (e+f\,x\right )}}{x^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(((a - a*sin(e + f*x))^(1/2)*(c + c*sin(e + f*x))^(1/2))/x^3,x)
[Out]
int(((a - a*sin(e + f*x))^(1/2)*(c + c*sin(e + f*x))^(1/2))/x^3, x)
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \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^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a-a*sin(f*x+e))**(1/2)*(c+c*sin(f*x+e))**(1/2)/x**3,x)
[Out]
Integral(sqrt(c*(sin(e + f*x) + 1))*sqrt(-a*(sin(e + f*x) - 1))/x**3, x)
________________________________________________________________________________________