Today is going to be the last day where we will focus on integration by parts. We’re going to run through a few more examples, but each of them will be slightly different from what you’ve seen already and will give you a few more insights into some of the tricks you might have to play.

**Definite integrals using integration by parts**

Let’s look at the following integral:

Where as usual we see that the term becomes simpler if we differentiate it and so we choose:

Thus

Using the normal integration parts algorithm we will get the following, and note that now we need to evaluate the result at the limits of integration:

We can’t quite solve this last integral directly so we integrate by parts again. However, we note that the first term in this expression actually evaluates to zero when we plug in both limits, so we are left with just the integral term. We again make a choice for a new and as:

Thus

Remembering the factor of we get:

Note that we could quite happily have worked out the whole thing as an indefinite integral and then used the evaluation theorem at the very end. Try it both ways and make sure that you see that they give the same answer.

**Circular reasoning?**

In this example we’re going to see an integration that looks like it comes to a dead-end, but in fact before we know it we’ve solved it!

In this case neither the exponential nor the trig function get simpler when we differentiate them. We will choose:

plug this in and we get:

This integral looks just as hard as the first, but we’ll plug away at it. Now make a new choice to solve the second integral:

Plug this in and we have:

Disaster!! It looks like our answer includes the thing that we were trying to find in the first place….but there’s a subtle but important difference, and that is in the minus sign! We can now rearrange the above equation by taking the integral on the right hand side to the left:

and so

So we actually have the answer without having to do the second integral…magic!!

Note that it might be a bit surprising that the popped up out of nowhere. The point is that an indefinite integral is only ever defined up to an additive constant and so we are always free to add this.

**A cheeky trig integral**

Let’s look at something which seems really hard to do but actually using integration by parts becomes pretty easy…

Integration by parts helps us because it allows us to work with the derivatives of functions to simplify things.

We’re going to choose here to have:

To work out what is it’s easiest to invert the expression to get , then take . Thus:

Plugging this into the integration by parts formula:

This last expression we can solve with a substitution: :

**Substitution then by parts**

How about the following integral:

We start with a simpler substitution: which gives:

And now we use integration by parts on this, choosing (note that I’ve chosen these variable labels so that you have to pay attention to what we’re doing in the integration by parts).

**Try them yourself…**

Try solving:

Both by choosing and separately by choosing . Make sure that you get the same answer.

Note importantly that:

Though we won’t be able to explain exactly why until you have done complex numbers. What this means though is that in reality you can always convert a into a .

Try this one yourself too:

Hint: you will have to work out how to integrate and this can be done with a simple integration by parts, or by writing this in terms of a double angle formula.

## Bonus Section

Ā

I’m going to try and add a few thoughts on some completely unrelated areas of mathematics to each lecture – just a few moments to get you thinking about some area of maths which I think you might find rather fascinating.

We’ll start with some thoughts on the subject of Number Theory – the study of integers. It might seem like once you’ve learned to count, you know everything there is to know about integers, but this is so far from the truth that you wouldn’t believe how deep this subject gets!

I’m sure you all know what a prime number is: those numbers greater than 1 which are divisible only by themselves and 1. They are in many ways the most fundamental of numbers. All other numbers can be constructed from them.

**The Fundamental Theorem of Arithmetic** tells us that all numbers can be written as the product of prime numbers. This in itself is not so special – the theorem tells us however that each number can be written like this in only one way – the product is unique for every number. For instance:

There is no other way to write 50 as the product of primes (other than by rearranging the above).

The way we break down each number into its prime factors is called Prime Factorization. It’s actually quite easy to prove this by induction.

There’s a second statement which looks like it should be just as easy to prove:

**Every even integer greater than 2 can be written as the sum of two primes.**

This is known as **Goldbach’s conjecture** and we still cannot prove that it is true, although we know that it holds true for integers up to around . Doesn’t that seem strange?

Prime numbers really are the bricks and mortar of allĀ numbers. Next up, how many primes are there and how many twin primes are there?

See a nice video here showing some mysteries of the prime numbers:

grant wilsonJuly 22, 2015 at 2:17 pmThank you for another summary,,, i dont understand why there is a dp at the end of… xarcsinx+(1-x^2)^0.5 DP?

typo perhaps. this to Farcsinxdx. Also with the F(lnx)^2dx… i tried both methods and i got… 1) x((lnx)^2-2lnx+x) and 2) x((lnx)^2-2lnx) <<< can you please give us the correct answer ,,, thank you!

grant wilsonJuly 22, 2015 at 2:22 pmalso,,, will you get a different answer if you use logx instead of lnx

Jonathan ShockJuly 22, 2015 at 2:26 pmThey will indeed be different, but they will only differ by a constant overall multiplicative factor.

Jonathan ShockJuly 22, 2015 at 2:22 pmCheers, yes, this was indeed a typo.

The correct answer to the ln x question is 2 x – 2 x ln x + x (ln x)^2, but I shan’t give you the reasoning for a day or two. Better to try and battle through to get the right answer…

grant wilsonAugust 17, 2015 at 2:56 pmah man,,, finally solved it both ways,,, man i made a stupid mistake

grant wilsonJuly 22, 2015 at 2:49 pmI have no idea what i am doing wrong,,, i will try one more time after my tut questions,,, thank you!

Jonathan ShockJuly 22, 2015 at 4:39 pmI suggest not trying it again today. Put it away for 24 hours and have a look again tomorrow with a fresh piece of paper.

Abigail MallowsJuly 22, 2015 at 9:58 pmI have two questions:

Is there a dx missing from the integral of (cos (x^1/2)) in the fourth example?

Do the answers to the integrals need the added constant? (or did I miss something?)

Thank you for the notes. I enjoyed the bonus section information.

Jonathan ShockJuly 23, 2015 at 4:58 amHi Abigail, spot on, yes, I’d missed these out but I think they’re now all in correctly! Well found. If you could send me a quick message via email so I can note down that you found these mistakes, that would be great.

Mathemafrica - UCT MAM1000 lecture notes subject listOctober 3, 2015 at 9:04 am[…] MAM1000 lecture notes part 3 – Definite integration by parts […]