Let u=ex. Then u2=e2x and u3=e3x. Also, du=exdx, so dx=exdu=udu. Substituting these into the integral, we have
∫e3x−8e2xdx=∫u3−8u2udu=∫u3−8udu. Now, let u3−8=(u−2)(u2+2u+4). So, we have to evaluate ∫(u−2)(u2+2u+4)udu. We use partial fraction decomposition:
(u−2)(u2+2u+4)u=u−2A+u2+2u+4Bu+C. Multiplying both sides by (u−2)(u2+2u+4) yields: u=A(u2+2u+4)+(Bu+C)(u−2) u=Au2+2Au+4A+Bu2−2Bu+Cu−2C u=(A+B)u2+(2A−2B+C)u+(4A−2C). Equating coefficients, we have the following system of equations:
2A−2B+C=1 From the first equation, B=−A. From the third equation, 2C=4A, so C=2A. Substituting these into the second equation, we get 2A−2(−A)+2A=1 2A+2A+2A=1 Then B=−61 and C=62=31. Thus, the integral becomes
∫u−261+u2+2u+4−61u+31du=61∫u−21du+∫u2+2u+4−61u+31du =61ln∣u−2∣+∫u2+2u+4−61u+31du. Let I=∫u2+2u+4−61u+31du=−61∫u2+2u+4u−2du. We want to rewrite the numerator as a multiple of the derivative of the denominator, which is 2u+2. u−2=k(2u+2)+l u−2=2ku+2k+l 2k=1, so k=21. 2k+l=−2, so 1+l=−2, which means l=−3. Therefore, u−2=21(2u+2)−3. So, I=−61∫u2+2u+421(2u+2)−3du=−121∫u2+2u+42u+2du+21∫u2+2u+41du I=−121ln∣u2+2u+4∣+21∫(u+1)2+31du. For the last integral, we let v=u+1, so dv=du. Then ∫v2+31dv=31arctan(3v)+C=31arctan(3u+1)+C. So I=−121ln∣u2+2u+4∣+231arctan(3u+1)+C. Thus, the original integral becomes
61ln∣u−2∣−121ln∣u2+2u+4∣+231arctan(3u+1)+C =61ln∣ex−2∣−121ln∣e2x+2ex+4∣+231arctan(3ex+1)+C.