Let's do an example. Take
f(
x) = tan(
x),
and let's find the Taylor polynomial of degree 2 at
x=0. We
know this is
P2(x) =
a0 + a1 x + a2 x2,
where
a0 = f(0),
a1 = f'(0), and
a2 = f''(0) / 2!
Calculating these,
f(0) = tan(0) = 0,
f'(0) = 1 / cos
2(0) = 1, and
f''(0) = -2
sin(0) / cos
3(0) =
0. Therefore
P2(x) = x.
What does this mean? We said that the nth degree Taylor
polynomial matches the function and its first n derivatives at
the indicated point. Thus we know that
P2(0) = f(0),
P2'(0) = f'(0), and
P2''(0) = f''(0).
This is what setting the different values for
a0,1,2 above does. It also means that we
can read the values for the different derivatives from the
coefficients of the Taylor polynomial -- that is, if I tell you
that
P2(x) = x,
then you know that
f(0) = 0 (because
a0 = 0),
f'(0) = 1
(because
a1 = 1) and
f''(0) = 0 (because
a2 = 0).