The Taylor series is a representation of a function f as an infinite sum of terms. These terms are determined using derivatives of f evaluated at x0.
where f(k)(x0) is the kth derivative of f at x0 (which we assume exists) and f(k)(x0)k! are the coefficients of the polynomial.
Taylor Polynomial
The Taylor Polynomial of degree n of f:R↦R at x0 is defined as
Tn(x)=∑nk=0f(k)(x0)k!(x−x0)k
Taylor Series
For a smooth function f∈C∞,f:R↦R, the Taylor series of f at x0 is defined as
T∞(x)=∑∞k=0f(k)(x0)k!(x−x0)k
At x0=0, we obtain the Maclaurin series as a special instance of the Taylor series.If f(x)=T∞(x), then f is called analytic.
In general, a Taylor polynomial of degree n is an approximation of a function, which does not need to be a polynomial. The Taylor polynomial is similar to f in a neighborhood around x0. However, a Taylor polynomial of degree n is an exact representation of a polynomial f of degree k<=n since all derivatives f(i),i>k vanish.
Example Taylor Polynomial:
Lets consider a function f(x)=x4
We will Find the Taylor Polynomial T6, evaluated at x0=1
f(x)=x4=f(1)=1
f′(x)=4x3=f′(1)=4
f″(x)=12x2=f″(1)=12
f3(x)=24x1=f3(1)=24
f4(x)=24=f4(1)=24
f5(x)=0=f5(1)=0
f6(x)=0=f6(1)=0
Therefore the Taylor polynomial is
Tn(x)=∑nk=0f(k)(x0)k!(x−x0)k
=1+41!(x−1)+122!(x−1)2+243!(x−1)3+244!(x−1)4+05!(x−1)5+01!(x−1)6
=1+4(x−1)+6(x2+1−2x)+4(x3−3x2+3x−1)+(x4−4x3+6x2−4x+1)
=1+4x−4+6x2+6−12x+4x3−12x2+12x−4+x4−4x3+6x2−4x+1
=x4
ie; we obtain the exact representation of the original function.
Example Taylor Series:
Consider the function given by
f(x)=sin(x)+cos(x)∈C∞
Lets find a Taylor series expansion of f at x0=0, which is the Maclaurian series expansion of f.
f(x)=sin(x)+cos(x)=f(0)=1
f′(x)=cos(x)−sin(x)=f′(0)=1
f″(x)=−sin(x)−cos(x)=f″(0)=−1
f3(x)=−cos(x)+sin(x)=f3(0)=−1
f4(x)=sin(x)+cos(x)=f4(0)=1
⋮
The Taylor series expansion of f at x0=0 is given by
T∞(x)=∑∞k=0f(k)(x0)k!(x−x0)k
=1+x−x22!−x33!+x44!+x55!−…
=1−x22!+x44!−+x66!+x−x33!+x55!
=∑∞k=0(−1)k1(2k)!x2k+∑∞k=0(−1)k1(2k+1)!)x2k+1
=cos(x)+sin(x)
Here we used the power series expansion
cos(x)=∑∞k=0(−1)k1(2k)!x2k
sin(x)=∑∞k=0(−1)k1(2k+1)!)x2k+1
Remark: A Taylor series is a special case of a power series
f(x)=∑∞k=0ak(x−c)k
Where ak are coefficients and c is a constant, which has the special form.
Example:
Compute the Taylor polynomial Tn,n=0,…,5 of f(x)=sin(x)+cos(x) at x0=0
f0(0)=sin(0)+cos(0)=1
f1(0)=cos(0)−sin(0)=1
f2(0)=−sin(0)−cos(0)=−1
f3(0)=−cos(0)+sin(0)=−1
f4(0)=sin(0)+cos(0)=1
f5(0)=cos(0)−sin(0)=1
Taylor polynomial at x0=0 is
Tn(x)=∑nk=0fk(0)k!xk
T0(x)=f0(0)0!x0=11.1=1
T1(x)=T0(x)+f1(0)1!x1=1+1.x=1+x
T2(x)=T1(x)+f2(0)2!x2=1+x−12!x2
T3(x)=T2(x)+f3(0)3!x3=1+x−12!x2−13!x3
T4(x)=T3(x)+f4(0)4!x4=1+x−12!x2−13!x3+14!x4
T5(x)=T4(x)+f5(0)5!x5=1+x−12!x2−13!x3+14!x4+15!x5
Find the nth Maclaurin polynomial for f(x)=ex,n=5 (University question)
The Maclaurin polynomial
f(x)=∑nk=0fk(0)xk/k!
f0(0)=ex=e0=1
f1(0)=ex=e0=1
f2(0)=ex=e0=1
f3(0)=ex=e0=1
f4(0)=ex=e0=1
f5(0)=ex=e0=1
f(x)=1.x0/0!+1.x1/1!+1.x2/2!+1.x3/3!+1.x4/4!+1.x5/5!
f(x)=1+x+x2/2!+x3/3!+x4/4!+x5/5!
Comments
Post a Comment