Steply

Integrate ∫ (2e^x - 1/x + 4x) 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 2eˣ − 1/x + 4x.

∫ (2ex − 1x + 4x) 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

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

Powers of x use the power rule: add 1 to the power, divide by the new power.

xn → xn + 1n + 1

Careful!

The power rule fails for 1/x: the new power would be 0, and we cannot divide by 0.

Use ln.

Careful: not x00 ✗

2 Each term

e to the x stays e to the x.

The 2 waits in front.

∫ 2ex dx = 2ex

1 over the bottom gives ln|x|.

∫ −1x dx = −ln|x|

The power rule.

∫ 4x dx = 2x2

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

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

= 2ex − ln|x| + 2x2 + C

3 Check

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

ln of the bottom gives its slope over the bottom.

derivative: 2ex − 1x + 4x

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

Right!

= 2ex − 1x + 4x

Let's look back.

First: the rules.

Then: each term.

Last: check.

Answer
= 2ex − ln|x| + 2x2 + C

Your turn

Try this one yourself, then check:

∫ (6ex − 1x + 2x) dx
Show the answer
6ex − ln|x| + x2 + C

More from Integrals with e and ln

The whole lesson: Integrals with e and ln →