Section 1.4 Compare and Contrast: Three Methods for Integrating \(\sin^6(x)\)
April 14, 2022
It's been a long time since I've posted, hasn't it? School's been keeping me occupied, and I've also been in a little bit of a creative rut when it comes to ideas for new blog posts. But not for now!
As the title implies, we will be looking at three techniques for finding the general antiderivative of the function \(f(x) = \sin^6(x)\text{,}\) which is definitely not the easiest function to integrate. The three methods which we will explore are:
Integration by standard trigonometric identities,
Integration by trigonometric reduction formulae, and
Integration by complex definitions of \(\sin\) and \(\cos\text{.}\)
Mathematical shenanigans are to follow. I was inspired to write up this post after I spoke with a friend about how to integrate the somewhat friendlier function \(\sin^4(x)\text{.}\)
Ultimately, I decided to tackle a slightly higher power of \(\sin\) in this article to better get my points across.
I think that's enough preamble for now. Time for some integration! Just in time for my Calc 2 final, as well :)
Subsection 1.4.1 Evaluating \(\int \sin^6(x) \: dx\) by Standard Trigonometric Identities
In this first technique, our approach will be to repeatedly use variants of the well known trig identity
and
to get rid of those pesky exponents.
First, let us quickly rearrange the first identity to isolate \(\sin^2(x)\text{:}\)
The following mathematical work will be a bit sparse on commentary, but hopefully the steps taken are easy enough to follow. The idea is to, for lack of a better word, spam these two identities to gradually wear down the exponents.
In what follows, I am going to make frequent use of the binomial theorem. If you aren't sure what that is, please search it up, or refer to this Wikipedia page.
The primary goal of this article is to discuss integration techniques, and the contents are structured as such.
Using this theorem, we obtain:
We have now broken up our starting integral into four, more manageable integrals. For the sake of brevity, we will work through integrating just the rightmost integral,
The other integrals are left as an exercise for the reader (a classic).
The technique for integrating this above integral is taught in most integral calculus courses, and is as follows:
Returning back to the original integral, we'll piece together the smaller integrals to get the final result.
Let us put the final answer on a new line, for posterity's sake:
Take note of this expression, as we will be comparing it with other, equivalent 1 expressions obtained by different methods.
Subsection 1.4.2 Evaluating \(\int \sin^6(x) \: dx\) by Trigonometric Reduction Formulae
Trig reduction formulae are powerful tools that express integrals of powers of trigonometric functions in terms with lesser powers. The process can be repeated until the remaining integral is simple to evaluate.
It's like recursion. Sort of.
The trig reduction formula which we will be using is the standard formula for \(\sin^n(x)\text{,}\) and takes the following form for any \(n \in \mathbb{N}, n \geq 2\text{:}\)
I'll quickly go over the derivation of this formula, as it's not too complicated, and is also a practical example of integration by parts.
We choose \(u\) and \(dv\) as follows, then proceed.
Quite a bit of algebra follows, as well as the use of a trigonometric identity.
Let's bring the constants out of the integrals, and move that rightmost term over to the left.
One trig reduction formula, hot off the presses. Of course, our desire is now to shove in \(n = 6\) and see where the formula takes us:
After performing quite a bit of multiplication, we get the final answer
Subsection 1.4.3 Evaluating \(\int \sin^6(x) \: dx\) by Complex Definitions of \(\sin\) and \(\cos\)
The third and final integration technique covered in this blog post is integration using the complex definitions of \(\sin\) and \(\cos\text{.}\) From what I've noticed, this method is the least well-known of the three, which is a real shame, as it's quite powerful.
For example, this technique was not covered in my integral calculus class, though it is in an appendix at the back of the course textbook. 2
My goal is to cover this method of integration with minimal discussion of complex numbers. It turns out that this integration strategy can be employed with very little knowledge of them.
In fact, in addition to what we've covered so far, you need only know three more facts:
\(\displaystyle \sin(x) = \frac{e^{ix} - e^{-ix}}{2i}\)
\(\displaystyle \cos(x) = \frac{e^{ix} + e^{-ix}}{2}\)
\(i^2 = -1\text{.}\)
The first two formulae are the so-called complex definitions of \(\sin\) and \(\cos\text{.}\) If you are confused or interested in how they came to be, I highly encourage you to look them up online.
As for the symbol \(i\text{,}\) all that is important to know for now is that it has the curious property where its square equals \(-1\text{.}\)
The five-step plan of attack for evaluating integrals of the form \(\int \sin^n(x) \: dx\) using complex numbers is as follows:
Replace \(\sin(x)\) with its complex definition.
Split the integrand into two terms.
Apply the binomial theorem.
Finesse the resulting expression to rewrite it in terms of \(\sin\) and/or \(\cos\text{.}\)
Integrate the new integrand term by term.
We demonstrate this strategy with the titular integral \(\int \sin^6(x) \: dx\text{.}\)
By this point, we have finished executing step 3. The step which follows is the most counter-intuitive, in my opinion.
Essentially, the idea is to group terms of like exponents together, and carefully perturb the integrand to have the formulas for \(\sin\) and \(\cos\) reappear. 3
Before we move on, convince yourself of two things. First, that equality still holds, after rearranging all those terms, and second, that \(\cos(nx) = \frac{e^{nix} + e^{-nix}}{2}\text{.}\)
Next, a little bit of wondrous math magic:
All that's left to do is to integrate term by term to obtain the final result of
I personally think that this is quite an elegant way of going about things, but your mileage may vary.
Subsection 1.4.4 "But what about larger \(n\text{?}\)"
We have seen three ways of evaluating the integral
each with their own advantages and drawbacks. Notably, the first and third methods have final answers that look quite similar to each other, but the trig reduction formula returns a final function that is quite distinct from the other two.
It's interesting to observe, for example, that the functions
and
describe the same graph.
We now discuss the relative efficiency of these three integration techniques for larger \(n\) in the integral
When \(n\) is quite large, the trig reduction method seems to be the fastest, most efficient method. There are patterns in the values of the coefficients which could be exploited to strategically reduce the amount of required calculations.
Perhaps the most prominent downside to this technique is that the terms still contain powers of trigonometric functions, which might be undesirable.
The next best method is, in my opinion, integration via complex trig definitions. As \(n\) increases, the bulk of the extra work is in the calculation of the binomial expansion and regrouping of terms. I do think this method beats the first one, though.
Note that with the complex integration technique, we were able to express the integral in terms of trig functions without any squares, cubes, etc. If we needed to, say, integrate the integral of \(\sin^6(x)\text{,}\) it would be relatively quick and painless.
As a challenge for the reader, you could try to evaluate \(\int \sin^8(x) \: dx\text{?}\) Or maybe something even crazier, like \(\int \sin^{22}(x) \: dx\text{?}\)
Perhaps we've opened up too large a proverbial can of worms...