Integrand size = 29, antiderivative size = 107 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=\frac {\left (e^2 f^2+8 d e f g+8 d^2 g^2\right ) x}{e^2}+\frac {g (e f+2 d g) x^2}{e}+\frac {g^2 x^3}{3}+\frac {4 d^2 (e f+d g)^2}{e^3 (d-e x)}+\frac {4 d (e f+d g) (e f+3 d g) \log (d-e x)}{e^3} \] Output:
(8*d^2*g^2+8*d*e*f*g+e^2*f^2)*x/e^2+g*(2*d*g+e*f)*x^2/e+1/3*g^2*x^3+4*d^2* (d*g+e*f)^2/e^3/(-e*x+d)+4*d*(d*g+e*f)*(3*d*g+e*f)*ln(-e*x+d)/e^3
Time = 0.06 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.07 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=\frac {\left (e^2 f^2+8 d e f g+8 d^2 g^2\right ) x}{e^2}+\frac {g (e f+2 d g) x^2}{e}+\frac {g^2 x^3}{3}-\frac {4 d^2 (e f+d g)^2}{e^3 (-d+e x)}+\frac {4 d \left (e^2 f^2+4 d e f g+3 d^2 g^2\right ) \log (d-e x)}{e^3} \] Input:
Integrate[((d + e*x)^4*(f + g*x)^2)/(d^2 - e^2*x^2)^2,x]
Output:
((e^2*f^2 + 8*d*e*f*g + 8*d^2*g^2)*x)/e^2 + (g*(e*f + 2*d*g)*x^2)/e + (g^2 *x^3)/3 - (4*d^2*(e*f + d*g)^2)/(e^3*(-d + e*x)) + (4*d*(e^2*f^2 + 4*d*e*f *g + 3*d^2*g^2)*Log[d - e*x])/e^3
Time = 0.31 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {639, 99, 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 {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx\) |
\(\Big \downarrow \) 639 |
\(\displaystyle \int \frac {(d+e x)^2 (f+g x)^2}{(d-e x)^2}dx\) |
\(\Big \downarrow \) 99 |
\(\displaystyle \int \left (\frac {8 d^2 g^2+8 d e f g+e^2 f^2}{e^2}+\frac {4 d^2 (d g+e f)^2}{e^2 (e x-d)^2}+\frac {4 d (-3 d g-e f) (d g+e f)}{e^2 (d-e x)}+\frac {2 g x (2 d g+e f)}{e}+g^2 x^2\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {4 d^2 (d g+e f)^2}{e^3 (d-e x)}+\frac {x \left (8 d^2 g^2+8 d e f g+e^2 f^2\right )}{e^2}+\frac {4 d (d g+e f) (3 d g+e f) \log (d-e x)}{e^3}+\frac {g x^2 (2 d g+e f)}{e}+\frac {g^2 x^3}{3}\) |
Input:
Int[((d + e*x)^4*(f + g*x)^2)/(d^2 - e^2*x^2)^2,x]
Output:
((e^2*f^2 + 8*d*e*f*g + 8*d^2*g^2)*x)/e^2 + (g*(e*f + 2*d*g)*x^2)/e + (g^2 *x^3)/3 + (4*d^2*(e*f + d*g)^2)/(e^3*(d - e*x)) + (4*d*(e*f + d*g)*(e*f + 3*d*g)*Log[d - e*x])/e^3
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] && (IntegerQ[p] | | (GtQ[m, 0] && GeQ[n, -1]))
Int[((c_) + (d_.)*(x_))^(m_.)*((e_) + (f_.)*(x_))^(n_.)*((a_) + (b_.)*(x_)^ 2)^(p_.), x_Symbol] :> Int[(c + d*x)^(m + p)*(e + f*x)^n*(a/c + (b/d)*x)^p, x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && EqQ[b*c^2 + a*d^2, 0] && (I ntegerQ[p] || (GtQ[a, 0] && GtQ[c, 0] && !IntegerQ[m]))
Time = 0.73 (sec) , antiderivative size = 133, normalized size of antiderivative = 1.24
method | result | size |
default | \(\frac {\frac {1}{3} g^{2} x^{3} e^{2}+2 d e \,g^{2} x^{2}+e^{2} f g \,x^{2}+8 d^{2} g^{2} x +8 d e f g x +e^{2} f^{2} x}{e^{2}}+\frac {4 d^{2} \left (d^{2} g^{2}+2 d e f g +e^{2} f^{2}\right )}{e^{3} \left (-e x +d \right )}+\frac {4 d \left (3 d^{2} g^{2}+4 d e f g +e^{2} f^{2}\right ) \ln \left (-e x +d \right )}{e^{3}}\) | \(133\) |
risch | \(\frac {g^{2} x^{3}}{3}+\frac {2 d \,g^{2} x^{2}}{e}+f g \,x^{2}+\frac {8 d^{2} g^{2} x}{e^{2}}+\frac {8 d f g x}{e}+f^{2} x +\frac {4 d^{4} g^{2}}{e^{3} \left (-e x +d \right )}+\frac {8 d^{3} f g}{e^{2} \left (-e x +d \right )}+\frac {4 d^{2} f^{2}}{e \left (-e x +d \right )}+\frac {12 d^{3} \ln \left (-e x +d \right ) g^{2}}{e^{3}}+\frac {16 d^{2} \ln \left (-e x +d \right ) f g}{e^{2}}+\frac {4 d \ln \left (-e x +d \right ) f^{2}}{e}\) | \(161\) |
norman | \(\frac {\left (-\frac {23}{3} d^{2} g^{2}-8 d e f g -e^{2} f^{2}\right ) x^{3}+\frac {d^{2} \left (6 d^{3} g^{2}+9 d^{2} e f g +4 d \,e^{2} f^{2}\right )}{e^{3}}+\frac {d^{2} \left (12 d^{2} g^{2}+16 d e f g +5 e^{2} f^{2}\right ) x}{e^{2}}-\frac {e^{2} g^{2} x^{5}}{3}-e g \left (2 d g +e f \right ) x^{4}}{-e^{2} x^{2}+d^{2}}+\frac {4 d \left (3 d^{2} g^{2}+4 d e f g +e^{2} f^{2}\right ) \ln \left (-e x +d \right )}{e^{3}}\) | \(170\) |
parallelrisch | \(\frac {g^{2} e^{4} x^{4}+5 x^{3} d \,e^{3} g^{2}+3 x^{3} e^{4} f g +36 \ln \left (e x -d \right ) x \,d^{3} e \,g^{2}+48 \ln \left (e x -d \right ) x \,d^{2} e^{2} f g +12 \ln \left (e x -d \right ) x d \,e^{3} f^{2}+18 x^{2} d^{2} e^{2} g^{2}+21 x^{2} d \,e^{3} f g +3 x^{2} e^{4} f^{2}-36 \ln \left (e x -d \right ) d^{4} g^{2}-48 \ln \left (e x -d \right ) d^{3} e f g -12 \ln \left (e x -d \right ) d^{2} e^{2} f^{2}-36 d^{4} g^{2}-48 f g e \,d^{3}-15 d^{2} e^{2} f^{2}}{3 e^{3} \left (e x -d \right )}\) | \(217\) |
Input:
int((e*x+d)^4*(g*x+f)^2/(-e^2*x^2+d^2)^2,x,method=_RETURNVERBOSE)
Output:
1/e^2*(1/3*g^2*x^3*e^2+2*d*e*g^2*x^2+e^2*f*g*x^2+8*d^2*g^2*x+8*d*e*f*g*x+e ^2*f^2*x)+4*d^2*(d^2*g^2+2*d*e*f*g+e^2*f^2)/e^3/(-e*x+d)+4*d/e^3*(3*d^2*g^ 2+4*d*e*f*g+e^2*f^2)*ln(-e*x+d)
Time = 0.07 (sec) , antiderivative size = 206, normalized size of antiderivative = 1.93 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=\frac {e^{4} g^{2} x^{4} - 12 \, d^{2} e^{2} f^{2} - 24 \, d^{3} e f g - 12 \, d^{4} g^{2} + {\left (3 \, e^{4} f g + 5 \, d e^{3} g^{2}\right )} x^{3} + 3 \, {\left (e^{4} f^{2} + 7 \, d e^{3} f g + 6 \, d^{2} e^{2} g^{2}\right )} x^{2} - 3 \, {\left (d e^{3} f^{2} + 8 \, d^{2} e^{2} f g + 8 \, d^{3} e g^{2}\right )} x - 12 \, {\left (d^{2} e^{2} f^{2} + 4 \, d^{3} e f g + 3 \, d^{4} g^{2} - {\left (d e^{3} f^{2} + 4 \, d^{2} e^{2} f g + 3 \, d^{3} e g^{2}\right )} x\right )} \log \left (e x - d\right )}{3 \, {\left (e^{4} x - d e^{3}\right )}} \] Input:
integrate((e*x+d)^4*(g*x+f)^2/(-e^2*x^2+d^2)^2,x, algorithm="fricas")
Output:
1/3*(e^4*g^2*x^4 - 12*d^2*e^2*f^2 - 24*d^3*e*f*g - 12*d^4*g^2 + (3*e^4*f*g + 5*d*e^3*g^2)*x^3 + 3*(e^4*f^2 + 7*d*e^3*f*g + 6*d^2*e^2*g^2)*x^2 - 3*(d *e^3*f^2 + 8*d^2*e^2*f*g + 8*d^3*e*g^2)*x - 12*(d^2*e^2*f^2 + 4*d^3*e*f*g + 3*d^4*g^2 - (d*e^3*f^2 + 4*d^2*e^2*f*g + 3*d^3*e*g^2)*x)*log(e*x - d))/( e^4*x - d*e^3)
Time = 0.38 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.11 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=\frac {4 d \left (d g + e f\right ) \left (3 d g + e f\right ) \log {\left (- d + e x \right )}}{e^{3}} + \frac {g^{2} x^{3}}{3} + x^{2} \cdot \left (\frac {2 d g^{2}}{e} + f g\right ) + x \left (\frac {8 d^{2} g^{2}}{e^{2}} + \frac {8 d f g}{e} + f^{2}\right ) + \frac {- 4 d^{4} g^{2} - 8 d^{3} e f g - 4 d^{2} e^{2} f^{2}}{- d e^{3} + e^{4} x} \] Input:
integrate((e*x+d)**4*(g*x+f)**2/(-e**2*x**2+d**2)**2,x)
Output:
4*d*(d*g + e*f)*(3*d*g + e*f)*log(-d + e*x)/e**3 + g**2*x**3/3 + x**2*(2*d *g**2/e + f*g) + x*(8*d**2*g**2/e**2 + 8*d*f*g/e + f**2) + (-4*d**4*g**2 - 8*d**3*e*f*g - 4*d**2*e**2*f**2)/(-d*e**3 + e**4*x)
Time = 0.04 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.32 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=-\frac {4 \, {\left (d^{2} e^{2} f^{2} + 2 \, d^{3} e f g + d^{4} g^{2}\right )}}{e^{4} x - d e^{3}} + \frac {e^{2} g^{2} x^{3} + 3 \, {\left (e^{2} f g + 2 \, d e g^{2}\right )} x^{2} + 3 \, {\left (e^{2} f^{2} + 8 \, d e f g + 8 \, d^{2} g^{2}\right )} x}{3 \, e^{2}} + \frac {4 \, {\left (d e^{2} f^{2} + 4 \, d^{2} e f g + 3 \, d^{3} g^{2}\right )} \log \left (e x - d\right )}{e^{3}} \] Input:
integrate((e*x+d)^4*(g*x+f)^2/(-e^2*x^2+d^2)^2,x, algorithm="maxima")
Output:
-4*(d^2*e^2*f^2 + 2*d^3*e*f*g + d^4*g^2)/(e^4*x - d*e^3) + 1/3*(e^2*g^2*x^ 3 + 3*(e^2*f*g + 2*d*e*g^2)*x^2 + 3*(e^2*f^2 + 8*d*e*f*g + 8*d^2*g^2)*x)/e ^2 + 4*(d*e^2*f^2 + 4*d^2*e*f*g + 3*d^3*g^2)*log(e*x - d)/e^3
Time = 0.15 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.38 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=\frac {4 \, {\left (d e^{2} f^{2} + 4 \, d^{2} e f g + 3 \, d^{3} g^{2}\right )} \log \left ({\left | e x - d \right |}\right )}{e^{3}} - \frac {4 \, {\left (d^{2} e^{2} f^{2} + 2 \, d^{3} e f g + d^{4} g^{2}\right )}}{{\left (e x - d\right )} e^{3}} + \frac {e^{6} g^{2} x^{3} + 3 \, e^{6} f g x^{2} + 6 \, d e^{5} g^{2} x^{2} + 3 \, e^{6} f^{2} x + 24 \, d e^{5} f g x + 24 \, d^{2} e^{4} g^{2} x}{3 \, e^{6}} \] Input:
integrate((e*x+d)^4*(g*x+f)^2/(-e^2*x^2+d^2)^2,x, algorithm="giac")
Output:
4*(d*e^2*f^2 + 4*d^2*e*f*g + 3*d^3*g^2)*log(abs(e*x - d))/e^3 - 4*(d^2*e^2 *f^2 + 2*d^3*e*f*g + d^4*g^2)/((e*x - d)*e^3) + 1/3*(e^6*g^2*x^3 + 3*e^6*f *g*x^2 + 6*d*e^5*g^2*x^2 + 3*e^6*f^2*x + 24*d*e^5*f*g*x + 24*d^2*e^4*g^2*x )/e^6
Time = 0.04 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.73 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=x^2\,\left (\frac {g\,\left (d\,g+e\,f\right )}{e}+\frac {d\,g^2}{e}\right )+x\,\left (\frac {d^2\,g^2+4\,d\,e\,f\,g+e^2\,f^2}{e^2}+\frac {2\,d\,\left (\frac {2\,g\,\left (d\,g+e\,f\right )}{e}+\frac {2\,d\,g^2}{e}\right )}{e}-\frac {d^2\,g^2}{e^2}\right )+\frac {g^2\,x^3}{3}+\frac {4\,\left (d^4\,g^2+2\,d^3\,e\,f\,g+d^2\,e^2\,f^2\right )}{e\,\left (d\,e^2-e^3\,x\right )}+\frac {\ln \left (e\,x-d\right )\,\left (12\,d^3\,g^2+16\,d^2\,e\,f\,g+4\,d\,e^2\,f^2\right )}{e^3} \] Input:
int(((f + g*x)^2*(d + e*x)^4)/(d^2 - e^2*x^2)^2,x)
Output:
x^2*((g*(d*g + e*f))/e + (d*g^2)/e) + x*((d^2*g^2 + e^2*f^2 + 4*d*e*f*g)/e ^2 + (2*d*((2*g*(d*g + e*f))/e + (2*d*g^2)/e))/e - (d^2*g^2)/e^2) + (g^2*x ^3)/3 + (4*(d^4*g^2 + d^2*e^2*f^2 + 2*d^3*e*f*g))/(e*(d*e^2 - e^3*x)) + (l og(e*x - d)*(12*d^3*g^2 + 4*d*e^2*f^2 + 16*d^2*e*f*g))/e^3
Time = 0.25 (sec) , antiderivative size = 214, normalized size of antiderivative = 2.00 \[ \int \frac {(d+e x)^4 (f+g x)^2}{\left (d^2-e^2 x^2\right )^2} \, dx=\frac {36 \,\mathrm {log}\left (-e x +d \right ) d^{4} g^{2}+48 \,\mathrm {log}\left (-e x +d \right ) d^{3} e f g -36 \,\mathrm {log}\left (-e x +d \right ) d^{3} e \,g^{2} x +12 \,\mathrm {log}\left (-e x +d \right ) d^{2} e^{2} f^{2}-48 \,\mathrm {log}\left (-e x +d \right ) d^{2} e^{2} f g x -12 \,\mathrm {log}\left (-e x +d \right ) d \,e^{3} f^{2} x +36 d^{3} e \,g^{2} x +48 d^{2} e^{2} f g x -18 d^{2} e^{2} g^{2} x^{2}+15 d \,e^{3} f^{2} x -21 d \,e^{3} f g \,x^{2}-5 d \,e^{3} g^{2} x^{3}-3 e^{4} f^{2} x^{2}-3 e^{4} f g \,x^{3}-e^{4} g^{2} x^{4}}{3 e^{3} \left (-e x +d \right )} \] Input:
int((e*x+d)^4*(g*x+f)^2/(-e^2*x^2+d^2)^2,x)
Output:
(36*log(d - e*x)*d**4*g**2 + 48*log(d - e*x)*d**3*e*f*g - 36*log(d - e*x)* d**3*e*g**2*x + 12*log(d - e*x)*d**2*e**2*f**2 - 48*log(d - e*x)*d**2*e**2 *f*g*x - 12*log(d - e*x)*d*e**3*f**2*x + 36*d**3*e*g**2*x + 48*d**2*e**2*f *g*x - 18*d**2*e**2*g**2*x**2 + 15*d*e**3*f**2*x - 21*d*e**3*f*g*x**2 - 5* d*e**3*g**2*x**3 - 3*e**4*f**2*x**2 - 3*e**4*f*g*x**3 - e**4*g**2*x**4)/(3 *e**3*(d - e*x))