Integrand size = 15, antiderivative size = 107 \[ \int e^{(a+b x) (c+d x)} x \, dx=\frac {e^{a c+(b c+a d) x+b d x^2}}{2 b d}-\frac {(b c+a d) e^{-\frac {(b c-a d)^2}{4 b d}} \sqrt {\pi } \text {erfi}\left (\frac {b c+a d+2 b d x}{2 \sqrt {b} \sqrt {d}}\right )}{4 b^{3/2} d^{3/2}} \] Output:
1/2*exp(a*c+(a*d+b*c)*x+b*d*x^2)/b/d-1/4*(a*d+b*c)*Pi^(1/2)*erfi(1/2*(2*b* d*x+a*d+b*c)/b^(1/2)/d^(1/2))/b^(3/2)/d^(3/2)/exp(1/4*(-a*d+b*c)^2/b/d)
Time = 0.25 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.08 \[ \int e^{(a+b x) (c+d x)} x \, dx=\frac {e^{-\frac {(b c-a d)^2}{4 b d}} \left (2 \sqrt {b} \sqrt {d} e^{\frac {(a d+b (c+2 d x))^2}{4 b d}}-(b c+a d) \sqrt {\pi } \text {erfi}\left (\frac {a d+b (c+2 d x)}{2 \sqrt {b} \sqrt {d}}\right )\right )}{4 b^{3/2} d^{3/2}} \] Input:
Integrate[E^((a + b*x)*(c + d*x))*x,x]
Output:
(2*Sqrt[b]*Sqrt[d]*E^((a*d + b*(c + 2*d*x))^2/(4*b*d)) - (b*c + a*d)*Sqrt[ Pi]*Erfi[(a*d + b*(c + 2*d*x))/(2*Sqrt[b]*Sqrt[d])])/(4*b^(3/2)*d^(3/2)*E^ ((b*c - a*d)^2/(4*b*d)))
Time = 0.56 (sec) , antiderivative size = 107, 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.267, Rules used = {2674, 2670, 2664, 2633}
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 x e^{(a+b x) (c+d x)} \, dx\) |
\(\Big \downarrow \) 2674 |
\(\displaystyle \int x e^{x (a d+b c)+a c+b d x^2}dx\) |
\(\Big \downarrow \) 2670 |
\(\displaystyle \frac {e^{x (a d+b c)+a c+b d x^2}}{2 b d}-\frac {(a d+b c) \int e^{b d x^2+(b c+a d) x+a c}dx}{2 b d}\) |
\(\Big \downarrow \) 2664 |
\(\displaystyle \frac {e^{x (a d+b c)+a c+b d x^2}}{2 b d}-\frac {(a d+b c) e^{-\frac {(b c-a d)^2}{4 b d}} \int e^{\frac {(b c+a d+2 b d x)^2}{4 b d}}dx}{2 b d}\) |
\(\Big \downarrow \) 2633 |
\(\displaystyle \frac {e^{x (a d+b c)+a c+b d x^2}}{2 b d}-\frac {\sqrt {\pi } (a d+b c) e^{-\frac {(b c-a d)^2}{4 b d}} \text {erfi}\left (\frac {a d+b c+2 b d x}{2 \sqrt {b} \sqrt {d}}\right )}{4 b^{3/2} d^{3/2}}\) |
Input:
Int[E^((a + b*x)*(c + d*x))*x,x]
Output:
E^(a*c + (b*c + a*d)*x + b*d*x^2)/(2*b*d) - ((b*c + a*d)*Sqrt[Pi]*Erfi[(b* c + a*d + 2*b*d*x)/(2*Sqrt[b]*Sqrt[d])])/(4*b^(3/2)*d^(3/2)*E^((b*c - a*d) ^2/(4*b*d)))
Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt [Pi]*(Erfi[(c + d*x)*Rt[b*Log[F], 2]]/(2*d*Rt[b*Log[F], 2])), x] /; FreeQ[{ F, a, b, c, d}, x] && PosQ[b]
Int[(F_)^((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[F^(a - b^2/ (4*c)) Int[F^((b + 2*c*x)^2/(4*c)), x], x] /; FreeQ[{F, a, b, c}, x]
Int[(F_)^((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)*((d_.) + (e_.)*(x_)), x_Symbol ] :> Simp[e*(F^(a + b*x + c*x^2)/(2*c*Log[F])), x] - Simp[(b*e - 2*c*d)/(2* c) Int[F^(a + b*x + c*x^2), x], x] /; FreeQ[{F, a, b, c, d, e}, x] && NeQ [b*e - 2*c*d, 0]
Int[(F_)^(v_)*(u_)^(m_.), x_Symbol] :> Int[ExpandToSum[u, x]^m*F^ExpandToSu m[v, x], x] /; FreeQ[{F, m}, x] && LinearQ[u, x] && QuadraticQ[v, x] && !( LinearMatchQ[u, x] && QuadraticMatchQ[v, x])
Time = 0.04 (sec) , antiderivative size = 102, normalized size of antiderivative = 0.95
method | result | size |
default | \(\frac {{\mathrm e}^{a c +\left (a d +b c \right ) x +b d \,x^{2}}}{2 b d}+\frac {\left (a d +b c \right ) \sqrt {\pi }\, {\mathrm e}^{a c -\frac {\left (a d +b c \right )^{2}}{4 b d}} \operatorname {erf}\left (-\sqrt {-b d}\, x +\frac {a d +b c}{2 \sqrt {-b d}}\right )}{4 b d \sqrt {-b d}}\) | \(102\) |
risch | \(\frac {{\mathrm e}^{\left (b x +a \right ) \left (d x +c \right )}}{2 b d}+\frac {\sqrt {\pi }\, {\mathrm e}^{-\frac {\left (a d -b c \right )^{2}}{4 b d}} \operatorname {erf}\left (-\sqrt {-b d}\, x +\frac {a d +b c}{2 \sqrt {-b d}}\right ) a}{4 b \sqrt {-b d}}+\frac {\sqrt {\pi }\, {\mathrm e}^{-\frac {\left (a d -b c \right )^{2}}{4 b d}} \operatorname {erf}\left (-\sqrt {-b d}\, x +\frac {a d +b c}{2 \sqrt {-b d}}\right ) c}{4 d \sqrt {-b d}}\) | \(142\) |
parts | \(-\frac {\sqrt {\pi }\, {\mathrm e}^{a c -\frac {\left (a d +b c \right )^{2}}{4 b d}} \operatorname {erf}\left (-\sqrt {-b d}\, x +\frac {a d +b c}{2 \sqrt {-b d}}\right ) x}{2 \sqrt {-b d}}+\frac {{\mathrm e}^{a c -\frac {\left (a d +b c \right )^{2}}{4 b d}} \left (2 \,\operatorname {erf}\left (\frac {2 b d x +a d +b c}{2 \sqrt {-b d}}\right ) x \sqrt {\pi }\, b d +\sqrt {\pi }\, \operatorname {erf}\left (\frac {2 b d x +a d +b c}{2 \sqrt {-b d}}\right ) a d +\sqrt {\pi }\, \operatorname {erf}\left (\frac {2 b d x +a d +b c}{2 \sqrt {-b d}}\right ) b c +2 \sqrt {-b d}\, {\mathrm e}^{\frac {\left (2 b d x +a d +b c \right )^{2}}{4 b d}}\right )}{4 \sqrt {-b d}\, b d}\) | \(213\) |
Input:
int(exp((b*x+a)*(d*x+c))*x,x,method=_RETURNVERBOSE)
Output:
1/2*exp(a*c+(a*d+b*c)*x+b*d*x^2)/b/d+1/4*(a*d+b*c)/b/d*Pi^(1/2)*exp(a*c-1/ 4*(a*d+b*c)^2/b/d)/(-b*d)^(1/2)*erf(-(-b*d)^(1/2)*x+1/2*(a*d+b*c)/(-b*d)^( 1/2))
Time = 0.07 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.00 \[ \int e^{(a+b x) (c+d x)} x \, dx=\frac {\sqrt {\pi } {\left (b c + a d\right )} \sqrt {-b d} \operatorname {erf}\left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {-b d}}{2 \, b d}\right ) e^{\left (-\frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{4 \, b d}\right )} + 2 \, b d e^{\left (b d x^{2} + a c + {\left (b c + a d\right )} x\right )}}{4 \, b^{2} d^{2}} \] Input:
integrate(exp((b*x+a)*(d*x+c))*x,x, algorithm="fricas")
Output:
1/4*(sqrt(pi)*(b*c + a*d)*sqrt(-b*d)*erf(1/2*(2*b*d*x + b*c + a*d)*sqrt(-b *d)/(b*d))*e^(-1/4*(b^2*c^2 - 2*a*b*c*d + a^2*d^2)/(b*d)) + 2*b*d*e^(b*d*x ^2 + a*c + (b*c + a*d)*x))/(b^2*d^2)
\[ \int e^{(a+b x) (c+d x)} x \, dx=e^{a c} \int x e^{a d x} e^{b c x} e^{b d x^{2}}\, dx \] Input:
integrate(exp((b*x+a)*(d*x+c))*x,x)
Output:
exp(a*c)*Integral(x*exp(a*d*x)*exp(b*c*x)*exp(b*d*x**2), x)
Time = 0.11 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.34 \[ \int e^{(a+b x) (c+d x)} x \, dx=-\frac {{\left (\frac {\sqrt {\pi } {\left (2 \, b d x + b c + a d\right )} {\left (b c + a d\right )} {\left (\operatorname {erf}\left (\frac {1}{2} \, \sqrt {-\frac {{\left (2 \, b d x + b c + a d\right )}^{2}}{b d}}\right ) - 1\right )}}{\left (b d\right )^{\frac {3}{2}} \sqrt {-\frac {{\left (2 \, b d x + b c + a d\right )}^{2}}{b d}}} - \frac {2 \, b d e^{\left (\frac {{\left (2 \, b d x + b c + a d\right )}^{2}}{4 \, b d}\right )}}{\left (b d\right )^{\frac {3}{2}}}\right )} e^{\left (a c - \frac {{\left (b c + a d\right )}^{2}}{4 \, b d}\right )}}{4 \, \sqrt {b d}} \] Input:
integrate(exp((b*x+a)*(d*x+c))*x,x, algorithm="maxima")
Output:
-1/4*(sqrt(pi)*(2*b*d*x + b*c + a*d)*(b*c + a*d)*(erf(1/2*sqrt(-(2*b*d*x + b*c + a*d)^2/(b*d))) - 1)/((b*d)^(3/2)*sqrt(-(2*b*d*x + b*c + a*d)^2/(b*d ))) - 2*b*d*e^(1/4*(2*b*d*x + b*c + a*d)^2/(b*d))/(b*d)^(3/2))*e^(a*c - 1/ 4*(b*c + a*d)^2/(b*d))/sqrt(b*d)
Time = 0.14 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.97 \[ \int e^{(a+b x) (c+d x)} x \, dx=\frac {\frac {\sqrt {\pi } {\left (b c + a d\right )} \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {-b d} {\left (2 \, x + \frac {b c + a d}{b d}\right )}\right ) e^{\left (-\frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{4 \, b d}\right )}}{\sqrt {-b d}} + 2 \, e^{\left (b d x^{2} + b c x + a d x + a c\right )}}{4 \, b d} \] Input:
integrate(exp((b*x+a)*(d*x+c))*x,x, algorithm="giac")
Output:
1/4*(sqrt(pi)*(b*c + a*d)*erf(-1/2*sqrt(-b*d)*(2*x + (b*c + a*d)/(b*d)))*e ^(-1/4*(b^2*c^2 - 2*a*b*c*d + a^2*d^2)/(b*d))/sqrt(-b*d) + 2*e^(b*d*x^2 + b*c*x + a*d*x + a*c))/(b*d)
Time = 0.18 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.89 \[ \int e^{(a+b x) (c+d x)} x \, dx=\frac {{\mathrm {e}}^{a\,c+a\,d\,x+b\,c\,x+b\,d\,x^2}}{2\,b\,d}-\frac {\sqrt {\pi }\,{\mathrm {e}}^{\frac {a\,c}{2}-\frac {a^2\,d}{4\,b}-\frac {b\,c^2}{4\,d}}\,\mathrm {erfi}\left (\frac {\frac {a\,d}{2}+\frac {b\,c}{2}+b\,d\,x}{\sqrt {b\,d}}\right )\,\left (a\,d+b\,c\right )}{4\,b\,d\,\sqrt {b\,d}} \] Input:
int(x*exp((a + b*x)*(c + d*x)),x)
Output:
exp(a*c + a*d*x + b*c*x + b*d*x^2)/(2*b*d) - (pi^(1/2)*exp((a*c)/2 - (a^2* d)/(4*b) - (b*c^2)/(4*d))*erfi(((a*d)/2 + (b*c)/2 + b*d*x)/(b*d)^(1/2))*(a *d + b*c))/(4*b*d*(b*d)^(1/2))
\[ \int e^{(a+b x) (c+d x)} x \, dx=\frac {e^{a c} \left (e^{b d \,x^{2}+a d x +b c x}-\left (\int e^{b d \,x^{2}+a d x +b c x}d x \right ) a d -\left (\int e^{b d \,x^{2}+a d x +b c x}d x \right ) b c \right )}{2 b d} \] Input:
int(exp((b*x+a)*(d*x+c))*x,x)
Output:
(e**(a*c)*(e**(a*d*x + b*c*x + b*d*x**2) - int(e**(a*d*x + b*c*x + b*d*x** 2),x)*a*d - int(e**(a*d*x + b*c*x + b*d*x**2),x)*b*c))/(2*b*d)