← Return to lessonClass materials · 10.14
Finding Taylor or Maclaurin Series for a Function
Lecture transcript
0:00Earlier in this unit, we built Taylor polynomials. Each of them, P sub n of x, has terms only up to degree n. Last time, we met power series. So what if a Taylor polynomial never stops adding terms? It becomes a power series, and we know how to ask where it converges. Today we let the polynomial run forever.
0:25It's called the Taylor series of f, and we'll learn the ones you must know. Idea one: never stop. Keep the same coefficient as before: the n-th derivative of f at A, over n factorial. But now, never stop adding terms. The sum from n equals zero to infinity of the n-th derivative of f at A, over n factorial, times x minus A to the n, is called the Taylor series of f about A. Read the first term carefully.
1:01When n equals zero, the zeroth derivative is f itself, zero factorial is one, and x minus A to the zero is one. So the series starts with f of A. Stop the series at the term with x minus A to the n, and you get the Taylor polynomial, P sub n. So the Taylor polynomials are exactly the partial sums of the series. And when the center A is zero, it has its own name: a Maclaurin series. Take f equals one over one minus x.
1:35Write it as one minus x, to the negative one. The power rule brings down a negative one, and the chain rule multiplies by the derivative of the inside, which is negative one again. So f prime is one over one minus x, squared. Two minus signs made a plus. The same thing happens each time. f double prime is two over one minus x, cubed.
2:01And f triple prime is six over one minus x, to the fourth. Near zero, every derivative stays positive. At zero, the function and those derivatives are one, one, two, six. Those are the factorials: the n-th derivative of f at zero is n factorial. So every coefficient is n factorial over n factorial, which is one. The Maclaurin series is one, plus x, plus x squared, plus x cubed, and so on.
2:34Written with sigma, that's the sum from n equals zero to infinity of x to the n. It's the geometric series, with ratio x. The Taylor recipe gave us a series we already knew. Idea two: the series you must know. Start with e to the x. Every derivative of e to the x is e to the x again, so at zero, every derivative is one.
3:01So e to the x is one, plus x, plus x squared over two factorial, plus x cubed over three factorial, and so on. In sigma form, it's the sum from n equals zero to infinity of x to the n, over n factorial. For sine x, the function and its derivatives are sine x, cosine x, negative sine x, negative cosine x. At zero, those are zero, one, zero, negative one, and then they repeat. A zero removes its term, so only the odd powers survive, with alternating signs. To write that with sigma, we need the odd numbers and the signs.
3:44Two n plus one gives one, three, five, when n is zero, one, two. And negative one to the n gives plus, minus, plus. Sine of x is x, minus x cubed over three factorial, plus x to the fifth over five factorial, and so on. In sigma form, it's the sum from n equals zero to infinity of negative one to the n, times x to the two n plus one, over the quantity two n plus one, factorial. For cosine x, the value and the derivatives at zero are one, zero, negative one, zero, and then they repeat. So only the even powers survive.
4:29Cosine x equals one, minus x squared over two factorial, plus x to the fourth over four factorial, and so on. In sigma form, it's the sum from n equals zero to infinity of negative one to the n, times x to the two n, over two n factorial. Always check a general term. Put in n equals zero, one, and two, and you must get back the terms you started with. Idea three: where the series equals the function. So far, we skipped a question.
5:04Does f of x always equal its Taylor series? No. It can be equal only where the series converges. Outside that interval, the series has no sum at all. Take our example. One over one minus x equals the sum of x to the n, only when negative one is less than x, and x is less than one. Inside, the partial sums close in on the curve. Outside, it's different.
5:31At x equals negative two, the function is fine: f of negative two is one third. But the series is one, minus two, plus four, minus eight, and so on. It diverges. For e to the x, sine x, and cosine x, the ratio test gives a radius of infinity, and each series equals its function for every x. The proof uses the error bound, and we skip it. You may use that fact without proof.
6:01So whenever you write that a function equals its series, write the interval where that's true, right next to it. Example one is a free response question. A function f has derivatives of all orders at x equals two. The n-th derivative of f at two is the quantity n plus one, factorial, over three to the n, for n at least zero. Write the first four terms and the general term of the Taylor series for f about x equals two. The plan: each coefficient is the n-th derivative of f at two, over n factorial.
6:41Simplify it, write the terms, and then the general term. The n-th derivative of f at two, over n factorial is the quantity n plus one, factorial, over the product of three to the n and n factorial. The quantity n plus one, factorial is n plus one, times n factorial. The n factorials divide out, leaving n plus one, so the coefficient is n plus one, over three to the n. Put in n equals zero, one, two, and three. The coefficients are one, two thirds, three ninths, and four over twenty-seven.
7:18This line earns the point. The series starts: one, plus two thirds times x minus two, plus three ninths times x minus two, squared, plus four over twenty-seven times x minus two, cubed. And the general term is n plus one, times the quantity x minus two, raised to the n-th power, over three to the n. Put a value of n back in to check it. Stay with the general term for a moment. The problem hands you a formula for the derivatives, and that leads to a very common wrong answer.
7:54This is where people lose points. The quantity n plus one, factorial, over three to the n, goes straight in front of the quantity x minus two, raised to the n-th power. That's the derivative, not the coefficient: the division by n factorial is missing. Divide by n factorial first. The quantity n plus one, factorial, over the product of three to the n and n factorial, times the quantity x minus two, raised to the n-th power, simplifies to n plus one, times the quantity x minus two, raised to the n-th power, over three to the n. Example two is multiple choice.
8:37What is the sum of the series, from n equals zero to infinity, of negative one to the n, times three to the two n plus one, over the quantity two n plus one, factorial? The plan: don't add up terms. Match the pattern with a series we know. Read the pattern. The powers are all odd. The factorials are of those same odd numbers. And the signs alternate.
9:05Among the series we know, that's the sine series. Write that series down. Sine x is the sum from n equals zero to infinity of negative one to the n, times x to the two n plus one, over the quantity two n plus one, factorial. Now plug in three for x. Every odd power of x becomes the same odd power of three. The signs and factorials already match, so this is the sine series evaluated at three.
9:35Its sum is sine of three. So the answer is A. Choice B, cosine, would need even powers, and two n factorial. So, what happens when a Taylor polynomial never stops? The Taylor series keeps the same coefficients and never stops. Its partial sums are the Taylor polynomials.
9:58Know these by heart: e to the x, sine x, cosine x, and one over one minus x, each with its general term. And a series can equal its function only on its interval of convergence, so write the interval with it. Did you ever leave the n factorial out of a general term? Tell me in the comments. Next up: we build new series from the ones we know.