Integrand size = 27, antiderivative size = 28 \[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\frac {\sqrt {b-\frac {a}{x^2}} x \text {Si}(x)}{\sqrt {a-b x^2}} \] Output:
(b-a/x^2)^(1/2)*x*Si(x)/(-b*x^2+a)^(1/2)
Result contains complex when optimal does not.
Time = 0.57 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.64 \[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\frac {i \sqrt {b-\frac {a}{x^2}} x (\operatorname {ExpIntegralEi}(-i x)-\operatorname {ExpIntegralEi}(i x))}{2 \sqrt {a-b x^2}} \] Input:
Integrate[(Sqrt[b - a/x^2]*Sin[x])/Sqrt[a - b*x^2],x]
Output:
((I/2)*Sqrt[b - a/x^2]*x*(ExpIntegralEi[(-I)*x] - ExpIntegralEi[I*x]))/Sqr t[a - b*x^2]
Time = 0.61 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {7272, 283, 3042, 3780}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sin (x) \sqrt {b-\frac {a}{x^2}}}{\sqrt {a-b x^2}} \, dx\) |
\(\Big \downarrow \) 7272 |
\(\displaystyle \frac {x \sqrt {b-\frac {a}{x^2}} \int \frac {\sqrt {1-\frac {b x^2}{a}} \sin (x)}{x \sqrt {a-b x^2}}dx}{\sqrt {1-\frac {b x^2}{a}}}\) |
\(\Big \downarrow \) 283 |
\(\displaystyle \frac {x \sqrt {b-\frac {a}{x^2}} \int \frac {\sin (x)}{x}dx}{\sqrt {a-b x^2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {x \sqrt {b-\frac {a}{x^2}} \int \frac {\sin (x)}{x}dx}{\sqrt {a-b x^2}}\) |
\(\Big \downarrow \) 3780 |
\(\displaystyle \frac {x \text {Si}(x) \sqrt {b-\frac {a}{x^2}}}{\sqrt {a-b x^2}}\) |
Input:
Int[(Sqrt[b - a/x^2]*Sin[x])/Sqrt[a - b*x^2],x]
Output:
(Sqrt[b - a/x^2]*x*SinIntegral[x])/Sqrt[a - b*x^2]
Int[(u_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Sy mbol] :> Simp[(a + b*x^n)^p/(c + d*x^n)^p Int[u*(c + d*x^n)^(p + q), x], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && EqQ[b*c - a*d, 0] && !SimplerQ[a + b*x^n, c + d*x^n]
Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinInte gral[e + f*x]/d, x] /; FreeQ[{c, d, e, f}, x] && EqQ[d*e - c*f, 0]
Int[(u_.)*((a_.) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[b^IntPart[p]*(( a + b*x^n)^FracPart[p]/(x^(n*FracPart[p])*(1 + a*(1/(x^n*b)))^FracPart[p])) Int[u*x^(n*p)*(1 + a*(1/(x^n*b)))^p, x], x] /; FreeQ[{a, b, p}, x] && ! IntegerQ[p] && ILtQ[n, 0] && !RationalFunctionQ[u, x] && IntegerQ[p + 1/2]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.25 (sec) , antiderivative size = 72, normalized size of antiderivative = 2.57
method | result | size |
risch | \(-\frac {\sqrt {-\frac {-b \,x^{2}+a}{x^{2}}}\, \left (b \,x^{2}-a \right ) x \sqrt {\frac {-b \,x^{2}+a}{b \,x^{2}-a}}\, \left (-i \operatorname {Si}\left (x \right )+\frac {i \pi \,\operatorname {csgn}\left (x \right )}{2}\right )}{\left (-b \,x^{2}+a \right )^{\frac {3}{2}}}\) | \(72\) |
Input:
int((b-1/x^2*a)^(1/2)*sin(x)/(-b*x^2+a)^(1/2),x,method=_RETURNVERBOSE)
Output:
-(-(-b*x^2+a)/x^2)^(1/2)*(b*x^2-a)/(-b*x^2+a)^(3/2)*x*(1/(b*x^2-a)*(-b*x^2 +a))^(1/2)*(-I*Si(x)+1/2*I*Pi*csgn(x))
\[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\int { \frac {\sqrt {b - \frac {a}{x^{2}}} \sin \left (x\right )}{\sqrt {-b x^{2} + a}} \,d x } \] Input:
integrate((b-a/x^2)^(1/2)*sin(x)/(-b*x^2+a)^(1/2),x, algorithm="fricas")
Output:
integral(-sqrt(-b*x^2 + a)*sqrt((b*x^2 - a)/x^2)*sin(x)/(b*x^2 - a), x)
\[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\int \frac {\sqrt {- \frac {a}{x^{2}} + b} \sin {\left (x \right )}}{\sqrt {a - b x^{2}}}\, dx \] Input:
integrate((b-a/x**2)**(1/2)*sin(x)/(-b*x**2+a)**(1/2),x)
Output:
Integral(sqrt(-a/x**2 + b)*sin(x)/sqrt(a - b*x**2), x)
\[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\int { \frac {\sqrt {b - \frac {a}{x^{2}}} \sin \left (x\right )}{\sqrt {-b x^{2} + a}} \,d x } \] Input:
integrate((b-a/x^2)^(1/2)*sin(x)/(-b*x^2+a)^(1/2),x, algorithm="maxima")
Output:
integrate(sqrt(b - a/x^2)*sin(x)/sqrt(-b*x^2 + a), x)
\[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\int { \frac {\sqrt {b - \frac {a}{x^{2}}} \sin \left (x\right )}{\sqrt {-b x^{2} + a}} \,d x } \] Input:
integrate((b-a/x^2)^(1/2)*sin(x)/(-b*x^2+a)^(1/2),x, algorithm="giac")
Output:
integrate(sqrt(b - a/x^2)*sin(x)/sqrt(-b*x^2 + a), x)
Timed out. \[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\int \frac {\sin \left (x\right )\,\sqrt {b-\frac {a}{x^2}}}{\sqrt {a-b\,x^2}} \,d x \] Input:
int((sin(x)*(b - a/x^2)^(1/2))/(a - b*x^2)^(1/2),x)
Output:
int((sin(x)*(b - a/x^2)^(1/2))/(a - b*x^2)^(1/2), x)
\[ \int \frac {\sqrt {b-\frac {a}{x^2}} \sin (x)}{\sqrt {a-b x^2}} \, dx=\int \frac {\sqrt {b \,x^{2}-a}\, \sin \left (x \right )}{\sqrt {-b \,x^{2}+a}\, x}d x \] Input:
int((b-a/x^2)^(1/2)*sin(x)/(-b*x^2+a)^(1/2),x)
Output:
int((sqrt( - a + b*x**2)*sin(x))/(sqrt(a - b*x**2)*x),x)