Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Lec 35: Taylor series

MATH 147 Section 2, Fall Term 2022

I Taylor series
I Big-O notation

Key references: Text book section 6.4 and section 7.12 from Thomson et al.
Taylor and Maclaurin Series
Definition 1
Let f be infinitely differentiable at x0 . The Taylor series for f centered at x0 is the function series

X f (n) (x0 )
(x − x0 )n .
n=0
n!

Remarks:
1. A function f can have different Taylor series, centered at different points.
2. For each x, the Taylor series becomes a series of real numbers. It may or may not converge.
3. If the Taylor series converges, we expect it to converge to f (x) but this is not always the case.

Definition 2
Let f be infinitely differentiable at x = 0. The Maclaurin series for f is the Taylor series for f centered at 0:

X f (n) (0) n
x .
n=0
n!
Examples

Find:
1
1. The Maclaurin series for f (x) = 1−x
.

2. The Maclaurin series for f (x) = e x .


3. The Taylor series for f (x) = ln(x) centered at x0 = 1.
( 2
e −1/x , x =6 0,
4. The Maclaurin series for f (x) =
0, x = 0.

For which x do these series converge? Do they converge to f (x)?

Exercise
1 3 1 5 (−1)n
Show that sin(x) = x − 3!
x + 5! x − .... + (2n+1)! x 2n+1 + ...
n
1 2 1 4 (−1)
and cos(x) = 1 − 2
x + 4! x − ... + (2n)! x 2n + ...
Big-O notation
Definition
Let f , g , and h be functions defined on an open interval containing the point a.
We say that a function f is Big-O of g as x → a, or write f (x) = O(g (x)) as x → a, if there exist δ, M > 0
such that |f (x)| ≤ M|g (x)| whenever 0 < |x − a| < δ.
We write f (x) = g (x) + O(h(x)) as x → a if f (x) − g (x) = O(h(x)) as x → a.

If we do not specify a, then we usually mean “as x → 0.”

Question
How would we define f being Big-O of g as x → +∞?

Example
If La is the linear approximation to f based at a, Theorem 1 from Lecture 22 gives

f (a + h) = La (a + h) + O(h) as h → 0.

In fact, we can also write f (a + h) = f (a) + O(h) as h → 0.

This notation allows us to express the behaviour of functions in a concise way if we do not care about the exact
function definition. We often use it to describe remainders or errors in approximation.
Taylor’s Approximation Theorem in Big-O notation

Theorem (Taylor’s Big-O Theorem)


Let [a, b] be a closed bounded interval containing a point c ∈ (a, b). If f is a function such that f (n+1) is
continuous on [a, b] for some integer n ≥ 0, and Tn,c is the Taylor polynomial of order n for f centered at c,
then
f (x) = Tn,c (x) + O(x n+1 ) as x → c.
Results using Big-O

Proposition
For any integer m ≥ 0 and n ≥ m, we have x n = O(x m ) as x → 0.

Proposition
If f is Big-O of x n as x → a for some integer n ≥ 1, then lim f (x) = 0.
x→a

Proposition (Arithmetic of Big-O)


Let n and m be non-negative integers and let a be a real number. If f and g are two functions satisfying
f (x) = O(x n ) and g (x) = O(x m ) as x → a, then the following hold.
1. For any c ∈ R, we have (cf )(x) = O(x n ) as x → a.
2. f (x) + g (x) = O(x k ) as x → a, where k = min{n, m}.
3. f (x)g (x) = O(x n+m ) as x → a.
f (x)
4. For any integer k ≤ n, we have xk
= O(x n−k ) as x → a.

f (x)
Question: What about g (x)
= O(x n−m )?
Finding limits with Big-O

[cos(x 2 )−1]e 2x
Use Big-O arithmetic to find the limit lim
x→0 x[sin(3x)−3x]

You might also like