Integrand size = 14, antiderivative size = 63 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\frac {2 b x}{3 c}-\frac {b \arctan \left (\sqrt {c} x\right )}{3 c^{3/2}}-\frac {b \text {arctanh}\left (\sqrt {c} x\right )}{3 c^{3/2}}+\frac {1}{3} x^3 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \] Output:
2/3*b*x/c-1/3*b*arctan(c^(1/2)*x)/c^(3/2)-1/3*b*arctanh(c^(1/2)*x)/c^(3/2) +1/3*x^3*(a+b*arctanh(c*x^2))
Time = 0.02 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.44 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\frac {2 b x}{3 c}+\frac {a x^3}{3}-\frac {b \arctan \left (\sqrt {c} x\right )}{3 c^{3/2}}+\frac {1}{3} b x^3 \text {arctanh}\left (c x^2\right )+\frac {b \log \left (1-\sqrt {c} x\right )}{6 c^{3/2}}-\frac {b \log \left (1+\sqrt {c} x\right )}{6 c^{3/2}} \] Input:
Integrate[x^2*(a + b*ArcTanh[c*x^2]),x]
Output:
(2*b*x)/(3*c) + (a*x^3)/3 - (b*ArcTan[Sqrt[c]*x])/(3*c^(3/2)) + (b*x^3*Arc Tanh[c*x^2])/3 + (b*Log[1 - Sqrt[c]*x])/(6*c^(3/2)) - (b*Log[1 + Sqrt[c]*x ])/(6*c^(3/2))
Time = 0.39 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.11, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {6452, 843, 756, 216, 219}
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^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx\) |
\(\Big \downarrow \) 6452 |
\(\displaystyle \frac {1}{3} x^3 \left (a+b \text {arctanh}\left (c x^2\right )\right )-\frac {2}{3} b c \int \frac {x^4}{1-c^2 x^4}dx\) |
\(\Big \downarrow \) 843 |
\(\displaystyle \frac {1}{3} x^3 \left (a+b \text {arctanh}\left (c x^2\right )\right )-\frac {2}{3} b c \left (\frac {\int \frac {1}{1-c^2 x^4}dx}{c^2}-\frac {x}{c^2}\right )\) |
\(\Big \downarrow \) 756 |
\(\displaystyle \frac {1}{3} x^3 \left (a+b \text {arctanh}\left (c x^2\right )\right )-\frac {2}{3} b c \left (\frac {\frac {1}{2} \int \frac {1}{1-c x^2}dx+\frac {1}{2} \int \frac {1}{c x^2+1}dx}{c^2}-\frac {x}{c^2}\right )\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {1}{3} x^3 \left (a+b \text {arctanh}\left (c x^2\right )\right )-\frac {2}{3} b c \left (\frac {\frac {1}{2} \int \frac {1}{1-c x^2}dx+\frac {\arctan \left (\sqrt {c} x\right )}{2 \sqrt {c}}}{c^2}-\frac {x}{c^2}\right )\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {1}{3} x^3 \left (a+b \text {arctanh}\left (c x^2\right )\right )-\frac {2}{3} b c \left (\frac {\frac {\arctan \left (\sqrt {c} x\right )}{2 \sqrt {c}}+\frac {\text {arctanh}\left (\sqrt {c} x\right )}{2 \sqrt {c}}}{c^2}-\frac {x}{c^2}\right )\) |
Input:
Int[x^2*(a + b*ArcTanh[c*x^2]),x]
Output:
(-2*b*c*(-(x/c^2) + (ArcTan[Sqrt[c]*x]/(2*Sqrt[c]) + ArcTanh[Sqrt[c]*x]/(2 *Sqrt[c]))/c^2))/3 + (x^3*(a + b*ArcTanh[c*x^2]))/3
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^4)^(-1), x_Symbol] :> With[{r = Numerator[Rt[-a/b, 2 ]], s = Denominator[Rt[-a/b, 2]]}, Simp[r/(2*a) Int[1/(r - s*x^2), x], x] + Simp[r/(2*a) Int[1/(r + s*x^2), x], x]] /; FreeQ[{a, b}, x] && !GtQ[a /b, 0]
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^n)^(p + 1)/(b*(m + n*p + 1))), x] - Simp[ a*c^n*((m - n + 1)/(b*(m + n*p + 1))) Int[(c*x)^(m - n)*(a + b*x^n)^p, x] , x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n* p + 1, 0] && IntBinomialQ[a, b, c, n, m, p, x]
Int[((a_.) + ArcTanh[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] : > Simp[x^(m + 1)*((a + b*ArcTanh[c*x^n])^p/(m + 1)), x] - Simp[b*c*n*(p/(m + 1)) Int[x^(m + n)*((a + b*ArcTanh[c*x^n])^(p - 1)/(1 - c^2*x^(2*n))), x ], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0] && (EqQ[p, 1] || (EqQ[n, 1 ] && IntegerQ[m])) && NeQ[m, -1]
Time = 0.35 (sec) , antiderivative size = 51, normalized size of antiderivative = 0.81
method | result | size |
default | \(\frac {a \,x^{3}}{3}+\frac {b \,x^{3} \operatorname {arctanh}\left (c \,x^{2}\right )}{3}+\frac {2 b x}{3 c}-\frac {b \arctan \left (\sqrt {c}\, x \right )}{3 c^{\frac {3}{2}}}-\frac {b \,\operatorname {arctanh}\left (\sqrt {c}\, x \right )}{3 c^{\frac {3}{2}}}\) | \(51\) |
parts | \(\frac {a \,x^{3}}{3}+\frac {b \,x^{3} \operatorname {arctanh}\left (c \,x^{2}\right )}{3}+\frac {2 b x}{3 c}-\frac {b \arctan \left (\sqrt {c}\, x \right )}{3 c^{\frac {3}{2}}}-\frac {b \,\operatorname {arctanh}\left (\sqrt {c}\, x \right )}{3 c^{\frac {3}{2}}}\) | \(51\) |
risch | \(\frac {b \,x^{3} \ln \left (c \,x^{2}+1\right )}{6}-\frac {b \,x^{3} \ln \left (-c \,x^{2}+1\right )}{6}+\frac {a \,x^{3}}{3}-\frac {b \ln \left (1+\sqrt {c}\, x \right )}{6 c^{\frac {3}{2}}}+\frac {b \ln \left (\sqrt {c}\, x -1\right )}{6 c^{\frac {3}{2}}}+\frac {2 b x}{3 c}-\frac {\sqrt {-c}\, \ln \left (\sqrt {-c}\, x -1\right ) b}{6 c^{2}}+\frac {\sqrt {-c}\, \ln \left (1+\sqrt {-c}\, x \right ) b}{6 c^{2}}\) | \(114\) |
Input:
int(x^2*(a+b*arctanh(c*x^2)),x,method=_RETURNVERBOSE)
Output:
1/3*a*x^3+1/3*b*x^3*arctanh(c*x^2)+2/3*b*x/c-1/3*b*arctan(c^(1/2)*x)/c^(3/ 2)-1/3*b*arctanh(c^(1/2)*x)/c^(3/2)
Leaf count of result is larger than twice the leaf count of optimal. 97 vs. \(2 (47) = 94\).
Time = 0.09 (sec) , antiderivative size = 186, normalized size of antiderivative = 2.95 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\left [\frac {b c^{2} x^{3} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 2 \, a c^{2} x^{3} + 4 \, b c x - 2 \, b \sqrt {c} \arctan \left (\sqrt {c} x\right ) + b \sqrt {c} \log \left (\frac {c x^{2} - 2 \, \sqrt {c} x + 1}{c x^{2} - 1}\right )}{6 \, c^{2}}, \frac {b c^{2} x^{3} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + 2 \, a c^{2} x^{3} + 4 \, b c x + 2 \, b \sqrt {-c} \arctan \left (\sqrt {-c} x\right ) - b \sqrt {-c} \log \left (\frac {c x^{2} + 2 \, \sqrt {-c} x - 1}{c x^{2} + 1}\right )}{6 \, c^{2}}\right ] \] Input:
integrate(x^2*(a+b*arctanh(c*x^2)),x, algorithm="fricas")
Output:
[1/6*(b*c^2*x^3*log(-(c*x^2 + 1)/(c*x^2 - 1)) + 2*a*c^2*x^3 + 4*b*c*x - 2* b*sqrt(c)*arctan(sqrt(c)*x) + b*sqrt(c)*log((c*x^2 - 2*sqrt(c)*x + 1)/(c*x ^2 - 1)))/c^2, 1/6*(b*c^2*x^3*log(-(c*x^2 + 1)/(c*x^2 - 1)) + 2*a*c^2*x^3 + 4*b*c*x + 2*b*sqrt(-c)*arctan(sqrt(-c)*x) - b*sqrt(-c)*log((c*x^2 + 2*sq rt(-c)*x - 1)/(c*x^2 + 1)))/c^2]
Leaf count of result is larger than twice the leaf count of optimal. 670 vs. \(2 (56) = 112\).
Time = 2.93 (sec) , antiderivative size = 670, normalized size of antiderivative = 10.63 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\begin {cases} \frac {4 a c^{2} x^{3} \sqrt {- \frac {1}{c}}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 a c^{2} x^{3} \sqrt {\frac {1}{c}}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 b c^{2} x^{3} \sqrt {- \frac {1}{c}} \operatorname {atanh}{\left (c x^{2} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 b c^{2} x^{3} \sqrt {\frac {1}{c}} \operatorname {atanh}{\left (c x^{2} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} - \frac {b c^{2} \left (- \frac {1}{c}\right )^{\frac {3}{2}} \sqrt {\frac {1}{c}} \log {\left (x + \sqrt {- \frac {1}{c}} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {b c^{2} \sqrt {- \frac {1}{c}} \left (\frac {1}{c}\right )^{\frac {3}{2}} \log {\left (x + \sqrt {- \frac {1}{c}} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {8 b c x \sqrt {- \frac {1}{c}}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {8 b c x \sqrt {\frac {1}{c}}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} - \frac {6 b c \sqrt {- \frac {1}{c}} \sqrt {\frac {1}{c}} \log {\left (x + \sqrt {- \frac {1}{c}} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 b c \sqrt {- \frac {1}{c}} \sqrt {\frac {1}{c}} \log {\left (x - \sqrt {\frac {1}{c}} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 b c \sqrt {- \frac {1}{c}} \sqrt {\frac {1}{c}} \operatorname {atanh}{\left (c x^{2} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} - \frac {4 b \log {\left (x - \sqrt {- \frac {1}{c}} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 b \log {\left (x - \sqrt {\frac {1}{c}} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} + \frac {4 b \operatorname {atanh}{\left (c x^{2} \right )}}{12 c^{2} \sqrt {- \frac {1}{c}} + 12 c^{2} \sqrt {\frac {1}{c}}} & \text {for}\: c \neq 0 \\\frac {a x^{3}}{3} & \text {otherwise} \end {cases} \] Input:
integrate(x**2*(a+b*atanh(c*x**2)),x)
Output:
Piecewise((4*a*c**2*x**3*sqrt(-1/c)/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c )) + 4*a*c**2*x**3*sqrt(1/c)/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 4* b*c**2*x**3*sqrt(-1/c)*atanh(c*x**2)/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/ c)) + 4*b*c**2*x**3*sqrt(1/c)*atanh(c*x**2)/(12*c**2*sqrt(-1/c) + 12*c**2* sqrt(1/c)) - b*c**2*(-1/c)**(3/2)*sqrt(1/c)*log(x + sqrt(-1/c))/(12*c**2*s qrt(-1/c) + 12*c**2*sqrt(1/c)) + b*c**2*sqrt(-1/c)*(1/c)**(3/2)*log(x + sq rt(-1/c))/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 8*b*c*x*sqrt(-1/c)/(1 2*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 8*b*c*x*sqrt(1/c)/(12*c**2*sqrt(- 1/c) + 12*c**2*sqrt(1/c)) - 6*b*c*sqrt(-1/c)*sqrt(1/c)*log(x + sqrt(-1/c)) /(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 4*b*c*sqrt(-1/c)*sqrt(1/c)*log (x - sqrt(1/c))/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 4*b*c*sqrt(-1/c )*sqrt(1/c)*atanh(c*x**2)/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) - 4*b*l og(x - sqrt(-1/c))/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 4*b*log(x - sqrt(1/c))/(12*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)) + 4*b*atanh(c*x**2)/(1 2*c**2*sqrt(-1/c) + 12*c**2*sqrt(1/c)), Ne(c, 0)), (a*x**3/3, True))
Time = 0.10 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.05 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\frac {1}{3} \, a x^{3} + \frac {1}{6} \, {\left (2 \, x^{3} \operatorname {artanh}\left (c x^{2}\right ) + c {\left (\frac {4 \, x}{c^{2}} - \frac {2 \, \arctan \left (\sqrt {c} x\right )}{c^{\frac {5}{2}}} + \frac {\log \left (\frac {c x - \sqrt {c}}{c x + \sqrt {c}}\right )}{c^{\frac {5}{2}}}\right )}\right )} b \] Input:
integrate(x^2*(a+b*arctanh(c*x^2)),x, algorithm="maxima")
Output:
1/3*a*x^3 + 1/6*(2*x^3*arctanh(c*x^2) + c*(4*x/c^2 - 2*arctan(sqrt(c)*x)/c ^(5/2) + log((c*x - sqrt(c))/(c*x + sqrt(c)))/c^(5/2)))*b
Time = 0.16 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.19 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=-\frac {1}{3} \, b c^{5} {\left (\frac {\arctan \left (\sqrt {c} x\right )}{c^{\frac {13}{2}}} - \frac {\arctan \left (\frac {c x}{\sqrt {-c}}\right )}{\sqrt {-c} c^{6}}\right )} + \frac {1}{6} \, b x^{3} \log \left (-\frac {c x^{2} + 1}{c x^{2} - 1}\right ) + \frac {1}{3} \, a x^{3} + \frac {2 \, b x}{3 \, c} \] Input:
integrate(x^2*(a+b*arctanh(c*x^2)),x, algorithm="giac")
Output:
-1/3*b*c^5*(arctan(sqrt(c)*x)/c^(13/2) - arctan(c*x/sqrt(-c))/(sqrt(-c)*c^ 6)) + 1/6*b*x^3*log(-(c*x^2 + 1)/(c*x^2 - 1)) + 1/3*a*x^3 + 2/3*b*x/c
Time = 3.83 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.11 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\frac {a\,x^3}{3}-\frac {b\,\mathrm {atan}\left (\sqrt {c}\,x\right )}{3\,c^{3/2}}+\frac {2\,b\,x}{3\,c}+\frac {b\,x^3\,\ln \left (c\,x^2+1\right )}{6}-\frac {b\,x^3\,\ln \left (1-c\,x^2\right )}{6}+\frac {b\,\mathrm {atan}\left (\sqrt {c}\,x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{3\,c^{3/2}} \] Input:
int(x^2*(a + b*atanh(c*x^2)),x)
Output:
(a*x^3)/3 - (b*atan(c^(1/2)*x))/(3*c^(3/2)) + (b*atan(c^(1/2)*x*1i)*1i)/(3 *c^(3/2)) + (2*b*x)/(3*c) + (b*x^3*log(c*x^2 + 1))/6 - (b*x^3*log(1 - c*x^ 2))/6
Time = 0.17 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.33 \[ \int x^2 \left (a+b \text {arctanh}\left (c x^2\right )\right ) \, dx=\frac {-2 \sqrt {c}\, \mathit {atan} \left (\frac {c x}{\sqrt {c}}\right ) b +2 \sqrt {c}\, \mathit {atanh} \left (c \,x^{2}\right ) b +2 \mathit {atanh} \left (c \,x^{2}\right ) b \,c^{2} x^{3}+2 \sqrt {c}\, \mathrm {log}\left (\sqrt {c}\, x -1\right ) b -\sqrt {c}\, \mathrm {log}\left (c \,x^{2}+1\right ) b +2 a \,c^{2} x^{3}+4 b c x}{6 c^{2}} \] Input:
int(x^2*(a+b*atanh(c*x^2)),x)
Output:
( - 2*sqrt(c)*atan((c*x)/sqrt(c))*b + 2*sqrt(c)*atanh(c*x**2)*b + 2*atanh( c*x**2)*b*c**2*x**3 + 2*sqrt(c)*log(sqrt(c)*x - 1)*b - sqrt(c)*log(c*x**2 + 1)*b + 2*a*c**2*x**3 + 4*b*c*x)/(6*c**2)