Optimal. Leaf size=21 \[ \frac {x-\frac {4 (3+x)}{4+e^x}}{4 x} \]
________________________________________________________________________________________
Rubi [F] time = 0.66, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {12+e^x \left (3+3 x+x^2\right )}{16 x^2+8 e^x x^2+e^{2 x} x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {12+e^x \left (3+3 x+x^2\right )}{\left (4+e^x\right )^2 x^2} \, dx\\ &=\int \left (-\frac {4 (3+x)}{\left (4+e^x\right )^2 x}+\frac {3+3 x+x^2}{\left (4+e^x\right ) x^2}\right ) \, dx\\ &=-\left (4 \int \frac {3+x}{\left (4+e^x\right )^2 x} \, dx\right )+\int \frac {3+3 x+x^2}{\left (4+e^x\right ) x^2} \, dx\\ &=-\left (4 \int \left (\frac {1}{\left (4+e^x\right )^2}+\frac {3}{\left (4+e^x\right )^2 x}\right ) \, dx\right )+\int \left (\frac {1}{4+e^x}+\frac {3}{\left (4+e^x\right ) x^2}+\frac {3}{\left (4+e^x\right ) x}\right ) \, dx\\ &=3 \int \frac {1}{\left (4+e^x\right ) x^2} \, dx+3 \int \frac {1}{\left (4+e^x\right ) x} \, dx-4 \int \frac {1}{\left (4+e^x\right )^2} \, dx-12 \int \frac {1}{\left (4+e^x\right )^2 x} \, dx+\int \frac {1}{4+e^x} \, dx\\ &=3 \int \frac {1}{\left (4+e^x\right ) x^2} \, dx+3 \int \frac {1}{\left (4+e^x\right ) x} \, dx-4 \operatorname {Subst}\left (\int \frac {1}{x (4+x)^2} \, dx,x,e^x\right )-12 \int \frac {1}{\left (4+e^x\right )^2 x} \, dx+\operatorname {Subst}\left (\int \frac {1}{x (4+x)} \, dx,x,e^x\right )\\ &=\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,e^x\right )-\frac {1}{4} \operatorname {Subst}\left (\int \frac {1}{4+x} \, dx,x,e^x\right )+3 \int \frac {1}{\left (4+e^x\right ) x^2} \, dx+3 \int \frac {1}{\left (4+e^x\right ) x} \, dx-4 \operatorname {Subst}\left (\int \left (\frac {1}{16 x}-\frac {1}{4 (4+x)^2}-\frac {1}{16 (4+x)}\right ) \, dx,x,e^x\right )-12 \int \frac {1}{\left (4+e^x\right )^2 x} \, dx\\ &=-\frac {1}{4+e^x}+3 \int \frac {1}{\left (4+e^x\right ) x^2} \, dx+3 \int \frac {1}{\left (4+e^x\right ) x} \, dx-12 \int \frac {1}{\left (4+e^x\right )^2 x} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 16, normalized size = 0.76 \begin {gather*} \frac {-3-x}{\left (4+e^x\right ) x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 15, normalized size = 0.71 \begin {gather*} -\frac {x + 3}{x e^{x} + 4 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 15, normalized size = 0.71 \begin {gather*} -\frac {x + 3}{x e^{x} + 4 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 15, normalized size = 0.71
method | result | size |
risch | \(-\frac {3+x}{x \left ({\mathrm e}^{x}+4\right )}\) | \(15\) |
norman | \(\frac {-3-x}{\left ({\mathrm e}^{x}+4\right ) x}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 15, normalized size = 0.71 \begin {gather*} -\frac {x + 3}{x e^{x} + 4 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 14, normalized size = 0.67 \begin {gather*} -\frac {x+3}{x\,\left ({\mathrm {e}}^x+4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 12, normalized size = 0.57 \begin {gather*} \frac {- x - 3}{x e^{x} + 4 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________