3.69.96 \(\int \frac {3+e+e^x (9+e^2+36 x+36 x^2+e (6+12 x))}{-27-3 e^2+e (-18-35 x)-105 x-102 x^2+e^x (9+e^2+36 x+36 x^2+e (6+12 x))} \, dx\) [6896]

Optimal. Leaf size=18 \[ 4+\log \left (-3+e^x+\frac {x}{3+e+6 x}\right ) \]

[Out]

ln(x/(6*x+3+exp(1))+exp(x)-3)+4

________________________________________________________________________________________

Rubi [F]
time = 0.99, 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 {3+e+e^x \left (9+e^2+36 x+36 x^2+e (6+12 x)\right )}{-27-3 e^2+e (-18-35 x)-105 x-102 x^2+e^x \left (9+e^2+36 x+36 x^2+e (6+12 x)\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(3 + E + E^x*(9 + E^2 + 36*x + 36*x^2 + E*(6 + 12*x)))/(-27 - 3*E^2 + E*(-18 - 35*x) - 105*x - 102*x^2 + E
^x*(9 + E^2 + 36*x + 36*x^2 + E*(6 + 12*x))),x]

[Out]

x - 3*(3 + E)*Defer[Int][(9*(1 + E/3) - 3*(1 + E/3)*E^x + 17*x - 6*E^x*x)^(-1), x] - (3 + E)*Defer[Int][1/((3
+ E + 6*x)*(9*(1 + E/3) - 3*(1 + E/3)*E^x + 17*x - 6*E^x*x)), x] + 17*Defer[Int][x/(-9*(1 + E/3) + 3*(1 + E/3)
*E^x - 17*x + 6*E^x*x), x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-3 \left (1+\frac {e}{3}\right )-e^x \left (9+e^2+36 x+36 x^2+e (6+12 x)\right )}{(3+e+6 x) \left (9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x\right )} \, dx\\ &=\int \left (1+\frac {-((3+e) (10+3 e))-35 (3+e) x-102 x^2}{(3+e+6 x) \left (9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x\right )}\right ) \, dx\\ &=x+\int \frac {-((3+e) (10+3 e))-35 (3+e) x-102 x^2}{(3+e+6 x) \left (9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x\right )} \, dx\\ &=x+\int \left (\frac {3 (-3-e)}{9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x}+\frac {-3-e}{(3+e+6 x) \left (9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x\right )}+\frac {17 x}{-9 \left (1+\frac {e}{3}\right )+3 \left (1+\frac {e}{3}\right ) e^x-17 x+6 e^x x}\right ) \, dx\\ &=x+17 \int \frac {x}{-9 \left (1+\frac {e}{3}\right )+3 \left (1+\frac {e}{3}\right ) e^x-17 x+6 e^x x} \, dx+(-3-e) \int \frac {1}{(3+e+6 x) \left (9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x\right )} \, dx-(3 (3+e)) \int \frac {1}{9 \left (1+\frac {e}{3}\right )-3 \left (1+\frac {e}{3}\right ) e^x+17 x-6 e^x x} \, dx\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(37\) vs. \(2(18)=36\).
time = 4.67, size = 37, normalized size = 2.06 \begin {gather*} -\log (3+e+6 x)+\log \left (9+3 e-3 e^x-e^{1+x}+17 x-6 e^x x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(3 + E + E^x*(9 + E^2 + 36*x + 36*x^2 + E*(6 + 12*x)))/(-27 - 3*E^2 + E*(-18 - 35*x) - 105*x - 102*x
^2 + E^x*(9 + E^2 + 36*x + 36*x^2 + E*(6 + 12*x))),x]

[Out]

-Log[3 + E + 6*x] + Log[9 + 3*E - 3*E^x - E^(1 + x) + 17*x - 6*E^x*x]

________________________________________________________________________________________

Maple [A]
time = 0.93, size = 25, normalized size = 1.39

method result size
risch \(\ln \left ({\mathrm e}^{x}-\frac {3 \,{\mathrm e}+17 x +9}{6 x +3+{\mathrm e}}\right )\) \(25\)
norman \(-\ln \left (6 x +3+{\mathrm e}\right )+\ln \left ({\mathrm e} \,{\mathrm e}^{x}+6 \,{\mathrm e}^{x} x -3 \,{\mathrm e}-17 x +3 \,{\mathrm e}^{x}-9\right )\) \(36\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)*exp(x)+3+exp(1))/((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)*exp(x
)-3*exp(1)^2+(-35*x-18)*exp(1)-102*x^2-105*x-27),x,method=_RETURNVERBOSE)

[Out]

ln(exp(x)-(3*exp(1)+17*x+9)/(6*x+3+exp(1)))

________________________________________________________________________________________

Maxima [A]
time = 0.36, size = 30, normalized size = 1.67 \begin {gather*} \log \left (\frac {{\left (6 \, x + e + 3\right )} e^{x} - 17 \, x - 3 \, e - 9}{6 \, x + e + 3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)*exp(x)+3+exp(1))/((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)
*exp(x)-3*exp(1)^2+(-35*x-18)*exp(1)-102*x^2-105*x-27),x, algorithm="maxima")

[Out]

log(((6*x + e + 3)*e^x - 17*x - 3*e - 9)/(6*x + e + 3))

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 30, normalized size = 1.67 \begin {gather*} \log \left (\frac {{\left (6 \, x + e + 3\right )} e^{x} - 17 \, x - 3 \, e - 9}{6 \, x + e + 3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)*exp(x)+3+exp(1))/((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)
*exp(x)-3*exp(1)^2+(-35*x-18)*exp(1)-102*x^2-105*x-27),x, algorithm="fricas")

[Out]

log(((6*x + e + 3)*e^x - 17*x - 3*e - 9)/(6*x + e + 3))

________________________________________________________________________________________

Sympy [A]
time = 0.25, size = 24, normalized size = 1.33 \begin {gather*} \log {\left (\frac {- 17 x - 9 - 3 e}{6 x + e + 3} + e^{x} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(1)**2+(12*x+6)*exp(1)+36*x**2+36*x+9)*exp(x)+3+exp(1))/((exp(1)**2+(12*x+6)*exp(1)+36*x**2+36*
x+9)*exp(x)-3*exp(1)**2+(-35*x-18)*exp(1)-102*x**2-105*x-27),x)

[Out]

log((-17*x - 9 - 3*E)/(6*x + E + 3) + exp(x))

________________________________________________________________________________________

Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)*exp(x)+3+exp(1))/((exp(1)^2+(12*x+6)*exp(1)+36*x^2+36*x+9)
*exp(x)-3*exp(1)^2+(-35*x-18)*exp(1)-102*x^2-105*x-27),x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

Mupad [B]
time = 4.35, size = 35, normalized size = 1.94 \begin {gather*} \ln \left (3\,{\mathrm {e}}^x-3\,\mathrm {e}-17\,x+\mathrm {e}\,{\mathrm {e}}^x+6\,x\,{\mathrm {e}}^x-9\right )-\ln \left (6\,x+\mathrm {e}+3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(exp(1) + exp(x)*(36*x + exp(2) + 36*x^2 + exp(1)*(12*x + 6) + 9) + 3)/(105*x + 3*exp(2) - exp(x)*(36*x +
 exp(2) + 36*x^2 + exp(1)*(12*x + 6) + 9) + 102*x^2 + exp(1)*(35*x + 18) + 27),x)

[Out]

log(3*exp(x) - 3*exp(1) - 17*x + exp(1)*exp(x) + 6*x*exp(x) - 9) - log(6*x + exp(1) + 3)

________________________________________________________________________________________