(Noting that LaTeX code cannot be put inside a post title)
This problem was given on a Calculus II review a few semesters back. Our class spent all 50 minutes trying to develop an expression for the given Maclaurin series, but could not find one. The best we could do was tack on an additional infinite series to the expressions we did develop. One all-nighter and a bunch of caffeine later, I found an expression.
Find the Maclaurin series for
First, we will make a table of the values for and :
(Noting that LaTeX tables are not supported with standard WP)
The denominator of this expression is clear: . However, the numerator is being a pain in the ass right off the bat:
- The first two values (of the fraction as a whole, not just the numerator) are positive before alternating sign
- The first three values (of the numerator) have magnitude 1
- The remaining values (of the numerator) follow a seemingly benign sequence: 3, 15, 105, 945, 10395, 135135
To make this easier to analyze, ignore signs for now and simply focus on magnitudes. In doing this, notice the following pattern:
Isn’t that sexy? It’s behaving in a factorial manner once we get past the first two values, but only with odd numbers! This right here is what made finding the solution an all-nighter. I tried for several hours to develop an expression that yielded such behavior. I failed. Instead I went to Google and found, via Wolfram Mathworld, that this sort of thing is called a double factorial:
So… we could try to define our numerator as . We do this because we want the first three values to equate to one. When n is one or two, we get the expected “ones” at the beginning of the sequence. When n is three or greater, the pattern of 3, 15, 105 … holds. However, there is a problem if we try to take care of the zero case: is undefined for -3. So the question becomes: How can we take care of the zero case while also ensuring that the pattern is taken care of? Another question becomes: Why the fuck is this problem so difficult?
Well, we could do this:
Which takes care of that pesky zero case while also maintaining the pattern. As it turns out, there is another expression that can help us simplify this expression even further:
So… we now have the numerator figured out; the “ones” all work and the benign sequence still follows. Which means we have the entire fraction figured out as well:
So… we have an expression that solves two of our three gripes with this problem:
- The first three values of the numerator have magnitude 1
- The remaining values of the numerator follow a seemingly benign sequence: 3, 15, 105, 945, 10395, 135135
Like I said, lets continue to ignore signs for now. Plugging them in at this point would still only give you the first term being negative with the rest being positive anyway. Now that we have the fraction taken care of, there is nothing left to do but add the and and into the mix to complete the sequence that this infinite series expands to:
But alas, the signs are wrong. From n=0 to infinity, we have negative, negative, positive, negative, postive, negative, etc. What we need to do is swap these. The key? Change in the denominator to . This maintains the magnitudes and provides the needed swap of signs. It also gives the final answer:
Isn’t math awesome?