question id: csfj-1
🟡 Loading...
Loading webR...
Exercise 1 The Taylor polynomial
question id: csfj-1
It cannot be determined from the polynomial
question id: csfj-2
question id: csfj-3
Exercise 2 Here’s the Taylor polynomial expansion of
question id: calf-tear-fridge-1
Exercise 3 Consider the function
Using ordinary algebra,
Yes, with a center at
Yes, with a center at
No, because there are no factorials involved
question id: QGSi6C
Exercise 4 At
Using Active R chunk 1, plot out
question id: dolphin-mean-linen-1
Now to check the existence of
Recall that l’Hopital’s Rule covers situations like
Here, the rule has the form:
Compute the derivatives on the right-hand side of Math expression 1 and simplify the algebra.
question id: dolphin-mean-linen-2
Take the limit as
question id: dolphin-mean-linen-3
Exercise 13 We are all busy people these days and nobody has the time to compute an infinite number of coefficients define a function using a Taylor series. Instead, we will have to use just a few coefficients. But how many is enough?
The function make_poly()
defined in Active R chunk 2 can create a function given a fiducial point
For example, the coefficients for
The sandbox shows a simple comparison of the polynomial approximation to the actual exponential function. it plots the magnitude of the error
Read the graph carefully to make sure you understand what is being displayed.
1e-6
is 0.000001. The approximation has that much error or less for For 1e-1
. When written as a decimal number, how many leading zeros are after the decimal point?
question id: fawn-hear-kayak-1
For 1e4
. What is this when written as a decimal number?
question id: fawn-hear-kayak-2
Exercise 5 In the next Blocks of the textbook, we will be using four of our basic modeling functions very heavily:
These functions are all very intricately related to one another. It will help to see the relationships if we write each of them in a common form. To that end, we will write each as a linear combination of power-law functions with integer exponents. Each of these linear series involves an infinite number of power-law functions.
exponential function
sine function
cosine function
“natural” logarithm
We ask you to memorize each of these four infinite series. Since it is impractical to memorize an ionfinite number of things, we will give you a system so that there are only a small number of facts needed.
Here are the patterns of the signs:
function | x0 | x1 | x2 | x3 | x4 | x5 | x6 | |
---|---|---|---|---|---|---|---|---|
+ | + | + | + | + | + | + | ||
+ | 0 | - | 0 | + | 0 | - | ||
0 | + | 0 | - | 0 | + | 0 | ||
0 | + | - | + | - | + | - |
Notice that the signs of the
The series all extend to
question id: fox-dig-room-1
question id: fox-dig-room-2
question id: fox-dig-room-3
question id: fox-dig-room-4
question id: fox-dig-room-5
question id: fox-dig-room-6
Exercise 6 Here is a Taylor polynomial:
question id: pig-iron-closet-1
No, a polynomial does not have functions like
Yes. The center is
Not really. The formula suggests that the center is
question id: pig-iron-closet-2
Exercise 7 With very high-order derivatives, it can be awkward to use a notation with repeated subscripts, like
For a function
A Taylor polynomial, like all polynomials, is a linear combination of basic functions.
Which of these are the basic functions being linearly combined in a Taylor polynomial?
question id: frog-throw-screen-1
Exercise 8 Recall the formula for the coefficients
Let’s construct the polynomial coefficients for the function
0, 0, 0, 0, 0, …
1, 1, 1, 1, 1, …
1, 2, 3, 4, 5, …
0, 1, 2, 3, 4, …
question id: bc1-1
0, 0, 0, 0, 0, …
1, 2, 3, 4, 5, …
0, 1, 2, 3, 4, …
1, 1, 2, 6, 24, …
question id: bc1-2
question id: bc1-3
Now let’s construct the polynomial expansion of
0, 1, -1, 1, -1, …
1, 0, -1, 0, 1, …
0, 1, 0, -1, 0, …
1, 0, 0, -1, 1, …
question id: bc1-4
question id: bc1-5
question id: bc1-6
Finally, let’s construct the polynomial expansion of the function
1, 1, 1, 1, 1 …
1, -1, 1, -1, 1, …
0, 1, 0, 1, 0, …
1, 0, 1, 0, 1, …
question id: bc1-7
1, 1, 1, 1, 1, …
1, 1/2, 1/6, 1/24, 1/120, …
1, 1, 1/2, 1/6, 1/24, …
1, 1, 2!, 3!, 4!
question id: bc1-8
Exercise 9 Consider the function
In this exercise, we want to figure out the extent of the interval in which
Find the full interval of the domain of
question id: seahorse-pay-plant
Exercise 12
Need to integrate this with the Chapter 27 text.
The polynomial computer does not have any problem with overflow or underflow. The key to success is to write the Taylor polynomial for functions such as
What’s special here is that the a_0
term does not need to be included in the polynomial, since
sin()
tan()
atan()
acos()
question id: rhinosaurus-toss-gloves-4
These zero divided by zero problems (like
What’s more important than simpler is that, for the expansion of such functions to study the limit at
Why? Consider the 2nd-order Taylor polynomial
For instance, suppose our polynomial were
Here’s the method:
Suppose you have a function
Step 1: Write the Taylor polynomial expansion around
Step 2: Divide the polynomial (really just linear!) expansion of
that is the answer,
question id: rhinosaurus-toss-gloves-5
Sometimes the singularity is at some non-zero
Here, write your Taylor polynomials around
Consequently,
We’ve been discussing ratios of functions where the ratio cannot be calculated at the singularity using simply the limits of the functions approaching that singularity. (For instance
The indeterminate form
There is a variety of algebraic tricks to try to transform these different shapes of indeterminate forms into a ratio of functions, each of which goes to zero at the relevant
Indeterminate forms have been a bonanza for the author of calculus book exercises, who can write an large number of examples, many of which have never been seen in the wild.
One shortcut that works in practice is to make a graph of the indeterminate form near the singularity. If the limit as
In Active R chunk 5, the function
Exercise 10 In this exercise, you’re going to approximate a sinusoid
Warning: All aesthetics have length 1, but the data has 101 rows.
ℹ Please consider using `annotate()` or provide this layer with data containing
a single row.
Draw your own graph of a sinusoid so that you can sketch on top of it the polynomial approximations you will design.
Start with sketching in a third-order polynomial that approximates the sinusoid near
Remember what you know about the shape of third-order polynomials:
Repeat (1), sketching out a 5th-order polynomial. Again, one tail will go up and the other down. But now there can be two argmaxes and two argmins that alternate along the
One more time, sketching now a 7th-order polynomial. Just like the first-, third-, and fifth-order polynomial, for the 7th one tail will go up and the other down. There can be as many as three argmaxes and three argmins. They will alternate: between any two argmaxes, there will be one argmin.
Exercise 11 We would like to write a Taylor-series polynomial for
Because partial derivatives are numbers.
Because the notation
It was a mistake.
question id: birch-dig-radio-1
Here are the functions for the derivatives
Order | formula for derivative |
---|---|
0th | |
1st | |
2nd | |
3rd | |
4th | |
5th | |
6th | |
7th | |
8th |
You will need to add in the 6th, 7th, and 8th terms.
Plot T_at_0(x) ~ x
over the domain dnorm(x) ~ x
so that you can compare the two plots.
Define another function T_at_1()
which will be much like T_at_zero()
but with x0=1
and the coefficients changed to be the formulas evaluated at
Add a layer showing T_at_1()
to your previous plot.
Say over what domain T_at_0()
is a good approximation to dnorm()
and over what domain T_at_1()
is a good approximation to dnorm()
. Do the two domains overlap?
T()
as defined in Active R chunk 7:Plot T()
out on top of dnorm()
to show whether T()
is a good approximation to dnorm()
.
You could continue on to define T_at_2()
and incorporate that into the piecewise T()
, and so on, to construct an approximation to dnorm()
that is accurate over a larger domain.