Integrand size = 12, antiderivative size = 118 \[ \int (c+d x) \text {erf}(a+b x) \, dx=\frac {(b c-a d) e^{-(a+b x)^2}}{b^2 \sqrt {\pi }}+\frac {d e^{-(a+b x)^2} (a+b x)}{2 b^2 \sqrt {\pi }}-\frac {d \text {erf}(a+b x)}{4 b^2}-\frac {(b c-a d)^2 \text {erf}(a+b x)}{2 b^2 d}+\frac {(c+d x)^2 \text {erf}(a+b x)}{2 d} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {6496, 2258, 2236, 2240, 2243} \[ \int (c+d x) \text {erf}(a+b x) \, dx=-\frac {(b c-a d)^2 \text {erf}(a+b x)}{2 b^2 d}+\frac {e^{-(a+b x)^2} (b c-a d)}{\sqrt {\pi } b^2}-\frac {d \text {erf}(a+b x)}{4 b^2}+\frac {d e^{-(a+b x)^2} (a+b x)}{2 \sqrt {\pi } b^2}+\frac {(c+d x)^2 \text {erf}(a+b x)}{2 d} \]
[In]
[Out]
Rule 2236
Rule 2240
Rule 2243
Rule 2258
Rule 6496
Rubi steps \begin{align*} \text {integral}& = \frac {(c+d x)^2 \text {erf}(a+b x)}{2 d}-\frac {b \int e^{-(a+b x)^2} (c+d x)^2 \, dx}{d \sqrt {\pi }} \\ & = \frac {(c+d x)^2 \text {erf}(a+b x)}{2 d}-\frac {b \int \left (\frac {(b c-a d)^2 e^{-(a+b x)^2}}{b^2}+\frac {2 d (b c-a d) e^{-(a+b x)^2} (a+b x)}{b^2}+\frac {d^2 e^{-(a+b x)^2} (a+b x)^2}{b^2}\right ) \, dx}{d \sqrt {\pi }} \\ & = \frac {(c+d x)^2 \text {erf}(a+b x)}{2 d}-\frac {d \int e^{-(a+b x)^2} (a+b x)^2 \, dx}{b \sqrt {\pi }}-\frac {(2 (b c-a d)) \int e^{-(a+b x)^2} (a+b x) \, dx}{b \sqrt {\pi }}-\frac {(b c-a d)^2 \int e^{-(a+b x)^2} \, dx}{b d \sqrt {\pi }} \\ & = \frac {(b c-a d) e^{-(a+b x)^2}}{b^2 \sqrt {\pi }}+\frac {d e^{-(a+b x)^2} (a+b x)}{2 b^2 \sqrt {\pi }}-\frac {(b c-a d)^2 \text {erf}(a+b x)}{2 b^2 d}+\frac {(c+d x)^2 \text {erf}(a+b x)}{2 d}-\frac {d \int e^{-(a+b x)^2} \, dx}{2 b \sqrt {\pi }} \\ & = \frac {(b c-a d) e^{-(a+b x)^2}}{b^2 \sqrt {\pi }}+\frac {d e^{-(a+b x)^2} (a+b x)}{2 b^2 \sqrt {\pi }}-\frac {d \text {erf}(a+b x)}{4 b^2}-\frac {(b c-a d)^2 \text {erf}(a+b x)}{2 b^2 d}+\frac {(c+d x)^2 \text {erf}(a+b x)}{2 d} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 88, normalized size of antiderivative = 0.75 \[ \int (c+d x) \text {erf}(a+b x) \, dx=\frac {e^{-(a+b x)^2} \left (4 b c-2 a d+2 b d x-e^{(a+b x)^2} \sqrt {\pi } \left (-4 a b c+d+2 a^2 d-4 b^2 c x-2 b^2 d x^2\right ) \text {erf}(a+b x)\right )}{4 b^2 \sqrt {\pi }} \]
[In]
[Out]
Time = 0.52 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.95
method | result | size |
derivativedivides | \(\frac {-\frac {\operatorname {erf}\left (b x +a \right ) \left (d a \left (b x +a \right )-c b \left (b x +a \right )-\frac {d \left (b x +a \right )^{2}}{2}\right )}{b}+\frac {-d \left (-\frac {\left (b x +a \right ) {\mathrm e}^{-\left (b x +a \right )^{2}}}{2}+\frac {\sqrt {\pi }\, \operatorname {erf}\left (b x +a \right )}{4}\right )+{\mathrm e}^{-\left (b x +a \right )^{2}} b c -{\mathrm e}^{-\left (b x +a \right )^{2}} a d}{\sqrt {\pi }\, b}}{b}\) | \(112\) |
default | \(\frac {-\frac {\operatorname {erf}\left (b x +a \right ) \left (d a \left (b x +a \right )-c b \left (b x +a \right )-\frac {d \left (b x +a \right )^{2}}{2}\right )}{b}+\frac {-d \left (-\frac {\left (b x +a \right ) {\mathrm e}^{-\left (b x +a \right )^{2}}}{2}+\frac {\sqrt {\pi }\, \operatorname {erf}\left (b x +a \right )}{4}\right )+{\mathrm e}^{-\left (b x +a \right )^{2}} b c -{\mathrm e}^{-\left (b x +a \right )^{2}} a d}{\sqrt {\pi }\, b}}{b}\) | \(112\) |
parallelrisch | \(\frac {2 d \,x^{2} \operatorname {erf}\left (b x +a \right ) \sqrt {\pi }\, b^{2}+4 x \,\operatorname {erf}\left (b x +a \right ) c \sqrt {\pi }\, b^{2}-2 \sqrt {\pi }\, \operatorname {erf}\left (b x +a \right ) a^{2} d +4 \sqrt {\pi }\, \operatorname {erf}\left (b x +a \right ) a b c +2 \,{\mathrm e}^{-\left (b x +a \right )^{2}} b d x -d \,\operatorname {erf}\left (b x +a \right ) \sqrt {\pi }-2 \,{\mathrm e}^{-\left (b x +a \right )^{2}} a d +4 \,{\mathrm e}^{-\left (b x +a \right )^{2}} b c}{4 \sqrt {\pi }\, b^{2}}\) | \(128\) |
parts | \(\frac {\operatorname {erf}\left (b x +a \right ) d \,x^{2}}{2}+\operatorname {erf}\left (b x +a \right ) c x -\frac {b \left ({\mathrm e}^{-a^{2}} d \left (-\frac {x \,{\mathrm e}^{-b^{2} x^{2}-2 a b x}}{2 b^{2}}-\frac {a \left (-\frac {{\mathrm e}^{-b^{2} x^{2}-2 a b x}}{2 b^{2}}-\frac {a \sqrt {\pi }\, {\mathrm e}^{a^{2}} \operatorname {erf}\left (b x +a \right )}{2 b^{2}}\right )}{b}+\frac {\sqrt {\pi }\, {\mathrm e}^{a^{2}} \operatorname {erf}\left (b x +a \right )}{4 b^{3}}\right )+2 \,{\mathrm e}^{-a^{2}} c \left (-\frac {{\mathrm e}^{-b^{2} x^{2}-2 a b x}}{2 b^{2}}-\frac {a \sqrt {\pi }\, {\mathrm e}^{a^{2}} \operatorname {erf}\left (b x +a \right )}{2 b^{2}}\right )\right )}{\sqrt {\pi }}\) | \(173\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 91, normalized size of antiderivative = 0.77 \[ \int (c+d x) \text {erf}(a+b x) \, dx=\frac {2 \, \sqrt {\pi } {\left (b d x + 2 \, b c - a d\right )} e^{\left (-b^{2} x^{2} - 2 \, a b x - a^{2}\right )} + {\left (2 \, \pi b^{2} d x^{2} + 4 \, \pi b^{2} c x + \pi {\left (4 \, a b c - {\left (2 \, a^{2} + 1\right )} d\right )}\right )} \operatorname {erf}\left (b x + a\right )}{4 \, \pi b^{2}} \]
[In]
[Out]
Time = 0.44 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.51 \[ \int (c+d x) \text {erf}(a+b x) \, dx=\begin {cases} - \frac {a^{2} d \operatorname {erf}{\left (a + b x \right )}}{2 b^{2}} + \frac {a c \operatorname {erf}{\left (a + b x \right )}}{b} - \frac {a d e^{- a^{2}} e^{- b^{2} x^{2}} e^{- 2 a b x}}{2 \sqrt {\pi } b^{2}} + c x \operatorname {erf}{\left (a + b x \right )} + \frac {d x^{2} \operatorname {erf}{\left (a + b x \right )}}{2} + \frac {c e^{- a^{2}} e^{- b^{2} x^{2}} e^{- 2 a b x}}{\sqrt {\pi } b} + \frac {d x e^{- a^{2}} e^{- b^{2} x^{2}} e^{- 2 a b x}}{2 \sqrt {\pi } b} - \frac {d \operatorname {erf}{\left (a + b x \right )}}{4 b^{2}} & \text {for}\: b \neq 0 \\\left (c x + \frac {d x^{2}}{2}\right ) \operatorname {erf}{\left (a \right )} & \text {otherwise} \end {cases} \]
[In]
[Out]
\[ \int (c+d x) \text {erf}(a+b x) \, dx=\int { {\left (d x + c\right )} \operatorname {erf}\left (b x + a\right ) \,d x } \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 149, normalized size of antiderivative = 1.26 \[ \int (c+d x) \text {erf}(a+b x) \, dx=\frac {1}{2} \, {\left (d x^{2} + 2 \, c x\right )} \operatorname {erf}\left (b x + a\right ) - \frac {4 \, \sqrt {\pi } {\left (\frac {\sqrt {\pi } a \operatorname {erf}\left (-b {\left (x + \frac {a}{b}\right )}\right )}{b} - \frac {e^{\left (-b^{2} x^{2} - 2 \, a b x - a^{2}\right )}}{b}\right )} c - \frac {\sqrt {\pi } {\left (\frac {\sqrt {\pi } {\left (2 \, a^{2} + 1\right )} \operatorname {erf}\left (-b {\left (x + \frac {a}{b}\right )}\right )}{b} + \frac {2 \, {\left (b {\left (x + \frac {a}{b}\right )} - 2 \, a\right )} e^{\left (-b^{2} x^{2} - 2 \, a b x - a^{2}\right )}}{b}\right )} d}{b}}{4 \, \pi } \]
[In]
[Out]
Time = 5.85 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.07 \[ \int (c+d x) \text {erf}(a+b x) \, dx=\mathrm {erf}\left (a+b\,x\right )\,\left (\frac {d\,x^2}{2}+c\,x\right )-\frac {\frac {{\mathrm {e}}^{-a^2-2\,a\,b\,x-b^2\,x^2}\,\left (\frac {a\,d}{2}-b\,c\right )}{b^2}-\frac {d\,x\,{\mathrm {e}}^{-a^2-2\,a\,b\,x-b^2\,x^2}}{2\,b}}{\sqrt {\pi }}+\frac {\sqrt {\pi }\,\mathrm {erfi}\left (a\,1{}\mathrm {i}+b\,x\,1{}\mathrm {i}\right )\,\left (\frac {2\,d\,a^2+d}{2\,\sqrt {\pi }}-\frac {2\,a\,b\,c}{\sqrt {\pi }}\right )\,1{}\mathrm {i}}{2\,b^2} \]
[In]
[Out]