3.1.32 \(\int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx\) [32]

3.1.32.1 Optimal result
3.1.32.2 Mathematica [C] (verified)
3.1.32.3 Rubi [A] (verified)
3.1.32.4 Maple [A] (verified)
3.1.32.5 Fricas [C] (verification not implemented)
3.1.32.6 Sympy [F]
3.1.32.7 Maxima [F]
3.1.32.8 Giac [F]
3.1.32.9 Mupad [F(-1)]

3.1.32.1 Optimal result

Integrand size = 19, antiderivative size = 271 \[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=\frac {\operatorname {CosIntegral}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right ) \sin \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right )}{\sqrt {d^2-4 c e}}-\frac {\operatorname {CosIntegral}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right ) \sin \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right )}{\sqrt {d^2-4 c e}}+\frac {\cos \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Si}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\cos \left (a-\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Si}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}} \]

output
cos(a-1/2*b*(d-(-4*c*e+d^2)^(1/2))/e)*Si(b*x+1/2*b*(d-(-4*c*e+d^2)^(1/2))/ 
e)/(-4*c*e+d^2)^(1/2)-cos(a-1/2*b*(d+(-4*c*e+d^2)^(1/2))/e)*Si(b*x+1/2*b*( 
d+(-4*c*e+d^2)^(1/2))/e)/(-4*c*e+d^2)^(1/2)+Ci(b*x+1/2*b*(d-(-4*c*e+d^2)^( 
1/2))/e)*sin(a-1/2*b*(d-(-4*c*e+d^2)^(1/2))/e)/(-4*c*e+d^2)^(1/2)-Ci(b*x+1 
/2*b*(d+(-4*c*e+d^2)^(1/2))/e)*sin(a-1/2*b*(d+(-4*c*e+d^2)^(1/2))/e)/(-4*c 
*e+d^2)^(1/2)
 
3.1.32.2 Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 1.65 (sec) , antiderivative size = 245, normalized size of antiderivative = 0.90 \[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=\frac {i e^{-\frac {1}{2} i \left (2 a+\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{e}\right )} \left (e^{\frac {i b d}{e}} \operatorname {ExpIntegralEi}\left (-\frac {i b \left (d-\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )-e^{i \left (2 a+\frac {b \sqrt {d^2-4 c e}}{e}\right )} \operatorname {ExpIntegralEi}\left (\frac {i b \left (d-\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )-e^{\frac {i b \left (d+\sqrt {d^2-4 c e}\right )}{e}} \operatorname {ExpIntegralEi}\left (-\frac {i b \left (d+\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )+e^{2 i a} \operatorname {ExpIntegralEi}\left (\frac {i b \left (d+\sqrt {d^2-4 c e}+2 e x\right )}{2 e}\right )\right )}{2 \sqrt {d^2-4 c e}} \]

input
Integrate[Sin[a + b*x]/(c + d*x + e*x^2),x]
 
output
((I/2)*(E^((I*b*d)/e)*ExpIntegralEi[((-1/2*I)*b*(d - Sqrt[d^2 - 4*c*e] + 2 
*e*x))/e] - E^(I*(2*a + (b*Sqrt[d^2 - 4*c*e])/e))*ExpIntegralEi[((I/2)*b*( 
d - Sqrt[d^2 - 4*c*e] + 2*e*x))/e] - E^((I*b*(d + Sqrt[d^2 - 4*c*e]))/e)*E 
xpIntegralEi[((-1/2*I)*b*(d + Sqrt[d^2 - 4*c*e] + 2*e*x))/e] + E^((2*I)*a) 
*ExpIntegralEi[((I/2)*b*(d + Sqrt[d^2 - 4*c*e] + 2*e*x))/e]))/(Sqrt[d^2 - 
4*c*e]*E^((I/2)*(2*a + (b*(d + Sqrt[d^2 - 4*c*e]))/e)))
 
3.1.32.3 Rubi [A] (verified)

Time = 0.90 (sec) , antiderivative size = 271, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {7279, 2009}

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 (a+b x)}{c+d x+e x^2} \, dx\)

\(\Big \downarrow \) 7279

\(\displaystyle \int \left (\frac {2 e \sin (a+b x)}{\sqrt {d^2-4 c e} \left (-\sqrt {d^2-4 c e}+d+2 e x\right )}-\frac {2 e \sin (a+b x)}{\sqrt {d^2-4 c e} \left (\sqrt {d^2-4 c e}+d+2 e x\right )}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\sin \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \operatorname {CosIntegral}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\sin \left (a-\frac {b \left (\sqrt {d^2-4 c e}+d\right )}{2 e}\right ) \operatorname {CosIntegral}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}+\frac {\cos \left (a-\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}\right ) \text {Si}\left (\frac {b \left (d-\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}-\frac {\cos \left (a-\frac {b \left (\sqrt {d^2-4 c e}+d\right )}{2 e}\right ) \text {Si}\left (\frac {b \left (d+\sqrt {d^2-4 c e}\right )}{2 e}+b x\right )}{\sqrt {d^2-4 c e}}\)

input
Int[Sin[a + b*x]/(c + d*x + e*x^2),x]
 
output
(CosIntegral[(b*(d - Sqrt[d^2 - 4*c*e]))/(2*e) + b*x]*Sin[a - (b*(d - Sqrt 
[d^2 - 4*c*e]))/(2*e)])/Sqrt[d^2 - 4*c*e] - (CosIntegral[(b*(d + Sqrt[d^2 
- 4*c*e]))/(2*e) + b*x]*Sin[a - (b*(d + Sqrt[d^2 - 4*c*e]))/(2*e)])/Sqrt[d 
^2 - 4*c*e] + (Cos[a - (b*(d - Sqrt[d^2 - 4*c*e]))/(2*e)]*SinIntegral[(b*( 
d - Sqrt[d^2 - 4*c*e]))/(2*e) + b*x])/Sqrt[d^2 - 4*c*e] - (Cos[a - (b*(d + 
 Sqrt[d^2 - 4*c*e]))/(2*e)]*SinIntegral[(b*(d + Sqrt[d^2 - 4*c*e]))/(2*e) 
+ b*x])/Sqrt[d^2 - 4*c*e]
 

3.1.32.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 7279
Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[ 
{v = RationalFunctionExpand[u/(a + b*x^n + c*x^(2*n)), x]}, Int[v, x] /; Su 
mQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]
 
3.1.32.4 Maple [A] (verified)

Time = 1.67 (sec) , antiderivative size = 328, normalized size of antiderivative = 1.21

method result size
derivativedivides \(b \left (\frac {-\operatorname {Si}\left (-x b -a +\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \cos \left (\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )+\operatorname {Ci}\left (x b +a -\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \sin \left (\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{\sqrt {-4 b^{2} c e +b^{2} d^{2}}}-\frac {-\operatorname {Si}\left (-x b -a -\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \cos \left (\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )-\operatorname {Ci}\left (x b +a +\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \sin \left (\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{\sqrt {-4 b^{2} c e +b^{2} d^{2}}}\right )\) \(328\)
default \(b \left (\frac {-\operatorname {Si}\left (-x b -a +\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \cos \left (\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )+\operatorname {Ci}\left (x b +a -\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \sin \left (\frac {2 a e -b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{\sqrt {-4 b^{2} c e +b^{2} d^{2}}}-\frac {-\operatorname {Si}\left (-x b -a -\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \cos \left (\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )-\operatorname {Ci}\left (x b +a +\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right ) \sin \left (\frac {-2 a e +b d +\sqrt {-4 b^{2} c e +b^{2} d^{2}}}{2 e}\right )}{\sqrt {-4 b^{2} c e +b^{2} d^{2}}}\right )\) \(328\)
risch \(\frac {\sqrt {4 b^{2} c e -b^{2} d^{2}}\, \operatorname {Ei}_{1}\left (\frac {2 i a e -i b d -2 e \left (i b x +i a \right )-\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}\right ) {\mathrm e}^{\frac {2 i a e -i b d -\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}}}{2 b \left (4 c e -d^{2}\right )}-\frac {\sqrt {4 b^{2} c e -b^{2} d^{2}}\, \operatorname {Ei}_{1}\left (\frac {2 i a e -i b d -2 e \left (i b x +i a \right )+\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}\right ) {\mathrm e}^{\frac {2 i a e -i b d +\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}}}{2 b \left (4 c e -d^{2}\right )}+\frac {\sqrt {4 b^{2} c e -b^{2} d^{2}}\, \operatorname {Ei}_{1}\left (-\frac {2 i a e -i b d -2 e \left (i b x +i a \right )+\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}\right ) {\mathrm e}^{-\frac {2 i a e -i b d +\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}}}{2 b \left (4 c e -d^{2}\right )}-\frac {\sqrt {4 b^{2} c e -b^{2} d^{2}}\, \operatorname {Ei}_{1}\left (-\frac {2 i a e -i b d -2 e \left (i b x +i a \right )-\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}\right ) {\mathrm e}^{-\frac {2 i a e -i b d -\sqrt {4 b^{2} c e -b^{2} d^{2}}}{2 e}}}{2 b \left (4 c e -d^{2}\right )}\) \(486\)

input
int(sin(b*x+a)/(e*x^2+d*x+c),x,method=_RETURNVERBOSE)
 
output
b*(1/(-4*b^2*c*e+b^2*d^2)^(1/2)*(-Si(-x*b-a+1/2/e*(2*a*e-b*d+(-4*b^2*c*e+b 
^2*d^2)^(1/2)))*cos(1/2/e*(2*a*e-b*d+(-4*b^2*c*e+b^2*d^2)^(1/2)))+Ci(x*b+a 
-1/2/e*(2*a*e-b*d+(-4*b^2*c*e+b^2*d^2)^(1/2)))*sin(1/2/e*(2*a*e-b*d+(-4*b^ 
2*c*e+b^2*d^2)^(1/2))))-1/(-4*b^2*c*e+b^2*d^2)^(1/2)*(-Si(-x*b-a-1/2*(-2*a 
*e+b*d+(-4*b^2*c*e+b^2*d^2)^(1/2))/e)*cos(1/2*(-2*a*e+b*d+(-4*b^2*c*e+b^2* 
d^2)^(1/2))/e)-Ci(x*b+a+1/2*(-2*a*e+b*d+(-4*b^2*c*e+b^2*d^2)^(1/2))/e)*sin 
(1/2*(-2*a*e+b*d+(-4*b^2*c*e+b^2*d^2)^(1/2))/e)))
 
3.1.32.5 Fricas [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 0.26 (sec) , antiderivative size = 434, normalized size of antiderivative = 1.60 \[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=-\frac {e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {-2 i \, b e x - i \, b d - e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) e^{\left (\frac {i \, b d - 2 i \, a e + e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )} - e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {-2 i \, b e x - i \, b d + e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) e^{\left (\frac {i \, b d - 2 i \, a e - e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )} + e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {2 i \, b e x + i \, b d - e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) e^{\left (\frac {-i \, b d + 2 i \, a e + e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )} - e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}} {\rm Ei}\left (\frac {2 i \, b e x + i \, b d + e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right ) e^{\left (\frac {-i \, b d + 2 i \, a e - e \sqrt {-\frac {b^{2} d^{2} - 4 \, b^{2} c e}{e^{2}}}}{2 \, e}\right )}}{2 \, {\left (b d^{2} - 4 \, b c e\right )}} \]

input
integrate(sin(b*x+a)/(e*x^2+d*x+c),x, algorithm="fricas")
 
output
-1/2*(e*sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2)*Ei(1/2*(-2*I*b*e*x - I*b*d - e*sq 
rt(-(b^2*d^2 - 4*b^2*c*e)/e^2))/e)*e^(1/2*(I*b*d - 2*I*a*e + e*sqrt(-(b^2* 
d^2 - 4*b^2*c*e)/e^2))/e) - e*sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2)*Ei(1/2*(-2* 
I*b*e*x - I*b*d + e*sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2))/e)*e^(1/2*(I*b*d - 2 
*I*a*e - e*sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2))/e) + e*sqrt(-(b^2*d^2 - 4*b^2 
*c*e)/e^2)*Ei(1/2*(2*I*b*e*x + I*b*d - e*sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2)) 
/e)*e^(1/2*(-I*b*d + 2*I*a*e + e*sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2))/e) - e* 
sqrt(-(b^2*d^2 - 4*b^2*c*e)/e^2)*Ei(1/2*(2*I*b*e*x + I*b*d + e*sqrt(-(b^2* 
d^2 - 4*b^2*c*e)/e^2))/e)*e^(1/2*(-I*b*d + 2*I*a*e - e*sqrt(-(b^2*d^2 - 4* 
b^2*c*e)/e^2))/e))/(b*d^2 - 4*b*c*e)
 
3.1.32.6 Sympy [F]

\[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=\int \frac {\sin {\left (a + b x \right )}}{c + d x + e x^{2}}\, dx \]

input
integrate(sin(b*x+a)/(e*x**2+d*x+c),x)
 
output
Integral(sin(a + b*x)/(c + d*x + e*x**2), x)
 
3.1.32.7 Maxima [F]

\[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=\int { \frac {\sin \left (b x + a\right )}{e x^{2} + d x + c} \,d x } \]

input
integrate(sin(b*x+a)/(e*x^2+d*x+c),x, algorithm="maxima")
 
output
integrate(sin(b*x + a)/(e*x^2 + d*x + c), x)
 
3.1.32.8 Giac [F]

\[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=\int { \frac {\sin \left (b x + a\right )}{e x^{2} + d x + c} \,d x } \]

input
integrate(sin(b*x+a)/(e*x^2+d*x+c),x, algorithm="giac")
 
output
integrate(sin(b*x + a)/(e*x^2 + d*x + c), x)
 
3.1.32.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\sin (a+b x)}{c+d x+e x^2} \, dx=\int \frac {\sin \left (a+b\,x\right )}{e\,x^2+d\,x+c} \,d x \]

input
int(sin(a + b*x)/(c + d*x + e*x^2),x)
 
output
int(sin(a + b*x)/(c + d*x + e*x^2), x)