3.81 \(\int \text{CosIntegral}(b x)^2 \, dx\)

Optimal. Leaf size=31 \[ x \text{CosIntegral}(b x)^2-\frac{2 \text{CosIntegral}(b x) \sin (b x)}{b}+\frac{\text{Si}(2 b x)}{b} \]

[Out]

x*CosIntegral[b*x]^2 - (2*CosIntegral[b*x]*Sin[b*x])/b + SinIntegral[2*b*x]/b

________________________________________________________________________________________

Rubi [A]  time = 0.0537311, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.833, Rules used = {6506, 6512, 12, 4406, 3299} \[ x \text{CosIntegral}(b x)^2-\frac{2 \text{CosIntegral}(b x) \sin (b x)}{b}+\frac{\text{Si}(2 b x)}{b} \]

Antiderivative was successfully verified.

[In]

Int[CosIntegral[b*x]^2,x]

[Out]

x*CosIntegral[b*x]^2 - (2*CosIntegral[b*x]*Sin[b*x])/b + SinIntegral[2*b*x]/b

Rule 6506

Int[CosIntegral[(a_.) + (b_.)*(x_)]^2, x_Symbol] :> Simp[((a + b*x)*CosIntegral[a + b*x]^2)/b, x] - Dist[2, In
t[Cos[a + b*x]*CosIntegral[a + b*x], x], x] /; FreeQ[{a, b}, x]

Rule 6512

Int[Cos[(a_.) + (b_.)*(x_)]*CosIntegral[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[(Sin[a + b*x]*CosIntegral[c + d
*x])/b, x] - Dist[d/b, Int[(Sin[a + b*x]*Cos[c + d*x])/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 4406

Int[Cos[(a_.) + (b_.)*(x_)]^(p_.)*((c_.) + (d_.)*(x_))^(m_.)*Sin[(a_.) + (b_.)*(x_)]^(n_.), x_Symbol] :> Int[E
xpandTrigReduce[(c + d*x)^m, Sin[a + b*x]^n*Cos[a + b*x]^p, x], x] /; FreeQ[{a, b, c, d, m}, x] && IGtQ[n, 0]
&& IGtQ[p, 0]

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]

Rubi steps

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

Mathematica [A]  time = 0.0076127, size = 31, normalized size = 1. \[ x \text{CosIntegral}(b x)^2-\frac{2 \text{CosIntegral}(b x) \sin (b x)}{b}+\frac{\text{Si}(2 b x)}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[CosIntegral[b*x]^2,x]

[Out]

x*CosIntegral[b*x]^2 - (2*CosIntegral[b*x]*Sin[b*x])/b + SinIntegral[2*b*x]/b

________________________________________________________________________________________

Maple [A]  time = 0.047, size = 30, normalized size = 1. \begin{align*}{\frac{bx \left ({\it Ci} \left ( bx \right ) \right ) ^{2}-2\,{\it Ci} \left ( bx \right ) \sin \left ( bx \right ) +{\it Si} \left ( 2\,bx \right ) }{b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(Ci(b*x)^2,x)

[Out]

1/b*(b*x*Ci(b*x)^2-2*Ci(b*x)*sin(b*x)+Si(2*b*x))

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\rm Ci}\left (b x\right )^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(Ci(b*x)^2, x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\operatorname{Ci}\left (b x\right )^{2}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integral(cos_integral(b*x)^2, x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \operatorname{Ci}^{2}{\left (b x \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(Ci(b*x)**2,x)

[Out]

Integral(Ci(b*x)**2, x)

________________________________________________________________________________________

Giac [C]  time = 1.28276, size = 66, normalized size = 2.13 \begin{align*} x \operatorname{Ci}\left (b x\right )^{2} - \frac{2 \, \operatorname{Ci}\left (b x\right ) \sin \left (b x\right )}{b} + \frac{\Im \left ( \operatorname{Ci}\left (2 \, b x\right ) \right ) - \Im \left ( \operatorname{Ci}\left (-2 \, b x\right ) \right ) + 2 \, \operatorname{Si}\left (2 \, b x\right )}{2 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*cos_integral(b*x)^2 - 2*cos_integral(b*x)*sin(b*x)/b + 1/2*(imag_part(cos_integral(2*b*x)) - imag_part(cos_i
ntegral(-2*b*x)) + 2*sin_integral(2*b*x))/b