\(\int \frac {(f+g x^2)^2 \log (c (d+e x^2)^p)}{x^4} \, dx\) [335]

Optimal result
Mathematica [C] (verified)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [A] (verification not implemented)
Sympy [B] (verification not implemented)
Maxima [F(-2)]
Giac [A] (verification not implemented)
Mupad [B] (verification not implemented)
Reduce [B] (verification not implemented)

Optimal result

Integrand size = 25, antiderivative size = 169 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=-\frac {2 e f^2 p}{3 d x}-2 g^2 p x-\frac {2 e^{3/2} f^2 p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}+\frac {4 \sqrt {e} f g p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right ) \] Output:

-2/3*e*f^2*p/d/x-2*g^2*p*x-2/3*e^(3/2)*f^2*p*arctan(e^(1/2)*x/d^(1/2))/d^( 
3/2)+4*e^(1/2)*f*g*p*arctan(e^(1/2)*x/d^(1/2))/d^(1/2)+2*d^(1/2)*g^2*p*arc 
tan(e^(1/2)*x/d^(1/2))/e^(1/2)-1/3*f^2*ln(c*(e*x^2+d)^p)/x^3-2*f*g*ln(c*(e 
*x^2+d)^p)/x+g^2*x*ln(c*(e*x^2+d)^p)
 

Mathematica [C] (verified)

Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.

Time = 0.13 (sec) , antiderivative size = 113, normalized size of antiderivative = 0.67 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=-2 g^2 p x+\frac {2 g (2 e f+d g) p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e}}-\frac {2 e f^2 p \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},-\frac {e x^2}{d}\right )}{3 d x}-\frac {\left (f^2+6 f g x^2-3 g^2 x^4\right ) \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3} \] Input:

Integrate[((f + g*x^2)^2*Log[c*(d + e*x^2)^p])/x^4,x]
 

Output:

-2*g^2*p*x + (2*g*(2*e*f + d*g)*p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(Sqrt[d]*Sq 
rt[e]) - (2*e*f^2*p*Hypergeometric2F1[-1/2, 1, 1/2, -((e*x^2)/d)])/(3*d*x) 
 - ((f^2 + 6*f*g*x^2 - 3*g^2*x^4)*Log[c*(d + e*x^2)^p])/(3*x^3)
 

Rubi [A] (verified)

Time = 0.59 (sec) , antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {2926, 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 \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx\)

\(\Big \downarrow \) 2926

\(\displaystyle \int \left (\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4}+\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x^2}+g^2 \log \left (c \left (d+e x^2\right )^p\right )\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {2 e^{3/2} f^2 p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}+\frac {4 \sqrt {e} f g p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )-\frac {2 e f^2 p}{3 d x}-2 g^2 p x\)

Input:

Int[((f + g*x^2)^2*Log[c*(d + e*x^2)^p])/x^4,x]
 

Output:

(-2*e*f^2*p)/(3*d*x) - 2*g^2*p*x - (2*e^(3/2)*f^2*p*ArcTan[(Sqrt[e]*x)/Sqr 
t[d]])/(3*d^(3/2)) + (4*Sqrt[e]*f*g*p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/Sqrt[d] 
 + (2*Sqrt[d]*g^2*p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/Sqrt[e] - (f^2*Log[c*(d + 
 e*x^2)^p])/(3*x^3) - (2*f*g*Log[c*(d + e*x^2)^p])/x + g^2*x*Log[c*(d + e* 
x^2)^p]
 

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2926
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m 
_.)*((f_) + (g_.)*(x_)^(s_))^(r_.), x_Symbol] :> Int[ExpandIntegrand[(a + b 
*Log[c*(d + e*x^n)^p])^q, x^m*(f + g*x^s)^r, x], x] /; FreeQ[{a, b, c, d, e 
, f, g, m, n, p, q, r, s}, x] && IGtQ[q, 0] && IntegerQ[m] && IntegerQ[r] & 
& IntegerQ[s]
 
Maple [A] (verified)

Time = 3.80 (sec) , antiderivative size = 125, normalized size of antiderivative = 0.74

method result size
parts \(g^{2} x \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )-\frac {2 f g \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )}{x}-\frac {f^{2} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )}{3 x^{3}}-\frac {2 e p \left (\frac {3 g^{2} x}{e}+\frac {\left (-3 d^{2} g^{2}-6 f g e d +f^{2} e^{2}\right ) \arctan \left (\frac {x e}{\sqrt {d e}}\right )}{d e \sqrt {d e}}+\frac {f^{2}}{d x}\right )}{3}\) \(125\)
risch \(-\frac {\left (-3 g^{2} x^{4}+6 f g \,x^{2}+f^{2}\right ) \ln \left (\left (e \,x^{2}+d \right )^{p}\right )}{3 x^{3}}+\frac {3 i \pi d \,g^{2} x^{4} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2}-6 i \pi d f g \,x^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2}+i \pi d \,f^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \right )-i \pi d \,f^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2}-3 i \pi d \,g^{2} x^{4} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{3}+3 i \pi d \,g^{2} x^{4} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )+6 i \pi d f g \,x^{2} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \right )+i \pi d \,f^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{3}+6 \ln \left (c \right ) d \,g^{2} x^{4}-6 i \pi d f g \,x^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )+6 i \pi d f g \,x^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{3}-3 i \pi d \,g^{2} x^{4} \operatorname {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \operatorname {csgn}\left (i c \right )-i \pi d \,f^{2} {\operatorname {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )-12 d \,g^{2} p \,x^{4}-12 \ln \left (c \right ) d f g \,x^{2}-4 e \,f^{2} p \,x^{2}+2 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (9 d^{4} g^{4} p^{2}+36 d^{3} e f \,g^{3} p^{2}+30 d^{2} e^{2} f^{2} g^{2} p^{2}-12 d \,e^{3} f^{3} g \,p^{2}+e^{4} f^{4} p^{2}+d^{3} e \,\textit {\_Z}^{2}\right )}{\sum }\textit {\_R} \ln \left (\left (18 d^{4} g^{4} p^{2}+72 d^{3} e f \,g^{3} p^{2}+60 d^{2} e^{2} f^{2} g^{2} p^{2}-24 d \,e^{3} f^{3} g \,p^{2}+2 e^{4} f^{4} p^{2}+3 \textit {\_R}^{2} d^{3} e \right ) x +\left (-3 d^{4} g^{2} p -6 d^{3} e f g p +d^{2} e^{2} f^{2} p \right ) \textit {\_R} \right )\right ) d \,x^{3}-2 \ln \left (c \right ) d \,f^{2}}{6 d \,x^{3}}\) \(700\)

Input:

int((g*x^2+f)^2*ln(c*(e*x^2+d)^p)/x^4,x,method=_RETURNVERBOSE)
 

Output:

g^2*x*ln(c*(e*x^2+d)^p)-2*f*g*ln(c*(e*x^2+d)^p)/x-1/3*f^2*ln(c*(e*x^2+d)^p 
)/x^3-2/3*e*p*(3*g^2/e*x+1/d/e*(-3*d^2*g^2-6*d*e*f*g+e^2*f^2)/(d*e)^(1/2)* 
arctan(x*e/(d*e)^(1/2))+f^2/d/x)
 

Fricas [A] (verification not implemented)

Time = 0.12 (sec) , antiderivative size = 350, normalized size of antiderivative = 2.07 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=\left [-\frac {6 \, d^{2} e g^{2} p x^{4} + 2 \, d e^{2} f^{2} p x^{2} - {\left (e^{2} f^{2} - 6 \, d e f g - 3 \, d^{2} g^{2}\right )} \sqrt {-d e} p x^{3} \log \left (\frac {e x^{2} - 2 \, \sqrt {-d e} x - d}{e x^{2} + d}\right ) - {\left (3 \, d^{2} e g^{2} p x^{4} - 6 \, d^{2} e f g p x^{2} - d^{2} e f^{2} p\right )} \log \left (e x^{2} + d\right ) - {\left (3 \, d^{2} e g^{2} x^{4} - 6 \, d^{2} e f g x^{2} - d^{2} e f^{2}\right )} \log \left (c\right )}{3 \, d^{2} e x^{3}}, -\frac {6 \, d^{2} e g^{2} p x^{4} + 2 \, d e^{2} f^{2} p x^{2} + 2 \, {\left (e^{2} f^{2} - 6 \, d e f g - 3 \, d^{2} g^{2}\right )} \sqrt {d e} p x^{3} \arctan \left (\frac {\sqrt {d e} x}{d}\right ) - {\left (3 \, d^{2} e g^{2} p x^{4} - 6 \, d^{2} e f g p x^{2} - d^{2} e f^{2} p\right )} \log \left (e x^{2} + d\right ) - {\left (3 \, d^{2} e g^{2} x^{4} - 6 \, d^{2} e f g x^{2} - d^{2} e f^{2}\right )} \log \left (c\right )}{3 \, d^{2} e x^{3}}\right ] \] Input:

integrate((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,x, algorithm="fricas")
 

Output:

[-1/3*(6*d^2*e*g^2*p*x^4 + 2*d*e^2*f^2*p*x^2 - (e^2*f^2 - 6*d*e*f*g - 3*d^ 
2*g^2)*sqrt(-d*e)*p*x^3*log((e*x^2 - 2*sqrt(-d*e)*x - d)/(e*x^2 + d)) - (3 
*d^2*e*g^2*p*x^4 - 6*d^2*e*f*g*p*x^2 - d^2*e*f^2*p)*log(e*x^2 + d) - (3*d^ 
2*e*g^2*x^4 - 6*d^2*e*f*g*x^2 - d^2*e*f^2)*log(c))/(d^2*e*x^3), -1/3*(6*d^ 
2*e*g^2*p*x^4 + 2*d*e^2*f^2*p*x^2 + 2*(e^2*f^2 - 6*d*e*f*g - 3*d^2*g^2)*sq 
rt(d*e)*p*x^3*arctan(sqrt(d*e)*x/d) - (3*d^2*e*g^2*p*x^4 - 6*d^2*e*f*g*p*x 
^2 - d^2*e*f^2*p)*log(e*x^2 + d) - (3*d^2*e*g^2*x^4 - 6*d^2*e*f*g*x^2 - d^ 
2*e*f^2)*log(c))/(d^2*e*x^3)]
 

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 381 vs. \(2 (170) = 340\).

Time = 76.24 (sec) , antiderivative size = 381, normalized size of antiderivative = 2.25 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=\begin {cases} \left (- \frac {f^{2}}{3 x^{3}} - \frac {2 f g}{x} + g^{2} x\right ) \log {\left (0^{p} c \right )} & \text {for}\: d = 0 \wedge e = 0 \\- \frac {2 f^{2} p}{9 x^{3}} - \frac {f^{2} \log {\left (c \left (e x^{2}\right )^{p} \right )}}{3 x^{3}} - \frac {4 f g p}{x} - \frac {2 f g \log {\left (c \left (e x^{2}\right )^{p} \right )}}{x} - 2 g^{2} p x + g^{2} x \log {\left (c \left (e x^{2}\right )^{p} \right )} & \text {for}\: d = 0 \\\left (- \frac {f^{2}}{3 x^{3}} - \frac {2 f g}{x} + g^{2} x\right ) \log {\left (c d^{p} \right )} & \text {for}\: e = 0 \\\frac {2 d g^{2} p \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{e \sqrt {- \frac {d}{e}}} - \frac {d g^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{e \sqrt {- \frac {d}{e}}} - \frac {f^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{3 x^{3}} + \frac {4 f g p \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{\sqrt {- \frac {d}{e}}} - \frac {2 f g \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{\sqrt {- \frac {d}{e}}} - \frac {2 f g \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{x} - 2 g^{2} p x + g^{2} x \log {\left (c \left (d + e x^{2}\right )^{p} \right )} - \frac {2 e f^{2} p \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{3 d \sqrt {- \frac {d}{e}}} - \frac {2 e f^{2} p}{3 d x} + \frac {e f^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{3 d \sqrt {- \frac {d}{e}}} & \text {otherwise} \end {cases} \] Input:

integrate((g*x**2+f)**2*ln(c*(e*x**2+d)**p)/x**4,x)
                                                                                    
                                                                                    
 

Output:

Piecewise(((-f**2/(3*x**3) - 2*f*g/x + g**2*x)*log(0**p*c), Eq(d, 0) & Eq( 
e, 0)), (-2*f**2*p/(9*x**3) - f**2*log(c*(e*x**2)**p)/(3*x**3) - 4*f*g*p/x 
 - 2*f*g*log(c*(e*x**2)**p)/x - 2*g**2*p*x + g**2*x*log(c*(e*x**2)**p), Eq 
(d, 0)), ((-f**2/(3*x**3) - 2*f*g/x + g**2*x)*log(c*d**p), Eq(e, 0)), (2*d 
*g**2*p*log(x - sqrt(-d/e))/(e*sqrt(-d/e)) - d*g**2*log(c*(d + e*x**2)**p) 
/(e*sqrt(-d/e)) - f**2*log(c*(d + e*x**2)**p)/(3*x**3) + 4*f*g*p*log(x - s 
qrt(-d/e))/sqrt(-d/e) - 2*f*g*log(c*(d + e*x**2)**p)/sqrt(-d/e) - 2*f*g*lo 
g(c*(d + e*x**2)**p)/x - 2*g**2*p*x + g**2*x*log(c*(d + e*x**2)**p) - 2*e* 
f**2*p*log(x - sqrt(-d/e))/(3*d*sqrt(-d/e)) - 2*e*f**2*p/(3*d*x) + e*f**2* 
log(c*(d + e*x**2)**p)/(3*d*sqrt(-d/e)), True))
 

Maxima [F(-2)]

Exception generated. \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=\text {Exception raised: ValueError} \] Input:

integrate((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,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
 

Giac [A] (verification not implemented)

Time = 0.12 (sec) , antiderivative size = 135, normalized size of antiderivative = 0.80 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=-{\left (2 \, g^{2} p - g^{2} \log \left (c\right )\right )} x + \frac {1}{3} \, {\left (3 \, g^{2} p x - \frac {6 \, f g p x^{2} + f^{2} p}{x^{3}}\right )} \log \left (e x^{2} + d\right ) - \frac {2 \, {\left (e^{2} f^{2} p - 6 \, d e f g p - 3 \, d^{2} g^{2} p\right )} \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{3 \, \sqrt {d e} d} - \frac {2 \, e f^{2} p x^{2} + 6 \, d f g x^{2} \log \left (c\right ) + d f^{2} \log \left (c\right )}{3 \, d x^{3}} \] Input:

integrate((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,x, algorithm="giac")
 

Output:

-(2*g^2*p - g^2*log(c))*x + 1/3*(3*g^2*p*x - (6*f*g*p*x^2 + f^2*p)/x^3)*lo 
g(e*x^2 + d) - 2/3*(e^2*f^2*p - 6*d*e*f*g*p - 3*d^2*g^2*p)*arctan(e*x/sqrt 
(d*e))/(sqrt(d*e)*d) - 1/3*(2*e*f^2*p*x^2 + 6*d*f*g*x^2*log(c) + d*f^2*log 
(c))/(d*x^3)
 

Mupad [B] (verification not implemented)

Time = 25.81 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.64 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (\frac {8\,g^2\,x}{3}-\frac {\frac {f^2}{3}+2\,f\,g\,x^2+\frac {5\,g^2\,x^4}{3}}{x^3}\right )-2\,g^2\,p\,x+\frac {2\,p\,\mathrm {atan}\left (\frac {\sqrt {e}\,x}{\sqrt {d}}\right )\,\left (3\,d^2\,g^2+6\,d\,e\,f\,g-e^2\,f^2\right )}{3\,d^{3/2}\,\sqrt {e}}-\frac {2\,e\,f^2\,p}{3\,d\,x} \] Input:

int((log(c*(d + e*x^2)^p)*(f + g*x^2)^2)/x^4,x)
 

Output:

log(c*(d + e*x^2)^p)*((8*g^2*x)/3 - (f^2/3 + (5*g^2*x^4)/3 + 2*f*g*x^2)/x^ 
3) - 2*g^2*p*x + (2*p*atan((e^(1/2)*x)/d^(1/2))*(3*d^2*g^2 - e^2*f^2 + 6*d 
*e*f*g))/(3*d^(3/2)*e^(1/2)) - (2*e*f^2*p)/(3*d*x)
 

Reduce [B] (verification not implemented)

Time = 0.16 (sec) , antiderivative size = 188, normalized size of antiderivative = 1.11 \[ \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx=\frac {6 \sqrt {e}\, \sqrt {d}\, \mathit {atan} \left (\frac {e x}{\sqrt {e}\, \sqrt {d}}\right ) d^{2} g^{2} p \,x^{3}+12 \sqrt {e}\, \sqrt {d}\, \mathit {atan} \left (\frac {e x}{\sqrt {e}\, \sqrt {d}}\right ) d e f g p \,x^{3}-2 \sqrt {e}\, \sqrt {d}\, \mathit {atan} \left (\frac {e x}{\sqrt {e}\, \sqrt {d}}\right ) e^{2} f^{2} p \,x^{3}-\mathrm {log}\left (\left (e \,x^{2}+d \right )^{p} c \right ) d^{2} e \,f^{2}-6 \,\mathrm {log}\left (\left (e \,x^{2}+d \right )^{p} c \right ) d^{2} e f g \,x^{2}+3 \,\mathrm {log}\left (\left (e \,x^{2}+d \right )^{p} c \right ) d^{2} e \,g^{2} x^{4}-6 d^{2} e \,g^{2} p \,x^{4}-2 d \,e^{2} f^{2} p \,x^{2}}{3 d^{2} e \,x^{3}} \] Input:

int((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,x)
 

Output:

(6*sqrt(e)*sqrt(d)*atan((e*x)/(sqrt(e)*sqrt(d)))*d**2*g**2*p*x**3 + 12*sqr 
t(e)*sqrt(d)*atan((e*x)/(sqrt(e)*sqrt(d)))*d*e*f*g*p*x**3 - 2*sqrt(e)*sqrt 
(d)*atan((e*x)/(sqrt(e)*sqrt(d)))*e**2*f**2*p*x**3 - log((d + e*x**2)**p*c 
)*d**2*e*f**2 - 6*log((d + e*x**2)**p*c)*d**2*e*f*g*x**2 + 3*log((d + e*x* 
*2)**p*c)*d**2*e*g**2*x**4 - 6*d**2*e*g**2*p*x**4 - 2*d*e**2*f**2*p*x**2)/ 
(3*d**2*e*x**3)