3.69.89 \(\int \frac {4 e^{10}+3 x^2+e^5 (-1+7 x)}{4 e^{10}+7 e^5 x+3 x^2} \, dx\)

Optimal. Leaf size=21 \[ e^4+x+\log \left (3+\frac {x}{x+\frac {x^2}{e^5}}\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 20, normalized size of antiderivative = 0.95, number of steps used = 5, number of rules used = 3, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {1657, 616, 31} \begin {gather*} x-\log \left (x+e^5\right )+\log \left (3 x+4 e^5\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(4*E^10 + 3*x^2 + E^5*(-1 + 7*x))/(4*E^10 + 7*E^5*x + 3*x^2),x]

[Out]

x - Log[E^5 + x] + Log[4*E^5 + 3*x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 616

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Dist[c/q, Int[1/Simp
[b/2 - q/2 + c*x, x], x], x] - Dist[c/q, Int[1/Simp[b/2 + q/2 + c*x, x], x], x]] /; FreeQ[{a, b, c}, x] && NeQ
[b^2 - 4*a*c, 0] && PosQ[b^2 - 4*a*c] && PerfectSquareQ[b^2 - 4*a*c]

Rule 1657

Int[(Pq_)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x + c*x^2)^p, x
], x] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \left (1-\frac {e^5}{4 e^{10}+7 e^5 x+3 x^2}\right ) \, dx\\ &=x-e^5 \int \frac {1}{4 e^{10}+7 e^5 x+3 x^2} \, dx\\ &=x-3 \int \frac {1}{3 e^5+3 x} \, dx+3 \int \frac {1}{4 e^5+3 x} \, dx\\ &=x-\log \left (e^5+x\right )+\log \left (4 e^5+3 x\right )\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 20, normalized size = 0.95 \begin {gather*} x-\log \left (e^5+x\right )+\log \left (4 e^5+3 x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(4*E^10 + 3*x^2 + E^5*(-1 + 7*x))/(4*E^10 + 7*E^5*x + 3*x^2),x]

[Out]

x - Log[E^5 + x] + Log[4*E^5 + 3*x]

________________________________________________________________________________________

fricas [A]  time = 0.88, size = 18, normalized size = 0.86 \begin {gather*} x + \log \left (3 \, x + 4 \, e^{5}\right ) - \log \left (x + e^{5}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*exp(5)^2+(7*x-1)*exp(5)+3*x^2)/(4*exp(5)^2+7*x*exp(5)+3*x^2),x, algorithm="fricas")

[Out]

x + log(3*x + 4*e^5) - log(x + e^5)

________________________________________________________________________________________

giac [A]  time = 0.15, size = 26, normalized size = 1.24 \begin {gather*} x - \log \left (\frac {{\left | 6 \, x + 6 \, e^{5} \right |}}{{\left | 6 \, x + 8 \, e^{5} \right |}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*exp(5)^2+(7*x-1)*exp(5)+3*x^2)/(4*exp(5)^2+7*x*exp(5)+3*x^2),x, algorithm="giac")

[Out]

x - log(abs(6*x + 6*e^5)/abs(6*x + 8*e^5))

________________________________________________________________________________________

maple [A]  time = 0.10, size = 19, normalized size = 0.90




method result size



norman \(x -\ln \left ({\mathrm e}^{5}+x \right )+\ln \left (4 \,{\mathrm e}^{5}+3 x \right )\) \(19\)
risch \(x -\ln \left ({\mathrm e}^{5}+x \right )+\ln \left (4 \,{\mathrm e}^{5}+3 x \right )\) \(19\)
default \(x +\frac {2 \,{\mathrm e}^{5} \arctanh \left (\frac {7 \,{\mathrm e}^{5}+6 x}{\sqrt {{\mathrm e}^{10}}}\right )}{\sqrt {{\mathrm e}^{10}}}\) \(43\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*exp(5)^2+(7*x-1)*exp(5)+3*x^2)/(4*exp(5)^2+7*x*exp(5)+3*x^2),x,method=_RETURNVERBOSE)

[Out]

x-ln(exp(5)+x)+ln(4*exp(5)+3*x)

________________________________________________________________________________________

maxima [A]  time = 0.36, size = 18, normalized size = 0.86 \begin {gather*} x + \log \left (3 \, x + 4 \, e^{5}\right ) - \log \left (x + e^{5}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*exp(5)^2+(7*x-1)*exp(5)+3*x^2)/(4*exp(5)^2+7*x*exp(5)+3*x^2),x, algorithm="maxima")

[Out]

x + log(3*x + 4*e^5) - log(x + e^5)

________________________________________________________________________________________

mupad [B]  time = 4.09, size = 12, normalized size = 0.57 \begin {gather*} x+2\,\mathrm {atanh}\left (6\,x\,{\mathrm {e}}^{-5}+7\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*exp(10) + 3*x^2 + exp(5)*(7*x - 1))/(4*exp(10) + 7*x*exp(5) + 3*x^2),x)

[Out]

x + 2*atanh(6*x*exp(-5) + 7)

________________________________________________________________________________________

sympy [A]  time = 0.19, size = 17, normalized size = 0.81 \begin {gather*} x - \log {\left (x + e^{5} \right )} + \log {\left (x + \frac {4 e^{5}}{3} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*exp(5)**2+(7*x-1)*exp(5)+3*x**2)/(4*exp(5)**2+7*x*exp(5)+3*x**2),x)

[Out]

x - log(x + exp(5)) + log(x + 4*exp(5)/3)

________________________________________________________________________________________