\(\int \frac {\log (d (a+c x^2)^n)}{a e+c e x^2} \, dx\) [92]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (warning: unable to verify)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 25, antiderivative size = 175 \[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\frac {i n \arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {c} e}+\frac {2 n \arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e}+\frac {\arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}+\frac {i n \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e} \]

[Out]

I*n*arctan(x*c^(1/2)/a^(1/2))^2/e/a^(1/2)/c^(1/2)+arctan(x*c^(1/2)/a^(1/2))*ln(d*(c*x^2+a)^n)/e/a^(1/2)/c^(1/2
)+2*n*arctan(x*c^(1/2)/a^(1/2))*ln(2*a^(1/2)/(a^(1/2)+I*x*c^(1/2)))/e/a^(1/2)/c^(1/2)+I*n*polylog(2,1-2*a^(1/2
)/(a^(1/2)+I*x*c^(1/2)))/e/a^(1/2)/c^(1/2)

Rubi [A] (verified)

Time = 0.11 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {211, 2520, 12, 5040, 4964, 2449, 2352} \[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\frac {\arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}+\frac {i n \arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {c} e}+\frac {2 n \arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e}+\frac {i n \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {a}}{i \sqrt {c} x+\sqrt {a}}\right )}{\sqrt {a} \sqrt {c} e} \]

[In]

Int[Log[d*(a + c*x^2)^n]/(a*e + c*e*x^2),x]

[Out]

(I*n*ArcTan[(Sqrt[c]*x)/Sqrt[a]]^2)/(Sqrt[a]*Sqrt[c]*e) + (2*n*ArcTan[(Sqrt[c]*x)/Sqrt[a]]*Log[(2*Sqrt[a])/(Sq
rt[a] + I*Sqrt[c]*x)])/(Sqrt[a]*Sqrt[c]*e) + (ArcTan[(Sqrt[c]*x)/Sqrt[a]]*Log[d*(a + c*x^2)^n])/(Sqrt[a]*Sqrt[
c]*e) + (I*n*PolyLog[2, 1 - (2*Sqrt[a])/(Sqrt[a] + I*Sqrt[c]*x)])/(Sqrt[a]*Sqrt[c]*e)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2449

Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> Dist[-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]

Rule 2520

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))/((f_) + (g_.)*(x_)^2), x_Symbol] :> With[{u = In
tHide[1/(f + g*x^2), x]}, Simp[u*(a + b*Log[c*(d + e*x^n)^p]), x] - Dist[b*e*n*p, Int[u*(x^(n - 1)/(d + e*x^n)
), x], x]] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && IntegerQ[n]

Rule 4964

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] + Dist[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]

Rule 5040

Int[(((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*(x_))/((d_) + (e_.)*(x_)^2), x_Symbol] :> Simp[(-I)*((a + b*ArcT
an[c*x])^(p + 1)/(b*e*(p + 1))), x] - Dist[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]

Rubi steps \begin{align*} \text {integral}& = \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}-(2 c n) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {c} e \left (a+c x^2\right )} \, dx \\ & = \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}-\frac {\left (2 \sqrt {c} n\right ) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{a+c x^2} \, dx}{\sqrt {a} e} \\ & = \frac {i n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {c} e}+\frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}+\frac {(2 n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{i-\frac {\sqrt {c} x}{\sqrt {a}}} \, dx}{a e} \\ & = \frac {i n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {c} e}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e}+\frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}-\frac {(2 n) \int \frac {\log \left (\frac {2}{1+\frac {i \sqrt {c} x}{\sqrt {a}}}\right )}{1+\frac {c x^2}{a}} \, dx}{a e} \\ & = \frac {i n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {c} e}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e}+\frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}+\frac {(2 i n) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+\frac {i \sqrt {c} x}{\sqrt {a}}}\right )}{\sqrt {a} \sqrt {c} e} \\ & = \frac {i n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {c} e}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e}+\frac {\tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \log \left (d \left (a+c x^2\right )^n\right )}{\sqrt {a} \sqrt {c} e}+\frac {i n \text {Li}_2\left (1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.04 (sec) , antiderivative size = 131, normalized size of antiderivative = 0.75 \[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\frac {\arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right ) \left (i n \arctan \left (\frac {\sqrt {c} x}{\sqrt {a}}\right )+2 n \log \left (\frac {2 i}{i-\frac {\sqrt {c} x}{\sqrt {a}}}\right )+\log \left (d \left (a+c x^2\right )^n\right )\right )+i n \operatorname {PolyLog}\left (2,\frac {i \sqrt {a}+\sqrt {c} x}{-i \sqrt {a}+\sqrt {c} x}\right )}{\sqrt {a} \sqrt {c} e} \]

[In]

Integrate[Log[d*(a + c*x^2)^n]/(a*e + c*e*x^2),x]

[Out]

(ArcTan[(Sqrt[c]*x)/Sqrt[a]]*(I*n*ArcTan[(Sqrt[c]*x)/Sqrt[a]] + 2*n*Log[(2*I)/(I - (Sqrt[c]*x)/Sqrt[a])] + Log
[d*(a + c*x^2)^n]) + I*n*PolyLog[2, (I*Sqrt[a] + Sqrt[c]*x)/((-I)*Sqrt[a] + Sqrt[c]*x)])/(Sqrt[a]*Sqrt[c]*e)

Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 1.60 (sec) , antiderivative size = 292, normalized size of antiderivative = 1.67

method result size
risch \(-\frac {\arctan \left (\frac {x c}{\sqrt {c a}}\right ) n \ln \left (c \,x^{2}+a \right )}{e \sqrt {c a}}+\frac {\arctan \left (\frac {x c}{\sqrt {c a}}\right ) \ln \left (\left (c \,x^{2}+a \right )^{n}\right )}{e \sqrt {c a}}+\frac {n \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\operatorname {RootOf}\left (c \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {2 \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (c \,x^{2}+a \right )-c \left (\frac {\ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right )^{2}}{\underline {\hspace {1.25 ex}}\alpha c}+\frac {2 \underline {\hspace {1.25 ex}}\alpha \ln \left (x -\underline {\hspace {1.25 ex}}\alpha \right ) \ln \left (\frac {x +\underline {\hspace {1.25 ex}}\alpha }{2 \underline {\hspace {1.25 ex}}\alpha }\right )}{a}+\frac {2 \underline {\hspace {1.25 ex}}\alpha \operatorname {dilog}\left (\frac {x +\underline {\hspace {1.25 ex}}\alpha }{2 \underline {\hspace {1.25 ex}}\alpha }\right )}{a}\right )}{\underline {\hspace {1.25 ex}}\alpha }\right )}{4 e c}+\frac {\left (i \pi \,\operatorname {csgn}\left (i \left (c \,x^{2}+a \right )^{n}\right ) {\operatorname {csgn}\left (i d \left (c \,x^{2}+a \right )^{n}\right )}^{2}-i \pi \,\operatorname {csgn}\left (i \left (c \,x^{2}+a \right )^{n}\right ) \operatorname {csgn}\left (i d \left (c \,x^{2}+a \right )^{n}\right ) \operatorname {csgn}\left (i d \right )-i \pi {\operatorname {csgn}\left (i d \left (c \,x^{2}+a \right )^{n}\right )}^{3}+i \pi {\operatorname {csgn}\left (i d \left (c \,x^{2}+a \right )^{n}\right )}^{2} \operatorname {csgn}\left (i d \right )+2 \ln \left (d \right )\right ) \arctan \left (\frac {x c}{\sqrt {c a}}\right )}{2 e \sqrt {c a}}\) \(292\)

[In]

int(ln(d*(c*x^2+a)^n)/(c*e*x^2+a*e),x,method=_RETURNVERBOSE)

[Out]

-1/e/(c*a)^(1/2)*arctan(x*c/(c*a)^(1/2))*n*ln(c*x^2+a)+1/e/(c*a)^(1/2)*arctan(x*c/(c*a)^(1/2))*ln((c*x^2+a)^n)
+1/4/e*n/c*sum(1/_alpha*(2*ln(x-_alpha)*ln(c*x^2+a)-c*(1/_alpha/c*ln(x-_alpha)^2+2*_alpha/a*ln(x-_alpha)*ln(1/
2*(x+_alpha)/_alpha)+2*_alpha/a*dilog(1/2*(x+_alpha)/_alpha))),_alpha=RootOf(_Z^2*c+a))+1/2*(I*Pi*csgn(I*(c*x^
2+a)^n)*csgn(I*d*(c*x^2+a)^n)^2-I*Pi*csgn(I*(c*x^2+a)^n)*csgn(I*d*(c*x^2+a)^n)*csgn(I*d)-I*Pi*csgn(I*d*(c*x^2+
a)^n)^3+I*Pi*csgn(I*d*(c*x^2+a)^n)^2*csgn(I*d)+2*ln(d))/e/(c*a)^(1/2)*arctan(x*c/(c*a)^(1/2))

Fricas [F]

\[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\int { \frac {\log \left ({\left (c x^{2} + a\right )}^{n} d\right )}{c e x^{2} + a e} \,d x } \]

[In]

integrate(log(d*(c*x^2+a)^n)/(c*e*x^2+a*e),x, algorithm="fricas")

[Out]

integral(log((c*x^2 + a)^n*d)/(c*e*x^2 + a*e), x)

Sympy [F]

\[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\frac {\int \frac {\log {\left (d \left (a + c x^{2}\right )^{n} \right )}}{a + c x^{2}}\, dx}{e} \]

[In]

integrate(ln(d*(c*x**2+a)**n)/(c*e*x**2+a*e),x)

[Out]

Integral(log(d*(a + c*x**2)**n)/(a + c*x**2), x)/e

Maxima [F]

\[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\int { \frac {\log \left ({\left (c x^{2} + a\right )}^{n} d\right )}{c e x^{2} + a e} \,d x } \]

[In]

integrate(log(d*(c*x^2+a)^n)/(c*e*x^2+a*e),x, algorithm="maxima")

[Out]

integrate(log((c*x^2 + a)^n*d)/(c*e*x^2 + a*e), x)

Giac [F]

\[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\int { \frac {\log \left ({\left (c x^{2} + a\right )}^{n} d\right )}{c e x^{2} + a e} \,d x } \]

[In]

integrate(log(d*(c*x^2+a)^n)/(c*e*x^2+a*e),x, algorithm="giac")

[Out]

integrate(log((c*x^2 + a)^n*d)/(c*e*x^2 + a*e), x)

Mupad [F(-1)]

Timed out. \[ \int \frac {\log \left (d \left (a+c x^2\right )^n\right )}{a e+c e x^2} \, dx=\int \frac {\ln \left (d\,{\left (c\,x^2+a\right )}^n\right )}{c\,e\,x^2+a\,e} \,d x \]

[In]

int(log(d*(a + c*x^2)^n)/(a*e + c*e*x^2),x)

[Out]

int(log(d*(a + c*x^2)^n)/(a*e + c*e*x^2), x)