Steply

Integrate ∫ (3/(x + 2) - 4e^(2x)) dx

Step by step, with the reason for every step · Integrals with e and ln · Calculus 2

Step by step

The question

Question: find the integral of 3/(x + 2) − 4e²ˣ.

∫ (3x + 2 − 4e2x) dx =

1 The rules

First, e to the x.

Its derivative is eˣ itself: its slope equals its height.

So its integral is eˣ + C too.

∫ ex dx = ex + C

With e²ˣ: its derivative is 2 times e²ˣ, by the chain rule.

That 2 must not be there.

So we divide by 2.

∫ e2x dx = 12e2x + C

Now 1 over x.

The power rule cannot do it: x to the −1 would become x to the 0, over 0.

Instead: the derivative of ln x is 1 over x.

So the integral of 1/x is ln|x| + C.

∫ 1x dx = ln|x| + C

The bars mean the size of x.

ln only takes positive numbers, and x may be negative.

|x|: ln needs a number > 0

With x + 2 at the bottom, it works the same: ln of the bottom.

∫ 1x + 2 dx = ln|x + 2| + C

Careful!

The derivative of e²ˣ is 2 times e²ˣ.

So e²ˣ alone is not the answer: divide by 2.

Careful: not ∫ e2x dx = e2x ✗

2 Each term

3 times 1 over the bottom gives 3 ln|x + 2|.

∫ 3x + 2 dx = 3ln|x + 2|

Divide by 2: −4/2 is −2.

∫ −4e2x dx = −2e2x

Put the terms together, and add C: the slope cannot tell us a number added on the end.

So the answer is 3 ln|x + 2| − 2e²ˣ + C.

= 3ln|x + 2| − 2e2x + C

3 Check

Let's check: take the derivative of our answer.

e to the kx gives k times e to the kx.

ln of the bottom gives its slope over the bottom.

derivative: 3 × 1x + 2 − 2 × 2e2x

The numbers cancel, and we get 3/(x + 2) − 4e²ˣ: the question again.

Right!

= 3x + 2 − 4e2x

Let's look back.

First: the rules.

Then: each term.

Last: check.

Answer
= 3ln|x + 2| − 2e2x + C

Your turn

Try this one yourself, then check:

∫ (1x + 1 − 4e4x) dx
Show the answer
ln|x + 1| − e4x + C

More from Integrals with e and ln

The whole lesson: Integrals with e and ln →