Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Taylor series
6.1
Introduction
g (a) = c1 .1
If you also know about the curvature, f (a), at x = a, reasonable to build that in by adding a quadratic correction
Differentiating again
to the formula above.
N
X
Can we generalise this idea ?
g (x) =
cn .n(n 1).(x a)n2 ,
n=2
6.2
6.2.1
A note on polynomials
Defn: The highest power of polynomial is called the degree of the polynomial.
g(x) =
6.2.2
Taylor polynomials
N
X
(x a)n (n)
f (a)
n!
n=0
X
(x a)n (n)
derivative match those of the function f (x) at the point
f (a)
(6.1)
n!
x = a.
n=0
18
Note: The N th partial sum of (6.1) is the Taylor polyno- So it is the same function! But the GP only converges if
mial TN (x).
|1 x| < 1 or if 0 < x < 2. So even though the curve 1/x
is well behaved for x > 0, the Taylor series is only valid
for 0 < x < 2.
6.3.1
Maclaurin Series
X
xn (n)
f (0)
n!
n=0
X
x
x
xn
1+x+
+
+ ... =
2!
3!
n!
n=0
2
Defn: A function f (x) is smooth at x = a if f (n) (a) exists for all n = 0, 1, 2, . . ., so f is continuous and all its
derivatives are continuous at x = a.
A function is smooth if it is smooth everywhere.
Example 2: f (x) = x4/3 . This function continuous and
differentiable everywhere. But it is not smooth at x = 0
(higher order derivatives do not exist at x = 0). The
Taylor series about x = 1 again only converges for 0 <
x < 2 (harder to show).
With this in mind, we extend the definition of singularity
to include
any point where f is not smooth. With this
definition x 2 is singular at x = 2 even though the
functions itself is well behaved there. Similarly, x4/3 is
singular at x = 0,
X
x3
x5
(1)n x2n+1
x
+
+ ... =
The Taylor series about x = a will only converge if
3!
5!
(2n + 1)!
n=0
|x a| < |c a|.
Example 3: Take f (x) = cos x.
Then f (x) = sin x, etc. Hence the Maclaurin series for
cos x is:
1
X
x2
x4
(1)n x2n
+
+ ... =
2!
4!
(2n)!
n=0
Questions:
X
cn xn ,
n=0
6.3.2
6.4
n=0
cn (x a)n
X
X
L
>
1.
(x 1)n
(1)n n! =
(1 x)n
n!
n=0
n=0
This is a Geometric Progression (GP) and its sum is
1
1
=
1 (1 x)
x
Example 1:
A GP is a power series
n=0
c
University
of Bristol 2014-15. This material is copyright of the University unless explicitly stated otherwise. It is provided exclusively
for educational purposes at the University and is to be downloaded or copied for your private study only.
ratio test
an+1
an = |x|
so L = |x| and the series converges if |x| < 1, diverges if As a consequence of this, the radius of convergence R of
the Taylor series for f about a is the distance from a to
|x| > 1.
the nearest singularity of f .
Example 2:
If f (x) has no singularities it will converge everywhere.
Exponential function ex has a Maclaurin series (6.3.1) of
Sometimes we can determine R just by considering the
X
xn
distance to the nearest singularity.
. So an = xn /n! and, for any fixed x,
n!
n=0
Example 1:
an+1 n! xn+1
In the example of 6.3.2 where f (x) = 1/x, the Taylor
=
= |x| 0
an (n + 1)! xn n + 1
series about x = 1 was shown to converge for |x 1| < 1.
Here a = 1, the nearest singularity is at x = 0 and the
as n . So L = 0 and by ratio test, the series converges distance from a to the nearest singularity is 1, so here
for all x.
R = 1, so the series converges for |x 1| < 1, agreeing
with 6.3.2. In particular, this means the series will not
Example 3:
converge for x > 2.
(1)n x2n
Maclaurin series for cos x (6.3.1) has an =
. So
Example 2:
(2n)!
Similarly for x4/3 about x = 1.
2
an+1 (2n)! x2(n+1)
|x |
Example 3:
an = 2(n + 1)! x2n = (2n + 2)(2n + 1) 0
Take f (x) = (1 + x) where not an integer. Now f (n) =
as n . So L = 0 and by ratio test, the series converges ( 1) . . . ( n + 1)(1 + x)n . So Maclaurin series is
for all x. Similarly for sin x.
( 1) 2 ( 1)( 2) 3
1 + x +
x +
x + ...
2!
3!
Example 4:
X
n!xn has an = n!xn . So
Defn: This is the generalised binomial expansion of (1 +
n=0
x) . Very important and should be remembered !
Note: Singularity is at x = 1, series is about point
an+1 (n + 1)! xn+1
=
= |x|(n + 1)
a = 0, distance from 0 to 1 is 1 so radius of convergence
an
n! xn
is R = 1.
and this tends to for all x 6= 0. So this power series (it
is not connected to a function) diverges unless x = 0.
Example 4:
Take f (x) = ln(1 + x). Now
f (x) =
1
1
, f (x) =
,...
1+x
(1 + x)2
. . . f (n) (x) =
(1)n+1 (n 1)!
(1 + x)n
x2
x3
+
...
2
3
Note: Why radius ? Its because you really need to worry Example 5:
about complex values of x too !
Cautionary example:
6.5
1
is smooth for all real x. The
1 + x2
Maclaurin series is (easily identified as a GP with ratio
x2 )
1 x2 + x4 x6 + . . .
A Taylor series is a special type of power series determined from which it can be shown to have a radius of convergence
from properties of a function f (x) at x = a.
of R = 1.
c
University
of Bristol 2014-15. This material is copyright of the University unless explicitly stated otherwise. It is provided exclusively
for educational purposes at the University and is to be downloaded or copied for your private study only.
6.6.1
LH
opitals Rule for 0/0 limits
6.5.1
f (x)
= lim
xa g(x)
xa
lim
In general for the functions you will meet you can assume
that if the Taylor series converges it converges to f . How- Unless f (a), g (a) are both zero, in which case continue
ever, it is possible to construct exceptions.
and the limit is f (a)/g (a) and so on.
sin x
cos x
Example 1: lim
= lim
=1
x0 x
x0
1
6.5.2 Shortcuts to calculating Taylor se- Example 2:
Both 1 cosh(x) and sinh(x) 0 as x 0 so
ries
1 cosh x
sinh x
cosh x
1
lim
= lim
= lim
=
x0
x0
x2
2x
2
2
Sometimes can avoid having to work out f (n) by using x0
known series.
Example 1:
By rearranging f (x) into a generalised binomial form:
1/2
(2 x)
= 2
1/2
= 2
1/2
1/2
(1 + (x/2))
1 + (1/2)(x/2) +
6.6.2
(1/2)(3/2)
(x/2)2 + . . .
2!
lim
xa
f (x)
g(x)
= lim
xa
f (x)
g (x)
6.6
Application: limits
=
=
x x3 /3! + x5 /5! + . . .
x0
x
lim (1 x2 /3! + x4 /5! + . . .) = 1
lim
x0
6.7
Application:
Minima
Maxima
and
c
University
of Bristol 2014-15. This material is copyright of the University unless explicitly stated otherwise. It is provided exclusively
for educational purposes at the University and is to be downloaded or copied for your private study only.
(x c)2
(x c)3
f (c) +
f (c) + . . .
2!
3!
(x c)2
f (c)
2!
c
University
of Bristol 2014-15. This material is copyright of the University unless explicitly stated otherwise. It is provided exclusively
for educational purposes at the University and is to be downloaded or copied for your private study only.