3.507 \(\int \left (a^{k x}-a^{l x}\right ) \, dx\)

Optimal. Leaf size=28 \[ \frac{a^{k x}}{k \log (a)}-\frac{a^{l x}}{l \log (a)} \]

[Out]

a^(k*x)/(k*Log[a]) - a^(l*x)/(l*Log[a])

_______________________________________________________________________________________

Rubi [A]  time = 0.0209691, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077 \[ \frac{a^{k x}}{k \log (a)}-\frac{a^{l x}}{l \log (a)} \]

Antiderivative was successfully verified.

[In]  Int[a^(k*x) - a^(l*x),x]

[Out]

a^(k*x)/(k*Log[a]) - a^(l*x)/(l*Log[a])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 1.13873, size = 19, normalized size = 0.68 \[ \frac{a^{k x}}{k \log{\left (a \right )}} - \frac{a^{l x}}{l \log{\left (a \right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(a**(k*x)-a**(l*x),x)

[Out]

a**(k*x)/(k*log(a)) - a**(l*x)/(l*log(a))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0106356, size = 28, normalized size = 1. \[ \frac{a^{k x}}{k \log (a)}-\frac{a^{l x}}{l \log (a)} \]

Antiderivative was successfully verified.

[In]  Integrate[a^(k*x) - a^(l*x),x]

[Out]

a^(k*x)/(k*Log[a]) - a^(l*x)/(l*Log[a])

_______________________________________________________________________________________

Maple [A]  time = 0.002, size = 29, normalized size = 1. \[{\frac{{a}^{kx}}{k\ln \left ( a \right ) }}-{\frac{{a}^{lx}}{l\ln \left ( a \right ) }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(a^(k*x)-a^(l*x),x)

[Out]

a^(k*x)/k/ln(a)-a^(l*x)/l/ln(a)

_______________________________________________________________________________________

Maxima [A]  time = 1.38007, size = 38, normalized size = 1.36 \[ \frac{a^{k x}}{k \log \left (a\right )} - \frac{a^{l x}}{l \log \left (a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(a^(k*x) - a^(l*x),x, algorithm="maxima")

[Out]

a^(k*x)/(k*log(a)) - a^(l*x)/(l*log(a))

_______________________________________________________________________________________

Fricas [A]  time = 0.216226, size = 38, normalized size = 1.36 \[ -\frac{a^{l x} k - a^{k x} l}{k l \log \left (a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(a^(k*x) - a^(l*x),x, algorithm="fricas")

[Out]

-(a^(l*x)*k - a^(k*x)*l)/(k*l*log(a))

_______________________________________________________________________________________

Sympy [A]  time = 0.558248, size = 29, normalized size = 1.04 \[ \begin{cases} \frac{a^{k x}}{k \log{\left (a \right )}} & \text{for}\: k \log{\left (a \right )} \neq 0 \\x & \text{otherwise} \end{cases} - \begin{cases} \frac{a^{l x}}{l \log{\left (a \right )}} & \text{for}\: l \log{\left (a \right )} \neq 0 \\x & \text{otherwise} \end{cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(a**(k*x)-a**(l*x),x)

[Out]

Piecewise((a**(k*x)/(k*log(a)), Ne(k*log(a), 0)), (x, True)) - Piecewise((a**(l*
x)/(l*log(a)), Ne(l*log(a), 0)), (x, True))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.198384, size = 38, normalized size = 1.36 \[ \frac{a^{k x}}{k{\rm ln}\left (a\right )} - \frac{a^{l x}}{l{\rm ln}\left (a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(a^(k*x) - a^(l*x),x, algorithm="giac")

[Out]

a^(k*x)/(k*ln(a)) - a^(l*x)/(l*ln(a))