3.6.17 \(\int (1-a^{m x}) \, dx\) [517]

Optimal. Leaf size=16 \[ x-\frac {a^{m x}}{m \log (a)} \]

[Out]

x-a^(m*x)/m/ln(a)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2225} \begin {gather*} x-\frac {a^{m x}}{m \log (a)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1 - a^(m*x),x]

[Out]

x - a^(m*x)/(m*Log[a])

Rule 2225

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rubi steps

\begin {align*} \int \left (1-a^{m x}\right ) \, dx &=x-\int a^{m x} \, dx\\ &=x-\frac {a^{m x}}{m \log (a)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 16, normalized size = 1.00 \begin {gather*} x-\frac {a^{m x}}{m \log (a)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1 - a^(m*x),x]

[Out]

x - a^(m*x)/(m*Log[a])

________________________________________________________________________________________

Maple [A]
time = 0.02, size = 17, normalized size = 1.06

method result size
default \(x -\frac {a^{m x}}{m \ln \left (a \right )}\) \(17\)
risch \(x -\frac {a^{m x}}{m \ln \left (a \right )}\) \(17\)
norman \(x -\frac {{\mathrm e}^{m x \ln \left (a \right )}}{m \ln \left (a \right )}\) \(18\)
derivativedivides \(\frac {-a^{m x}+\ln \left (a^{m x}\right )}{m \ln \left (a \right )}\) \(23\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1-a^(m*x),x,method=_RETURNVERBOSE)

[Out]

x-a^(m*x)/m/ln(a)

________________________________________________________________________________________

Maxima [A]
time = 1.80, size = 16, normalized size = 1.00 \begin {gather*} x - \frac {a^{m x}}{m \log \left (a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1-a^(m*x),x, algorithm="maxima")

[Out]

x - a^(m*x)/(m*log(a))

________________________________________________________________________________________

Fricas [A]
time = 0.95, size = 21, normalized size = 1.31 \begin {gather*} \frac {m x \log \left (a\right ) - a^{m x}}{m \log \left (a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1-a^(m*x),x, algorithm="fricas")

[Out]

(m*x*log(a) - a^(m*x))/(m*log(a))

________________________________________________________________________________________

Sympy [A]
time = 0.03, size = 19, normalized size = 1.19 \begin {gather*} x + \begin {cases} - \frac {a^{m x}}{m \log {\left (a \right )}} & \text {for}\: m \log {\left (a \right )} \neq 0 \\- x & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1-a**(m*x),x)

[Out]

x + Piecewise((-a**(m*x)/(m*log(a)), Ne(m*log(a), 0)), (-x, True))

________________________________________________________________________________________

Giac [A]
time = 0.70, size = 16, normalized size = 1.00 \begin {gather*} x - \frac {a^{m x}}{m \log \left (a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1-a^(m*x),x, algorithm="giac")

[Out]

x - a^(m*x)/(m*log(a))

________________________________________________________________________________________

Mupad [B]
time = 0.30, size = 16, normalized size = 1.00 \begin {gather*} x-\frac {a^{m\,x}}{m\,\ln \left (a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1 - a^(m*x),x)

[Out]

x - a^(m*x)/(m*log(a))

________________________________________________________________________________________