Integrand size = 17, antiderivative size = 85 \[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=(1-x)^{2/3} \sqrt [3]{1+x}+\frac {4 \arctan \left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{1+x}}\right )}{\sqrt {3}}+\frac {2}{3} \log (1+x)+2 \log \left (1+\frac {\sqrt [3]{1-x}}{\sqrt [3]{1+x}}\right ) \] Output:
(1-x)^(2/3)*(1+x)^(1/3)-4/3*arctan(-1/3*3^(1/2)+2/3*(1-x)^(1/3)*3^(1/2)/(1 +x)^(1/3))*3^(1/2)+2/3*ln(1+x)+2*ln(1+(1-x)^(1/3)/(1+x)^(1/3))
Time = 0.11 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.39 \[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=\frac {1}{3} \left (3 (1-x)^{2/3} \sqrt [3]{1+x}-4 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{1+x}}{-2 \sqrt [3]{1-x}+\sqrt [3]{1+x}}\right )+4 \log \left (\sqrt [3]{1-x}+\sqrt [3]{1+x}\right )-2 \log \left ((1-x)^{2/3}+(1+x)^{2/3}-\sqrt [3]{1-x^2}\right )\right ) \] Input:
Integrate[(1 - x)^(2/3)/(1 + x)^(2/3),x]
Output:
(3*(1 - x)^(2/3)*(1 + x)^(1/3) - 4*Sqrt[3]*ArcTan[(Sqrt[3]*(1 + x)^(1/3))/ (-2*(1 - x)^(1/3) + (1 + x)^(1/3))] + 4*Log[(1 - x)^(1/3) + (1 + x)^(1/3)] - 2*Log[(1 - x)^(2/3) + (1 + x)^(2/3) - (1 - x^2)^(1/3)])/3
Time = 0.16 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.07, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {60, 72}
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 \frac {(1-x)^{2/3}}{(x+1)^{2/3}} \, dx\) |
\(\Big \downarrow \) 60 |
\(\displaystyle \frac {4}{3} \int \frac {1}{\sqrt [3]{1-x} (x+1)^{2/3}}dx+(1-x)^{2/3} \sqrt [3]{x+1}\) |
\(\Big \downarrow \) 72 |
\(\displaystyle \frac {4}{3} \left (\sqrt {3} \arctan \left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{x+1}}\right )+\frac {1}{2} \log (x+1)+\frac {3}{2} \log \left (\frac {\sqrt [3]{1-x}}{\sqrt [3]{x+1}}+1\right )\right )+(1-x)^{2/3} \sqrt [3]{x+1}\) |
Input:
Int[(1 - x)^(2/3)/(1 + x)^(2/3),x]
Output:
(1 - x)^(2/3)*(1 + x)^(1/3) + (4*(Sqrt[3]*ArcTan[1/Sqrt[3] - (2*(1 - x)^(1 /3))/(Sqrt[3]*(1 + x)^(1/3))] + Log[1 + x]/2 + (3*Log[1 + (1 - x)^(1/3)/(1 + x)^(1/3)])/2))/3
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ (a + b*x)^(m + 1)*((c + d*x)^n/(b*(m + n + 1))), x] + Simp[n*((b*c - a*d)/( b*(m + n + 1))) Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a, b, c, d}, x] && GtQ[n, 0] && NeQ[m + n + 1, 0] && !(IGtQ[m, 0] && ( !Integer Q[n] || (GtQ[m, 0] && LtQ[m - n, 0]))) && !ILtQ[m + n + 2, 0] && IntLinear Q[a, b, c, d, m, n, x]
Int[1/(((a_.) + (b_.)*(x_))^(1/3)*((c_.) + (d_.)*(x_))^(2/3)), x_Symbol] :> With[{q = Rt[-d/b, 3]}, Simp[Sqrt[3]*(q/d)*ArcTan[1/Sqrt[3] - 2*q*((a + b* x)^(1/3)/(Sqrt[3]*(c + d*x)^(1/3)))], x] + (Simp[3*(q/(2*d))*Log[q*((a + b* x)^(1/3)/(c + d*x)^(1/3)) + 1], x] + Simp[(q/(2*d))*Log[c + d*x], x])] /; F reeQ[{a, b, c, d}, x] && NegQ[d/b]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.34 (sec) , antiderivative size = 412, normalized size of antiderivative = 4.85
method | result | size |
risch | \(-\frac {\left (1+x \right )^{\frac {1}{3}} \left (-1+x \right ) \left (\left (1-x \right ) \left (1+x \right )^{2}\right )^{\frac {1}{3}}}{\left (-\left (-1+x \right ) \left (1+x \right )^{2}\right )^{\frac {1}{3}} \left (1-x \right )^{\frac {1}{3}}}+\frac {\left (\frac {4 \ln \left (\frac {-4 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right )^{2} x^{2}+3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) \left (-x^{3}-x^{2}+x +1\right )^{\frac {2}{3}}+3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) \left (-x^{3}-x^{2}+x +1\right )^{\frac {1}{3}} x -4 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right )^{2} x -4 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) x^{2}+3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) \left (-x^{3}-x^{2}+x +1\right )^{\frac {1}{3}}+3 \left (-x^{3}-x^{2}+x +1\right )^{\frac {1}{3}} x -2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) x -x^{2}+3 \left (-x^{3}-x^{2}+x +1\right )^{\frac {1}{3}}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right )+1}{1+x}\right )}{3}+\frac {4 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) \ln \left (-\frac {-2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right )^{2} x^{2}+3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) \left (-x^{3}-x^{2}+x +1\right )^{\frac {2}{3}}-2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right )^{2} x -5 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) x^{2}+3 \left (-x^{3}-x^{2}+x +1\right )^{\frac {2}{3}}+3 \left (-x^{3}-x^{2}+x +1\right )^{\frac {1}{3}} x -6 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right ) x -2 x^{2}+3 \left (-x^{3}-x^{2}+x +1\right )^{\frac {1}{3}}-\operatorname {RootOf}\left (\textit {\_Z}^{2}+\textit {\_Z} +1\right )-4 x -2}{1+x}\right )}{3}\right ) \left (\left (1-x \right ) \left (1+x \right )^{2}\right )^{\frac {1}{3}}}{\left (1+x \right )^{\frac {2}{3}} \left (1-x \right )^{\frac {1}{3}}}\) | \(412\) |
Input:
int((1-x)^(2/3)/(1+x)^(2/3),x,method=_RETURNVERBOSE)
Output:
-(1+x)^(1/3)*(-1+x)/(-(-1+x)*(1+x)^2)^(1/3)*((1-x)*(1+x)^2)^(1/3)/(1-x)^(1 /3)+(4/3*ln((-4*RootOf(_Z^2+_Z+1)^2*x^2+3*RootOf(_Z^2+_Z+1)*(-x^3-x^2+x+1) ^(2/3)+3*RootOf(_Z^2+_Z+1)*(-x^3-x^2+x+1)^(1/3)*x-4*RootOf(_Z^2+_Z+1)^2*x- 4*RootOf(_Z^2+_Z+1)*x^2+3*RootOf(_Z^2+_Z+1)*(-x^3-x^2+x+1)^(1/3)+3*(-x^3-x ^2+x+1)^(1/3)*x-2*RootOf(_Z^2+_Z+1)*x-x^2+3*(-x^3-x^2+x+1)^(1/3)+2*RootOf( _Z^2+_Z+1)+1)/(1+x))+4/3*RootOf(_Z^2+_Z+1)*ln(-(-2*RootOf(_Z^2+_Z+1)^2*x^2 +3*RootOf(_Z^2+_Z+1)*(-x^3-x^2+x+1)^(2/3)-2*RootOf(_Z^2+_Z+1)^2*x-5*RootOf (_Z^2+_Z+1)*x^2+3*(-x^3-x^2+x+1)^(2/3)+3*(-x^3-x^2+x+1)^(1/3)*x-6*RootOf(_ Z^2+_Z+1)*x-2*x^2+3*(-x^3-x^2+x+1)^(1/3)-RootOf(_Z^2+_Z+1)-4*x-2)/(1+x)))/ (1+x)^(2/3)*((1-x)*(1+x)^2)^(1/3)/(1-x)^(1/3)
Time = 0.08 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.39 \[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=-\frac {4}{3} \, \sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (x - 1\right )} + 2 \, \sqrt {3} {\left (x + 1\right )}^{\frac {1}{3}} {\left (-x + 1\right )}^{\frac {2}{3}}}{3 \, {\left (x - 1\right )}}\right ) + {\left (x + 1\right )}^{\frac {1}{3}} {\left (-x + 1\right )}^{\frac {2}{3}} - \frac {2}{3} \, \log \left (\frac {x - {\left (x + 1\right )}^{\frac {2}{3}} {\left (-x + 1\right )}^{\frac {1}{3}} + {\left (x + 1\right )}^{\frac {1}{3}} {\left (-x + 1\right )}^{\frac {2}{3}} - 1}{x - 1}\right ) + \frac {4}{3} \, \log \left (-\frac {x - {\left (x + 1\right )}^{\frac {1}{3}} {\left (-x + 1\right )}^{\frac {2}{3}} - 1}{x - 1}\right ) \] Input:
integrate((1-x)^(2/3)/(1+x)^(2/3),x, algorithm="fricas")
Output:
-4/3*sqrt(3)*arctan(1/3*(sqrt(3)*(x - 1) + 2*sqrt(3)*(x + 1)^(1/3)*(-x + 1 )^(2/3))/(x - 1)) + (x + 1)^(1/3)*(-x + 1)^(2/3) - 2/3*log((x - (x + 1)^(2 /3)*(-x + 1)^(1/3) + (x + 1)^(1/3)*(-x + 1)^(2/3) - 1)/(x - 1)) + 4/3*log( -(x - (x + 1)^(1/3)*(-x + 1)^(2/3) - 1)/(x - 1))
Result contains complex when optimal does not.
Time = 1.38 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.48 \[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=\frac {2^{\frac {2}{3}} \sqrt [3]{x + 1} \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {2}{3}, \frac {1}{3} \\ \frac {4}{3} \end {matrix}\middle | {\frac {\left (x + 1\right ) e^{2 i \pi }}{2}} \right )}}{\Gamma \left (\frac {4}{3}\right )} \] Input:
integrate((1-x)**(2/3)/(1+x)**(2/3),x)
Output:
2**(2/3)*(x + 1)**(1/3)*gamma(1/3)*hyper((-2/3, 1/3), (4/3,), (x + 1)*exp_ polar(2*I*pi)/2)/gamma(4/3)
\[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=\int { \frac {{\left (-x + 1\right )}^{\frac {2}{3}}}{{\left (x + 1\right )}^{\frac {2}{3}}} \,d x } \] Input:
integrate((1-x)^(2/3)/(1+x)^(2/3),x, algorithm="maxima")
Output:
integrate((-x + 1)^(2/3)/(x + 1)^(2/3), x)
\[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=\int { \frac {{\left (-x + 1\right )}^{\frac {2}{3}}}{{\left (x + 1\right )}^{\frac {2}{3}}} \,d x } \] Input:
integrate((1-x)^(2/3)/(1+x)^(2/3),x, algorithm="giac")
Output:
integrate((-x + 1)^(2/3)/(x + 1)^(2/3), x)
Timed out. \[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=\int \frac {{\left (1-x\right )}^{2/3}}{{\left (x+1\right )}^{2/3}} \,d x \] Input:
int((1 - x)^(2/3)/(x + 1)^(2/3),x)
Output:
int((1 - x)^(2/3)/(x + 1)^(2/3), x)
\[ \int \frac {(1-x)^{2/3}}{(1+x)^{2/3}} \, dx=\int \frac {\left (1-x \right )^{\frac {2}{3}}}{\left (x +1\right )^{\frac {2}{3}}}d x \] Input:
int((1-x)^(2/3)/(1+x)^(2/3),x)
Output:
int(( - x + 1)**(2/3)/(x + 1)**(2/3),x)