Integrand size = 23, antiderivative size = 554 \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\frac {i (a+b \arctan (c x))^2}{c e}+\frac {x (a+b \arctan (c x))^2}{e}+\frac {2 b (a+b \arctan (c x)) \log \left (\frac {2}{1+i c x}\right )}{c e}+\frac {\sqrt {-d} (a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 e^{3/2}}-\frac {\sqrt {-d} (a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 e^{3/2}}+\frac {i b^2 \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{c e}-\frac {i b \sqrt {-d} (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 e^{3/2}}+\frac {i b \sqrt {-d} (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 e^{3/2}}+\frac {b^2 \sqrt {-d} \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 e^{3/2}}-\frac {b^2 \sqrt {-d} \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{4 e^{3/2}} \] Output:
I*(a+b*arctan(c*x))^2/c/e+x*(a+b*arctan(c*x))^2/e+2*b*(a+b*arctan(c*x))*ln (2/(1+I*c*x))/c/e+1/2*(-d)^(1/2)*(a+b*arctan(c*x))^2*ln(2*c*((-d)^(1/2)-e^ (1/2)*x)/(c*(-d)^(1/2)-I*e^(1/2))/(1-I*c*x))/e^(3/2)-1/2*(-d)^(1/2)*(a+b*a rctan(c*x))^2*ln(2*c*((-d)^(1/2)+e^(1/2)*x)/(c*(-d)^(1/2)+I*e^(1/2))/(1-I* c*x))/e^(3/2)+I*b^2*polylog(2,1-2/(1+I*c*x))/c/e-1/2*I*b*(-d)^(1/2)*(a+b*a rctan(c*x))*polylog(2,1-2*c*((-d)^(1/2)-e^(1/2)*x)/(c*(-d)^(1/2)-I*e^(1/2) )/(1-I*c*x))/e^(3/2)+1/2*I*b*(-d)^(1/2)*(a+b*arctan(c*x))*polylog(2,1-2*c* ((-d)^(1/2)+e^(1/2)*x)/(c*(-d)^(1/2)+I*e^(1/2))/(1-I*c*x))/e^(3/2)+1/4*b^2 *(-d)^(1/2)*polylog(3,1-2*c*((-d)^(1/2)-e^(1/2)*x)/(c*(-d)^(1/2)-I*e^(1/2) )/(1-I*c*x))/e^(3/2)-1/4*b^2*(-d)^(1/2)*polylog(3,1-2*c*((-d)^(1/2)+e^(1/2 )*x)/(c*(-d)^(1/2)+I*e^(1/2))/(1-I*c*x))/e^(3/2)
Timed out. \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\text {\$Aborted} \] Input:
Integrate[(x^2*(a + b*ArcTan[c*x])^2)/(d + e*x^2),x]
Output:
$Aborted
Time = 1.68 (sec) , antiderivative size = 568, normalized size of antiderivative = 1.03, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {5451, 5345, 5449, 2009, 5455, 5379, 2849, 2752}
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 {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx\) |
\(\Big \downarrow \) 5451 |
\(\displaystyle \frac {\int (a+b \arctan (c x))^2dx}{e}-\frac {d \int \frac {(a+b \arctan (c x))^2}{e x^2+d}dx}{e}\) |
\(\Big \downarrow \) 5345 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \int \frac {x (a+b \arctan (c x))}{c^2 x^2+1}dx}{e}-\frac {d \int \frac {(a+b \arctan (c x))^2}{e x^2+d}dx}{e}\) |
\(\Big \downarrow \) 5449 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \int \frac {x (a+b \arctan (c x))}{c^2 x^2+1}dx}{e}-\frac {d \int \left (\frac {\sqrt {-d} (a+b \arctan (c x))^2}{2 d \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {\sqrt {-d} (a+b \arctan (c x))^2}{2 d \left (\sqrt {e} x+\sqrt {-d}\right )}\right )dx}{e}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \int \frac {x (a+b \arctan (c x))}{c^2 x^2+1}dx}{e}-\frac {d \left (-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}\right )}{e}\) |
\(\Big \downarrow \) 5455 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \left (-\frac {\int \frac {a+b \arctan (c x)}{i-c x}dx}{c}-\frac {i (a+b \arctan (c x))^2}{2 b c^2}\right )}{e}-\frac {d \left (-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}\right )}{e}\) |
\(\Big \downarrow \) 5379 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \left (-\frac {\frac {\log \left (\frac {2}{1+i c x}\right ) (a+b \arctan (c x))}{c}-b \int \frac {\log \left (\frac {2}{i c x+1}\right )}{c^2 x^2+1}dx}{c}-\frac {i (a+b \arctan (c x))^2}{2 b c^2}\right )}{e}-\frac {d \left (-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}\right )}{e}\) |
\(\Big \downarrow \) 2849 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \left (-\frac {\frac {i b \int \frac {\log \left (\frac {2}{i c x+1}\right )}{1-\frac {2}{i c x+1}}d\frac {1}{i c x+1}}{c}+\frac {\log \left (\frac {2}{1+i c x}\right ) (a+b \arctan (c x))}{c}}{c}-\frac {i (a+b \arctan (c x))^2}{2 b c^2}\right )}{e}-\frac {d \left (-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}\right )}{e}\) |
\(\Big \downarrow \) 2752 |
\(\displaystyle \frac {x (a+b \arctan (c x))^2-2 b c \left (-\frac {i (a+b \arctan (c x))^2}{2 b c^2}-\frac {\frac {\log \left (\frac {2}{1+i c x}\right ) (a+b \arctan (c x))}{c}+\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2}{i c x+1}\right )}{2 c}}{c}\right )}{e}-\frac {d \left (-\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \arctan (c x))^2 \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 \sqrt {-d} \sqrt {e}}\right )}{e}\) |
Input:
Int[(x^2*(a + b*ArcTan[c*x])^2)/(d + e*x^2),x]
Output:
(x*(a + b*ArcTan[c*x])^2 - 2*b*c*(((-1/2*I)*(a + b*ArcTan[c*x])^2)/(b*c^2) - (((a + b*ArcTan[c*x])*Log[2/(1 + I*c*x)])/c + ((I/2)*b*PolyLog[2, 1 - 2 /(1 + I*c*x)])/c)/c))/e - (d*(((a + b*ArcTan[c*x])^2*Log[(2*c*(Sqrt[-d] - Sqrt[e]*x))/((c*Sqrt[-d] - I*Sqrt[e])*(1 - I*c*x))])/(2*Sqrt[-d]*Sqrt[e]) - ((a + b*ArcTan[c*x])^2*Log[(2*c*(Sqrt[-d] + Sqrt[e]*x))/((c*Sqrt[-d] + I *Sqrt[e])*(1 - I*c*x))])/(2*Sqrt[-d]*Sqrt[e]) - ((I/2)*b*(a + b*ArcTan[c*x ])*PolyLog[2, 1 - (2*c*(Sqrt[-d] - Sqrt[e]*x))/((c*Sqrt[-d] - I*Sqrt[e])*( 1 - I*c*x))])/(Sqrt[-d]*Sqrt[e]) + ((I/2)*b*(a + b*ArcTan[c*x])*PolyLog[2, 1 - (2*c*(Sqrt[-d] + Sqrt[e]*x))/((c*Sqrt[-d] + I*Sqrt[e])*(1 - I*c*x))]) /(Sqrt[-d]*Sqrt[e]) + (b^2*PolyLog[3, 1 - (2*c*(Sqrt[-d] - Sqrt[e]*x))/((c *Sqrt[-d] - I*Sqrt[e])*(1 - I*c*x))])/(4*Sqrt[-d]*Sqrt[e]) - (b^2*PolyLog[ 3, 1 - (2*c*(Sqrt[-d] + Sqrt[e]*x))/((c*Sqrt[-d] + I*Sqrt[e])*(1 - I*c*x)) ])/(4*Sqrt[-d]*Sqrt[e])))/e
Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLo g[2, 1 - c*x], x] /; FreeQ[{c, d, e}, x] && EqQ[e + c*d, 0]
Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> Simp [-e/g Subst[Int[Log[2*d*x]/(1 - 2*d*x), x], x, 1/(d + e*x)], x] /; FreeQ[ {c, d, e, f, g}, x] && EqQ[c, 2*d] && EqQ[e^2*f + d^2*g, 0]
Int[((a_.) + ArcTan[(c_.)*(x_)^(n_.)]*(b_.))^(p_.), x_Symbol] :> Simp[x*(a + b*ArcTan[c*x^n])^p, x] - Simp[b*c*n*p Int[x^n*((a + b*ArcTan[c*x^n])^(p - 1)/(1 + c^2*x^(2*n))), x], x] /; FreeQ[{a, b, c, n}, x] && IGtQ[p, 0] && (EqQ[n, 1] || EqQ[p, 1])
Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-(a + b*ArcTan[c*x])^p)*(Log[2/(1 + e*(x/d))]/e), x] + Simp[b*c*( p/e) Int[(a + b*ArcTan[c*x])^(p - 1)*(Log[2/(1 + e*(x/d))]/(1 + c^2*x^2)) , x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d^2 + e^2, 0 ]
Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*((d_) + (e_.)*(x_)^2)^(q_.), x _Symbol] :> Int[ExpandIntegrand[(a + b*ArcTan[c*x])^p, (d + e*x^2)^q, x], x ] /; FreeQ[{a, b, c, d, e}, x] && IntegerQ[q] && IGtQ[p, 0]
Int[(((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_))/((d_) + (e _.)*(x_)^2), x_Symbol] :> Simp[f^2/e Int[(f*x)^(m - 2)*(a + b*ArcTan[c*x] )^p, x], x] - Simp[d*(f^2/e) Int[(f*x)^(m - 2)*((a + b*ArcTan[c*x])^p/(d + e*x^2)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && GtQ[p, 0] && GtQ[m, 1]
Int[(((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*(x_))/((d_) + (e_.)*(x_)^2), x_Symbol] :> Simp[(-I)*((a + b*ArcTan[c*x])^(p + 1)/(b*e*(p + 1))), x] - Si mp[1/(c*d) Int[(a + b*ArcTan[c*x])^p/(I - c*x), x], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[e, c^2*d] && IGtQ[p, 0]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 158.36 (sec) , antiderivative size = 92148, normalized size of antiderivative = 166.33
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(92148\) |
default | \(\text {Expression too large to display}\) | \(92148\) |
Input:
int(x^2*(a+b*arctan(c*x))^2/(e*x^2+d),x,method=_RETURNVERBOSE)
Output:
result too large to display
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2} x^{2}}{e x^{2} + d} \,d x } \] Input:
integrate(x^2*(a+b*arctan(c*x))^2/(e*x^2+d),x, algorithm="fricas")
Output:
integral((b^2*x^2*arctan(c*x)^2 + 2*a*b*x^2*arctan(c*x) + a^2*x^2)/(e*x^2 + d), x)
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\int \frac {x^{2} \left (a + b \operatorname {atan}{\left (c x \right )}\right )^{2}}{d + e x^{2}}\, dx \] Input:
integrate(x**2*(a+b*atan(c*x))**2/(e*x**2+d),x)
Output:
Integral(x**2*(a + b*atan(c*x))**2/(d + e*x**2), x)
Exception generated. \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\text {Exception raised: ValueError} \] Input:
integrate(x^2*(a+b*arctan(c*x))^2/(e*x^2+d),x, algorithm="maxima")
Output:
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(e>0)', see `assume?` for more de tails)Is e
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2} x^{2}}{e x^{2} + d} \,d x } \] Input:
integrate(x^2*(a+b*arctan(c*x))^2/(e*x^2+d),x, algorithm="giac")
Output:
integrate((b*arctan(c*x) + a)^2*x^2/(e*x^2 + d), x)
Timed out. \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\int \frac {x^2\,{\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )}^2}{e\,x^2+d} \,d x \] Input:
int((x^2*(a + b*atan(c*x))^2)/(d + e*x^2),x)
Output:
int((x^2*(a + b*atan(c*x))^2)/(d + e*x^2), x)
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x^2} \, dx=\frac {-\sqrt {e}\, \sqrt {d}\, \mathit {atan} \left (\frac {e x}{\sqrt {e}\, \sqrt {d}}\right ) a^{2} c -\mathit {atan} \left (c x \right )^{2} a b \,c^{2} d +2 \mathit {atan} \left (c x \right ) a b c e x +2 \left (\int \frac {\mathit {atan} \left (c x \right )}{c^{2} e \,x^{4}+c^{2} d \,x^{2}+e \,x^{2}+d}d x \right ) a b \,c^{3} d^{2}-2 \left (\int \frac {\mathit {atan} \left (c x \right )}{c^{2} e \,x^{4}+c^{2} d \,x^{2}+e \,x^{2}+d}d x \right ) a b c d e +\left (\int \frac {\mathit {atan} \left (c x \right )^{2} x^{2}}{e \,x^{2}+d}d x \right ) b^{2} c \,e^{2}-\mathrm {log}\left (c^{2} x^{2}+1\right ) a b e +a^{2} c e x}{c \,e^{2}} \] Input:
int(x^2*(a+b*atan(c*x))^2/(e*x^2+d),x)
Output:
( - sqrt(e)*sqrt(d)*atan((e*x)/(sqrt(e)*sqrt(d)))*a**2*c - atan(c*x)**2*a* b*c**2*d + 2*atan(c*x)*a*b*c*e*x + 2*int(atan(c*x)/(c**2*d*x**2 + c**2*e*x **4 + d + e*x**2),x)*a*b*c**3*d**2 - 2*int(atan(c*x)/(c**2*d*x**2 + c**2*e *x**4 + d + e*x**2),x)*a*b*c*d*e + int((atan(c*x)**2*x**2)/(d + e*x**2),x) *b**2*c*e**2 - log(c**2*x**2 + 1)*a*b*e + a**2*c*e*x)/(c*e**2)