**Trig integrals**

Trigonometric functions generally tell us about behaviour which happens in a periodic way – the motion of the earth around the sun, the position of a pendulum. This might be related to the (AC) current flowing down an electrical circuit, the change in risk of certain weather patterns throughout the year or the position of a planet in the sky.

Here we’re going to use a combination of simple integrals that we should all know by now and integration by substitution and parts along with trigonometric identities to solve certain integrals.

Note that some of the tricks we use are going to appear to have been pulled out of a hat, and until you become familiar with these methods, that’s unfortunately the case for some time. But spend time looking through them and seeing the structure of the methods and they will become clearer and clearer.

**Integrating the** **function**

Often it will be best to try and put our integral in the form of and . Remember that and so we can see that we have something that has the same pattern that we saw previously when looking at integration by substitution.

Let’s try: and so which gives us:

substituting back we get:

**Integrating the function**

This one really does require some dirty tricks, but if you remember the first step, then you will be good to go.

Here we are going to multiply and divide the integrand (the function inside the integral) by an expression which is going to make things look harder but will actually be easier:

The reason we do this is because the derivative of the function in the denominator is precisely the numerator! If we make the substitution:

Then we can show, by simply taking the derivative, that:

Well, this means that the integral simply becomes:

Again, don’t worry that you wouldn’t have thought of this trick – remember it for now and it will become clear why we use it as you work through it over time.

I was asked a great question in class about the fact that this trick seems so random. There are some nice tips here about other ways to do this integral which you might find a little more intuitive.

**Some higher powers of trig functions**

Let’s look at an example where again we will use a trick and it will allow us to use our previous integral:

Very often with trig functions, if we have an odd power, we will split off an even power as follows:

Now we rewrite the part as which gives

But we see that we already know the first part as we did it in the last example. So we have:

Now we are going to integrate the second term by parts using:

This now gives

But the term on the right is the negative of the term on the left, so we can pull it to the other side to get:

and so:

**An even higher power example**

Here we will see a general method which is applicable to odd powers of and :

Now we want to write in terms of :

But now we can see that a substitution will help. We use to get:

**An iteration formula**

We’re going to see here an example where the answer to an integral is going to be another integral, but one which is simpler than the first and can be written, again, using another integral and so on and so forth until we reach the bottom of the tower of integrals and we have an answer.

We look at:

For positive integer . We start by splitting this up as:

And integrate by parts with:

Which gives:

Writing the term in terms of :

Which can be expanded as:

But the piece on the right is very similar to the original integral and so we take it to the left hand side:

Manipulating this we get:

And so we have managed to write our original integral of a power of in terms of another integral of a power of but now a lower power. If you take the tenth power, you can write it in terms of the 8th power, which you can write in terms of the 6th power, etc. until you have integral on the right which you can solve explicitly. Note that we haven’t included the constant, because the integral on the right itself will give a constant of integration.

**Using the double angle formula**

A useful way to solve even powers of trig functions is to use the double angle formulae:

.

This can then be solved with a simple substitution for , or integrated directly. The final answer is then:

**More examples for you to try.**

There are lots of good examples for you to go through here:

https://www.math.ucdavis.edu/~kouba/CalcTwoDIRECTORY/trigintdirectory/TrigInt.html

http://tutorial.math.lamar.edu/Classes/CalcII/IntegralsWithTrig.aspx

Let me know if you need some more and I’ll find some more useful links.

### Bonus section

It’s very easy to show that there are an infinite number of prime numbers. This was shown by Euclid over 2000 years ago. When you look through prime numbers you will see that they often occur as pairs which differ by 2. These are called twin primes. For instance 11 and 13 are twin primes, 17 and 19 are twin primes.

The density of primes around an integer x, as shown by Gauss goes as .

you might think that twin primes should get more and more rare.

We know that there are an infinite number of primes, but how about twin primes? Are there are infinite number of twin primes? Do they go on forever or is there a pair of twin primes which are the largest, and then there are no others? Well, it turns out that we still don’t know this. In fact, until pretty recently we could say almost nothing about the number of primes which differed by a fixed number of places.

In May 2013, a relatively unknown mathematician called Yitang Zhang from the University of New Hampshire, astounded the mathematics community by showing, not that there were infinitely many primes which differed by 2, but that there were infinitely many primes which differed by at most 70 million! This doesn’t seem nearly as impressive, but it was a huge breakthrough because until this time nobody had any idea how to get ANY bound on pairs of prime numbers.

The mathematics community was abuzz with excitement about this. All they needed to do now was to bring down this bound from 70 million to 2. That’s still not easy but at least we’ve made a start now!

Soon, Terrence Tao, one of the world’s most important mathematicians today, launched an online project called the **Polymath project** which was an open project where anyone could come and contribute to try and make stronger and stronger statements about twin primes.

Soon the project had managed to drop the bound to less than a million, then less than half a million, then suddenly to less than 70 thousand, just a month after Zhang had published his groundbreaking result. After two months it was down from 70 million to 4680.

Then, in November of last year a postdoctoral researcher called Maynard showed that there were infinitely many pairs of primes which differ by less than 600. Another huge jump! The bound is now down to 246 as of April this year. Let’s see if through the joint collaboration of the world’s mathematicians if the twin primes conjecture can finally be proved!

You might well ask ’Who cares?’ But the point is that because prime numbers are the building blocks of all of the natural numbers, while there are still deep mysteries into the structures and patterns of primes numbers, there are even more things that we don’t understand about the structure of the integers.

Read **here** for more.

Kenneth Shimabukuro AbrahamsAugust 4, 2015 at 7:51 amI’m a bit confused about the u substitution. If u= theta/2 then wouldn’t the first term become (1/2)*integral (1) du which is equal to (1/2)* 2theta = theta?

Jonathan ShockAugust 4, 2015 at 8:55 amRemember that the du will also change, so that will give you the extra factor of 1/2.

J

KennethAugust 4, 2015 at 9:07 amThank you so much for the help! That was a rookie mistake again..

Mathemafrica - UCT MAM1000 lecture notes subject listOctober 3, 2015 at 11:03 am[…] MAM1000 lecture notes part 4 – Trig integrals […]