Hunter Liu's Website

Please read this important message!

10. Week 9: Midterm II Retrospective

≪ 9. Week 8: Some Practise with Series | Table of Contents

Happy Thanksgiving! Almost. Since there’s only one discussion this week, our goal is to debrief the second midterm and go over some common mistakes and misconceptions. Ideally, this will be an opportunity to learn your weak spots so you can better prepare for the final.

There were three versions of the midterm. For the true/false problems, I’ll list all variants; for the rest, the only differences are coefficients and numbers that don’t affect the approach/solution.

Problem 1. True or False

Determine if each of the following statements are true or false:

  1. For any \(n \geq 1\), \(a_n = f(n)\) for a positive, decreasing, continuous function \(f(x)\), if \(\int _{1}^{\infty} f(x) dx = 2\), then \(\sum _{n=1}^{\infty}a_n = 2\).
  2. (ver. A) \(\int _{0}^{1} \frac{1}{x^p} dx\) converges when \(p < 1\) and diverges when \(p\geq 1\).
    (ver. B) \(\int _{0}^{\infty} \frac{1}{x^p} dx\) diverges for all \(p\).
  3. (ver. A) If \(0 \leq f(x) \leq g(x)\) for all \(x \geq 1\) and \(\int _{1}^{\infty}g(x) dx\) diverges, then \(\int _{1}^{\infty} f(x) dx\) converges.
    (ver. B) If \(0 \leq a_n \leq b_n\) for all \(n \geq 1\), and \(\sum _{n=1}^{\infty} b_n\) converges, then \(\sum _{n=1}^{\infty}a_n\) converges.
  4. For any continuous function \(f(x)\) defined on all reals, \(\int _{-\infty}^{\infty} f(x) dx = \lim _{R\to\infty} \int _{-R}^{R} f(x) dx.\)
  5. If \(\lim _{n\to\infty} a_n = 0\), then \(\sum _{n=1}^{\infty}a_n\) converges.

For (1), this is false. This looks a lot like the integral comparison test, which does apply, but it does not say that the integral and series have the same value, only that they have the same convergent/divergent behaviour. In fact, when you draw out the visual reasoning, there is a visible difference in their values! About half of students got this correct.

For (2), the version A statement is true; this is the standard integral \(p\) test near \(0\). The version B statement is true too, actually: the integral includes both the “head” and the “tail”, and every \(\frac{1}{x^p}\) either has a head that’s too fat or a tail that’s too fat (or both)! 80% of students got the version A statement correct, but only 30% of students got the version B statement.

For (3), this is the inconclusive case of the comparison test. Almost everyone got this correct.

For (4), the answer is false. Improper integrals with a “two-sided” infinity need to broken into two different limits:

\[ \int _{-\infty}^{\infty} f(x) dx = \lim _{R_- \to - \infty} \int _{R_-}^{0} f(x) dx + \lim _{R_+\to\infty} \int _{0}^{R_+} f(x) dx. \]

When \(f(x) = x\), the unified limit predicts \(\int _{-\infty}^{\infty} x\ dx = 0\), but this is visually preposterous! (Think back to our discussion about \(\frac{1}{x}\).) About a third of students got this correct.

Finally, (5) is the inconclusive case of the divergence test. Nearly 90% of students got this correct.

Problem 2. Limit of a Sequence

Determine whether the sequence \(a_n = \frac{3n^3}{4n^3-3n^2+1}\) converges or diverges. If it converges, find the limit; if it diverges, explain why.

This is a pretty standard limit that I think few people made mistakes on; the average score was over 90%. The technique is to divide both sides of the fraction by \(n^3\):

\[\begin{align*} \lim _{n\to\infty} \frac{3n^3}{4n^3-3n^2+1} &= \lim _{n\to\infty} \frac{3n^3}{4n^3-3n^2+1} \cdot \frac{\frac{1}{n^3}}{\frac{1}{n^3}} \\ &= \lim _{n\to\infty} \frac{3}{4 - \frac{3}{n} + \frac{1}{n^3}}\\ &= \frac{3}{4}. \end{align*}\]

It looks like the only mistakes were minor computational mistakes or neglecting to show all the steps above.

Problem 3. Improper Integral

Determine whether

\[ \int _{2}^{\infty} \frac{1}{\left( x^2+1 \right) ^{\frac{3}{2}}} dx \]

converges or diverges. If it converges, find its value; if it diverges, state why.

First, we’ll note that the integrand is \(\approx \frac{1}{x^3}\) when \(x\) is humongous, which converges by the integral \(p\)-test. We should therefore actually try to find the value.

Let’s first find the indefinite integral using a trig-sub. Draw your right triangle (see this past discussion) to get the substitution

\[\begin{align*} x = \tan \theta, && dx = \sec^2 \theta\ d \theta , && \frac{1}{\sqrt{x^2+1}} = \cos \theta. \end{align*}\]

Therefore, we may rewrite our indefinite integral and compute

\[\begin{align*} \int \frac{1}{\left( x^2+1 \right) ^{\frac{3}{2}}} dx &= \int \cos^3 \theta \sec^2 \theta\ d \theta \\ &= \int \cos \theta\ d \theta \\ &= \sin \theta + C \\ &= \frac{x}{\sqrt{x^2+1}}+C. \end{align*}\]

We can safely ignore the \(+C\) in the next step, which is to rewrite the improper integral as a limit of proper integrals, which we can (probably) evaluate.

\[\begin{align*} \int _{2}^{\infty} \frac{1}{\left( x^2+1 \right) ^{\frac{3}{2}}} dx &= \lim _{R\to\infty} \int _{2}^{R} \frac{1}{\left( x^2+1 \right) ^{\frac{3}{2}}} dx \\ &= \lim _{R\to\infty} \left. \frac{x}{\sqrt{x^2+1}} \right\rvert _{2}^{R} \\ &= \lim _{R\to\infty} \frac{R}{\sqrt{R^2 + 1}} - \frac{2}{\sqrt 5} \\ &= \lim _{R\to\infty} \frac{1}{\sqrt{1 + \frac{1}{R^2}}} - \frac{2}{\sqrt 5} \\ &= 1 - \frac{2}{\sqrt 5}. \end{align*}\]

In the second-to-last line, I multiplied both sides of the fraction by \(\frac{1}{R}\).

This problem has not been graded yet, but a cursory skim of the first few solutions reveals the following common mistakes:

These are critical mistakes and I think will significantly affect the score. Besides being familiar with integrals, the key thing to remember is that one must rewrite improper integrals as limits.

Problem 4. Convergence of a Series

Determine if the following series converges or diverges and explain why. Cite any test(s) you use and justify their condition(s).

\[ \sum _{n=1}^{\infty} \frac{\arctan n}{n^2+1}. \]

You may assume \(1 - 2x\arctan x < 0\) for all \(x \geq 1\).

For some people, the tidbit at the bottom was a red herring. At a glance, since \(0 < \arctan n \leq \frac{\pi }{2}\) for all \(n \geq 1\), one has \(\lim _{n\to\infty}\frac{\arctan n}{n^2+1} = 0\), so the divergence test is inconclusive. This is a poor candidate for the ratio test, so we should look for the dominating terms and set up a comparison test. The main goal is to whittle this down to a \(\frac{1}{n^2}\), which we understand via the \(p\)-test. You can do this in one of two ways:

Limit Comparison Test

Let \(a_n = \frac{\arctan n}{n^2 + 1}\) and \(b_n = \frac{1}{n^2}\). Then,

\[ \lim _{n\to\infty} \frac{a_n}{b_n} = \lim _{n\to\infty} \frac{\arctan n}{1 + \frac{1}{n^2}} = \frac{\pi}{2}, \]

so by the limit comparison test, \(\sum _{n=1}^{\infty} a_n\) converges if and only if \(\sum _{n=1}^{\infty} b_n\) converges.

But \(\sum _{n=1}^{\infty} b_n = \sum _{n=1}^{\infty} \frac{1}{n^2}\) converges by the series \(p\)-test, since \(p = 2 > 1\). Therefore \(\sum _{n=1}^{\infty} \frac{\arctan n}{n^2+1}\) converges.

Direct Comparison Test

Let \(a_n = \frac{\arctan n}{n^2 + 1}\). We have

\[ 0 < a_n = \frac{\arctan n}{n^2 + 1} < \frac{\pi / 2}{n^2 + 1} < \frac{\pi}{2 n^2}, \]

as \(\arctan n < \frac{\pi }{2}\) and \(n^2 + 1 > n^2\) for all \(n\). Let \(b_n = \frac{\pi}{2n^2}\). \(\sum _{n=1}^{\infty} b_n = \frac{\pi}{2} \sum _{n=1}^{\infty}\frac{1}{n^2}\) converges by the series \(p\)-test with \(p = 2 > 1\). But by the direct comparison test, since \(0 < a_n < b_n\) for all \(n\), \(\sum _{n=1}^{\infty} a_n\) converges too.

Perhaps the comparison test did not speak to you during the exam. In this case, you may wander off to the integral comparison test, which is equally valid:

Integral Comparison Test

Let \(f(x) = \frac{\arctan x}{x^2 + 1}\). Since

\[f'(x) = \frac{1 - 2x\arctan x}{ \left( x^2+1 \right)^2} < 0\]

for all \(x \geq 1\),
and since \(f\) is continuous and positive on \([1,\infty)\), we may apply the integral test to \(\sum _{n=1}^{\infty} f(n)\).

We’ll first compute the indefinite integral with a substitution. Let \(u = \arctan x\) so \(du = \frac{1}{x^2 + 1} dx\). Then,

\[\begin{align*} \int \frac{\arctan x}{x^2 + 1} dx &= \int u\ du \\ &= \frac{1}{2}u^2 + C \\ &= \frac{1}{2}\arctan(x)^2 + C. \end{align*}\]

We’ll then rewrite the improper integral as a limit and compute:

\[\begin{align*} \int _{1}^{\infty} \frac{\arctan x}{x^2 + 1} dx &= \lim _{R\to\infty} \int _{1}^{R}\frac{\arctan x}{x^2 + 1} dx\\ &= \lim _{R\to\infty} \left. \frac{1}{2}\arctan(x)^2 \right\rvert _{1}^{R} \\ &= \lim _{R\to\infty} \frac{1}{2} \arctan(R)^2 - \frac{1}{2} \arctan(1)^2 &= \frac{1}{2} \left( \frac{\pi }{2} \right)^2 - \frac{1}{2} \left( \frac{\pi }{4} \right)^2. \end{align*}\]

This is finite, so the integral converges. Thus, by the integral test, since \(\int _{1}^{\infty} f(x) dx \) converges, \(\sum _{n=1}^{\infty} f(n) = \sum _{n=1}^{\infty} \frac{\arctan n}{n^2+1}\) converges too.

By far the most common mistake was misunderstanding \(\arctan\), either using incorrect upper bounds in the comparison test, comparing with the wrong function, or getting the wrong limit when performing the integral test.

Logistically, one has to write out carefully exactly how one is using each of the tests — see the above solutions for the level of detail expected. In particular, you have to take a derivative when verifying monotonicity for the integral test, and you have to be clear about which series you’re comparing when you’re citing a comparison test. The average score was around 65%.

Problem 5. Convergence of a Series

Determine if the following series converges or diverges, and explain why. City any test(s) you use and justify its condition(s).

\[ \sum _{n=1}^{\infty} \frac{1}{5n^2 + \cos^2n } \]

This is very ripe for a comparison test. You may either use a direct comparison

\[ 0 < \frac{1}{5n^2 + \cos^2 n} \leq \frac{1}{5n^2} \]


since \(\cos^2n \geq 0\) always; apply the direct comparison test with \(a_n = \frac{1}{5n^2 + \cos^2n}\) and \(b_n = \frac{1}{5n^2}\).

Alternatively, you can do a limit comparison test with \(a_n\) as above and \(b_n = \frac{1}{n^2}\). You will get a convergent series. It looks like everyone did well; the average score was 95%.

Problem 6. Convergence of a Series

Determine if the following series converges absolutely, converges conditinally, or diverges, and explain why. City any test(s) you use and justify its condition(s). \[ \sum _{n=1}^{\infty} \frac{(-50)^n}{n!}. \]

This is perfect for the ratio test! Let \(a_n = \frac{(-50)^n}{n!}\). Let’s compute the ratio

\[\begin{align*} L &= \lim _{n\to\infty} \left\lvert \frac{a _{n+1}}{a_n} \right\rvert \\ &= \lim _{n\to\infty} \left\lvert \frac{(-50) ^{n+1}}{(n+1)!} \cdot \frac{n!}{(-50) ^{n}} \right\rvert \\ &= \lim _{n\to\infty} \left\lvert \frac{-50}{n+1} \right\rvert\\ &= \lim _{n\to\infty} \frac{50}{n+1} \\ &= 0. \end{align*}\]

Since \(L < 0\), \(\sum _{n=1}^{\infty} a_n\) converges absolutely by the ratio test.

This problem has not been graded yet either, but it looks like this is exactly what everyone did. I anticipate high scores on this problem as well.