3.91 \(\int \frac {\text {Ci}(a+b x)}{x^2} \, dx\)

Optimal. Leaf size=47 \[ -\frac {b \text {Ci}(a+b x)}{a}-\frac {\text {Ci}(a+b x)}{x}+\frac {b \cos (a) \text {Ci}(b x)}{a}-\frac {b \sin (a) \text {Si}(b x)}{a} \]

[Out]

-b*Ci(b*x+a)/a-Ci(b*x+a)/x+b*Ci(b*x)*cos(a)/a-b*Si(b*x)*sin(a)/a

________________________________________________________________________________________

Rubi [A]  time = 0.22, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6504, 6742, 3303, 3299, 3302} \[ -\frac {b \text {CosIntegral}(a+b x)}{a}-\frac {\text {CosIntegral}(a+b x)}{x}+\frac {b \cos (a) \text {CosIntegral}(b x)}{a}-\frac {b \sin (a) \text {Si}(b x)}{a} \]

Antiderivative was successfully verified.

[In]

Int[CosIntegral[a + b*x]/x^2,x]

[Out]

(b*Cos[a]*CosIntegral[b*x])/a - (b*CosIntegral[a + b*x])/a - CosIntegral[a + b*x]/x - (b*Sin[a]*SinIntegral[b*
x])/a

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 6504

Int[CosIntegral[(a_.) + (b_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^(m + 1)*CosIntegr
al[a + b*x])/(d*(m + 1)), x] - Dist[b/(d*(m + 1)), Int[((c + d*x)^(m + 1)*Cos[a + b*x])/(a + b*x), x], x] /; F
reeQ[{a, b, c, d, m}, x] && NeQ[m, -1]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {align*} \int \frac {\text {Ci}(a+b x)}{x^2} \, dx &=-\frac {\text {Ci}(a+b x)}{x}+b \int \frac {\cos (a+b x)}{x (a+b x)} \, dx\\ &=-\frac {\text {Ci}(a+b x)}{x}+b \int \left (\frac {\cos (a+b x)}{a x}-\frac {b \cos (a+b x)}{a (a+b x)}\right ) \, dx\\ &=-\frac {\text {Ci}(a+b x)}{x}+\frac {b \int \frac {\cos (a+b x)}{x} \, dx}{a}-\frac {b^2 \int \frac {\cos (a+b x)}{a+b x} \, dx}{a}\\ &=-\frac {b \text {Ci}(a+b x)}{a}-\frac {\text {Ci}(a+b x)}{x}+\frac {(b \cos (a)) \int \frac {\cos (b x)}{x} \, dx}{a}-\frac {(b \sin (a)) \int \frac {\sin (b x)}{x} \, dx}{a}\\ &=\frac {b \cos (a) \text {Ci}(b x)}{a}-\frac {b \text {Ci}(a+b x)}{a}-\frac {\text {Ci}(a+b x)}{x}-\frac {b \sin (a) \text {Si}(b x)}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.08, size = 40, normalized size = 0.85 \[ \frac {-(a+b x) \text {Ci}(a+b x)+b x \cos (a) \text {Ci}(b x)-b x \sin (a) \text {Si}(b x)}{a x} \]

Antiderivative was successfully verified.

[In]

Integrate[CosIntegral[a + b*x]/x^2,x]

[Out]

(b*x*Cos[a]*CosIntegral[b*x] - (a + b*x)*CosIntegral[a + b*x] - b*x*Sin[a]*SinIntegral[b*x])/(a*x)

________________________________________________________________________________________

fricas [F]  time = 0.83, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\operatorname {Ci}\left (b x + a\right )}{x^{2}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(Ci(b*x+a)/x^2,x, algorithm="fricas")

[Out]

integral(cos_integral(b*x + a)/x^2, x)

________________________________________________________________________________________

giac [C]  time = 0.17, size = 149, normalized size = 3.17 \[ -\frac {{\left (\Re \left (\operatorname {Ci}\left (b x + a\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} + \Re \left (\operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} + \Re \left (\operatorname {Ci}\left (-b x - a\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} + \Re \left (\operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, \Im \left (\operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right ) - 2 \, \Im \left (\operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right ) + 4 \, \operatorname {Si}\left (b x\right ) \tan \left (\frac {1}{2} \, a\right ) + \Re \left (\operatorname {Ci}\left (b x + a\right ) \right ) - \Re \left (\operatorname {Ci}\left (b x\right ) \right ) + \Re \left (\operatorname {Ci}\left (-b x - a\right ) \right ) - \Re \left (\operatorname {Ci}\left (-b x\right ) \right )\right )} b}{2 \, {\left (a \tan \left (\frac {1}{2} \, a\right )^{2} + a\right )}} - \frac {\operatorname {Ci}\left (b x + a\right )}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(Ci(b*x+a)/x^2,x, algorithm="giac")

[Out]

-1/2*(real_part(cos_integral(b*x + a))*tan(1/2*a)^2 + real_part(cos_integral(b*x))*tan(1/2*a)^2 + real_part(co
s_integral(-b*x - a))*tan(1/2*a)^2 + real_part(cos_integral(-b*x))*tan(1/2*a)^2 + 2*imag_part(cos_integral(b*x
))*tan(1/2*a) - 2*imag_part(cos_integral(-b*x))*tan(1/2*a) + 4*sin_integral(b*x)*tan(1/2*a) + real_part(cos_in
tegral(b*x + a)) - real_part(cos_integral(b*x)) + real_part(cos_integral(-b*x - a)) - real_part(cos_integral(-
b*x)))*b/(a*tan(1/2*a)^2 + a) - cos_integral(b*x + a)/x

________________________________________________________________________________________

maple [A]  time = 0.02, size = 49, normalized size = 1.04 \[ b \left (-\frac {\Ci \left (b x +a \right )}{b x}+\frac {-\Si \left (b x \right ) \sin \relax (a )+\Ci \left (b x \right ) \cos \relax (a )}{a}-\frac {\Ci \left (b x +a \right )}{a}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(Ci(b*x+a)/x^2,x)

[Out]

b*(-Ci(b*x+a)/b/x+1/a*(-Si(b*x)*sin(a)+Ci(b*x)*cos(a))-1/a*Ci(b*x+a))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\rm Ci}\left (b x + a\right )}{x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(Ci(b*x+a)/x^2,x, algorithm="maxima")

[Out]

integrate(Ci(b*x + a)/x^2, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {\mathrm {cosint}\left (a+b\,x\right )}{x^2} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosint(a + b*x)/x^2,x)

[Out]

int(cosint(a + b*x)/x^2, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {Ci}{\left (a + b x \right )}}{x^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(Ci(b*x+a)/x**2,x)

[Out]

Integral(Ci(a + b*x)/x**2, x)

________________________________________________________________________________________