Integrand size = 16, antiderivative size = 58 \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\frac {a x^3}{3}+\frac {b \left (c+d x^3\right ) \sec ^{-1}\left (c+d x^3\right )}{3 d}-\frac {b \text {arctanh}\left (\sqrt {1-\frac {1}{\left (c+d x^3\right )^2}}\right )}{3 d} \] Output:
1/3*a*x^3+1/3*b*(d*x^3+c)*arcsec(d*x^3+c)/d-1/3*b*arctanh((1-1/(d*x^3+c)^2 )^(1/2))/d
Result contains complex when optimal does not.
Time = 0.27 (sec) , antiderivative size = 516, normalized size of antiderivative = 8.90 \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\frac {a x^3}{3}+\frac {1}{3} b x^3 \sec ^{-1}\left (c+d x^3\right )+\frac {b \left (c+d x^3\right ) \sqrt {\frac {-1+c^2+2 c d x^3+d^2 x^6}{\left (c+d x^3\right )^2}} \left (\sqrt [4]{-1} \left (-i+\sqrt {-1+c^2}\right ) \sqrt {2 i-i c^2+2 \sqrt {-1+c^2}} \arctan \left (\frac {(-1)^{3/4} \sqrt {2 i-i c^2+2 \sqrt {-1+c^2}} d x^3}{c \sqrt {-1+c^2}-c \sqrt {-1+c^2+2 c d x^3+d^2 x^6}}\right )+(-1)^{3/4} \left (i+\sqrt {-1+c^2}\right ) \sqrt {-2 i+i c^2+2 \sqrt {-1+c^2}} \arctan \left (\frac {\sqrt [4]{-1} \sqrt {-2 i+i c^2+2 \sqrt {-1+c^2}} d x^3}{c \sqrt {-1+c^2}-c \sqrt {-1+c^2+2 c d x^3+d^2 x^6}}\right )+c \left (c \arctan \left (\frac {\sqrt {-1+c^2} d^2 x^6}{c^4+c^3 d x^3+d^2 x^6-c^2 \left (1+\sqrt {-1+c^2} \sqrt {-1+c^2+2 c d x^3+d^2 x^6}\right )}\right )-\log \left (\sqrt {-1+c^2}-d x^3-\sqrt {-1+c^2+2 c d x^3+d^2 x^6}\right )+\log \left (d^2 \left (\sqrt {-1+c^2}+d x^3-\sqrt {-1+c^2+2 c d x^3+d^2 x^6}\right )\right )\right )\right )}{3 c d \sqrt {-1+c^2+2 c d x^3+d^2 x^6}} \] Input:
Integrate[x^2*(a + b*ArcSec[c + d*x^3]),x]
Output:
(a*x^3)/3 + (b*x^3*ArcSec[c + d*x^3])/3 + (b*(c + d*x^3)*Sqrt[(-1 + c^2 + 2*c*d*x^3 + d^2*x^6)/(c + d*x^3)^2]*((-1)^(1/4)*(-I + Sqrt[-1 + c^2])*Sqrt [2*I - I*c^2 + 2*Sqrt[-1 + c^2]]*ArcTan[((-1)^(3/4)*Sqrt[2*I - I*c^2 + 2*S qrt[-1 + c^2]]*d*x^3)/(c*Sqrt[-1 + c^2] - c*Sqrt[-1 + c^2 + 2*c*d*x^3 + d^ 2*x^6])] + (-1)^(3/4)*(I + Sqrt[-1 + c^2])*Sqrt[-2*I + I*c^2 + 2*Sqrt[-1 + c^2]]*ArcTan[((-1)^(1/4)*Sqrt[-2*I + I*c^2 + 2*Sqrt[-1 + c^2]]*d*x^3)/(c* Sqrt[-1 + c^2] - c*Sqrt[-1 + c^2 + 2*c*d*x^3 + d^2*x^6])] + c*(c*ArcTan[(S qrt[-1 + c^2]*d^2*x^6)/(c^4 + c^3*d*x^3 + d^2*x^6 - c^2*(1 + Sqrt[-1 + c^2 ]*Sqrt[-1 + c^2 + 2*c*d*x^3 + d^2*x^6]))] - Log[Sqrt[-1 + c^2] - d*x^3 - S qrt[-1 + c^2 + 2*c*d*x^3 + d^2*x^6]] + Log[d^2*(Sqrt[-1 + c^2] + d*x^3 - S qrt[-1 + c^2 + 2*c*d*x^3 + d^2*x^6])])))/(3*c*d*Sqrt[-1 + c^2 + 2*c*d*x^3 + d^2*x^6])
Time = 0.27 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.93, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {7266, 2009}
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 \sec ^{-1}\left (c+d x^3\right )\right ) \, dx\) |
\(\Big \downarrow \) 7266 |
\(\displaystyle \frac {1}{3} \int \left (a+b \sec ^{-1}\left (d x^3+c\right )\right )dx^3\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{3} \left (a x^3-\frac {b \text {arctanh}\left (\sqrt {1-\frac {1}{\left (c+d x^3\right )^2}}\right )}{d}+\frac {b \left (c+d x^3\right ) \sec ^{-1}\left (c+d x^3\right )}{d}\right )\) |
Input:
Int[x^2*(a + b*ArcSec[c + d*x^3]),x]
Output:
(a*x^3 + (b*(c + d*x^3)*ArcSec[c + d*x^3])/d - (b*ArcTanh[Sqrt[1 - (c + d* x^3)^(-2)]])/d)/3
Int[(u_)*(x_)^(m_.), x_Symbol] :> Simp[1/(m + 1) Subst[Int[SubstFor[x^(m + 1), u, x], x], x, x^(m + 1)], x] /; FreeQ[m, x] && NeQ[m, -1] && Function OfQ[x^(m + 1), u, x]
Time = 0.22 (sec) , antiderivative size = 64, normalized size of antiderivative = 1.10
method | result | size |
parts | \(\frac {a \,x^{3}}{3}+\frac {b \left (\left (d \,x^{3}+c \right ) \operatorname {arcsec}\left (d \,x^{3}+c \right )-\ln \left (d \,x^{3}+c +\left (d \,x^{3}+c \right ) \sqrt {1-\frac {1}{\left (d \,x^{3}+c \right )^{2}}}\right )\right )}{3 d}\) | \(64\) |
derivativedivides | \(\frac {\left (d \,x^{3}+c \right ) a +b \left (\left (d \,x^{3}+c \right ) \operatorname {arcsec}\left (d \,x^{3}+c \right )-\ln \left (d \,x^{3}+c +\left (d \,x^{3}+c \right ) \sqrt {1-\frac {1}{\left (d \,x^{3}+c \right )^{2}}}\right )\right )}{3 d}\) | \(68\) |
default | \(\frac {\left (d \,x^{3}+c \right ) a +b \left (\left (d \,x^{3}+c \right ) \operatorname {arcsec}\left (d \,x^{3}+c \right )-\ln \left (d \,x^{3}+c +\left (d \,x^{3}+c \right ) \sqrt {1-\frac {1}{\left (d \,x^{3}+c \right )^{2}}}\right )\right )}{3 d}\) | \(68\) |
Input:
int(x^2*(a+b*arcsec(d*x^3+c)),x,method=_RETURNVERBOSE)
Output:
1/3*a*x^3+1/3*b/d*((d*x^3+c)*arcsec(d*x^3+c)-ln(d*x^3+c+(d*x^3+c)*(1-1/(d* x^3+c)^2)^(1/2)))
Time = 0.13 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.66 \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\frac {b d x^{3} \operatorname {arcsec}\left (d x^{3} + c\right ) + a d x^{3} + 2 \, b c \arctan \left (-d x^{3} - c + \sqrt {d^{2} x^{6} + 2 \, c d x^{3} + c^{2} - 1}\right ) + b \log \left (-d x^{3} - c + \sqrt {d^{2} x^{6} + 2 \, c d x^{3} + c^{2} - 1}\right )}{3 \, d} \] Input:
integrate(x^2*(a+b*arcsec(d*x^3+c)),x, algorithm="fricas")
Output:
1/3*(b*d*x^3*arcsec(d*x^3 + c) + a*d*x^3 + 2*b*c*arctan(-d*x^3 - c + sqrt( d^2*x^6 + 2*c*d*x^3 + c^2 - 1)) + b*log(-d*x^3 - c + sqrt(d^2*x^6 + 2*c*d* x^3 + c^2 - 1)))/d
Timed out. \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\text {Timed out} \] Input:
integrate(x**2*(a+b*asec(d*x**3+c)),x)
Output:
Timed out
Time = 0.04 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.22 \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\frac {1}{3} \, a x^{3} + \frac {{\left (2 \, {\left (d x^{3} + c\right )} \operatorname {arcsec}\left (d x^{3} + c\right ) - \log \left (\sqrt {-\frac {1}{{\left (d x^{3} + c\right )}^{2}} + 1} + 1\right ) + \log \left (-\sqrt {-\frac {1}{{\left (d x^{3} + c\right )}^{2}} + 1} + 1\right )\right )} b}{6 \, d} \] Input:
integrate(x^2*(a+b*arcsec(d*x^3+c)),x, algorithm="maxima")
Output:
1/3*a*x^3 + 1/6*(2*(d*x^3 + c)*arcsec(d*x^3 + c) - log(sqrt(-1/(d*x^3 + c) ^2 + 1) + 1) + log(-sqrt(-1/(d*x^3 + c)^2 + 1) + 1))*b/d
Time = 0.25 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.72 \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\frac {1}{3} \, a x^{3} + \frac {1}{6} \, b d {\left (\frac {2 \, {\left (d x^{3} + c\right )} \arccos \left (-\frac {1}{{\left (d x^{3} + c\right )} {\left (\frac {c}{d x^{3} + c} - 1\right )} - c}\right )}{d^{2}} - \frac {\log \left (\sqrt {-\frac {1}{{\left (d x^{3} + c\right )}^{2}} + 1} + 1\right ) - \log \left (-\sqrt {-\frac {1}{{\left (d x^{3} + c\right )}^{2}} + 1} + 1\right )}{d^{2}}\right )} \] Input:
integrate(x^2*(a+b*arcsec(d*x^3+c)),x, algorithm="giac")
Output:
1/3*a*x^3 + 1/6*b*d*(2*(d*x^3 + c)*arccos(-1/((d*x^3 + c)*(c/(d*x^3 + c) - 1) - c))/d^2 - (log(sqrt(-1/(d*x^3 + c)^2 + 1) + 1) - log(-sqrt(-1/(d*x^3 + c)^2 + 1) + 1))/d^2)
Time = 0.94 (sec) , antiderivative size = 52, normalized size of antiderivative = 0.90 \[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\frac {a\,x^3}{3}-\frac {b\,\mathrm {atanh}\left (\frac {1}{\sqrt {1-\frac {1}{{\left (d\,x^3+c\right )}^2}}}\right )}{3\,d}+\frac {b\,\mathrm {acos}\left (\frac {1}{d\,x^3+c}\right )\,\left (d\,x^3+c\right )}{3\,d} \] Input:
int(x^2*(a + b*acos(1/(c + d*x^3))),x)
Output:
(a*x^3)/3 - (b*atanh(1/(1 - 1/(c + d*x^3)^2)^(1/2)))/(3*d) + (b*acos(1/(c + d*x^3))*(c + d*x^3))/(3*d)
\[ \int x^2 \left (a+b \sec ^{-1}\left (c+d x^3\right )\right ) \, dx=\left (\int \mathit {asec} \left (d \,x^{3}+c \right ) x^{2}d x \right ) b +\frac {a \,x^{3}}{3} \] Input:
int(x^2*(a+b*asec(d*x^3+c)),x)
Output:
(3*int(asec(c + d*x**3)*x**2,x)*b + a*x**3)/3