Solution:
Key idea: Taking a common factor out of the numerator and the denominator shows a common bracket that cancels, leaving a single exponential. Then ∫eaxdx=a1eax+C, where C is the constant of integration.
Step 1 — Factorise the numerator.
We take out 3e2x, since 3e4x=3e2x⋅e2x.
3e2x+3e4x=3e2x(1+e2x)
Step 2 — Factorise the denominator.
We take out e−x, since ex=e−x⋅e2x.
ex+e−x=e−x(e2x+1)
Step 3 — Cancel the common bracket.
The bracket 1+e2x is never zero, so it cancels; dividing by e−x is multiplying by ex.
e−x(1+e2x)3e2x(1+e2x)=3e2x⋅ex
3e2x⋅ex=3e3x
Step 4 — Integrate.
We use the exponential form with a=3.
∫3e3xdx=3⋅3e3x+C
∫3e3xdx=e3x+C
Therefore, ∫ex+e−x3e2x+3e4xdx=e3x+C.