Calculators, Power Series and Chebyshev Polynomials: Unterschied zwischen den Versionen
(→Manipulations with geometric series) |
(→Manipulations with geometric series) |
||
Zeile 67: | Zeile 67: | ||
Much of what we have done here (and will do later) requires justification, but we can leave that to the textbooks. | Much of what we have done here (and will do later) requires justification, but we can leave that to the textbooks. | ||
+ | |||
+ | |||
+ | ==The power series for the sine function== | ||
+ | |||
+ | We will show next how to find a power series representation for <math>\sin {x}</math>. | ||
+ | |||
+ | In general terms, we can write | ||
+ | |||
+ | <math> | ||
+ | \sin x=a_0+a_1x+a_2x^2+a_3x^3+\cdots. \qquad\qquad (3) | ||
+ | </math> | ||
+ | |||
+ | Put <math>x=0</math>, and immediately we have <math>a_0=0</math>. Differentiate both sides | ||
+ | of (3): | ||
+ | |||
+ | <math> | ||
+ | \cos x=a_1+2a_2x+3a_3x^2+4a_4x^3+\cdots. | ||
+ | <math/> | ||
+ | |||
+ | Again put <math>x=0</math>, giving <math>a_1=1</math>. Keep differentiating and putting | ||
+ | <math>x=0</math>: | ||
+ | |||
+ | <math> | ||
+ | -\sin x &= 2a_2+3\cdot2a_3x+4\cdot3a_4x^2+5\cdot4a_5x^3+\cdots, \\ | ||
+ | &\qquad\qquad\qquad\qquad\text{so }a_2=0, \\ | ||
+ | -\cos x &= | ||
+ | 3\cdot2a_3+4\cdot3\cdot2a_4x+5\cdot4\cdot3a_5x^2+6\cdot5\cdot4a_6x^3+\cdots, | ||
+ | \\ | ||
+ | &\qquad\qquad\qquad\qquad\text{so }a_3=\frac{-1}{3\cdot2}=\frac{-1}{3!}, \\ | ||
+ | \sin x &= | ||
+ | 4\cdot3\cdot2a_4+5\cdot4\cdot3\cdot2a_5x+6\cdot5\cdot4\cdot3a_6x^2+\cdots, | ||
+ | \\ | ||
+ | &\qquad\qquad\qquad\qquad\text{so }a_4=0, \\ | ||
+ | \cos x &= | ||
+ | 5\cdot4\cdot3\cdot2a_5+6\cdot5\cdot4\cdot3\cdot2a_6x+7\cdot6\cdot5\cdot4\cdot3a_7x^2+\cdots, | ||
+ | \\ &\qquad\qquad\qquad\qquad\text{so }a_5=\frac1{5\cdot4\cdot3\cdot2}=\frac1{5!}. | ||
+ | </math> | ||
+ | |||
+ | In this way, we can find a formula for all the coefficients <math>a_0</math>, <math>a_1</math>, <math>a_2</math>, <math>\ldots</math>, namely, | ||
+ | |||
+ | <math> | ||
+ | a_{2n}&=0, \\ | ||
+ | a_{2n+1}&=\frac{(-1)^n}{(2n+1)!}, | ||
+ | </math> | ||
+ | |||
+ | for <math>n=0</math>, 1, 2, <math>\ldots</math>. (The coefficients of even index and those of odd index are specified separately.) | ||
+ | |||
+ | Thus | ||
+ | |||
+ | <math> | ||
+ | \sin x=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!}+\cdots. | ||
+ | </math> | ||
+ | |||
+ | This is the power series representation that we were after. From the way we developed it, it is reasonable that the series will represent | ||
+ | <math>\sin x</math> for values of <math>x</math> at and near 0 (say for <math>|x|<1</math>, as for all the earlier examples), so it is surprising to know that it can | ||
+ | be shown that the series represents <math>\sin x</math> for ''all'' values of <math>x</math>. Then partial sums of the series, obtained by stopping after | ||
+ | some finite number of terms, should give polynomial functions that can be used to find approximate values of the sine function, such as | ||
+ | you find in tables of trigonometric functions or as output on a calculator. |
Version vom 23. April 2010, 05:17 Uhr
Of all the familiar functions, such as trigonometric, exponential and logarithmic functions, surely the simplest to evaluate are polynomial functions. The purpose of this article is to introduce the concept of a power series, which can be thought of in the first place as a polynomial function of infinite degree. In particular, we will deduce a series for and will see how to improve on the the most straightforward way of approximating its values. This simplest way uses the polynomials obtained by truncating the power series. The improvement will involve Chebyshev polynomials, which are used in many ways for a similar purpose and in many other applications, as well. When a calculator gives values of trigonometric or exponential or logarithmic functions it is doing so by evaluating polynomial functions that are sufficiently good approximations. (For trigonometric functions, the CORDIC algorithm is in fact often the preferred method of evaluation---the subject of another article here, perhaps.)
In the spirit of Felix Klein, there will be some reliance on a graphical approach.
Manipulations with geometric series
The geometric series is the simplest power series. The sum of the series exists when . In fact,
The general form of a power series is
so the geometric series above is a power series in which all the coefficients , , , , are equal to 1. In this case, since the series converges to when , we say that the function , where
has the series expansion , or that is represented by this series. We are interested initially to show some other functions that can be represented by power series.
Many such functions may be obtained directly from the result in (1). For example, by replacing by , we immediately have a series representation for the function :
We can differentiate both sides of (1) to give a series representation of the function :
We can also integrate both sides of (1). Multiply through by (for convenience), then write for and integrate with respect to from 0 to , where :
so
So this gives a series representation of the function for . In the same way, from (2),
Much of what we have done here (and will do later) requires justification, but we can leave that to the textbooks.
The power series for the sine function
We will show next how to find a power series representation for .
In general terms, we can write
Put , and immediately we have . Differentiate both sides of (3):
, giving . Keep differentiating and putting :
Fehler beim Parsen(Syntaxfehler): -\sin x &= 2a_2+3\cdot2a_3x+4\cdot3a_4x^2+5\cdot4a_5x^3+\cdots, \\ &\qquad\qquad\qquad\qquad\text{so }a_2=0, \\ -\cos x &= 3\cdot2a_3+4\cdot3\cdot2a_4x+5\cdot4\cdot3a_5x^2+6\cdot5\cdot4a_6x^3+\cdots, \\ &\qquad\qquad\qquad\qquad\text{so }a_3=\frac{-1}{3\cdot2}=\frac{-1}{3!}, \\ \sin x &= 4\cdot3\cdot2a_4+5\cdot4\cdot3\cdot2a_5x+6\cdot5\cdot4\cdot3a_6x^2+\cdots, \\ &\qquad\qquad\qquad\qquad\text{so }a_4=0, \\ \cos x &= 5\cdot4\cdot3\cdot2a_5+6\cdot5\cdot4\cdot3\cdot2a_6x+7\cdot6\cdot5\cdot4\cdot3a_7x^2+\cdots, \\ &\qquad\qquad\qquad\qquad\text{so }a_5=\frac1{5\cdot4\cdot3\cdot2}=\frac1{5!}.
In this way, we can find a formula for all the coefficients , , , , namely,
Fehler beim Parsen(Syntaxfehler): a_{2n}&=0, \\ a_{2n+1}&=\frac{(-1)^n}{(2n+1)!},
for , 1, 2, . (The coefficients of even index and those of odd index are specified separately.)
Thus
This is the power series representation that we were after. From the way we developed it, it is reasonable that the series will represent for values of at and near 0 (say for , as for all the earlier examples), so it is surprising to know that it can be shown that the series represents for all values of . Then partial sums of the series, obtained by stopping after some finite number of terms, should give polynomial functions that can be used to find approximate values of the sine function, such as you find in tables of trigonometric functions or as output on a calculator.