\(\int x \text {Chi}(a+b x) \, dx\) [88]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 8, antiderivative size = 71 \[ \int x \text {Chi}(a+b x) \, dx=\frac {\cosh (a+b x)}{2 b^2}-\frac {a^2 \text {Chi}(a+b x)}{2 b^2}+\frac {1}{2} x^2 \text {Chi}(a+b x)+\frac {a \sinh (a+b x)}{2 b^2}-\frac {x \sinh (a+b x)}{2 b} \]

[Out]

-1/2*a^2*Chi(b*x+a)/b^2+1/2*x^2*Chi(b*x+a)+1/2*cosh(b*x+a)/b^2+1/2*a*sinh(b*x+a)/b^2-1/2*x*sinh(b*x+a)/b

Rubi [A] (verified)

Time = 0.16 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {6668, 6874, 2717, 3377, 2718, 3382} \[ \int x \text {Chi}(a+b x) \, dx=-\frac {a^2 \text {Chi}(a+b x)}{2 b^2}+\frac {a \sinh (a+b x)}{2 b^2}+\frac {\cosh (a+b x)}{2 b^2}+\frac {1}{2} x^2 \text {Chi}(a+b x)-\frac {x \sinh (a+b x)}{2 b} \]

[In]

Int[x*CoshIntegral[a + b*x],x]

[Out]

Cosh[a + b*x]/(2*b^2) - (a^2*CoshIntegral[a + b*x])/(2*b^2) + (x^2*CoshIntegral[a + b*x])/2 + (a*Sinh[a + b*x]
)/(2*b^2) - (x*Sinh[a + b*x])/(2*b)

Rule 2717

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 2718

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3377

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[(-(c + d*x)^m)*(Cos[e + f*x]/f), x]
+ Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 3382

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[c*f*(fz/d)
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rule 6668

Int[CoshIntegral[(a_.) + (b_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(c + d*x)^(m + 1)*(CoshInte
gral[a + b*x]/(d*(m + 1))), x] - Dist[b/(d*(m + 1)), Int[(c + d*x)^(m + 1)*(Cosh[a + b*x]/(a + b*x)), x], x] /
; FreeQ[{a, b, c, d, m}, x] && NeQ[m, -1]

Rule 6874

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

Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} x^2 \text {Chi}(a+b x)-\frac {1}{2} b \int \frac {x^2 \cosh (a+b x)}{a+b x} \, dx \\ & = \frac {1}{2} x^2 \text {Chi}(a+b x)-\frac {1}{2} b \int \left (-\frac {a \cosh (a+b x)}{b^2}+\frac {x \cosh (a+b x)}{b}+\frac {a^2 \cosh (a+b x)}{b^2 (a+b x)}\right ) \, dx \\ & = \frac {1}{2} x^2 \text {Chi}(a+b x)-\frac {1}{2} \int x \cosh (a+b x) \, dx+\frac {a \int \cosh (a+b x) \, dx}{2 b}-\frac {a^2 \int \frac {\cosh (a+b x)}{a+b x} \, dx}{2 b} \\ & = -\frac {a^2 \text {Chi}(a+b x)}{2 b^2}+\frac {1}{2} x^2 \text {Chi}(a+b x)+\frac {a \sinh (a+b x)}{2 b^2}-\frac {x \sinh (a+b x)}{2 b}+\frac {\int \sinh (a+b x) \, dx}{2 b} \\ & = \frac {\cosh (a+b x)}{2 b^2}-\frac {a^2 \text {Chi}(a+b x)}{2 b^2}+\frac {1}{2} x^2 \text {Chi}(a+b x)+\frac {a \sinh (a+b x)}{2 b^2}-\frac {x \sinh (a+b x)}{2 b} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.07 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.66 \[ \int x \text {Chi}(a+b x) \, dx=\frac {\cosh (a+b x)+\left (-a^2+b^2 x^2\right ) \text {Chi}(a+b x)+(a-b x) \sinh (a+b x)}{2 b^2} \]

[In]

Integrate[x*CoshIntegral[a + b*x],x]

[Out]

(Cosh[a + b*x] + (-a^2 + b^2*x^2)*CoshIntegral[a + b*x] + (a - b*x)*Sinh[a + b*x])/(2*b^2)

Maple [A] (verified)

Time = 0.47 (sec) , antiderivative size = 58, normalized size of antiderivative = 0.82

method result size
parts \(\frac {x^{2} \operatorname {Chi}\left (b x +a \right )}{2}-\frac {a^{2} \operatorname {Chi}\left (b x +a \right )-2 a \sinh \left (b x +a \right )+\left (b x +a \right ) \sinh \left (b x +a \right )-\cosh \left (b x +a \right )}{2 b^{2}}\) \(58\)
derivativedivides \(\frac {\operatorname {Chi}\left (b x +a \right ) \left (-\left (b x +a \right ) a +\frac {\left (b x +a \right )^{2}}{2}\right )+a \sinh \left (b x +a \right )-\frac {\left (b x +a \right ) \sinh \left (b x +a \right )}{2}+\frac {\cosh \left (b x +a \right )}{2}}{b^{2}}\) \(60\)
default \(\frac {\operatorname {Chi}\left (b x +a \right ) \left (-\left (b x +a \right ) a +\frac {\left (b x +a \right )^{2}}{2}\right )+a \sinh \left (b x +a \right )-\frac {\left (b x +a \right ) \sinh \left (b x +a \right )}{2}+\frac {\cosh \left (b x +a \right )}{2}}{b^{2}}\) \(60\)

[In]

int(x*Chi(b*x+a),x,method=_RETURNVERBOSE)

[Out]

1/2*x^2*Chi(b*x+a)-1/2/b^2*(a^2*Chi(b*x+a)-2*a*sinh(b*x+a)+(b*x+a)*sinh(b*x+a)-cosh(b*x+a))

Fricas [F]

\[ \int x \text {Chi}(a+b x) \, dx=\int { x {\rm Chi}\left (b x + a\right ) \,d x } \]

[In]

integrate(x*Chi(b*x+a),x, algorithm="fricas")

[Out]

integral(x*cosh_integral(b*x + a), x)

Sympy [F]

\[ \int x \text {Chi}(a+b x) \, dx=\int x \operatorname {Chi}\left (a + b x\right )\, dx \]

[In]

integrate(x*Chi(b*x+a),x)

[Out]

Integral(x*Chi(a + b*x), x)

Maxima [F]

\[ \int x \text {Chi}(a+b x) \, dx=\int { x {\rm Chi}\left (b x + a\right ) \,d x } \]

[In]

integrate(x*Chi(b*x+a),x, algorithm="maxima")

[Out]

integrate(x*Chi(b*x + a), x)

Giac [F]

\[ \int x \text {Chi}(a+b x) \, dx=\int { x {\rm Chi}\left (b x + a\right ) \,d x } \]

[In]

integrate(x*Chi(b*x+a),x, algorithm="giac")

[Out]

integrate(x*Chi(b*x + a), x)

Mupad [F(-1)]

Timed out. \[ \int x \text {Chi}(a+b x) \, dx=\frac {x^2\,\mathrm {coshint}\left (a+b\,x\right )}{2}+\frac {\frac {{\mathrm {e}}^{-a-b\,x}\,\left ({\mathrm {e}}^{2\,a+2\,b\,x}-a+a\,{\mathrm {e}}^{2\,a+2\,b\,x}-2\,a^2\,\mathrm {coshint}\left (a+b\,x\right )\,{\mathrm {e}}^{a+b\,x}+1\right )}{4}+\frac {b\,{\mathrm {e}}^{-a-b\,x}\,\left (x-x\,{\mathrm {e}}^{2\,a+2\,b\,x}\right )}{4}}{b^2} \]

[In]

int(x*coshint(a + b*x),x)

[Out]

(x^2*coshint(a + b*x))/2 + ((exp(- a - b*x)*(exp(2*a + 2*b*x) - a + a*exp(2*a + 2*b*x) - 2*a^2*coshint(a + b*x
)*exp(a + b*x) + 1))/4 + (b*exp(- a - b*x)*(x - x*exp(2*a + 2*b*x)))/4)/b^2