1 Function Approximation
1 Function Approximation
1 Function Approximation
n 5 6 7 8 9
f(n)(a) cos(a) -sin(a) -cos(a) sin(a) cos(a)
f(n)(0) 1 0 -1 0 1
Its Taylor Series approximation at
n=9
Let’s graph the first two terms
Let’s add another term
Let’s add another term
Let’s graph the whole maclaurin
series at n=9
As we can see, as the degree of the taylor polynomial
increases, it converges to the true function
Practice on your own
scratch paper
n 0 1 2 3 4
f(n)(a) ln(a) 1/a -1/a^2 2/a^3 -6/a^4
f(n)(1) 0 1 -1/2 2 -6
Ans:
Taylor’s Theorem
Let f(x) be differentiable function over
some open interval [x, a] and
So.... R4(4)=-1.8483
Interpretation of the Remainder or
Error
P4(x)
p4(1.2)=0.18233
ln(1.2)=0.18232
Ans.
Ans. R.E.=5.48486x10-5
A.E.=1x10-5
Seatwork: 1 Short Bond Paper