Video Transcript
Remainder of an Alternating
Series
In this video, weโre going to
discuss approximating certain alternating series by their partial sum. We will see the types of
alternating series we can approximate this way, and we will also see how to
calculate the error of this approximation. We will also see how to use this to
find an approximation up to a certain level of error that we want. Answering questions like, how many
terms do we need to approximate this alternating series up to a certain level of
error? Letโs start by discussing the types
of alternating series weโre going to approximate.
Let ๐ ๐ be a positive and
decreasing sequence where the limit as ๐ approaches โ of ๐ ๐ is equal to
zero. We chose these properties for ๐ ๐
so that it satisfies the alternating series test. This means the sum from ๐ equals
one to โ of negative one to the power of ๐ plus one times ๐ ๐ converges. Letโs call this value ๐. We know that this value is equal to
the limit of its partial sums. And since this limit converges,
this means the limit of its partial sums also converges. So, as we take more and more terms
in our partial sum, we get closer and closer to ๐. This means we can approximate ๐ by
using the ๐th partial sum. We just take more and more terms to
get a more and more accurate representation of ๐.
But just how accurate will this sum
be? Letโs start by rewriting our
infinite alternating series in terms of the ๐th partial sum. Our infinite alternating series
will be equal to the ๐th partial sum plus all of the remaining terms. So, we have that our infinite
series is equal to the ๐th partial sum plus the remainder after ๐ terms. We will call this ๐
๐. And we want to know how close our
estimate of the partial sum is to the actual value of ๐. If we have that ๐ is equal to the
๐th partial sum plus the remainder after ๐ terms, then by subtracting the ๐th
partial sum from both sides of this equation, we have that ๐ minus ๐ ๐ is equal
to ๐
๐. In other words, the difference
between the actual value of our series and our approximation is just equal to ๐
๐. So, ๐
๐ is actually telling us
how accurate our approximation is.
We can actually rewrite our initial
equation in terms of power series to reflect this. The power series for ๐ minus the
power series for the ๐th partial sum is equal to our remainder terms. So, to estimate how accurate our
approximation is, we just need to estimate the value of ๐
๐. To find an approximation of ๐
๐,
letโs write this series out term by term. We can see that this is an
alternating series. We can see that the sign of each
term alternates between positive and negative. In fact, if we assume ๐ is even,
then ๐ plus two is even, so negative one raised to this power is just one. So our first term, ๐ ๐ plus one,
is positive. And we need to alternate the signs
of the rest of the terms.
At first, it might not seem like
this will help us approximate the value of this series. However, we chose our sequence to
be decreasing. That means each term in this series
is getting smaller and smaller in absolute value. In fact, we also chose our sequence
to be positive. So, what does this tell us? Letโs compare the values of ๐ ๐
plus three and negative ๐ ๐ plus two. We know that ๐ ๐ plus three is
smaller than ๐ ๐ plus two because our sequence is decreasing. This is the same as saying that
negative ๐ ๐ plus two plus ๐ ๐ plus three is less than zero. What weโve shown is if we pair off
these two terms in our series, we get a negative term.
We can also see this is true for
the next two terms in our series. ๐ ๐ plus five is smaller than ๐
๐ plus four, and these are both positive. So, pairing off these two terms in
our series leaves us with another negative number. But remember, the first term in our
sequence is positive, so our series is a positive number and then we add negative
numbers. This means we can bound it above by
๐ ๐ plus one, since adding negative numbers to a positive number will make it
smaller. So, we found a bound for our
estimate when we take an even number of terms in our partial sum. But what would have happened if we
had taken an odd number of terms in our partial sum?
We could write out our series term
by term again. However, this time we would start
with negative ๐ ๐ plus one. We could then try pairing off the
same terms we did before. However, this time we see that ๐
๐ plus two is bigger than ๐ ๐ plus three. So, ๐ ๐ plus two minus ๐ ๐ plus
three must be positive. In fact, this is true for all of
these pairs. Weโre subtracting a smaller
positive number from a bigger positive number. And we see that the leading term of
this series, negative ๐ ๐ plus one, is negative. In other words, we start with a
negative number, and then we add positive terms. This makes our number bigger, so we
can say that this is greater than or equal to negative ๐ ๐ plus one.
And we can now see we have very
similar bounds in the case where ๐ is even and the case where ๐ is odd. When ๐ was even, weโve shown that
๐
๐ is less than or equal to ๐ ๐ plus one. And when ๐ is odd, weโve shown
that ๐
๐ is greater than or equal to negative ๐ ๐ plus one. To combine these into one bound, we
first want to show ๐
๐ is positive when ๐ is even. To do this, letโs go back to our
series expansion when ๐ was even, except this time weโre going to pair our terms
this way.
And we can see, evaluating the
terms inside of the parentheses always leaves a positive number. So when ๐ is even, ๐
๐ is the
sum of positive numbers, so itโs positive. Since ๐ ๐ plus one is also
positive, we can take the absolute value of both sides of this inequality. And this gives us the absolute
value of ๐
๐ is less than or equal to the first neglected term ๐ ๐ plus one.
We can do the same when ๐ is
odd. We need to show that ๐
๐ is
negative. When ๐ is odd, we write our series
out term by term. However, this time we pair our
terms in this way. And if we evaluate the expressions
inside of our parentheses, we see we always get a negative value. So when ๐ is odd, ๐
๐ is
negative. Itโs the sum of negative terms.
We again want to take the absolute
value of both sides of this inequality. However, we must be careful. Negative ๐ ๐ plus one is
negative, and ๐
๐ is negative. So, when we take the absolute
value, we need to flip the direction of the inequality. And we can simplify the absolute
value of negative ๐ ๐ plus one. Itโs just ๐ ๐ plus one. So, in both of these cases, we can
bound the error of our approximation by the absolute value of the first neglected
term. Letโs see how we can use this to
approximate an alternating series.
Find the maximum error bound when
approximating the series the sum from ๐ equals one to โ of negative one to the ๐th
power multiplied by the square root of three ๐ plus seven divided by ๐ squared
plus one by summing the first 20 terms. Round your answer to five decimal
places.
The question wants us to find the
maximum possible error we could get by approximating this series by summing the
first 20 terms. It wants us to round this value to
five decimal places. The question wants us to
approximate this series by summing the first 20 terms. Thatโs the same as taking the 20th
partial sum. And the maximum possible error
bound would be a bound on the absolute value of ๐ minus our 20th partial sum, where
๐ would be the value that our series converges to.
To help us find this bound, we know
that if ๐ ๐ is a positive and decreasing sequence where the limit as ๐ approaches
โ of ๐ ๐ is equal to zero, then, by the alternating series test, the alternating
series the sum from ๐ equals one to โ of negative one to the ๐th power times ๐ ๐
converges โ weโll call this value ๐.
Then, we can bound the error
between the value of ๐ and our ๐th partial sum by using the absolute value of ๐
minus the ๐th partial sum is less than or equal to ๐ ๐ plus one, the absolute
value of the first neglected term. By looking at the series given to
us in the question, weโll want to set ๐ ๐ equal to the square root of three ๐
plus seven divided by ๐ squared plus one. If we can then show that ๐ ๐ is a
positive decreasing sequence whose limit as ๐ approaches โ is equal to zero, then,
by setting ๐ equal to 20, weโll have the absolute value of ๐ minus the 20th
partial sum is less than or equal to ๐ 21.
Letโs start by showing that ๐ ๐
is positive. We know that ๐ is greater than or
equal to one. So, three ๐ plus seven is
positive, and then ๐ squared plus one is positive. And weโre taking the positive
square root. So, our sequence ๐ ๐ is positive
for all values of ๐ since weโre just taking the positive square root of a positive
number.
To check that the sequence is
decreasing, weโll set ๐ of ๐ฅ equal to the square root of three ๐ฅ plus seven
divided by ๐ฅ squared plus one. We know that this sequence will be
decreasing if the slope of this function is negative. To help us differentiate this
function, weโll start by setting ๐ข equal to three ๐ฅ plus seven divided by ๐ฅ
squared plus one and then using the chain rule. Since ๐ is a function of ๐ข and ๐ข
is a function of ๐ฅ, by the chain rule we have ๐ prime of ๐ฅ is equal to the
derivative of the square root of ๐ข with respect to ๐ข, which we can evaluate by
using the power rule for differentiation. This gives us a half multiplied by
๐ข to the power of negative a half. And then, we need to multiply this
by d๐ข by d๐ฅ.
Remember, we only need to calculate
whether the slope is negative or positive. Since weโre only interested in the
values of ๐ฅ where ๐ฅ is greater than or equal to one, we can see that ๐ข as
positive; itโs the quotient of two positive numbers. So, a half is positive, and ๐ข to
the power of negative a half is also positive. Itโs one divided by the positive
square root of a positive number. So, to decide whether the slope is
positive or negative, we only need to calculate d๐ข by d๐ฅ. To find d๐ข by d๐ฅ, weโll use the
quotient rule. Weโll set ๐ฃ equal to the
numerator, three ๐ฅ plus seven, and ๐ค equal to the denominator, ๐ฅ squared plus
one. This gives us ๐ฃ prime is three and
๐ค prime is two ๐ฅ.
The quotient rule then tells us d๐ข
by d๐ฅ is equal to ๐ฃ prime ๐ค minus ๐ฃ๐ค prime all divided by ๐ค squared. This gives us three times ๐ฅ
squared plus one minus three ๐ฅ plus seven times two ๐ฅ all divided by ๐ฅ squared
plus one all squared. We can evaluate the numerator to
get three ๐ฅ squared plus three minus six ๐ฅ squared plus 14๐ฅ, which we can
simplify to give us negative three ๐ฅ squared minus 14๐ฅ plus three all divided by
๐ฅ squared plus one squared.
And we see, for values of ๐ฅ
greater than or equal to one, ๐ฅ squared plus one all squared is positive. However, negative three ๐ฅ squared
minus 14๐ฅ plus three is negative. So, d๐ข by the d๐ฅ is negative for
these values of ๐ฅ. This means that our slope, ๐ prime
of ๐ฅ, is a positive number multiplied by a negative number, which means ๐ prime of
๐ฅ is negative. And if our slope is negative for
these values of ๐ฅ, our sequence must be decreasing.
We now want to check the limit as
๐ approaches โ of ๐ ๐ is equal to zero. We see that ๐ ๐ is the square
root of a fraction. Weโll divide both the numerator and
the denominator of this fraction by the highest power of ๐ which appears in the
fraction. Thatโs ๐ squared. Dividing through by ๐ squared
gives us the limit as ๐ approaches โ of the square root of three over ๐ plus seven
over ๐ squared all divided by one plus one over ๐ squared.
We can see as ๐ is approaching โ,
our numerator of three over ๐ plus seven over ๐ squared is approaching zero. And we can see the one over ๐
squared term in our denominator is also approaching zero. However, the term one remains
constant. So, this fraction is approaching
zero divided by one; itโs approaching zero. And since the limit of a power is
equal to the power of the limit, this means that this limit is approaching zero.
So, weโve shown as ๐ approaches โ,
๐ ๐ approaches zero. This means the maximum error bound
when summing the first 20 terms of our series is just ๐ 21. So, if we were to approximate this
series by summing the first 20 terms, our error would be at most ๐ 21, which is
equal to the square root of three times 21 plus seven divided by 21 squared plus
one. And if we calculate this to five
decimal places, we get 0.39796.
So, weโve now seen how to use this
to find the maximum possible error. Letโs see how we can now use this
to estimate the value of a series up to a certain level of accuracy.
Calculate the partial sum ๐ ๐ for
the least ๐ terms which guarantees that the sum of the first ๐ terms of the
alternating series the sum from ๐ equals one to โ of negative one to the power of
๐ plus one divided by five to the ๐th power differs from the infinite sum by 10 to
the power of negative six at most. Give your answer to six decimal
places.
The question wants us to
approximate this alternating series by using a partial sum. It wants us to use an approximation
which uses the least number of terms which guarantees that our difference between
our estimate and the infinite sum is at most 10 to the power of negative six. Once we found this value of ๐, we
need to calculate the partial sum to six decimal places. We see that the series given to us
is a geometric series with initial term ๐ equal to one-fifth and ratio of
successive terms, ๐, equal to negative one-fifth. So, in this case, we could actually
just calculate the value of the infinite sum. Then, all we would need to do is
add more and more terms to our partial sums until weโre within 10 to the power of
negative six of the infinite sum. And this would work.
However, we donโt know how many
terms we would need to add. This could take hundreds and
hundreds of terms for all we know. Instead, weโre going to try and
approximate how many terms we would need. To help us estimate the value of ๐
we need, we recall the following fact about alternating series. If ๐ ๐ is a positive and
decreasing sequence whose limit as ๐ approaches โ is equal to zero, then the
alternating series the sum from ๐ equals one to โ of negative one to the power of
๐ plus one times ๐ ๐ is convergent by the alternating series test โ weโll call
this equal to ๐. Then, we know we can bound the
absolute value of ๐ minus the ๐th partial sum by the first term we left out. Itโs less than or equal to ๐ ๐
plus one. We will set ๐ ๐ equal to one
divided by five to the ๐th power.
We see if we set ๐ equal to
one-fifth and ๐ also equal to one-fifth, then we can see that our sequence ๐ ๐ is
also a geometric sequence. This actually then tells us all the
information we need to know. One-fifth to the ๐th power is
always positive. And the absolute value of one-fifth
is less than one, so itโs decreasing. Finally, we know the limit as ๐
approaches โ of one divided by five to the ๐th power is equal to zero. So, we can use this to approximate
the difference between the ๐th partial sum and the actual value of our infinite
series ๐. The absolute value of ๐ minus the
๐th partial sum is less than or equal to one divided by five to the power of ๐
plus one.
Remember, we want this error to be
at most 10 to the power of negative six. So, if we chose a value of ๐ such
that one divided by five to the power of ๐ plus one was less than or equal to 10 to
the power of negative six, then, for this particular value of ๐, the absolute value
of ๐ minus the ๐th partial sum is less than or equal to 10 to the power of
negative six. So, this value of ๐ is
sufficient. However, itโs not necessarily the
lowest value of ๐. So, letโs find the sufficient value
of ๐. We want one divided by five to the
power of ๐ plus one to be less than or equal to 10 to the power of negative
six.
Both of these terms are
positive. So, we take the reciprocal of both
sides of this equation and then flip the inequality. We then take the log base five of
both sides of this inequality. Then, we just subtract one from
both sides of the inequality. Evaluating this gives us ๐ is
greater than or equal to 7.6, which is the same as saying ๐ is greater than or
equal to eight. So, what we have done is we have
shown the absolute value of ๐ minus the eighth partial sum is less than or equal to
one divided by five to the power of eight plus one, which itself is less than or
equal to 10 to the power of negative six. In other words, when ๐ is equal to
eight, our approximation is at most off by 10 to the power of negative six.
But remember, the question wants us
to find the least number of terms which has this property. We know that eight works, but we
need to check whether seven works. To do this, letโs start by
calculating the value of ๐. We can do this since weโre
calculating the infinite sum of a geometric series where the absolute value of the
ratio of successive terms is less than one. This infinite sum is equal to ๐
divided by one minus ๐. So, ๐ is equal to one-fifth
divided by one minus negative one-fifth, which we can calculate to give us
one-sixth.
We could calculate the value of ๐
seven by using the formula for a finite sum of a geometric series. However, we can also just use a
calculator, giving us approximately 0.166665. If we then calculate the difference
between ๐ and our seventh partial sum, we see itโs approximately 1.6 times 10 to
the power of negative six. And we see that this is bigger than
10 to the power of negative six. So, this means that ๐ equals eight
mustโve been the least number of terms which guaranteed this level of accuracy. And we can then calculate ๐ eight
to six decimal places to be 0.166666.
So, weโve now seen how to
approximate the infinite sum of an alternating series up to any level of accuracy
that we want by using a partial sum. And we can even find the least
number of terms needed for this level of accuracy. So, the key things weโve shown in
this video is if we have a decreasing and positive sequence ๐ ๐ whose limit as ๐
approaches โ is equal to zero. Then, by the alternating series
test, the sum from ๐ equals one to โ of negative one to the power of ๐ plus one
times ๐ ๐ is convergent โ weโll call this value ๐. Then, we can approximate this
infinite sum by using a partial sum.
In fact, the absolute value of ๐
minus the ๐th partial sum is less than or equal to ๐ ๐ plus one. What this means is instead of
calculating the infinite sum, we can just calculate the sum for a finite number of
terms and then this will be accurate up to an error of most ๐ ๐ plus one. And if this is accurate up to an
error of most ๐ ๐ plus one, we could then use this to find the least number of
terms we would need for our partial sum to be accurate to a certain level of
accuracy. We find the sufficient number of
terms by using our bound, and then we remove terms until weโre no longer within the
required level of accuracy.