Section 8.1 Sequences
¶Motivating Questions
What is a sequence?
What does it mean for a sequence to converge?
What does it mean for a sequence to diverge?
We encounter sequences every day. Your monthly utility payments, the annual interest you earn on investments, the amount you spend on groceries each week; all are examples of sequences. Other sequences with which you may be familiar include the Fibonacci sequence \(1, 1, 2, 3, 5, 8, \ldots \text{,}\) where each term is the sum of the two preceding terms, and the triangular numbers \(1, 3, 6, 10, 15, 21, 28, 36, 45, 55, \ldots \text{,}\) the number of vertices in the triangles shown in Figure 8.1.1.
Sequences of integers are of such interest to mathematicians and others that they have a journal 1 devoted to them and an on-line encyclopedia 2 that catalogs a huge number of integer sequences and their connections. Sequences are also used in digital recordings and images.
http://www.cs.uwaterloo.ca/journals/JIS/
http://oeis.org/
Our studies in calculus have dealt with continuous continuous functions. Sequences model discrete instead of continuous information. We will study ways to represent and work with discrete information in this chapter as we investigate sequences and series, and ultimately see key connections between the discrete and continuous.
Preview Activity 8.1.1.
Suppose you receive \(\dollar5000\) through an inheritance. You decide to invest this money into a fund that pays \(8\%\) annually, compounded monthly. That means that each month your investment earns \(\frac{0.08}{12} \cdot P\) additional dollars, where \(P\) is your principal balance at the start of the month. So in the first month your investment earns
or \(\dollar33.33\text{.}\) If you reinvest this money, you will then have \(\dollar5033.33\) in your account at the end of the first month. From this point on, assume that you reinvest all of the interest you earn.
How much interest will you earn in the second month? How much money will you have in your account at the end of the second month?
-
Complete Table 8.1.2 to determine the interest earned and total amount of money in this investment each month for one year.
Month Interest
earnedTotal amount
of money
in the account\(0\) \(\dollar0.00\) \(\dollar5000.00\) \(1\) \(\dollar33.33\) \(\dollar5033.33\) \(2\) \(3\) \(4\) \(5\) \(6\) \(7\) \(8\) \(9\) \(10\) \(11\) \(12\) Table 8.1.2. Interest -
As we will see later, the amount of money \(P_n\) in the account after month \(n\) is given by
\begin{equation*} P_n = 5000\left(1+\frac{0.08}{12}\right)^{n}\text{.} \end{equation*}Use this formula to check your calculations in Table 8.1.2. Then find the amount of money in the account after 5 years.
How many years will it be before the account has doubled in value to $10000?
Subsection 8.1.1 Sequences
As Preview Activity 8.1.1 illustrates, many discrete phenomena can be represented as lists of numbers (like the amount of money in an account over a period of months). We call any such list a sequence. A sequence is nothing more than list of terms in some order. We often list the entries of the sequence with subscripts,
where the subscript denotes the position of the entry in the sequence.
Definition 8.1.3.
A sequence is a list of terms \(s_1, s_2, s_3, \ldots\) in a specified order.
We can think of a sequence as a function \(f\) whose domain is the set of positive integers where \(f(n) = s_n\) for each positive integer \(n\text{.}\) This alternative view will be be useful in many situations.
We often denote the sequence
by \(\{s_n\}\text{.}\) The value \(s_n\) (alternatively \(s(n)\)) is called the \(n\)th term in the sequence. If the terms are all 0 after some fixed value of \(n\text{,}\) we say the sequence is finite. Otherwise the sequence is infinite. With infinite sequences, we are often interested in their end behavior and the idea of convergent sequences.
Activity 8.1.2.
-
Let \(s_n\) be the \(n\)th term in the sequence \(1, 2, 3, \ldots\text{.}\) Find a formula for \(s_n\) and use appropriate technological tools to draw a graph of entries in this sequence by plotting points of the form \((n,s_n)\) for some values of \(n\text{.}\) Most graphing calculators can plot sequences; directions follow for the TI-84.
In the
MODE
menu, highlightSEQ
in theFUNC
line and pressENTER
.In the
Y=
menu, you will now see lines to enter sequences. Enter a value fornMin
(where the sequence starts), a function foru(n)
(the \(n\)th term in the sequence), and the value ofu_{n Min}
.Set your window coordinates (this involves choosing limits for \(n\) as well as the window coordinates
XMin
,XMax
,YMin
, andYMax
.The
GRAPH
key will draw a plot of your sequence.
Using your knowledge of limits of continuous functions as \(x \to \infty\text{,}\) decide if this sequence \(\{s_n\}\) has a limit as \(n \to \infty\text{.}\) Explain your reasoning.
Let \(s_n\) be the \(n\)th term in the sequence \(1, \frac{1}{2}, \frac{1}{3}, \ldots\text{.}\) Find a formula for \(s_n\text{.}\) Draw a graph of some points in this sequence. Using your knowledge of limits of continuous functions as \(x \to \infty\text{,}\) decide if this sequence \(\{s_n\}\) has a limit as \(n \to \infty\text{.}\) Explain your reasoning.
Let \(s_n\) be the \(n\)th term in the sequence \(2, \frac{3}{2}, \frac{4}{3}, \frac{5}{4}, \ldots\text{.}\) Find a formula for \(s_n\text{.}\) Using your knowledge of limits of continuous functions as \(x \to \infty\text{,}\) decide if this sequence \(\{s_n\}\) has a limit as \(n \to \infty\text{.}\) Explain your reasoning.
When \(n=1\text{,}\) \(s_n = 1\text{;}\) when \(n=2\text{,}\) \(s_n = 2\text{.}\)
Think about the value of \(\frac{1}{n}\text{.}\)
Note that the numerator of each term of the sequence is one more than the denominator of the term.
-
\(s_n = n\text{.}\) A plot of the first 50 points in the sequence is shown here.
This sequence does not have a limit as \(n\) goes to infinity.
-
\(s_n\) is \(s_n = \frac{1}{n}\text{.}\) A plot of the first 50 points in the sequence is shown here.
This sequence has a limit of 0 as \(n\) goes to infinity.
-
\(s_n = \frac{n+1}{n}\text{.}\) A plot of the first 50 points in the sequence is shown here.
This sequence has a limit of 1 as \(n\) goes to infinity.
-
By observation we see that a formula for \(s_n\) is \(s_n = n\text{.}\) A plot of the first 50 points in the sequence is shown here.
We recalling that a function \(f\) has a limit \(L\) at infinity if we can make the values of \(f(x)\) as large as we want by choosing \(x\) as large as we need. Since we can make the values of \(n\) in our sequence as large as we want by choosing \(n\) to be as large as we need, we suspect that this sequence does not have a limit as \(n\) goes to infinity.
-
By observation we see that a formula for \(s_n\) is \(s_n = \frac{1}{n}\text{.}\) A plot of the first 50 points in the sequence is shown here.
Since we can make the values of \(\frac{1}{n}\) in our sequence as close to 0 as we want by choosing \(n\) to be as large as we need, we suspect that this sequence has a limit of 0 as \(n\) goes to infinity.
-
Since the numerator is always 1 more than the denominator, a formula for \(s_n\) is \(s_n = \frac{n+1}{n}\text{.}\) A plot of the first 50 points in the sequence is shown here.
Since we can make the values of \(\frac{n+1}{n}\) in our sequence as close to 1 as we want by choosing \(n\) to be as large as we need, we suspect that this sequence has a limit of 1 as \(n\) goes to infinity.
Next we formalize the ideas from Activity 8.1.2.
Activity 8.1.3.
Recall our earlier work with limits involving infinity in Section 3.1. State clearly what it means for a continuous function \(f\) to have a limit \(L\) as \(x \to \infty\text{.}\)
Given that an infinite sequence of real numbers is a function from the integers to the real numbers, apply the idea from part (a) to explain what you think it means for a sequence \(\{s_n\}\) to have a limit as \(n \to \infty\text{.}\)
Based on your response to the part (b), decide if the sequence \(\left\{ \frac{1+n}{2+n}\right\}\) has a limit as \(n \to \infty\text{.}\) If so, what is the limit? If not, why not?
A function \(f\) has limit \(L\) as \(x \to \infty\) if we can make \(f(x)\) as close to \(L\) as we like by \(\ldots\text{.}\)
Think about making \(s_n\) as close as you want to \(L\) for large values of \(n\text{.}\)
Compare \(f(x) = \frac{1+x}{2+x}\) as \(x \to \infty\text{.}\)
A continuous function \(f\) has a limit \(L\) as the independent variable \(x\) goes to infinity if we can make the values of \(f(x)\) as close to \(L\) as we want by choosing \(x\) as large as we need.
We expect that a sequence \(\{s_n\}\) will have a limit \(L\) as \(n\) goes to infinity if we can make the entries \(s_n\) in the sequence as close to \(L\) as we want by choosing \(n\) as large as we need.
As \(n\) gets large, the constant terms become infinitesimally small compared to \(n\) and so \(\frac{1+n}{2+n}\) looks like \(\frac{n}{n}\) or 1 for large \(n\text{.}\) So the sequence \(\left\{ \frac{1+n}{2+n}\right\}\) has a limit of 1 at infinity.
In Activities 8.1.2 and 8.1.3 we investigated a sequence \(\{s_n\}\) that has a limit as \(n\) goes to infinity. More formally, we make the following definition.
Definition 8.1.4.
A sequence \(\{ s_n \}\) converges or is a convergent sequence provided that there is a number \(L\) such that we can make \(s_n\) as close to \(L\) as we want by taking \(n\) sufficiently large. In this situation, we call \(L\) the limit of the convergent sequence and write
If the sequence \(\{s_n\}\) does not converge, we say that the sequence \(\{s_n\}\) diverges.
The idea of sequence having a limit as \(n \to \infty\) is the same as the idea of a continuous function having a limit as \(x \to \infty\text{.}\) The only difference is that sequences are discrete instead of continuous.
Activity 8.1.4.
Use graphical and/or algebraic methods to determine whether each of the following sequences converges or diverges.
\(\left\{\frac{1+2n}{3n-2}\right\}\)
\(\left\{\frac{5+3^n}{10+2^n}\right\}\)
\(\left\{\frac{10^n}{n!}\right\}\) (where \(!\) is the factorial symbol and \(n! = n(n-1)(n-2) \cdots (2)(1)\) for any positive integer \(n\) (as convention we define \(0!\) to be 1)).
Multiply the numerator and denominator each by \(\frac{1}{n}\text{.}\)
Compare \(\frac{3^n}{2^n}\text{.}\)
Plot the sequence and think about what the graph suggests.
The sequence \(\left\{\frac{1+2n}{3n-2}\right\}\) converges to \(\frac{2}{3}\text{.}\)
The sequence \(\left\{\frac{5+3^n}{10+2^n}\right\}\) diverges to infinity.
\(\frac{10^n}{n!} \to 0\) as \(n \to \infty\text{.}\)
-
A plot of the first 50 terms of the sequence \(\left\{\frac{1+2n}{3n-2}\right\}\) is shown here.
The plot implies that the sequence has a limit between 0.5 and 1. For large \(n\) the \(2n\) term dominates the numerator and the \(3n\) term the denominator. So \(\frac{1+2n}{3n-2}\) looks like \(\frac{2n}{3n} = \frac{2}{3}\) when \(n\) is big. So the sequence \(\left\{\frac{1+2n}{3n-2}\right\}\) converges to \(\frac{2}{3}\text{.}\)
-
A plot of the first 50 terms of the sequence \(\left\{\frac{5+3^n}{10+2^n}\right\}\) is shown here.
The plot implies that the sequence does not have a limit as \(n\) goes to infinity. For large \(n\) the \(3^n\) term dominates the numerator and the \(2^n\) term the denominator. So \(\frac{5+3^n}{10+2^n}\) looks like \(\frac{3^n}{2^n} = \left(\frac{3}{2}\right)^n\) when \(n\) is big. Since \(\frac{3}{2} \gt 1\text{,}\) the sequence \(\left\{\frac{5+3^n}{10+2^n}\right\}\) diverges to infinity.
-
A plot of the first 50 terms of the sequence \(\left\{\frac{10^n}{n!}\right\}\) is shown here.
Initially, it looks as though the terms increase without bound, but beginning at about \(n=10\) the factorial in the denominator dominates the numerator. Notice that
\begin{equation*} \frac{10^n}{n!} = \frac{10 \times 10 \times 10 \times \cdots \times 10}{1 \times 2 \times 3 \times \cdots n} \end{equation*}When \(n \gt 20\text{,}\) we have that \(\frac{10}{n} \lt \frac{1}{2}\) and
\begin{align*} \frac{10^n}{n!} \amp = \left(\frac{10 \times 10 \times 10 \times \cdots \times 10}{1 \times 2 \times 3 \times \cdots 20}\right) \left(\frac{10 \times 10 \times 10 \times \cdots \times 10}{21 \times 22 \times 23 \times \cdots n}\right)\\ \amp = \left(\frac{10^{20}}{20!}\right) \left(\frac{10}{21}\right) \left(\frac{10}{22}\right) \cdots \left(\frac{10}{n}\right)\\ \amp \lt \left(\frac{10^{20}}{20!}\right) \left(\frac{1}{2}\right)^{n-20}\text{.} \end{align*}Since \(\frac{1}{2}\lt 1\text{,}\) the term \(\left(\frac{1}{2}\right)^{n-20}\) goes to 0 as \(n\) goes to infinity. The fact that \(\frac{10^{20}}{20!}\) is a constant means that \(\frac{10^n}{n!} \to 0\) as \(n \to \infty\text{.}\)
Subsection 8.1.2 Summary
A sequence is a list of objects in a specified order. We will typically work with sequences of real numbers. We can think of a sequence as a function from the positive integers to the set of real numbers.
A sequence \(\{s_n\}\) of real numbers converges to a number \(L\) if we can make every value of \(s_k\) for \(k \ge n\) as close as we want to \(L\) by choosing \(n\) sufficiently large.
A sequence diverges if it does not converge.
Exercises 8.1.3 Exercises
¶1. Limits of five sequences.
2. Formula for a sequence, given first terms.
3. Divergent or convergent sequences.
4. Terms of a sequence from sampling a signal.
5.
Finding limits of convergent sequences can be a challenge. However, there is a useful tool we can adapt from our study of limits of continuous functions at infinity to use to find limits of sequences. We illustrate in this exercise with the example of the sequence
Calculate the first 10 terms of this sequence. Based on these calculations, do you think the sequence converges or diverges? Why?
-
For this sequence, there is a corresponding continuous function \(f\) defined by
\begin{equation*} f(x) = \frac{\ln(x)}{x}\text{.} \end{equation*}Draw the graph of \(f(x)\) on the interval \([0,10]\) and then plot the entries of the sequence on the graph. What conclusion do you think we can draw about the sequence \(\left\{\frac{\ln(n)}{n}\right\}\) if \(\lim_{x \to \infty} f(x) = L\text{?}\) Explain.
Note that \(f(x)\) has the indeterminate form \(\frac{\infty}{\infty}\) as \(x\) goes to infinity. What idea from differential calculus can we use to calculate \(\lim_{x \to \infty} f(x)\text{?}\) Use this method to find \(\lim_{x \to \infty} f(x)\text{.}\) What, then, is \(\lim_{n \to \infty} \frac{\ln(n)}{n}\text{?}\)
-
Unclear whether it converges or diverges.
\(n\) \(1\) \(2\) \(3\) \(4\) \(5\) \(\frac{\ln(n)}{n}\) \(0\) \(0.3466\) \(0.3663\) \(0.3466\) \(0.3218\) \(t\) \(6\) \(7\) \(8\) \(9\) \(10\) \(\frac{\ln(n)}{n}\) \(0.2987\) \(0.2781\) \(0.2599\) \(0.2442\) \(0.2303\) If \(\lim_{x \to \infty} f(x) = L\text{,}\) then \(\lim_{n \to \infty} \frac{\ln(n)}{n} = L\) as well.
- \begin{equation*} \lim_{n \to \infty} \frac{\ln(n)}{n} = \lim_{x \to \infty} \frac{\ln(x)}{x} = 0\text{.} \end{equation*}
-
Decimal approximations of the first \(10\) terms of this sequence are given in the following table. The numbers in this sequence originally increase, but then seem to be decreasing. It looks as though the sequence might converge, but if so it isn't clear to what value the sequence converges.
\(n\) \(1\) \(2\) \(3\) \(4\) \(5\) \(\frac{\ln(n)}{n}\) \(0\) \(0.3466\) \(0.3663\) \(0.3466\) \(0.3218\) \(t\) \(6\) \(7\) \(8\) \(9\) \(10\) \(\frac{\ln(n)}{n}\) \(0.2987\) \(0.2781\) \(0.2599\) \(0.2442\) \(0.2303\) -
The graph of \(f\) on the interval \([1, 10]\) and the graph of the sequence \(\left\{\frac{n}{\ln(n)}\right\}\) for \(n\) from 1 to 10 are shown in the figure below. Since the graph of the sequence follows the graph of the function \(f\text{,}\) and since \(f\) is a strictly decreasing function, we should expect that if \(\lim_{x \to \infty} f(x) = L\text{,}\) then \(\lim_{n \to \infty} \frac{\ln(n)}{n} = L\) as well.
-
Since we have the indeterminate form \(\frac{\infty}{\infty}\text{,}\) we can apply L'Hopital's Rule to determine the limit. In this case, we have
\begin{equation*} \lim_{x \to \infty} \frac{\ln(x)}{x} = \lim_{x \to \infty} \frac{1}{x} = 0\text{.} \end{equation*}So we should expect that
\begin{equation*} \lim_{n \to \infty} \frac{\ln(n)}{n} = \lim_{x \to \infty} \frac{\ln(x)}{x} = 0\text{.} \end{equation*}
6.
We return to the example begun in Preview Activity 8.1.1 to see how to derive the formula for the amount of money in an account at a given time. We do this in a general setting. Suppose you invest \(P\) dollars (called the principal) in an account paying \(r\%\) interest compounded monthly. In the first month you will receive \(\frac{r}{12}\) (here \(r\) is in decimal form; e.g., if we have \(8\%\) interest, we write \(\frac{0.08}{12}\)) of the principal \(P\) in interest, so you earn
dollars in interest. Assume that you reinvest all interest. Then at the end of the first month your account will contain the original principal \(P\) plus the interest, or a total of
dollars.
-
Given that your principal is now \(P_1\) dollars, how much interest will you earn in the second month? If \(P_2\) is the total amount of money in your account at the end of the second month, explain why
\begin{equation*} P_2 = P_1\left( 1 + \frac{r}{12}\right) = P\left( 1 + \frac{r}{12}\right)^2\text{.} \end{equation*} Find a formula for \(P_3\text{,}\) the total amount of money in the account at the end of the third month in terms of the original investment \(P\text{.}\)
There is a pattern to these calculations. Let \(P_n\) the total amount of money in the account at the end of the third month in terms of the original investment \(P\text{.}\) Find a formula for \(P_n\text{.}\)
\(P_1\left(\frac{r}{12}\right)\) in interest in the second month; at the end of the second month, \(P_2 = P\left( 1 + \frac{r}{12}\right)^2 \text{.}\)
\(P_3 = P\left( 1 + \frac{r}{12}\right)^3 \text{.}\)
\(P_n = P\left( 1 + \frac{r}{12}\right)^n\) is a pattern to these calculations.
-
The principal of \(P_1\) dollars will earn \(P_1\left(\frac{r}{12}\right)\) in interest in the second month. Thus, at the end of the second month, the total amount \(P_2\) in your account will be
\begin{equation*} P_2 = P_1 + P_1\left(\frac{r}{12}\right)\text{.} \end{equation*}Factoring and recalling that \(P_1 = P\left( 1 + \frac{r}{12}\right)\)
\begin{equation*} P_2 = P_1\left( 1 + \frac{r}{12}\right) = P\left( 1 + \frac{r}{12}\right)^2\text{.} \end{equation*} -
The principal of \(P_2\) dollars will earn \(P_2\left(\frac{r}{12}\right)\) in interest in the third month. Thus, at the end of the third month, the total amount \(P_3\) in your account will be
\begin{equation*} P_3 = P_2 + P_2\left(\frac{r}{12}\right)\text{.} \end{equation*}Factoring and recalling that \(P_2 = P\left( 1 + \frac{r}{12}\right)^2\)
\begin{equation*} P_3 = P_2\left( 1 + \frac{r}{12}\right) = P\left( 1 + \frac{r}{12}\right)^3\text{.} \end{equation*} -
Based on the pattern we observe, continuing the same line of reasoning we find that
\begin{equation*} P_n = P_{n-1}\left( 1 + \frac{r}{12}\right) = P\left( 1 + \frac{r}{12}\right)^n \end{equation*}is a pattern to these calculations.
7.
Sequences have many applications in mathematics and the sciences. In a recent paper 3 the authors write
The incretin hormone glucagon-like peptide-1 (GLP-1) is capable of ameliorating glucose-dependent insulin secretion in subjects with diabetes. However, its very short half-life (1.5-5 min) in plasma represents a major limitation for its use in the clinical setting.
The half-life of GLP-1 is the time it takes for half of the hormone to decay in its medium. For this exercise, assume the half-life of GLP-1 is 5 minutes. So if \(A\) is the amount of GLP-1 in plasma at some time \(t\text{,}\) then only \(\frac{A}{2}\) of the hormone will be present after \(t+5\) minutes. Suppose \(A_0 = 100\) grams of the hormone are initially present in plasma.
Let \(A_1\) be the amount of GLP-1 present after 5 minutes. Find the value of \(A_1\text{.}\)
Let \(A_2\) be the amount of GLP-1 present after 10 minutes. Find the value of \(A_2\text{.}\)
Let \(A_3\) be the amount of GLP-1 present after 15 minutes. Find the value of \(A_3\text{.}\)
Let \(A_4\) be the amount of GLP-1 present after 20 minutes. Find the value of \(A_4\text{.}\)
Let \(A_n\) be the amount of GLP-1 present after \(5n\) minutes. Find a formula for \(A_n\text{.}\)
Does the sequence \(\{A_n\}\) converge or diverge? If the sequence converges, find its limit and explain why this value makes sense in the context of this problem.
Determine the number of minutes it takes until the amount of GLP-1 in plasma is 1 gram.
Exercise Answer
Since one half-life has passed at \(t = 5\text{,}\) \(A_1 = \frac{1}{2} A_0 = \frac{1}{2}(100)\text{.}\)
Since another half-life has passed at \(t = 10\text{,}\) \(A_2 = \frac{1}{2} A_1 = \frac{1}{2}\left( \frac{1}{2} (100) \right) = \left( \frac{1}{2} \right)^2 \cdot 100\text{.}\)
Yet another half-life has passed at \(t = 15\text{,}\) so \(A_3 = \frac{1}{2} A_2 = \frac{1}{2}\left( \left( \frac{1}{2} \right)^2 \cdot 100 \right) = \left( \frac{1}{2} \right)^3 \cdot 100\text{.}\)
Continuing, \(A_4 = \frac{1}{2} A_3 = \frac{1}{2}\left( \left( \frac{1}{2} \right)^3 \cdot 100 \right) = \left( \frac{1}{2} \right)^4 \cdot 100\text{.}\)
-
After \(5n\) minutes, \(n\) half-lives have elapsed, and thus we find that
\begin{equation*} A_n = \left( \frac{1}{2} \right)^n \cdot 100\text{.} \end{equation*} From the behavior of exponential functions, we know that if \(0 \lt a \lt 1\text{,}\) then \(a^x \to 0\) as \(x \to \infty\text{.}\) It follows that \(\left( \frac{1}{2} \right)^n \to 0\) as \(n \to \infty\text{,}\) and therefore \(A_n \to 0\) as time goes on. This makes sense because the human body will consume and change the drug in the body and eliminate it unless additional doses are taken.
-
To determine the time at which \(1\) gram of the hormone remains in the body, we solve the equation
\begin{equation*} 1 = \left( \frac{1}{2} \right)^n \cdot 100\text{.} \end{equation*}This implies that \(\left( \frac{1}{2} \right)^n = 0.01\text{,}\) and thus \(n = \frac{\ln(0.01)}{\ln(0.5)} \approx 6.6439\text{.}\) Thus, it takes about \(6.6439\) half-lives to elapse to get down to \(1\) gram remaining, or \(5 \cdot 6.6439 = 33.2193\) minutes.
8.
Continuous data is the basis for analog information, like music stored on old cassette tapes or vinyl records. A digital signal like on a CD or MP3 file is obtained by sampling an analog signal at some regular time interval and storing that information. For example, the sampling rate of a compact disk is 44,100 samples per second. So a digital recording is only an approximation of the actual analog information. Digital information can be manipulated in many useful ways that allow for, among other things, noisy signals to be cleaned up and large collections of information to be compressed and stored in much smaller space. While we won't investigate these techniques in this chapter, this exercise is intended to give an idea of the importance of discrete (digital) techniques.
Let \(f\) be the continuous function defined by \(f(x) = \sin(4x)\) on the interval \([0,10]\text{.}\) A graph of \(f\) is shown in Figure 8.1.5.
We approximate \(f\) by sampling, that is by partitioning the interval \([0,10]\) into uniform subintervals and recording the values of \(f\) at the endpoints.
Ineffective sampling can lead to several problems in reproducing the original signal. As an example, partition the interval \([0,10]\) into 8 equal length subintervals and create a list of points (the sample) using the endpoints of each subinterval. Plot your sample on graph of \(f\) in Figure Figure 8.1.5. What can you say about the period of your sample as compared to the period of the original function?
The sampling rate is the number of samples of a signal taken per second. As the part (a) illustrates, sampling at too small a rate can cause serious problems with reproducing the original signal (this problem of inefficient sampling leading to an inaccurate approximation is called aliasing). There is an elegant theorem called the Nyquist-Shannon Sampling Theorem that says that human perception is limited, which allows that replacement of a continuous signal with a digital one without any perceived loss of information. This theorem also provides the lowest rate at which a signal can be sampled (called the Nyquist rate) without such a loss of information. The theorem states that we should sample at double the maximum desired frequency so that every cycle of the original signal will be sampled at at least two points. Recall that the frequency of a sinusoidal function is the reciprocal of the period. Identify the frequency of the function \(f\) and determine the number of partitions of the interval \([0,10]\) that give us the Nyquist rate.
Humans cannot typically pick up signals above 20 kHz. Explain why, then, that information on a compact disk is sampled at 44,100 Hz.
-
The data points do not appear periodic at all.
At least \(13\) samples, so at least every \(10/13 \approx 0.76923\) seconds.
\(44100\) Hz is slightly more than double \(20\) KHz.
-
Sampling the function at the endpoints of \(8\) equal subintervals of length \(10/8 = 1.25\text{,}\) we see the data pictured in the following figure (with the sample points in red). While the function is periodic with a period of \(\frac{2\pi}{4} = \frac{\pi}{2}\text{,}\) the \(9\) data points do not appear periodic at all as none of them has repeated (yet) over the course of the pictured interval.
Since the period of the function \(f(x) = \sin(4x)\) is \(P = \frac{\pi}{2}\text{,}\) its frequency is \(\frac{2}{\pi} \approx 0.6366\text{,}\) which means that this function completes about \(0.6366\) cycles per second. Doubling this frequncy gives us a value of \(\frac{4}{\pi} \approx 1.2732\text{.}\) This means that we should sample the function at at least a rate of twice per cycle, or at least \(1.2732\) samples per second. On a 10-second interval, we therefore need at least \(13\) samples, so we should do so at least every \(10/13 \approx 0.76923\) seconds.
Since the theorem says to sample at a minimum of double the maximum desired frequency, and humans can't detect signals above \(20\) KHz, it follows that double \(20\) KHz is \(40\) KHz, or \(40000\) Hz, so sampling at \(44100\) Hz slightly exceeds the minimum sampling needed by the formal result.