Reason 1
Work out values by hand
translates to near . So
The true value is : the same to six decimal places, with only , , and . Computers work out , and with polynomials like this.
Calculus · Taylor and Maclaurin series
A translator from any function into the easy language of polynomials. Learn what it is, how to build it, the famous five and the shortcuts, then solve 69 questions, 46 of them from past finals.
Some functions speak a hard language: ex, sinx, ln(1+x), x. You cannot work out sin(0.1) or e0.2 with a pencil. Polynomials speak an easy language: they only need +, − and ×. A Taylor polynomial is a translator. It rewrites a function in polynomial language. Near one point you choose, the centre a, the translation is almost perfect.
The big idea
Near the centre, f(x) and its Taylor polynomial Tn(x) are almost the same. So you can do the hard work on the easy polynomial instead.
Taylor or Maclaurin?
Same thing. Maclaurin is the name when the centre is a=0. Taylor is the name for any centre.
Pick a function. Move the degree up: the polynomial copies more of the function. Move the centre: the translation follows it.
T3(x) = x−16x3
T₃ copies the first 3 derivatives at the centre. The more it copies, the longer it stays close. The green stretch is where it is within 0.05 of the function.
What to notice:
Reason 1
sinx translates to x−6x3 near 0. So
sin(0.1) is very close to 101−60001=6000599=0.0998333…
The true value is 0.0998334…: the same to six decimal places, with only +, −, × and ÷. Computers work out sinx, ex and lnx with polynomials like this.
Reason 2
Put the polynomial in place of sinx:
x→0limxsinx=x→0limxx−6x3+⋯=x→0lim(1−6x2+⋯)=1.
No L'Hôpital's rule needed. See Limits.
Reason 3
ex2=1+x2+2x4+6x6+⋯ (put x2 in for x in ex). The x6 coefficient is 6!f(6)(0), so
f(6)(0)=6!⋅61=120.
Six derivatives of ex2 by hand would take a page.
Reason 4
For a small angle, sinθ is almost θ: that is T1. This is why a pendulum's swing has a simple formula. Physics and engineering replace hard functions by T1 or T2 all the time.
Every kind of Taylor question on past finals is on this page, with solutions. Here is the whole list. Each link opens the first question of that kind.
A Taylor polynomial copies f at the centre a. First the height, then the slope, then the bend, and so on. Each new degree copies one more derivative. Here is f(x)=sinx at the centre a=1.
T0(x)=f(a)
A flat line at the height of f at the centre. It knows only one number, so it is close to f only very near a.
Copies at a: f(a)
T1(x)=f(a)+f′(a)(x−a)
The tangent line: the linear approximation you already know. Same height and same slope at a.
Copies at a: f(a), f′(a)
T2(x)=T1(x)+2!f′′(a)(x−a)2
Adds a (x−a)2 term, so it is a parabola. It bends the same way as f at a (the same f′′(a), the same concavity).
Copies at a: f(a), f′(a), f′′(a)
T3(x)=T2(x)+3!f′′′(a)(x−a)3
Adds a (x−a)3 term. It copies one more derivative, so it stays close to f for longer.
Copies at a: f(a), f′(a), f′′(a), f′′′(a)
The thick orange curve is sinx; the thin pink one is the Taylor polynomial; the blue dot is the centre.
Each term: a derivative at the centre, divided by a factorial, times a power of (x−a).
In short, with a sum:
Tn(x)=k=0∑nck(x−a)k=c0+c1(x−a)+c2(x−a)2+⋯+cn(x−a)n,
with ck=k!f(k)(a), the coefficient of (x−a)k. With a=0 (Maclaurin) the powers are just x,x2,x3,…
What is Σ? It is the Greek letter sigma, and it means "add them all up". Put k=0 (the number under Σ), then k=1, k=2, …, up to k=n (the number on top) into ck(x−a)k, and add the results. Point at any Σ on this page to see this again. More in the sigma sign.
What Tₙ gives you: f and its derivatives at a
If you have T4 at x=a, you have five exact numbers: f(a), f′(a), f′′(a), f′′′(a) and f(4)(a). (4 is only an example: Tn gives f(a) and the first n derivatives at a.)
Only at a. T4 and f agree exactly at the centre. At any other point, T4(x) is only close to f(x), and T4 tells you nothing exact about f′(x) or f′′(x) there. It also tells you nothing about f(5)(a).
Look for a polynomial p(x)=c0+c1(x−a)+c2(x−a)2 that copies f at a.
In general, differentiating (x−a)k k times leaves the number k⋅(k−1)⋯2⋅1=k! (see factorials). We must cancel that k!, so
ck=k!f(k)(a).
a is the centre: the point where Tn copies f exactly. The translation is perfect at a and good near a. Questions name the centre in many ways:
Often the question only wants a number, like 26, and says "use a Taylor polynomial". Then you choose a. Two rules:
Then put the number in for x: for 26 use Tn(26) with a=25.
Do not choose the number itself
At a=26 you would need 26 to start: the number you are trying to find. And for e0.1, choose a=0, not a=0.1, for the same reason.
| To estimate | use | choose | because |
|---|---|---|---|
| 26 | x | a=25 | 25=5 |
| 37 | 3x | a=8 | 38=2 |
| 171/4 | x1/4 | a=16 | 161/4=2 |
| 100.2 | x | a=100 | 100=10 |
| ln(0.9) | lnx | a=1 | ln1=0 |
| e0.1 | ex | a=0 | e0=1 |
| sin(0.1) | sinx | a=0 | sin0=0, cos0=1 |
| arctan(1.1) | arctanx | a=1 | arctan1=4π |
The exampleFind the Taylor polynomial of degree 3 of f(x)=lnx about a=1.
Examplef(x)=lnx, a=1, n=3.
Examplef′=x1=x−1, f′′=−x−2, f′′′=2x−3.
Examplef(1)=0, f′(1)=1, f′′(1)=−1, f′′′(1)=2.
Examplec0=0, c1=1, c2=−21, c3=62=31.
ExampleT3(x)=(x−1)−21(x−1)2+31(x−1)3.
ExampleT3(1)=0=ln1. ✓
On your exam paper: one table
| derivative | at x=1 | divide by | coefficient |
|---|---|---|---|
| f(x)=lnx | f(1)=0 | 0!=1 | 0 |
| f′(x)=x−1 | f′(1)=1 | 1!=1 | 1 |
| f′′(x)=−x−2 | f′′(1)=−1 | 2!=2 | −21 |
| f′′′(x)=2x−3 | f′′′(1)=2 | 3!=6 | 31 |
The table keeps everything in order: one row for f and one for each derivative, its value at the centre, the factorial to divide by, and the coefficient. Then read the last column from the top: T3(x)=0+1(x−1)−21(x−1)2+31(x−1)3.
What the little number means
T5 means: the power of (x−a) is never more than 5. For a Maclaurin polynomial that is the power of x.
Degree n means up to (x − a)ⁿ, and some terms can be 0
For cosx at 0 the x3 coefficient is 0. So T3(x)=1−2x2, the same as T2. A "third degree" polynomial can end with x2.
'First three nonzero terms' is not T₃
For sinx the first three nonzero terms are x−6x3+120x5. That is T5 (or T6). Skip the zero terms and keep counting.
Keep the powers of (x − a)
Write 3+61(x−9)−2161(x−9)2. Multiplying it out is longer, easy to get wrong, and not what the question wants.
Centre not 0? Do not read coefficients off powers of x
If a polynomial about a=1 is written in powers of x, like 2+3x−x2+x3, the number in front of x2 is not c2. Use the derivatives at the centre instead: T3′′(1)=−2+6=4.
Order, degree, quadratic: the same word
"Second order", "second degree", "degree 2" and "quadratic approximation" all mean T2. "Linear approximation" means T1.
A shorter Tₙ is inside a longer one
With the same centre, T2 is the first terms of T4: just stop earlier. This only works when both are written in powers of the same (x−a).
Five translations come up again and again. Learn them by heart. Also learn where each one comes from: then, if you forget one in the exam, you can build it again in a minute with the table of derivatives. All five are Maclaurin polynomials: centre a=0.
ex=1+x+2!x2+3!x3+4!x4+⋯
sinx=x−3!x3+5!x5−7!x7+⋯
cosx=1−2!x2+4!x4−6!x6+⋯
ln(1+x)=x−2x2+3x3−4x4+⋯
1−x1=1+x+x2+x3+x4+⋯
Works for every x
ex=1+x+2!x2+3!x3+4!x4+⋯
| derivative | at x=0 | coefficient |
|---|---|---|
| f(x)=ex | f(0)=1 | c0=0!1=1 |
| f′(x)=ex | f′(0)=1 | c1=1!1=1 |
| f′′(x)=ex | f′′(0)=1 | c2=2!1=21 |
| f′′′(x)=ex | f′′′(0)=1 | c3=3!1=61 |
| f(4)(x)=ex | f(4)(0)=1 | c4=4!1=241 |
Remember. Every derivative of ex is ex, and e0=1. So every coefficient is k!1: every power, every factorial, all plus.
With a sum: ex=k=0∑∞k!xk=1+x+2!x2+3!x3+4!x4+⋯
Works for every x
sinx=x−3!x3+5!x5−7!x7+⋯
| derivative | at x=0 | coefficient |
|---|---|---|
| f(x)=sinx | f(0)=0 | c0=0 |
| f′(x)=cosx | f′(0)=1 | c1=1 |
| f′′(x)=−sinx | f′′(0)=0 | c2=0 |
| f′′′(x)=−cosx | f′′′(0)=−1 | c3=−61 |
| f(4)(x)=sinx | f(4)(0)=0 | c4=0 |
Remember. The derivatives repeat every four steps, and at 0 they give 0,1,0,−1,… So only odd powers, with signs taking turns. Sine is an odd function: sin(−x)=−sinx, like x,x3,x5.
With a sum: sinx=k=0∑∞(2k+1)!(−1)kx2k+1=x−3!x3+5!x5−7!x7+⋯
Works for every x
cosx=1−2!x2+4!x4−6!x6+⋯
| derivative | at x=0 | coefficient |
|---|---|---|
| f(x)=cosx | f(0)=1 | c0=1 |
| f′(x)=−sinx | f′(0)=0 | c1=0 |
| f′′(x)=−cosx | f′′(0)=−1 | c2=−21 |
| f′′′(x)=sinx | f′′′(0)=0 | c3=0 |
| f(4)(x)=cosx | f(4)(0)=1 | c4=241 |
Remember. At 0 the derivatives give 1,0,−1,0,… So only even powers, signs taking turns. Cosine is even, like 1,x2,x4. Check: differentiate the sine polynomial term by term and you get this one, because (sinx)′=cosx.
With a sum: cosx=k=0∑∞(2k)!(−1)kx2k=1−2!x2+4!x4−6!x6+⋯
Works only for −1 < x ≤ 1
ln(1+x)=x−2x2+3x3−4x4+⋯
| derivative | at x=0 | coefficient |
|---|---|---|
| f(x)=ln(1+x) | f(0)=0 | c0=0 |
| f′(x)=(1+x)−1 | f′(0)=1 | c1=1 |
| f′′(x)=−(1+x)−2 | f′′(0)=−1 | c2=−21 |
| f′′′(x)=2(1+x)−3 | f′′′(0)=2 | c3=62=31 |
| f(4)(x)=−6(1+x)−4 | f(4)(0)=−6 | c4=−246=−41 |
Remember. No factorials on the bottom: the k! cancels down to k. No constant term, because ln1=0. Signs take turns, starting with +x.
With a sum: ln(1+x)=k=1∑∞k(−1)k+1xk=x−2x2+3x3−4x4+⋯
Works only for −1 < x < 1
1−x1=1+x+x2+x3+x4+⋯
| derivative | at x=0 | coefficient |
|---|---|---|
| f(x)=(1−x)−1 | f(0)=1 | c0=1 |
| f′(x)=(1−x)−2 | f′(0)=1 | c1=1 |
| f′′(x)=2(1−x)−3 | f′′(0)=2 | c2=22=1 |
| f′′′(x)=6(1−x)−4 | f′′′(0)=6 | c3=66=1 |
| f(4)(x)=24(1−x)−5 | f(4)(0)=24 | c4=2424=1 |
Remember. Every coefficient is 1. (The chain rule gives a −1 from the inside 1−x each time, and it cancels the minus from the power.) It is the geometric sum you may know: 1+x+x2+⋯=1−x1.
With a sum: 1−x1=k=0∑∞xk=1+x+x2+x3+x4+⋯
Only near 0 for the last two
ln(1+x) and 1−x1 translate well only for x between −1 and 1. Look at their pictures: past x=1 the polynomials run away, however many terms you add. ex, sinx and cosx work for every x if you keep enough terms.
Most exam functions are a famous one in a small disguise: e−3x, xsin(2x), cos(π−5x). Do not differentiate them. Use one of these moves. It is faster and it makes fewer mistakes.
Move 1
Write the famous one, then put the new thing in place of x, in brackets.
e−3x=1+(−3x)+2!(−3x)2+3!(−3x)3+⋯=1−3x+29x2−29x3+⋯
sin(x2)=x2−6x6+⋯1+x21=1−(−x2)1=1−x2+x4−x6+⋯
Why this is allowed: the translation of eu works for any u near 0. If x is near 0, so is −3x.
Move 2
Every power goes up by the same amount.
xsinx=x(x−6x3+120x5−⋯)=x2−6x4+120x6−⋯
Move 3
Turn the function into a famous one, then translate.
e2x+1=e⋅e2x,cos(π−5x)=−cos(5x),sin2x=21−cos(2x).
See trig values and logarithm rules.
Move 4
Line up the same powers.
ex+e−x=(1+x+2x2+6x3+24x4)+(1−x+2x2−6x3+24x4)+⋯=2+x2+12x4+⋯
The odd powers cancel.
Brackets!
(−3x)2=9x2, not −3x2. And (x2)3=x6. Put brackets around what you put in, then simplify each term.
Move 5: multiply two of them
excosx, (x+1)sinx, 1−xex: multiply the two polynomials and keep only the low powers. See Shortcuts.
From the derivatives, and from the famous five. Questions from past UBC finals come first, oldest first, then new ones. Try each on paper, then open the solution one step at a time. Press Colour-code to see the function, the centre, the degree and what to find.
2 kinds · 15 questions · 12 from past finals (2005 to 2016)
The past final questions are from UBC final exams. The solutions are written by Learn4Less. Learn4Less is not affiliated with UBC.
7 questions, 5 from past finals
What it looks like
The question names a function, a centre ("at x=9", "about a=1", "centred at 1") and a degree. The function is not one of the famous five, or the centre is not 0.
What to do
Make the table: each derivative, its value at the centre, then divide by k!. Write Tn(x)=k=0∑nck(x−a)k=c0+c1(x−a)+⋯+cn(x−a)n and leave it in powers of (x−a).
Past final · Dec 2008 · MATH 100C · Question 1(l) · 3 marks
Determine the second degree Taylor polynomial of f(x)=x at x=9.
The function is f(x)=x. The centre is a=9. The degree is 2. So we need
T2(x)=f(9)+f′(9)(x−9)+2!f′′(9)(x−9)2.
We need three numbers: f(9), f′(9) and f′′(9).
Write the root as a power first: x=x1/2. Then use the power rule twice: bring the power down, then lower it by 1.
f′(x)=21x−1/2,f′′(x)=21⋅(−21)x−3/2=−41x−3/2.
91/2=3, 9−1/2=31, 9−3/2=331=271.
| derivative | at x=9 | divide by | coefficient |
|---|---|---|---|
| f(x)=x1/2 | f(9)=3 | 0!=1 | 3 |
| f′(x)=21x−1/2 | f′(9)=21⋅31=61 | 1!=1 | 61 |
| f′′(x)=−41x−3/2 | f′′(9)=−41⋅271=−1081 | 2!=2 | −2161 |
The last row: −1081÷2=−2161 (see fractions). Do not forget this division by 2!: it is the most common mistake.
Each coefficient goes in front of its power of (x−9):
T2(x)=3+61(x−9)−2161(x−9)2.
Leave it in powers of (x−9). Do not multiply it out: that is longer and the exam does not want it.
Near x=9 the parabola T2 follows x even more closely than the tangent line T1.
Past final · Dec 2012 · MATH 100C · Question 1(g) · 3 marks
Find the second order Taylor polynomial for y=arctanx at x=1.
The function is f(x)=arctanx (the paper calls it y). The centre is a=1. "Second order" means the same as second degree: 2. So we need
T2(x)=f(1)+f′(1)(x−1)+2!f′′(1)(x−1)2.
We need three numbers: f(1), f′(1) and f′′(1).
The first derivative is one to know by heart (see trig values):
f′(x)=1+x21=(1+x2)−1.
For the second derivative use the chain rule. The outside is the power −1: bring it down and lower it to −2. Then multiply by the derivative of the inside, 1+x2: the 1 gives 0, the x2 gives 2x.
f′′(x)=−1⋅(1+x2)−2⋅2x=−(1+x2)22x.
arctan1=4π: the angle whose tangent is 1 is 45∘, which is 4π.
| derivative | at x=1 | divide by | coefficient |
|---|---|---|---|
| f(x)=arctanx | f(1)=4π | 0!=1 | 4π |
| f′(x)=1+x21 | f′(1)=1+11=21 | 1!=1 | 21 |
| f′′(x)=−(1+x2)22x | f′′(1)=−(1+1)22=−42=−21 | 2!=2 | −41 |
The last row: −21÷2=−41.
T2(x)=4π+21(x−1)−41(x−1)2.
Keep 4π as it is: it is exact. Careful: the 2x from the chain rule is easy to forget, and without it f′′(1) comes out wrong.
Past final · Dec 2013 · MATH 100A · Question 4(c) · 3 marks
Let f(x)=4x3. What is the 2nd degree Taylor polynomial T2(x) centred at a=1 for f(x)?
f(x)=4x3 is already a polynomial, but it is written in powers of x. The question wants powers of (x−1), because the centre is a=1. The degree is 2, so we need f(1), f′(1) and f′′(1).
Use the power rule: bring the power down, then lower it by 1.
f′(x)=4⋅3x2=12x2,f′′(x)=12⋅2x=24x.
Every power of 1 is 1, so the numbers are easy.
| derivative | at x=1 | divide by | coefficient |
|---|---|---|---|
| f(x)=4x3 | f(1)=4 | 0!=1 | 4 |
| f′(x)=12x2 | f′(1)=12 | 1!=1 | 12 |
| f′′(x)=24x | f′′(1)=24 | 2!=2 | 12 |
The last row: 24÷2=12.
T2(x)=4+12(x−1)+12(x−1)2.
One more row: f′′′(x)=24, so f′′′(1)=24, and 24÷3!=24÷6=4. So
T3(x)=4+12(x−1)+12(x−1)2+4(x−1)3.
Multiply it out, with (x−1)2=x2−2x+1 and (x−1)3=x3−3x2+3x−1:
4+(12x−12)+(12x2−24x+12)+(4x3−12x2+12x−4)=4x3.
T3 gives back 4x3 exactly. A polynomial of degree 3 is its own T3: the Taylor polynomial only writes it again around the new centre. T2 drops the last term, so it is close to 4x3 only near x=1.
T3 lies exactly on 4x3 everywhere. T2 touches it at x=1 and moves away from it farther out.
Past final · Dec 2014 · MATH 100C · Question 1(n) · 3 marks
Let f(x)=x2/3. Find the second-order Taylor polynomial for f(x) with its centre at 1.
The function is f(x)=x2/3. The centre is a=1. The degree is 2 ("second-order" means second degree). We need f(1), f′(1) and f′′(1).
Use the power rule twice. First derivative: bring 32 down, and the new power is 32−1=32−33=−31.
f′(x)=32x−1/3.
Second derivative: bring −31 down, so 32⋅(−31)=−92. The new power is −31−1=−31−33=−34.
f′′(x)=−92x−4/3.
Every power of 1 is 1, so only the numbers in front stay.
| derivative | at x=1 | divide by | coefficient |
|---|---|---|---|
| f(x)=x2/3 | f(1)=1 | 0!=1 | 1 |
| f′(x)=32x−1/3 | f′(1)=32 | 1!=1 | 32 |
| f′′(x)=−92x−4/3 | f′′(1)=−92 | 2!=2 | −91 |
The last row: −92÷2=−182=−91 (see fractions).
T2(x)=1+32(x−1)−91(x−1)2.
The centre 1 is a good choice for any power of x: every power of 1 is 1.
Past final · Dec 2016 · MATH 100C · Question 3(b) · 3 marks
Compute the Taylor polynomial of degree 3 of f(x)=xlnx at a=1.
The function is f(x)=xlnx (ln is the natural log). The centre is a=1. The degree is 3, so we need four numbers: f(1), f′(1), f′′(1) and f′′′(1).
f is x times lnx, so use the product rule: differentiate one, keep the other, then swap, and add. The x gives 1; the lnx gives x1.
f′(x)=1⋅lnx+x⋅x1=lnx+1.
In lnx+1, the lnx gives x1 and the constant 1 gives 0:
f′′(x)=x1=x−1.
Then the power rule: bring −1 down, lower the power to −2:
f′′′(x)=−x−2=−x21.
ln1=0 (see log rules), so f(1)=1⋅0=0.
| derivative | at x=1 | divide by | coefficient |
|---|---|---|---|
| f(x)=xlnx | f(1)=0 | 0!=1 | 0 |
| f′(x)=lnx+1 | f′(1)=0+1=1 | 1!=1 | 1 |
| f′′(x)=x1 | f′′(1)=1 | 2!=2 | 21 |
| f′′′(x)=−x21 | f′′′(1)=−1 | 3!=6 | −61 |
The last row divides by 3!=6.
The constant term is 0, so the polynomial starts with (x−1):
T3(x)=1(x−1)+21(x−1)2−61(x−1)3.
Careful: divide f′′′(1) by 3!=6, not by 3.
New problem
Find the third degree Taylor polynomial of f(x)=x1 about a=2.
The function is f(x)=x1. The centre is a=2. The degree is 3, so we need four numbers: f(2), f′(2), f′′(2) and f′′′(2).
Write it as a power first: x1=x−1. Then use the power rule three times. Each time the power is negative, so a minus sign comes down.
f′(x)=−1⋅x−2=−x−2,f′′(x)=(−1)(−2)x−3=2x−3,f′′′(x)=2⋅(−3)x−4=−6x−4.
See the pattern: the sign changes every time, and the numbers 1,2,6 are 1!,2!,3!. So
f(k)(x)=xk+1(−1)kk!.
The powers of 2: 22=4, 23=8, 24=16.
| derivative | at x=2 | divide by | coefficient |
|---|---|---|---|
| f(x)=x−1 | f(2)=21 | 0!=1 | 21 |
| f′(x)=−x−2 | f′(2)=−41 | 1!=1 | −41 |
| f′′(x)=2x−3 | f′′(2)=82=41 | 2!=2 | 81 |
| f′′′(x)=−6x−4 | f′′′(2)=−166=−83 | 3!=6 | −161 |
The last row: −83÷6=−483=−161 (divide the top and the bottom by 3).
T3(x)=21−41(x−2)+81(x−2)2−161(x−2)3.
With the pattern, the k! cancels: ck=2k+1(−1)kk!÷k!=2k+1(−1)k. That is 21,−41,81,−161: a quick check of the table. Careful: the signs take turns. A lost minus sign is the most common mistake here.
New problem
Let f(x)=x. You want to estimate 26 without a calculator. Choose the best centre a, find the second degree Taylor polynomial of f at a, and use it to estimate 26. Give your estimate as a fraction.
A good centre has two things:
The perfect square closest to 26 is 25, and 25=5. So a=25. (a=26 is closer, but 26 is the number we do not know. a=36 is easy too, but it is 10 away instead of 1.)
As for any square root: x=x1/2, and the power rule twice gives
f′(x)=21x−1/2,f′′(x)=21⋅(−21)x−3/2=−41x−3/2.
251/2=5, 25−1/2=51, 25−3/2=531=1251.
| derivative | at x=25 | divide by | coefficient |
|---|---|---|---|
| f(x)=x1/2 | f(25)=5 | 0!=1 | 5 |
| f′(x)=21x−1/2 | f′(25)=21⋅51=101 | 1!=1 | 101 |
| f′′(x)=−41x−3/2 | f′′(25)=−41⋅1251=−5001 | 2!=2 | −10001 |
So
T2(x)=5+101(x−25)−10001(x−25)2.
x−25=26−25=1, and every power of 1 is 1. This is why a centre at distance 1 is so nice.
T2(26)=5+101−10001=10005000+1000100−10001=10005099.
So 26 is close to 10005099. A check by hand: 50992=(5100−1)2=26010000−10200+1=25999801, so (10005099)2=100000025999801, just below 26.
At x=26, only 1 away from the centre 25, the parabola T2 and x are almost the same height.
8 questions, 7 from past finals
What it looks like
The function is one of the famous five with something new in place of x: e−3x, sin(x2), cos(2x), 1+x21. Or it becomes one after a small change: a constant you can split off (e2x+1=e⋅e2x), an identity (sin2x=21−21cos2x), or a power of x in front (x4sin(x2)).
What to do
Write the famous one with a new letter, u. Put the new thing in for u. Simplify each term: the power first, then divide by the factorial. Multiply by any number or power of x in front last. Do not differentiate: it is longer and easier to get wrong.
Past final · Dec 2005 · MATH 100A · Question 1(e) · 3 marks
If we expand sin2(x) in a Maclaurin series, say sin2(x)=n=0∑∞cnxn, find c6.
[Hint: sin2(x)=21(1−cos(2x))].
The sum in the question is just the Maclaurin series written short:
n=0∑∞cnxn=c0+c1x+c2x2+c3x3+⋯
So c6 is the number in front of x6. Now the hint:
sin2x=21−21cos(2x).
The 21 is a constant: it has no x6. So c6 comes only from −21cos(2x). We need the x6 term of cos(2x).
−720(2x)6=−72026x6=−72064x6=−454x6.
To reduce, divide the top and the bottom by 16 (see fractions). This is allowed: the polynomial for cosu works for any u near 0, and when x is near 0, u=2x is near 0 too.
c6=−21⋅(−454)=904=452.
Careful: (2x)6=64x6, not 2x6. The power goes on the 2 too. Without the hint you would need six derivatives of sin2x: much longer.
Past final · Dec 2006 · MATH 100A · Question 1(k) · 3 marks
Write down the first three nonzero terms in the Maclaurin series for xsin(−2x).
xsin(−2x) is sinu with u=−2x, then multiplied by x. sinu has only odd powers, and each one gives one nonzero term. We need three terms, so we need sinu up to u5.
From the famous five, with 3!=6 and 5!=120:
sinu=u−6u3+120u5−⋯
An odd power of a negative number is negative: (−2x)3=−8x3 and (−2x)5=−32x5.
sin(−2x)=−2x−6−8x3+120−32x5−⋯=−2x+68x3−12032x5−⋯
Reduce: 68=34 (divide by 2) and 12032=154 (divide by 8). So
sin(−2x)=−2x+34x3−154x5+⋯
This is allowed: the polynomial for sinu works for any u near 0, and −2x is near 0 when x is.
Each power goes up by 1:
xsin(−2x)=−2x2+34x4−154x6+⋯
Careful with the two minus signs in −6−8x3: they give a plus. You can also start from sin(−2x)=−sin(2x) (see trig values): you get the same terms.
Past final · Dec 2009 · MATH 100A · Question 1(k) · 3 marks
Find the first three nonzero terms in the Maclaurin series for f(x)=x4sin(x2).
From the famous five, with 3!=6 and 5!=120:
sinu=u−6u3+120u5−⋯
These are its first three nonzero terms.
A power of a power: multiply the powers. (x2)3=x2⋅3=x6 and (x2)5=x10.
sin(x2)=x2−6x6+120x10−⋯
This is allowed: the polynomial for sinu works for any u near 0, and x2 is near 0 when x is.
Multiplying by x4 adds 4 to each power:
x4sin(x2)=x6−61x10+1201x14−⋯
Careful: (x2)3 is x6, not x5 (multiply the powers), but x4⋅x6 is x10 (add the powers). Getting x14 from derivatives would take 14 of them.
Past final · Dec 2009 · MATH 100C · Question 1(n) · 3 marks
Determine the third degree Taylor polynomial of f(x)=cos(π−5x) at x=0.
cos(π−θ)=−cosθ (see trig values). With θ=5x:
f(x)=−cos(5x).
Now it is a famous one, cosu with u=5x, times −1.
cosu has only even powers:
cosu=1−2!u2+4!u4−⋯
For degree 3 we keep the powers up to u3. There is no u3 term, so we keep 1−2u2.
(5x)2=25x2, so
cos(5x)=1−225x2+(powers x4 and higher).
Multiply by −1: every sign changes.
f(x)=−1+225x2−⋯
This is allowed: the polynomial for cosu works for any u near 0, and 5x is near 0 when x is.
T3 has all the powers up to x3. Here the x and x3 coefficients are 0, so we do not write them:
T3(x)=−1+225x2.
"Degree 3" means "no power of x above 3". It does not mean 3 terms, and it does not have to end with x3. Here T3=T2. A check with derivatives: f′′′(x)=−125sin(5x), so f′′′(0)=0, and the x3 term really is 0.
Past final · Dec 2010 · MATH 100C · Question 1(m) · 3 marks
Let p3(x)=c0+c1x+c2x2+c3x3 be the third degree Taylor polynomial for the function f(x)=e2x+1 at x=0. Determine the value of c3.
eA+B=eA⋅eB, so
e2x+1=e2x⋅e1=e⋅e2x.
e is just a number. Now the function is a famous one, eu with u=2x, times e.
eu=1+u+2!u2+3!u3+⋯
We only need the u3 term: 6u3.
6(2x)3=68x3=34x3.
This is allowed: the polynomial for eu works for any u near 0, and 2x is near 0 when x is.
c3=e⋅34=34e.
Careful: do not put u=2x+1 into eu. When x is near 0, 2x+1 is near 1, not near 0, so the terms would all be wrong. Split off the e first.
Past final · Dec 2012 · MATH 100C · Question 1(i) · 3 marks
Let p(q)=e3q. Consider its 20th order Taylor polynomial at q=1: T20(q)=a0+a1(q−1)+a2(q−1)2+⋯+a20(q−1)20 What is a20?
The centre is q=1, so we want powers of (q−1). Write 3q=3(q−1)+3. Then, with eA+B=eA⋅eB:
e3q=e3⋅e3(q−1).
e3 is just a number. The rest is eu with u=3(q−1).
eu=1+u+2!u2+⋯+20!u20+⋯
We only need the u20 term: 20!u20.
The power goes on the 3 and on the (q−1):
20!(3(q−1))20=20!320(q−1)20.
This is allowed: the polynomial for eu works for any u near 0, and when q is near 1, u=3(q−1) is near 0.
a20=e3⋅20!320=20!320e3.
Leave 320 and 20! as they are: they are exact. A check with derivatives: each derivative of e3q brings out a 3, so p(20)(q)=320e3q and p(20)(1)=320e3. Divide by 20!: the same answer.
Past final · Dec 2015 · MATH 100C · Question 4(a) · 3 marks
Compute the 3rd degree Taylor polynomial of f(x)=e−3x at a=0.
e−3x is eu with u=−3x. Up to u3:
eu=1+u+2u2+6u3+⋯
(using 2!=2 and 3!=6).
An even power of a negative number is positive, an odd power is negative: (−3x)2=9x2 and (−3x)3=−27x3.
e−3x=1−3x+29x2−627x3+⋯
This is allowed: the polynomial for eu works for any u near 0, and −3x is near 0 when x is.
627=29 (divide the top and the bottom by 3).
T3(x)=1−3x+29x2−29x3.
The signs take turns because u is negative. Careful: (−3x)2 is +9x2; the minus goes on the 3 too. T3 means: no power of x above 3. It does not mean 3 terms. Here it has 4 terms.
Near x=0 each new degree follows e−3x a little farther out.
New problem
Find the Maclaurin polynomial of degree 6 of f(x)=1+x21.
The famous one is 1−u1, with a minus sign. Write the plus as minus a minus:
1+x21=1−(−x2)1.
So u=−x2.
From the famous five, every coefficient is 1:
1−u1=1+u+u2+u3+⋯
u3=(−x2)3 has x6 in it, so stop at u3. T6 means: no power of x above 6. It does not mean 6 terms. Here it has 4 terms.
(−x2)2=x4 (even power: plus) and (−x2)3=−x6 (odd power: minus).
T6(x)=1−x2+x4−x6.
This is allowed: the polynomial for 1−u1 works for u near 0, and −x2 is near 0 when x is. Careful: u is −x2, not x2. With x2 all the signs would be plus, and that is the polynomial of 1−x21.
Three kinds of question have a short way and a long way. The exam is timed: learn the short way. (Limits have their own tab, next.)
Find T3 of f(x)=excosx at 0. The long way is four derivatives with the product rule:
f′=excosx−exsinx,f′′=−2exsinx,f′′′=−2ex(sinx+cosx),…
Slow, and one sign mistake ruins everything. The short way uses the two famous polynomials.
Step 1. Write each one up to the degree you need, here x3:
ex=1+x+21x2+61x3+⋯,cosx=1−21x2+⋯
Step 2. Multiply every term by every term. Skip any pair whose powers add to more than 3 (see multiplying polynomials). The table shows every pair.
Step 3. Collect each power.
x0: 1x1: xx2: 21−21=0x3: 61−21=61−63=−31
So T3(x)=1+x−3x3.
| × | 1 | −21x2 |
|---|---|---|
| 1 | 1 | −21x2 |
| x | x | −21x3 |
| 21x2 | 21x2 | −41x4 |
| 61x3 | 61x3 | −121x5 |
A quotient is a product
1−xf(x)=f(x)⋅1−x1: multiply by 1+x+x2+⋯. For 1+xf(x), put −x into the famous one: 1−x+x2−⋯.
One coefficient only?
If the question asks only for the x3 coefficient, list the pairs of powers that add to 3, multiply each pair, and add. Do not write the whole product.
The coefficient is ck=k!f(k)(a). Turn it around:
Example
Put x2 in for x in ex:
ex2=1+x2+2x4+6x6+⋯
Six derivatives of ex2 by the chain and product rules would take a full page.
Example
T3(x)=5−2(x−1)+3(x−1)2+7(x−1)3 is the Taylor polynomial of some f about a=1. Then
You do not need to know what f is.
Tₙ at a is a list of derivatives at a
Having T4 at x=a is the same as having f(a), f′(a), f′′(a), f′′′(a) and f(4)(a) (4 is only an example). They are exact, but only at a: T4 does not give f′ or f′′ at any other point, and it does not give f(5)(a).
Do not forget the k!
c6=61 is not f(6)(0). Multiply by 6!=720 first.
Even and odd functions
An even function (cosx, ex2) has only even powers, so every odd derivative at 0 is 0. An odd function (sinx, xcosx2) has only odd powers.
Some functions have one formula for x=0 and a separate value at 0. The derivative rules do not work at the point where the pieces meet. You still need f(a),f′(a),f′′(a),…, so get them a different way.
The recipe
Case 1
f(x)=xex−1 for x=0, and f(0)=1. For x=0, divide the polynomial of ex−1 by x:
xex−1=xx+2x2+6x3+⋯=1+2x+6x2+⋯
At x=0 this gives 1, the value the question gives. So the pieces fit, and T2(x)=1+2x+6x2. Then f′(0)=21 and f′′(0)=2!⋅61=31.
Case 2
f(x)=e−1/x2 for x=0, and f(0)=0. This was the last question of a 2023 final.
Every coefficient is 0, so Tn(x)=0 for every n. But f(x)>0 for every x=0! The translator only listens at the centre, and this function is so flat at 0 that it hears nothing.
Every Taylor polynomial at 0 is the line y = 0.
Case 3
f(x)=x2 for x≤0, and f(x)=x2+x3 for x>0.
So T2(x)=0+0x+2!2x2=x2, but there is no T3. A Taylor polynomial of degree n needs n derivatives at the centre.
Products and quotients, functions with no single formula, and derivatives at the centre. Past final questions first, oldest first, then new ones.
3 kinds · 15 questions · 11 from past finals (2006 to 2024)
The past final questions are from UBC final exams. The solutions are written by Learn4Less. Learn4Less is not affiliated with UBC.
6 questions, 5 from past finals
What it looks like
The function is a product or a quotient of two functions whose Maclaurin polynomials you know: ex, sinx, cosx, 1−x1, a polynomial, or a Tn the question gives you. The centre is 0.
What to do
Write each factor's polynomial up to the degree asked. Multiply them, and keep only the powers up to that degree (multiplying polynomials). A quotient 1−xf(x) is the product f(x)⋅1−x1. Do not use the product rule again and again: many derivatives of a product are long, and one wrong sign spoils every coefficient after it.
Past final · Dec 2006 · MATH 100C · Question 1(n) · 3 marks
Let c0+c1x+c2x2+… be the Taylor Series of the function f(x)=(x+1)e−x at a=0. Determine the value of c2.
The function is f(x)=(x+1)e−x and the centre is a=0. We want only c2, the number in front of x2.
You could find f′′(0) with the product rule twice, then divide by 2!. There is a shorter way: f is a product, and you know a polynomial for each factor.
x+1 is already a polynomial. For e−x, put −x in for x in ex=1+x+2!x2+⋯ (see the famous five):
e−x=1+(−x)+2(−x)2+⋯=1−x+2x2−⋯
We want powers only up to x2, so stop there.
In (x+1)(1−x+2x2) only two products give x2 (see multiplying polynomials):
Add their coefficients: −1+21=−22+21=−21. So c2=−21.
The product rule gives f′(x)=e−x−(x+1)e−x=−xe−x, then f′′(x)=−e−x+xe−x=(x−1)e−x. So f′′(0)=−1 and
c2=2!f′′(0)=2−1=−21.
The same answer. Careful: c2 is not f′′(0). The coefficient is the derivative divided by 2!.
Past final · Dec 2015 · MATH 100A · Question 11(a) · 4 marks
If the second degree Maclaurin polynomial for g(x) is T2(x)=5−x/3+2x2 find the second degree Maclaurin polynomial for h(x)=ex⋅g(x).
We do not know g itself, only its T2. That is enough. Near 0, g(x) is 5−3x+2x2 plus terms with x3 and higher. Those higher terms can only make x3 or higher in a product, so they never change T2 of h.
So multiply the polynomial of ex by T2 of g, and keep powers up to x2.
From the famous five:
ex=1+x+2x2+⋯
(1+x+2x2)(5−3x+2x2)
For each power, list the products that give it (see multiplying polynomials):
| power | products that give it | coefficient |
|---|---|---|
| 1 | 1⋅5 | 5 |
| x | 1⋅(−31x)+x⋅5 | −31+315=314 |
| x2 | 1⋅2x2+x⋅(−31x)+21x2⋅5 | 612−62+615=625 |
In the last row, 2−31+25 is put over the common bottom 6 (see fractions). Every other product has x3 or higher: drop it. T2 means: no power of x above 2. It does not mean 2 terms.
T2(x)=5+314x+625x2.
Careful: do not multiply out all nine products and leave the x3 and x4 terms in. They do not belong in a degree 2 polynomial.
Past final · Dec 2016 · MATH 100A · Question 13(a) · 4 marks
Let T3(x) be the third degree Taylor polynomial centred at x=0 for f(x)=(x+1)sin(x). Write down T3(x). Make sure that you simplify the coefficients.
For T3 by derivatives you need f′(0), f′′(0) and f′′′(0): the product rule three times. It is long and easy to get wrong. Instead, f is x+1 times sinx, and you know the polynomial of sinx.
From the famous five, with 3!=6:
sinx=x−3!x3+⋯=x−6x3+⋯
Multiply each term of x+1 by each term of x−6x3:
(x+1)(x−6x3)=x⋅x−x⋅6x3+1⋅x−1⋅6x3=x2−6x4+x−6x3.
The degree is 3, so drop the x4 term. T3 means: no power of x above 3. It does not mean 3 terms. Write the rest from the lowest power up:
T3(x)=1x+1x2−61x3=x+x2−6x3.
Check one number: f′′(0)=2!⋅1=2, and the product rule gives f′′(x)=2cosx−(x+1)sinx, so f′′(0)=2.
Near x=0 the cubic T3=x+x2−6x3 lies on top of (x+1)sinx.
Past final · Dec 2023 · MATH 100A · Question 17 · 2 marks
Find the coefficient of the x3 term of the Taylor polynomial of f(x)=1−xex about the point x=0.
f(x)=1−xex=ex⋅1−x1.
Both factors are in the famous five. Three derivatives with the quotient rule would be long and easy to get wrong.
ex=1+x+2x2+6x3+⋯,1−x1=1+x+x2+x3+⋯
The powers must add to 3: (0,3), (1,2), (2,1), (3,0) (see multiplying polynomials). Every coefficient of 1−x1 is 1:
| from ex | from 1−x1 | product |
|---|---|---|
| 1 | x3 | 1⋅x3 |
| x | x2 | 1⋅x3 |
| 21x2 | x | 21x3 |
| 61x3 | 1 | 61x3 |
Add: 1+1+21+61=66+66+63+61=616=38 (divide top and bottom by 2).
The question asks for the coefficient c3, not for f′′′(0). They are linked by c3=3!f′′′(0), so here f′′′(0)=6⋅38=16. Do not give 16 as the answer.
Past final · Dec 2024 · MATH 100A · Question 9 · 8 marks
(a) Find the second-order Taylor polynomial for e5xcos(x) about x=0.
(b) Use your answer from (a) to approximate e0.5cos(0.1) by a rational number. You may leave your answer in calculator-ready form.
For e5x, put 5x in for x in ex=1+x+2x2+⋯ (see the famous five):
e5x=1+5x+2(5x)2+⋯=1+5x+225x2+⋯
And cosx=1−2x2+⋯
(1+5x+225x2)(1−2x2)
The products 5x⋅(−2x2) and 225x2⋅(−2x2) have x3 and x4: drop them. T2 means: no power of x above 2. It does not mean 2 terms. So
T2(x)=1+5x+12x2.
We need e5x=e0.5, so 5x=0.5 and x=0.1. Check the cosine: cos(x)=cos(0.1) also needs x=0.1. Good: one value of x makes both parts match. It is close to the centre 0, so T2 is a good estimate there.
Write 0.1=101:
T2(101)=1+5⋅101+12⋅1001=1+21+253.
Over the common bottom 50: 5050+5025+506=5081. So e0.5cos(0.1) is approximately 5081.
Careful: in 12x2, square first: 12⋅(0.1)2=12⋅0.01, not (12⋅0.1)2.
At x=0.1 the parabola T2=1+5x+12x2 is still very close to e5xcosx.
New problem
Find the third degree Maclaurin polynomial of f(x)=exsinx.
By derivatives you would need the product rule three times: f′(x)=ex(sinx+cosx), then f′′(x)=2excosx, then more. Instead, multiply the polynomials of ex and sinx from the famous five.
sinx=x−6x3+⋯ starts at x, not at 1. So each term of ex gets multiplied by at least x. The term 6x3 of ex would give x4: not needed. So
ex=1+x+2x2+⋯is enough, withsinx=x−6x3+⋯
(1+x+2x2)(x−6x3)
There is no constant term: every product has at least one x. Everything else has x4 or higher: drop it. T3 means: no power of x above 3. It does not mean 3 terms.
T3(x)=1x+1x2+31x3.
Check the last coefficient with derivatives: f′′′(x)=2ex(cosx−sinx), so f′′′(0)=2, and 3!2=62=31. Careful: when one factor starts at x, you need one fewer term of the other factor. If you are not sure, keep one more term; it does no harm.
4 questions, 3 from past finals
What it looks like
There is no one formula for f that you can differentiate at the centre. The function is given in pieces, or as the solution of a differential equation (y′=… with a starting value), or by an equation in x and y (a curve).
What to do
You still need f(a), f′(a), f′′(a), and so on. Get them another way. Pieces: use the derivative from its definition. A differential equation: put the start into the equation, then differentiate the equation and put it in again. A curve: use implicit differentiation. Then build Tn as usual.
Past final · Dec 2012 · MATH 100C · Question 6 · 12 marks
Consider the curve x2+y3−2xy=0. Assume that the point (x,y)=(1,1) lies on the curve, and that nearby points on the curve satisfy y=f(x) for some function f(x).
(a) Find f(1) and f′(1).
(b) Find f′′(1).
(c) Approximate f(1.02) using the linear approximation of f(x) at x=1. State whether you expect this to be an overestimate, or an underestimate of f(1.02).
(d) Write down the quadratic approximation of f(x) at x=1. Sketch its graph.
The point (1,1) is on the curve, so f(1)=1. (Check: 1+1−2=0.)
There is no formula y=…, so use implicit differentiation: differentiate each term in x, with y=f(x).
2x+3y2y′−2y−2xy′=0.
Put in x=1, y=1: 2+3y′−2−2y′=0, so y′=0. That is f′(1)=0.
Differentiate the equation from (a) again, term by term:
2+6y(y′)2+3y2y′′−4y′−2xy′′=0.
Put in x=1, y=1 and the value y′=0 from (a): 2+0+3y′′−0−2y′′=0, so y′′=−2. That is f′′(1)=−2.
The linear approximation is the tangent line:
L(x)=f(1)+f′(1)(x−1)=1+0⋅(x−1)=1.
So f(1.02) is approximately L(1.02)=1.
f′′(1)=−2<0, so near x=1 the curve is concave down. A concave down curve lies below its tangent line, so 1 is an overestimate (see concavity).
T2(x)=f(1)+f′(1)(x−1)+2!f′′(1)(x−1)2=1+0+2−2(x−1)2=1−(x−1)2.
The graph is a parabola that opens down (the (x−1)2 has a minus sign). Its top is at (1,1), the point of the curve. It crosses the x-axis where (x−1)2=1, so x−1=±1: at x=0 and x=2. Draw it symmetric about the line x=1, flat at the top (because f′(1)=0).
Past final · Dec 2023 · MATH 100A · Question 30 · 10 marks
Find the 2023rd Maclaurin polynomial for
f(x)={e−x210if x=0,if x=0.
T2023(x)=f(0)+f′(0)x+2!f′′(0)x2+⋯+2023!f(2023)(0)x2023.
So we need every derivative of f at 0. We know f(0)=0. The formula e−1/x2 does not work at 0 (it has 01), so the derivative rules cannot be used there. Use the derivative from its definition.
f′(0)=h→0limhf(h)−f(0)=h→0limhe−1/h2.
Put t=h21. As h→0, t→∞, and ∣h∣1=t. So the size of the fraction is
ett→0,
because exponentials beat powers. So f′(0)=0.
For x=0 use the chain rule. Write −x21=−x−2; its derivative is 2x−3. So
f′(x)=x32e−1/x2(x=0).
Then the definition again, with f′(0)=0:
f′′(0)=h→0limhf′(h)−0=h→0limh42e−1/h2=t→∞limet2t2=0.
Each new derivative for x=0 is again powers of x1 times e−1/x2. For example, the product rule gives f′′(x)=(x64−x46)e−1/x2. Dividing by h in the definition adds one more power of h1. With t=h21, each term is still a power of t over et in size, so the limit is 0 every time.
So f(k)(0)=0 for every k. Every coefficient is 0, and
T2023(x)=0.
f is not the zero function: f(1)=e−1=e1. The Taylor polynomial copies only what f does at the centre: its value and its derivatives there. This f is so flat at 0 that all of them are 0. So every Tn is the line y=0, and a larger n never brings it closer to f away from 0.
Careful: the answer is the zero polynomial. Do not write "there is no Maclaurin polynomial", and do not write that f(x)=0.
f is very flat at 0, but it is not 0: it rises toward 1. T2 and T6, like every Tn, are the line y=0.
Past final · Dec 2024 · MATH 100A · Question 12(a)
Let y(x) be the solution to the differential equation y′=y+e−y satisfying y(0)=0. Find the second-order Maclaurin expansion of y(x).
T2(x)=y(0)+y′(0)x+2!y′′(0)x2.
We have no formula for y(x), and we do not need one. The equation tells us y′ whenever we know y.
The question gives y(0)=0. Put x=0 into the equation:
y′(0)=y(0)+e−y(0)=0+e0=1.
Differentiate both sides of y′=y+e−y in x. The y gives y′. The e−y gives e−y times the derivative of −y, which is −y′ (chain rule):
y′′=y′−e−yy′.
Put in x=0, with y(0)=0 and y′(0)=1:
y′′(0)=1−e0⋅1=1−1=0.
T2(x)=0+1⋅x+20x2=x.
Near 0, the solution y(x) is close to x. Careful: "second-order" means powers up to x2. Here the x2 coefficient happens to be 0; that is a correct answer, not a mistake.
New problem
Let f(x)=xsinx for x=0, and f(0)=1. Find the Maclaurin polynomial of degree 4 for f. Then find f′′(0).
The formula xsinx gives 00 at x=0; that is why f(0)=1 is given on its own. So the quotient rule cannot give f′(0) or f′′(0). You could use the derivative from its definition again and again, but that is long. There is a better way.
From the famous five, for every x:
sinx=x−3!x3+5!x5−⋯
For x=0, divide every term by x (each power goes down by 1). With 3!=6 and 5!=120:
xsinx=1−6x2+120x4−⋯
Put x=0 into the right side: it gives 1, which is exactly f(0). So the series on the right equals f at every x, 0 included. It has no division in it, so no 00 anywhere. A series that equals f near 0 is the Maclaurin series of f, so its coefficients are ck=k!f(k)(0), as usual.
T4 means: no power of x above 4. It does not mean 4 terms. Keep powers up to x4:
T4(x)=1−61x2+1201x4.
The x2 coefficient is c2=−61, and c2=2!f′′(0). So
f′′(0)=2!⋅(−61)=−62=−31.
Also, there are no odd powers, so f′(0)=0 and f′′′(0)=0.
xsinx has no hole at 0: with f(0)=1 it is smooth there, and T2, T4 follow it near 0.
5 questions, 3 from past finals
What it looks like
The question asks for one derivative at the centre, often a high one like f(6)(0) or f(9)(0). Or it gives you a Taylor polynomial and asks for f(a), f′(a), f′′(a).
What to do
Find the coefficient cn of (x−a)n in a polynomial you know (often one of the famous five with something put in for x). Then use cn=n!f(n)(a), so f(n)(a)=n!⋅cn. A power that is missing has coefficient 0, so that derivative is 0.
Past final · Dec 2007 · MATH 100A · Question 1(j) · 3 marks
If f(x)=sin(x2), compute f(6)(0). Hint: Use Maclaurin series.
Each derivative of sin(x2) needs the chain rule, and then the product rule too. Six rounds is long and easy to get wrong. Use the link between derivatives and coefficients instead:
c6=6!f(6)(0),sof(6)(0)=6!⋅c6.
From the famous five, sinu=u−3!u3+5!u5−⋯ Put u=x2. Then (x2)3=x6 and (x2)5=x10:
sin(x2)=x2−6x6+120x10−⋯
The x6 term is −6x6, so c6=−61.
6!=1⋅2⋅3⋅4⋅5⋅6=720 (see factorials). So
f(6)(0)=720⋅(−61)=−6720=−120.
Careful: −61 is the coefficient, not the derivative. Forgetting to multiply by 6! is the most common mistake here.
Past final · Dec 2008 · MATH 100A · Question 1(k) · 3 marks
If f(x)=xcos(x2), compute f(9)(0). Hint: Use Maclaurin series.
From the famous five, cosu=1−2!u2+4!u4−⋯ Put u=x2. Then (x2)2=x4 and (x2)4=x8, and 4!=24:
cos(x2)=1−2x4+24x8−⋯
Each power goes up by 1:
xcos(x2)=x−2x5+24x9−⋯
The x9 term is 24x9, so c9=241.
f(9)(0)=9!⋅241=4!9!.
Cancel instead of computing 9!: 4!9!=1⋅2⋅3⋅41⋅2⋯9=5⋅6⋅7⋅8⋅9. Then 5⋅6=30, 30⋅7=210, 210⋅8=1680, 1680⋅9=15120.
So f(9)(0)=15120. Tip: when you divide factorials, cancel first. The numbers stay small.
Past final · Dec 2015 · MATH 100A · Question 3(iv) · 2 marks
Let T3(x)=24+6(x−3)+12(x−3)2+4(x−3)3 be the third-degree Taylor polynomial for some function f(x), expanded about a=3. What is f′′(3)?
The centre is a=3, and T3 is written in powers of (x−3). So you can read each coefficient straight off:
ck=k!f(k)(3).
The number in front of (x−3)2 is 12. So
2!f′′(3)=12.
f′′(3)=2!⋅12=2⋅12=24.
The answer is F. Choice E (12) forgets to multiply by 2!. The same table gives the others: f(3)=24, f′(3)=6, f′′′(3)=3!⋅4=24.
New problem
Let f(x)=x3e−x2. Find f(5)(0) and f(6)(0).
Put u=−x2 in eu=1+u+2!u2+⋯ (see the famous five). Since (−x2)2=x4:
e−x2=1−x2+2x4−⋯
Each power goes up by 3:
x3e−x2=x3−x5+2x7−⋯
The x5 term is −x5, so c5=−1. With 5!=120:
f(5)(0)=5!⋅(−1)=−120.
Look for x6: there is none. Every power is odd (3,5,7,…). So c6=0 and
f(6)(0)=6!⋅0=0.
Tip: a missing power means that derivative at the centre is 0. Here f is odd (f(−x)=−f(x)), so every even derivative at 0 is 0.
New problem
The degree 3 Taylor polynomial of g about x=1 is T3(x)=2+3x−x2+x3 (written in powers of x, not of x−1). Find g(1), g′(1) and g′′(1).
The centre is 1, but T3 is written in powers of x, not of (x−1). So the numbers 2, 3, −1, 1 are not g(1), g′(1), 2!g′′(1). You can read coefficients off only when the powers are of (x−a).
T3 is built so that at the centre it has the same value and the same first three derivatives as g:
T3(1)=g(1),T3′(1)=g′(1),T3′′(1)=g′′(1).
So differentiate T3 and put in x=1.
Use the power rule on each term: the 2 gives 0, the 3x gives 3, the −x2 gives −2x, the x3 gives 3x2.
T3′(x)=3−2x+3x2,T3′′(x)=−2+6x.
g(1)=2+3−1+1=5,g′(1)=3−2+3=4,g′′(1)=−2+6=4.
Check: in powers of (x−1) the same polynomial is 5+4(x−1)+2(x−1)2+(x−1)3, and 2!4=2. Careful: reading the numbers straight off would give 2, 3 and −2, all wrong.
Many limits on finals give 00: x→0limx3sinx−x, x→0limx2cosx−ex2. Taylor polynomials turn the hard functions into polynomials, and a limit of polynomials is easy. This is one of the most common Taylor questions on the exam.
When x is small, every higher power is much smaller than the one before. Here is x=0.1:
So near 0, sinx is x, plus a tiny x3 part, plus even tinier parts. In a limit as x→0, only the lowest power on the top and the lowest power on the bottom decide the answer. The rest go to 0.
| Function | Its polynomial near 0 |
|---|---|
| sinx | x−6x3+120x5−5040x7+⋯ |
| cosx | 1−2x2+24x4−720x6+⋯ |
| ex | 1+x+2x2+6x3+24x4+⋯ |
| ln(1+x) | x−2x2+3x3−4x4+⋯ |
| 1−x1 | 1+x+x2+x3+⋯ |
| 1+x | 1+2x−8x2+16x3−⋯ |
| arctanx | x−3x3+5x5−7x7+⋯ |
The exampleFind x→0limxsinxex−1−x.
ExampleTop: e0−1−0=0. Bottom: 0⋅sin0=0. So it is 00.
Examplexsinx=x(x−6x3+⋯)=x2−6x4+⋯: it starts at x2.
Exampleex−1−x=(1+x+2x2+⋯)−1−x=2x2+⋯
Examplex2−⋯2x2+⋯=1−(terms with x)21+(terms with x)
ExampleThe limit is 11/2=21.
How many terms?
Expand until the top reaches the bottom's lowest power. If the bottom starts at x3, write every function up to x3. Fewer terms: you get 00 again. More terms: no harm, just extra work.
Taylor or L'Hôpital?
Both are allowed unless the question says otherwise. When the answer needs the x3 or x4 terms, L'Hôpital means differentiating 3 or 4 times; Taylor does it in one line. When the exam's hint says "use Maclaurin series", use Taylor.
Past finals ask limits in five ways. Each card opens its questions below.
Kind 1
x→0limsin(x2)e3x2−1
Replace each function by its polynomial, cancel, divide by the lowest power.
Kind 2
x→0limx42cosx−2+x2
The first terms cancel. Go on until something is left at the bottom's power.
Kind 3
Kind 4
find a so that x→0limx2e2x−1−ax exists
Every power on top that is lower than the bottom's must have coefficient 0.
Kind 5
T3=2−x+4x2−5x3: x→0limx2f(x)−2+x
Use Tn in place of f, as long as the bottom's power is at most n.
Stopping too early
If the top becomes 0 after you cancel, you did not keep enough terms. Take one more term of every function.
Forgetting the bottom
The bottom needs expanding too when it has sin, cos, ex or ln in it: 1−cosx starts at 2x2, not at 1.
Brackets when you put something in
e3x2=1+3x2+2(3x2)2+⋯, and (3x2)2=9x4, not 3x4.
Using Taylor at 0 when x → ∞
The polynomials are only good near 0. For x→∞, first make something small: t=x1→0.
Every kind of limit question, with questions from past UBC finals first, oldest first, then new ones. Try each on paper, then open the solution one step at a time.
5 kinds · 24 questions · 11 from past finals (2007 to 2024)
The past final questions are from UBC final exams. The solutions are written by Learn4Less. Learn4Less is not affiliated with UBC.
8 questions, 8 from past finals
What it looks like
A limit as x→0 that gives 00, with sin, cos, ex, ln(1+x), 1+x or arctanx on the top or the bottom. The hint often says "use Maclaurin series".
What to do
Replace each function by enough of its Maclaurin polynomial (the famous five). Enough means: up to the lowest power in the bottom. If the bottom starts at x2, write every polynomial up to x2. Simplify the top. Divide the top and the bottom by that lowest power, then let x→0. L'Hôpital's rule also works on these limits. But the polynomials are often shorter, and when the exam's hint says "use Maclaurin series", this is the way it asks for.
Past final · Dec 2007 · MATH 100A · Question 1(i) · 3 marks
Compute x→0limx2x+cos(2x)−ex. Hint: Use Maclaurin series (you may, however, use any method you know).
At x=0 the top is 0+1−1=0 and the bottom is 0: the form 00. The bottom is x2, so write each polynomial up to x2.
For cos(2x), put 2x in cosu=1−2u2+⋯:
cos(2x)=1−2(2x)2+⋯=1−24x2+⋯=1−2x2+⋯
And ex=1+x+2x2+⋯
x+(1−2x2)−(1+x+2x2)+(terms with x3 and higher)
Careful: the minus sign in front of ex changes the sign of every term in its bracket.
x2−25x2+(terms with x3,…)=−25+(terms with x)→−25.
Past final · Dec 2012 · MATH 100A · Question 4(b) · 3 marks
Evaluate x→0limsin(x2)e3x2−1.
At x=0 the top is e0−1=1−1=0 and the bottom is sin0=0: the form 00.
For the bottom, put u=x2 in sinu=u−6u3+⋯:
sin(x2)=x2−6(x2)3+⋯=x2−6x6+⋯
The bottom starts at x2. So write the top up to x2.
Put u=3x2 in eu=1+u+2u2+⋯:
e3x2=1+3x2+2(3x2)2+⋯=1+3x2+29x4+⋯
Take away 1: the 1 and the 1 cancel, and the top is 3x2+(terms with x4 and higher).
x2−6x6+⋯3x2+⋯=1+(terms with x4)3+(terms with x2)→13=3.
Tip: when you put x2 in for u, every power doubles: u2 becomes x4 and u3 becomes x6. So one term of each series is enough here.
Past final · Apr 2013 · MATH 100A · Question 4(c) · 3 marks
Evaluate x→0limcos(x)−1ex2−1.
At x=0 the top is e0−1=1−1=0 and the bottom is cos0−1=1−1=0: the form 00.
For the bottom, use cosx=1−2x2+24x4−⋯ and take away 1:
cosx−1=−2x2+24x4−⋯
The bottom starts at x2. So write the top up to x2.
Put u=x2 in eu=1+u+2u2+⋯:
ex2=1+x2+2x4+⋯
Take away 1: the top is x2+(terms with x4 and higher).
−2x2+24x4−⋯x2+⋯=−21+(terms with x2)1+(terms with x2)→−211=1⋅(−12)=−2.
Check the sign: near 0 the top is above 0, and cosx−1 is below 0 (since cosx≤1). So the answer must be negative.
Past final · Dec 2014 · MATH 100A · Question 3(d) · 2 marks
Find t→0limtt+1−et.
At t=0 the top is 1−e0=1−1=0 and the bottom is 0: the form 00. The variable is t, not x: nothing else changes.
The bottom is t, so write each polynomial up to t1. That is only T1, the tangent line.
1+t is not one of the famous five, so build its T1 from the derivative. It is one line. Write the root as a power: f(t)=(1+t)1/2. The power rule brings the 21 down and lowers the power to −21; the inside 1+t has derivative 1:
f′(t)=21(1+t)−1/2,f(0)=1,f′(0)=21.
So T1(t)=1+21t. This is the same as the linear approximation of 1+t at t=0.
For the other function, et=1+t+⋯
(1+2t)−(1+t)+(terms with t2 and higher)
t−21t+(terms with t2,…)=−21+(terms with t)→−21.
Past final · Dec 2014 · MATH 100A · Question 4(a) · 3 marks
Compute x→0limx2cosx−ex2.
At x=0 the top is cos0−e0=1−1=0 and the bottom is 0: the form 00. The bottom is x2, so write each polynomial up to x2.
cosx=1−2x2+⋯
For ex2, put u=x2 in eu=1+u+⋯:
ex2=1+x2+⋯
The next term of ex2 is 2x4: higher than x2, so leave it out.
(1−2x2)−(1+x2)+(terms with x4 and higher)
Careful: the minus sign in front of ex2 changes the sign of every term in its bracket.
x2−23x2+(terms with x4,…)=−23+(terms with x2)→−23.
Past final · Dec 2015 · MATH 100A · Question 5(d) · 3 marks
Evaluate the limit x→0limx2log(1+x)−sinx. Remember logx=logex=lnx.
At x=0 the top is log1−sin0=0−0=0 and the bottom is 0: the form 00. The bottom is x2, so write each polynomial up to x2.
From the famous five:
log(1+x)=x−2x2+⋯,sinx=x−6x3+⋯
sinx has no x2 term. So up to x2, sinx is just x.
(x−2x2)−x+(terms with x3 and higher)
The x and x cancel. Only −2x2 is left.
Careful: "no x2 term" does not mean you can leave sinx out. Its x is what cancels the x of log(1+x).
x2−21x2+(terms with x3,…)=−21+(terms with x)→−21.
Past final · Dec 2016 · MATH 100A · Question 5.3 · 2 marks
Compute the limit x→0limx21−cos2x.
At x=0 the top is 1−12=0 and the bottom is 0: the form 00. So the answer is not simply 0 or ∞ yet. The bottom is x2, so write the polynomials up to x2.
cosx=1−2x2+⋯ Multiply it by itself and keep the powers up to x2 (see multiplying polynomials):
cos2x=(1−2x2+⋯)(1−2x2+⋯)
So cos2x=1−x2+(terms with x4 and higher).
The top is 1−(1−x2+⋯)=x2+(terms with x4,…). So
x2x2+⋯=1+(terms with x2)→1.
The answer is A. Another way: 1−cos2x=sin2x, and sin2x=x2−⋯ gives the same 1. Choice C (21) comes from 1−cosx=2x2−⋯: it forgets the square on cosx.
Past final · Dec 2024 · MATH 100A · Question 2(c)
Compute x→0limx3−6xarctanx.
At x=0 the top is arctan0=0 and the bottom is 0−0=0: the form 00.
The bottom is already a polynomial. Write it from the lowest power up: −6x+x3. Its lowest power is x1, not x3. So write the top up to x1.
arctanx is not one of the famous five, but its T1 is quick to build. arctan0=0, and its derivative is 1+x21 (see trig values). At 0 the derivative is 1+01=1. So
T1(x)=0+1⋅x=x,arctanx=x+(terms with x3,…)
(If you know more, arctanx=x−3x3+⋯, but x is enough here.)
−6x+x3x+(terms with x3,…)=−6+x21+(terms with x2)→−61=−61.
Careful: divide by the lowest power of the bottom. Check the sign: for a small x>0 the top is above 0 and the bottom x(x2−6) is below 0, so the answer is negative.
4 questions
What it looks like
You put the polynomials in, and everything on the top cancels: 0+0+⋯. Or the bottom is a difference, like x−sinx, that also cancels at first.
What to do
If everything cancels, you stopped too early. The terms you left out are the ones that decide the limit. Look at the bottom: its lowest power tells you how far to go. Keep more terms on the top until something is left at that power. If the bottom is a difference, expand it too, until something is left there as well. Then divide by that power and let x→0, as before.
New problem
Find x→0limx(1−cosx)x−sinx.
At x=0 the top and the bottom are both 0. In the bottom, cosx=1−2x2+24x4−⋯, so
1−cosx=2x2−24x4+⋯,x(1−cosx)=2x3−24x5+⋯
The bottom starts at x3. So write the top up to x3 as well.
sinx=x−6x3+⋯, so
x−sinx=x−(x−6x3+⋯)=6x3+(terms with x5,…).
The x and x cancel.
2x3+⋯6x3+⋯=21+(terms with x)61+(terms with x)→2161=61⋅12=62=31.
Tip: L'Hôpital's rule would need three rounds here. The polynomials do it in one.
New problem
Find x→0limx2sin2xex2−1−x2.
sinx=x−6x3+⋯ Square it: the lowest term is x⋅x=x2, and the next is 2⋅x⋅(−6x3)=−3x4. So
sin2x=x2−3x4+⋯,x2sin2x=x4−3x6+⋯
The bottom starts at x4, so write the top up to x4.
Put u=x2 in eu=1+u+2u2+⋯:
ex2=1+x2+2x4+⋯
Take away 1+x2: they cancel exactly, and the top is 2x4+(terms with x6,…).
x4−3x6+⋯2x4+⋯=1+(terms with x)21+(terms with x)→21.
Careful: if you stop ex2 at 1+x2, the top looks like 0. Then you have not kept enough terms: go on until something is left that reaches the bottom's power.
New problem
Find x→0limx42cosx−2+x2.
At x=0 the top is 2−2+0=0 and the bottom is 0: the form 00.
Say you write only cosx=1−2x2+⋯ Then 2cosx=2−x2+⋯, and the top is
(2−x2)−2+x2=0+(terms with x4 and higher).
You get x40+⋯. This 0 does not mean the limit is 0. The terms you left out have x4, the same power as the bottom. So they decide the limit: you stopped too early.
The bottom is x4, so write cosx up to x4. The x4 term is 4!x4, and 4!=24:
cosx=1−2x2+24x4−⋯
Multiply by 2: 2⋅24x4=242x4=12x4, so
2cosx=2−x2+12x4−⋯
(2−x2+12x4)−2+x2+(terms with x6 and higher)
x412x4+(terms with x6,…)=121+(terms with x2)→121.
Tip: look at the bottom first. It is x4, so you need every polynomial up to x4 from the start.
New problem
Find x→0limx−sinxex−1−x−2x2.
At x=0 the top is 1−1−0−0=0 and the bottom is 0−0=0: the form 00.
The bottom is not a single power, so expand it. If you stop at sinx=x+⋯, the bottom is x−x=0: too early again. Keep the next term, −3!x3=−6x3:
x−sinx=x−(x−6x3+120x5−⋯)=6x3−120x5+⋯
Now the bottom starts at x3. So write the top up to x3.
Write ex up to x3, with 3!=6:
ex=1+x+2x2+6x3+⋯
Take away 1+x+2x2: these three terms cancel exactly. The top is 6x3+(terms with x4 and higher).
6x3−120x5+⋯6x3+⋯=61+(terms with x2)61+(terms with x)→6161=1.
Careful: here the top and the bottom both cancel at first. Keep going on each one until something is left, and stop at the same power on both.
5 questions, 3 from past finals
What it looks like
A limit as x→∞, not x→0. Inside it, something gets small: x1, x5, e−x. Often the form is ∞−∞, ∞⋅0 or 1∞, and none of these tells you the answer.
What to do
The famous five work only near 0. So give the small thing a name: t=x1 (or u=x5, or u=e−x). As x→∞, t→0+. Write the whole limit with t only. Now it is a limit at 0: use the polynomials as in the kinds above. For a power like (1+x5)x, take ln first, then use the polynomial for ln(1+u), then raise e to the answer.
Past final · Dec 2011 · MATH 100B · Question 2(a)(iii) · 2 marks
Find the limit C=x→∞lime−xsin(e−x).
As x→∞, e−x=ex1 gets very small, and it stays positive: e−x→0+. Give it a name: u=e−x. Then u→0+, and
C=u→0+limusinu.
Now the limit is near 0, where the famous five work.
From the famous five, sinu=u−6u3+⋯ The bottom is u, so the first term is enough. One more term shows what goes to 0. Divide each term by u:
usinu=uu−6u3+⋯=1−6u2+⋯→1.
Careful: never let x→∞ inside a Taylor polynomial. sinx=x−6x3+⋯ is good only for x near 0. For large x its terms grow without limit, but sinx stays between −1 and 1. Here the thing inside sin is e−x, and it is near 0. That is why the name u makes the method work.
Past final · Dec 2012 · MATH 100A · Question 4(c) · 3 marks
Evaluate x→∞lim(1+x5)x
The power has x in it, so take ln. Let y=(1+x5)x. By the log rules, ln(Ap)=plnA, so
lny=xln(1+x5).
As x→∞ the base goes to 1 and the power goes to ∞. This form, 1∞, does not tell you the answer. The ln turns the power into a product that you can work with.
x5→0+. Give it a name: u=x5. Then x=u5, and
lny=u5ln(1+u),u→0+.
From the famous five, ln(1+u)=u−2u2+⋯ Multiply each term by u5: the u gives u5⋅u=5, and the −2u2 gives u5⋅(−2u2)=−25u.
lny=5−25u+⋯→5.
y=elny, and lny→5. So y→e5.
Careful: the answer is not 1. "One to any power is one" is true only when the base is exactly 1. Here the base is a little more than 1, and the power is huge.
Past final · Apr 2013 · MATH 100A · Question 4(d) · 3 marks
Evaluate x→∞lim(1−x2)x
Let y=(1−x2)x. By the log rules, the power comes down in front:
lny=xln(1−x2).
The form is 1∞ again: the base goes to 1 and the power goes to ∞.
x2→0+. Give it a name: t=x2. Then x=t2, and
lny=t2ln(1−t),t→0+.
Put u=−t in ln(1+u)=u−2u2+⋯ The square of −t is t2, so
ln(1−t)=−t−2t2+⋯
Multiply each term by t2: the −t gives −2, and the −2t2 gives −t.
lny=−2−t+⋯→−2.
y=elny, and lny→−2. So y→e−2=e21.
Tip: the last question and this one follow one pattern. (1+xk)x→ek for any number k: there k=5, here k=−2.
New problem
Find x→∞lim(x−x2ln(1+x1)).
Both terms grow without limit, so the form is ∞−∞: it does not tell you the answer yet. The small thing is x1. Give it a name: t=x1. Then t→0+, x=t1 and x2=t21:
x−x2ln(1+x1)=t1−t2ln(1+t).
The common bottom is t2. Write t1=t2t. So the limit is
t→0+limt2t−ln(1+t).
Now it is a limit at 0 with the form 00, like the kinds above. The bottom is t2, so write ln(1+t) up to t2. One more term shows what goes to 0.
ln(1+t)=t−2t2+3t3−⋯, so
t−(t−2t2+3t3−⋯)=2t2−3t3+⋯
The t and t cancel. The minus sign in front of the bracket changes the sign of every term in it.
t22t2−3t3+⋯=21−3t+⋯→21.
Tip: with ∞−∞, write everything with t and make one fraction first. Then it is a limit at 0 that you already know how to do.
New problem
Find x→∞limx2(1−cosx1).
As x→∞, x2→∞ and 1−cosx1→1−cos0=0. The form is ∞⋅0: it does not tell you the answer. The small thing is x1. Give it a name: t=x1, so t→0+ and x2=t21:
x2(1−cosx1)=t21−cost.
The bottom is t2, so write cost up to t2. One more term shows what goes to 0:
cost=1−2t2+24t4−⋯,1−cost=2t2−24t4+⋯
The 1 and 1 cancel, and the minus sign changes the sign of every other term.
t22t2−24t4+⋯=21−24t2+⋯→21.
So 1−cosx1 goes to 0 at the same speed as 2x21, and the x2 in front cancels exactly that. Careful: "∞ times 0" is not 0. You must find out how fast each part moves.
4 questions
What it looks like
The limit has a letter in it (a, b, k), and the question asks for the letter: "find a so that the limit exists", or "find k so that the limit equals 8".
What to do
Expand the top with the famous five and collect the powers of x. Look at every power on the top that is lower than the bottom's power. Each one must have coefficient 0: otherwise, after you divide, a power of x is left on the bottom, and the limit is ±∞ or does not exist. That gives an equation for each letter. Then the limit is the coefficient of the bottom's power on the top, divided by the bottom's leading coefficient. If the question gives the value of the limit, set that equal to the value instead.
New problem
Find the number a so that x→0limx2e2x−1−ax exists. Then find the limit.
The bottom is x2, so write e2x up to x2. One more term shows what goes to 0. Put u=2x in eu=1+u+2!u2+3!u3+⋯:
e2x=1+2x+24x2+68x3+⋯=1+2x+2x2+34x3+⋯
Here (2x)2=4x2 and (2x)3=8x3; then divide by 2!=2 and by 3!=6.
e2x−1−ax=(1−1)+(2−a)x+2x2+34x3+⋯=(2−a)x+2x2+34x3+⋯
The constants cancel by themselves. The x terms are 2x−ax=(2−a)x.
Divide each term by x2:
x2(2−a)x+2x2+34x3+⋯=x2−a+2+34x+⋯
The power x is lower than the bottom's x2. If 2−a=0, the term x2−a grows without limit as x→0: it goes to +∞ on one side of 0 and to −∞ on the other. Then the limit does not exist. So 2−a=0, which gives a=2.
With a=2, what is left is 2+34x+⋯→2. It is the coefficient of x2 on the top (2), divided by the coefficient of x2 on the bottom (1).
Careful: finding a is not the end. The question asks for the limit too.
New problem
Find the value of a for which x→0limx5sinx−x+ax3 exists, and find the value of the limit.
The bottom is x5, so write sinx up to x5. With 3!=6 and 5!=120:
sinx=x−6x3+120x5−⋯
sinx−x+ax3=(x−x)+(a−61)x3+120x5+(terms with x7,…)
The x and −x cancel by themselves. The x3 terms are −61x3+ax3=(a−61)x3. There is no x2 or x4 term: sine has odd powers only.
Divide each term by x5:
x2a−61+1201+(terms with x2,…)
The power x3 is lower than the bottom's x5. If a−61=0, the term x2a−61 grows without limit: x2 is positive on both sides of 0, so it goes to +∞ or to −∞, by the sign of a−61. So a−61=0, which gives a=61.
With a=61, what is left is 1201+(terms with x2,…)→1201: the coefficient of x5 on the top, divided by 1.
Tip: 1201=5!1 is the next coefficient of sinx. The ax3 with a=61 cancels the −6x3 of sinx, so only 5!x5 is left to meet the bottom.
New problem
Find the number k>0 for which x→0limx21−cos(kx)=8.
Put u=kx in cosu=1−2u2+24u4−⋯ Square the k too: (kx)2=k2x2 and (kx)4=k4x4.
cos(kx)=1−2k2x2+24k4x4−⋯,1−cos(kx)=2k2x2−24k4x4+⋯
The bottom is x2. The powers lower than x2 on the top are the constant and x. The constant is 1−1=0, and there is no x term (cosine has even powers only). So the limit exists for every k. This time the equation comes from the value of the limit.
Divide each term by x2:
x22k2x2−24k4x4+⋯=2k2−24k4x2+⋯→2k2.
Set the limit equal to 8:
2k2=8,k2=16,k=4 or k=−4.
The question wants k>0, so k=4.
Careful: (kx)2 is k2x2, not kx2. If you forget to square the k, you get 2k=8 and the wrong answer 16.
New problem
Find the numbers a and b for which x→0limx3ln(1+x)−ax−bx2 exists, and find the value of the limit.
The bottom is x3, so write ln(1+x) up to x3 (from the famous five):
ln(1+x)=x−2x2+3x3−⋯
ln(1+x)−ax−bx2=(1−a)x+(−21−b)x2+3x3+(terms with x4,…)
The x terms are x−ax=(1−a)x. The x2 terms are −21x2−bx2=(−21−b)x2.
The bottom is x3, and there are two lower powers on the top: x and x2. Each needs coefficient 0. If even one is not 0, a power of x is left on the bottom after you divide by x3, and the limit is ±∞ or does not exist.
1−a=0⇒a=1,−21−b=0⇒b=−21.
Check: −bx2 with b=−21 is +2x2, and it cancels the −2x2 of ln(1+x).
With these a and b the top is 3x3+(terms with x4,…). Divide by x3:
31+(terms with x)→31.
Tip: a and b came out as the first two coefficients of ln(1+x). When the letters sit in front of the low powers, they must copy the function's own polynomial, up to just below the bottom's power.
3 questions
What it looks like
The question gives a Taylor polynomial Tn(x) of a function, but not the function itself. Then it asks for a limit with f(x) in it.
What to do
Near the centre, f(x)=Tn(x)+Rn(x), where the error Rn(x)=f(x)−Tn(x) goes to 0 faster than xn: xnRn(x)→0. This is true whenever f has the n derivatives that Tn is built from. So in a limit you can write Tn(x)+Rn(x) in place of f(x), as long as the bottom's lowest power is at most xn: every Rn part then goes to 0. In particular, x→0limxnf(x)−Tn(x)=0 always.
New problem
The degree 3 Maclaurin polynomial of f is T3(x)=2−x+4x2−5x3.
(a) Find x→0limx2f(x)−2+x.
(b) Find x→0limx3f(x)−T2(x).
You do not know f, but you know it near 0:
f(x)=2−x+4x2−5x3+R3(x),x3R3(x)→0 as x→0.
You do not know R3, and you do not need it. All you use is that it goes to 0 faster than x3.
The 2 and the −x cancel: f(x)−2+x=4x2−5x3+R3(x). Divide each term by x2:
x24x2−5x3+R3(x)=4−5x+x2R3(x).
The last part goes to 0: x2R3(x)=x⋅x3R3(x)→0⋅0=0. So the limit is 4.
T2 is T3 without its x3 term: T2(x)=2−x+4x2. So
f(x)−T2(x)=−5x3+R3(x),x3−5x3+R3(x)=−5+x3R3(x)→−5.
Each limit picks out one coefficient: the first one left on the top after the lower terms are taken away. 4=c2=2!f′′(0) and −5=c3=3!f′′′(0).
Careful: with T3 you can go up to x3 on the bottom, not further. For x4 on the bottom you would need T4.
New problem
The degree 4 Maclaurin polynomial of g is T4(x)=1+3x2−x4. Find x→0lim1−cosxg(x)−1.
cosx=1−2x2+24x4−⋯, so
1−cosx=2x2−24x4+⋯
The bottom starts at x2. That is at most x4, so the T4 you are given is enough (even T2 would be).
g(x)=1+3x2−x4+R4(x), where x4R4(x)→0. The 1 cancels:
g(x)−1=3x2−x4+R4(x).
Divide the top and the bottom by x2. On the top, x2R4(x)=x2⋅x4R4(x)→0⋅0=0.
21−24x2+⋯3−x2+x2R4(x)→213=3⋅2=6.
Tip: divide the top and the bottom by the same power, x2. Then each part has a limit you can read off.
New problem
T2(x)=3+2x−x2 is the degree 2 Maclaurin polynomial of h. What is x→0limx2h(x)−3−2x+x2? Explain why. Then explain why, knowing only T2, you could not find the same limit with x3 on the bottom.
Put the last three terms in a bracket. Careful with the signs: −3−2x+x2=−(3+2x−x2).
h(x)−3−2x+x2=h(x)−(3+2x−x2)=h(x)−T2(x).
The top is exactly the error R2(x) of T2.
T2 is built so that its value, slope and second derivative at 0 match those of h. That makes the error go to 0 faster than x2: x2R2(x)→0. So the limit is 0.
If h has a third derivative near 0, the error bound shows it with numbers: ∣R2(x)∣≤3!M∣x∣3, so
x2R2(x)≤6M∣x∣→0.
Now the limit is x→0limx3R2(x), and that depends on the x3 term of h. T2 does not show that term. Two functions with the same T2:
The same T2 gives two different answers, so T2 alone cannot decide the limit. You would need T3: the limit is its x3 coefficient, c3=3!h′′′(0).
The rule: when you know Tn, the bottom can go up to xn, and no further.
A Taylor polynomial gives an estimate: Tn(x) is close to f(x), but not equal. This tab answers three questions the exam asks: how far off can the estimate be, is it too big or too small, and how many terms do you need. First, two words that sound alike but mean different things.
The error
error=f(x)−Tn(x)
The error bound
∣error∣≤bound
A bound is a promise
A bus company cannot tell you exactly how late your bus will be. But it promises: never more than 10 minutes late. The real delay is like the error: you do not know it. The 10 minutes is like the error bound: you know it, and the delay is at most that.
What the exam asks for
| The question says | It wants |
|---|---|
| "estimate the error", "an upper bound for the error", "how large can the error be", "accurate to within", "show that the error is less than ..." | the bound |
| "overestimate or underestimate?", "too large or too small?", "is T2(8.1) larger than 38.1?" | the sign of the error |
| "how many terms", "which degree" | the smallest n whose bound is small enough |
No question asks for the exact error. It cannot: nobody can find it without knowing f(x).
Taylor's theorem tells us exactly what the error is, with one unknown number in it, c:
for some number c between a and x
It looks exactly like the next term of the polynomial, with one change: the derivative is at c, not at a. (This is the Lagrange remainder.)
Four facts about c
You have met c before: the Mean Value Theorem
You drive 100 km in exactly 1 hour. Then at some moment your speedometer showed exactly 100 km/h. You know that moment exists, but not when it was. c is like that moment. In fact, with n=0, Taylor's theorem is the Mean Value Theorem: f(x)−f(a)=f′(c)(x−a).
Why can't we find c?
To find c you would need the real error. The real error needs f(x): the number we are trying to estimate. So nobody can find c, and the exam never asks for it.
So what do we do? Take the worst c
Every c between a and x gives a possible error. The real error is one of them. A bound must be true whichever c it is, so use the c that makes ∣f(n+1)(c)∣ as large as it can be. That largest value is M.
The example: estimate e with T2(1) = 1 + 1 + 12 = 52, for ex about 0. Taylor's theorem says
error = e − 52 = ec3! · 13 for some c between 0 and 1.
If c = 0.40, the error would be e0.406 = 0.249
✓ Below the bound 1/2, whatever c is.
Move c. Every c between 0 and 1 gives a possible error, from 1/6 up to e/6. The real error is one of them, but in the exam we cannot know which. The bound has to be true for every possible c, so we take the worst one: c = 1, which gives e/6. With e < 3, that is at most 3/6 = 1/2.
We cannot find c, so we replace ∣f(n+1)(c)∣ by the largest value it can have for any c between a and x. Call that value M. The equation for the error becomes an inequality: the bound.
M = the largest value of ∣f(n+1)∣ between a and x
How to find M
The linear approximation version
For T1 (the tangent line) the bound is 2M∣x−a∣2, with M the largest ∣f′′∣. Older exams print this formula in the question.
Common mistakes
The exampleEstimate e0.1 with T2 about 0. How far off can it be? Is it too big or too small?
ExampleT2(x)=1+x+2x2, so T2(0.1)=1+101+2001=200221.
Examplen+1=3: f′′′(x)=ex.
Exampleex increases, so on [0,0.1] the largest is e0.1<e<3. Take M=3.
Example3!3(101)3=21⋅10001=20001.
Exampleec>0 and (0.1)3>0: the error is positive, so T2(0.1) is too small.
Example200221<e0.1<200221+20001=20002211.
The error is (n+1)!f(n+1)(c)(x−a)n+1. The factorial is positive, so look at two signs: the next derivative, and (x−a)n+1. A positive error means f>Tn: the estimate is too small (an underestimate).
| x to the right of a | x to the left of a | |
|---|---|---|
| f(n+1)>0 there | too small | n odd: too small. n even: too big. |
| f(n+1)<0 there | too big | n odd: too big. n even: too small. |
For the tangent line: concavity
With n=1 the next derivative is f′′. Concave down (f′′<0): the tangent line is above the curve, so the estimate is too big. Concave up: too small. See concavity.
To the left, the sign can flip
If x<a, then (x−a)n+1 is negative when n+1 is odd. Check this sign every time.
Run the bound backwards. Try n=1,2,3,… until the bound is small enough. Example: estimate e0.1 with an error less than 10−6=10000001. As before, M=3 works for every n.
| n | (n+1)!3(101)n+1 | below 10−6? |
|---|---|---|
| 2 | 6⋅10003=20001 | no |
| 3 | 24⋅1043=800001 | no |
| 4 | 120⋅1053=40000001 | yes |
So T4 is enough: 1+x+2x2+6x3+24x4 at x=0.1.
Estimate a number, decide if the estimate is too big or too small, and find a bound for the error. Past final questions first, oldest first, then new ones.
3 kinds · 15 questions · 12 from past finals (2005 to 2016)
The past final questions are from UBC final exams. The solutions are written by Learn4Less. Learn4Less is not affiliated with UBC.
3 questions, 1 from past finals
What it looks like
The question gives a number you cannot find without a calculator, like ln(0.9), 417 or e0.1, and asks you to estimate or approximate it: "use the linear approximation", "use the quadratic approximation", "use T3".
What to do
Name the function f. Choose the centre a close to the number, where f and its derivatives are easy without a calculator (ln1=0, e0=1, 16=4). Or turn the number into a famous one: ln(1.2)=ln(1+0.2). Build Tn, put in x, and keep the answer as a fraction.
Past final · Dec 2011 · MATH 100C · Question 6 · 10 marks
In this problem, you will approximate ln(0.9) in two ways: one using linear approximation and the other using quadratic approximation. You may find it useful to draw the graph of ln(x) for x near 1 to help you answer some parts of this question.
(a) Use the linear approximation to f(x)=ln(x) at a=1 to approximate ln(0.9).
(b) Use the formula ∣Error∣≤2M(x−a)2, where M>0, to estimate an error bound for your approximation of ln(0.9) in part (a). It will be useful to remember how to find such an M.
(c) Is your approximation for ln(0.9) too large or too small? Explain. Use this information together with the error bound you found in part (b) to construct an interval you can guarantee contains the true value of ln(0.9).
(d) Use the quadratic approximation (second degree Taylor polynomial) to f(x)=ln(x) centred at a=1 to approximate ln(0.9).
(e) Compare the error bound for the linear approximation to ln(0.9) you found in part (b) to the magnitude of the 2nd degree term of the quadratic approximation to ln(0.9). Which do you expect to be larger and why?
The function is f(x)=lnx, the centre is a=1, and we put in x=0.9. The centre 1 is close to 0.9, and ln1=0 is easy.
f(1)=ln1=0. The derivative is f′(x)=x1, so f′(1)=1. The linear approximation is
T1(x)=0+1⋅(x−1)=x−1.
Put in x=0.9: T1(0.9)=0.9−1=−0.1=−101.
M is the largest value of ∣f′′(x)∣ between a=1 and x=0.9 (see the error bound).
Write x1=x−1. The power rule gives f′′(x)=−x−2=−x21, so ∣f′′(x)∣=x21. A smaller x makes the bottom smaller and the fraction bigger. So on 0.9≤x≤1 it is largest at the left end, x=0.9:
M=0.921=0.811=81100.
Also (x−a)2=(0.9−1)2=(−0.1)2=1001. So
∣Error∣≤21⋅81100⋅1001=1621.
The 100 on top and the 100 on the bottom cancel, and 2⋅81=162.
f′′(x)=−x21<0 for every x, so lnx is concave down. A concave-down curve lies below its tangent lines (see concavity). So the tangent-line value −101 is too large.
The true value is below −101, and by at most 1621. The common denominator of 10 and 162 is 810:
−101−1621=−81081−8105=−81086=−40543.
So −40543≤ln(0.9)<−101.
The tangent line T1 is above lnx on both sides of 1, because lnx is concave down. At x=0.9 it gives a value that is too large.
f′′(1)=−121=−1. Divide by 2!=2: the coefficient is −21. So
T2(x)=(x−1)−21(x−1)2.
Put in x=0.9, with x−1=−101 and (x−1)2=1001:
T2(0.9)=−101−21⋅1001=−101−2001=−20020−2001=−20021.
The 2nd degree term at x=0.9 is −2001. Its magnitude is 2001. The error bound from (b) is 1621.
1621>2001, because 162<200. We expect the bound to be larger. Both numbers are 21⋅(something)⋅1001. The 2nd degree term uses ∣f′′(1)∣=1, the smallest value of ∣f′′∣ on [0.9,1]. The bound uses M=81100, the largest. A bound must cover the worst case, so it is bigger.
Careful: M is the largest ∣f′′∣ between a and x, not the value at the centre.
New problem
Use the Maclaurin polynomial of degree 3 of ln(1+x) to estimate ln(1.2). Give your answer as a fraction.
The polynomial is about 0, so we need ln(1.2) in the form ln(1+x):
ln(1.2)=ln(1+0.2).
So x=0.2=51 (see logarithm rules). Do not put in x=1.2: the 1 is already in ln(1+x).
This is one of the famous five. To see where it comes from, write (1+x)−1 for 1+x1 and use the power rule:
| derivative | at x=0 | divide by | coefficient |
|---|---|---|---|
| f(x)=ln(1+x) | f(0)=0 | 0!=1 | 0 |
| f′(x)=(1+x)−1 | f′(0)=1 | 1!=1 | 1 |
| f′′(x)=−(1+x)−2 | f′′(0)=−1 | 2!=2 | −21 |
| f′′′(x)=2(1+x)−3 | f′′′(0)=2 | 3!=6 | 31 |
T3(x)=x−2x2+3x3.
(51)2=251 and (51)3=1251. So
T3(51)=51−251÷2+1251÷3=51−501+3751.
The common denominator of 5, 50 and 375 is 750 (see fractions):
750150−75015+7502=750150−15+2=750137.
So ln(1.2) is about 750137. Tip: the next term, −4x4, is negative, so this estimate is a little too big. The next kind of question shows how to decide that.
New problem
Use the third degree Taylor polynomial of f(x)=ex about a=0 to estimate e0.1. Give your answer as a fraction.
Every derivative of ex is ex. At a=0 each one is e0=1, an easy number. With a=0.1 you would need e0.1 itself, the number you want to find. So the centre is 0 and you put in x=0.1=101.
Each f(k)(0)=1. Divide by k!: the coefficients are 1, 1, 21, 61 (because 2!=2 and 3!=6). This is the famous one:
T3(x)=1+x+2x2+6x3.
(101)2=1001 and (101)3=10001. So
T3(101)=1+101+2001+60001.
The common denominator is 6000:
60006000+6000600+600030+60001=60006631.
Careful: the last term is 10001÷6=60001. Do not forget to divide by 3!. Every term of ex is positive here, so each new term makes the estimate bigger: T3 is a little too small.
3 questions, 2 from past finals
What it looks like
The question asks if an estimate is "too large or too small", an "overestimate" or an "underestimate", or "is Tn(x) larger than f(x)?".
What to do
Write the error (the Lagrange form): f(x)−Tn(x)=(n+1)!f(n+1)(c)(x−a)n+1, with c between a and x. Find the sign of the next derivative f(n+1) between a and x, and the sign of (x−a)n+1. Positive times positive: f is bigger, so Tn is an underestimate. A negative product: an overestimate. For n=1 this is concavity.
Past final · Dec 2011 · MATH 100A · Question 4 · 7 marks
Let T2(x) be the second degree Taylor polynomial about a=8 for f(x)=3x.
(a) Find T2(x) and simplify your answer.
(b) Is T2(8.1) larger than 38.1? Please justify your answer.
Write the root as a power: 3x=x1/3. Use the power rule three times (we need f′′′ for part (b)):
f′(x)=31x−2/3,f′′(x)=31⋅(−32)x−5/3=−92x−5/3,
f′′′(x)=−92⋅(−35)x−8/3=2710x−8/3.
81/3=2, 8−2/3=221=41, 8−5/3=251=321.
| at x=8 | divide by | coefficient |
|---|---|---|
| f(8)=2 | 0!=1 | 2 |
| f′(8)=31⋅41=121 | 1!=1 | 121 |
| f′′(8)=−92⋅321=−1441 | 2!=2 | −2881 |
In the last row, 9⋅322=2882=1441, then divide by 2!=2.
T2(x)=2+121(x−8)−2881(x−8)2.
Taylor's theorem (the Lagrange form, see the error bound) says: for some number c between 8 and 8.1,
38.1−T2(8.1)=3!f′′′(c)(8.1−8)3.
We only need the sign of the right side.
f′′′(c)=2710c−8/3>0, because c>0. Also 3!=6>0 and (8.1−8)3=(0.1)3>0.
So the right side is positive: 38.1−T2(8.1)>0, so 38.1>T2(8.1). No: T2(8.1) is smaller than 38.1. It is an underestimate.
Careful: f′′<0 (concave down) tells you about the tangent line T1 only. For T2 you need the next derivative, f′′′.
To the right of 8 the parabola T2 is below 3x; to the left it is above. At x=8.1 the gap is too small to see, but it is on the same side: T2 is below.
Past final · Dec 2016 · MATH 100A · Question 13(b) · 6 marks
Let Tn(x) be the nth degree Taylor polynomial centred at x=1 for the function f(x)=log(x). Remember that logx=logex=lnx.
For which value(s) of n will Tn(1.1) give an underestimate of log(1.1)? You must justify your answer.
Write x1=x−1 and use the power rule again and again:
f′(x)=x−1,f′′(x)=−x−2,f′′′(x)=2x−3,f(4)(x)=−6x−4, …
The pattern is f(k)(x)=(−1)k−1xk(k−1)!. For x>0 the signs take turns: an odd k gives a positive derivative, an even k gives a negative one.
The Lagrange form (see the error bound) says: for some c between 1 and 1.1,
log(1.1)−Tn(1.1)=(n+1)!f(n+1)(c)(1.1−1)n+1=(n+1)!f(n+1)(c)(0.1)n+1.
(0.1)n+1>0 and (n+1)!>0. So the error has the sign of f(n+1)(c).
f(n+1)(c) is positive when n+1 is odd, that is, when n is even.
T0(x)=log1=0, and 0<log(1.1): under, and 0 is even. T1(x)=x−1 is the tangent line; logx is concave down, so the tangent line is above the curve (see concavity): over, and 1 is odd. This matches.
Tip: here x−a=0.1 is positive, so only the derivative decides the sign.
New problem
Let Tn(x) be the Maclaurin polynomial of degree n of f(x)=ex. Is every Tn(21) an underestimate of e1/2? What about Tn(−21) as an estimate of e−1/2?
Every derivative of ex is ex, so f(n+1)(c)=ec. The Lagrange form (see the error bound) says: for some c between 0 and x,
ex−Tn(x)=(n+1)!ecxn+1.
ec>0 for every c, and (n+1)!>0. So the error has the sign of xn+1.
(21)n+1>0 for every n. So the error is positive: e1/2>Tn(21). Yes: every Tn(21) is an underestimate.
You can also see it from the terms: 1+21+81+⋯ are all positive, so each new term makes the sum bigger, and it never reaches e1/2.
Now x−a=−21 is negative. A negative number to an even power is positive; to an odd power it is negative.
T0=1, and e−1/2=e1<1: over (n=0 is even). T1(−21)=1−21=21. Since e<4, e<2, so e1>21: under (n=1 is odd). This matches.
Careful: when x is to the left of the centre, the sign of (x−a)n+1 changes with each degree. Always check both signs: the derivative and the power.
To the right of 0, every Tn is below ex. To the left, T1 and T3 are below and T2 is above: the side changes with each degree.
9 questions, 9 from past finals
What it looks like
The question asks for an "error bound", an "upper bound for the error", "Taylor's inequality", "accurate to within 10−9", "how many terms", or asks you to show or prove that an error is at most some number.
What to do
Use ∣f(x)−Tn(x)∣≤(n+1)!M∣x−a∣n+1, where M is the largest ∣f(n+1)∣ between a and x: often at an end. For "how many terms", write the bound as a formula in n and try n=1,2,3,… until it is small enough. For a proof, use the Lagrange form f(x)−Tn(x)=(n+1)!f(n+1)(c)(x−a)n+1, with c between a and x.
Past final · Dec 2005 · MATH 100A · Question 1(h)–(i) · 6 marks
(h) Use a suitable linear approximation to estimate (17)1/4. Give your answer as a fraction with integer numerator and denominator.
(i) What does Taylor's Inequality give as an upper bound to the error in part (h)?
The function is f(x)=x1/4. Choose a=16: it is close to 17, and 161/4=2 is easy because 24=16.
The power rule gives f′(x)=41x−3/4. Since 163/4=23=8, f′(16)=41⋅81=321. So
T1(17)=2+321(17−16)=2+321=3264+321=3265.
For n=1 we need M, the largest ∣f′′∣ between 16 and 17 (see the error bound).
f′′(x)=41⋅(−43)x−7/4=−16x7/43,∣f′′(x)∣=16x7/43.
A bigger x makes the bottom bigger and the fraction smaller. So on [16,17] it is largest at x=16. Since 167/4=27=128:
M=16⋅1283=20483.
∣Error∣≤2!M∣17−16∣2=20483⋅21⋅1=40963.
Here M is at the centre, the left end, because ∣f′′∣ only decreases.
Past final · Dec 2006 · MATH 100A · Question 1(l) · 3 marks
A function f(x) has third derivative equal to 10/(1−x). The second-degree Taylor polynomial T2(x) at 0 is used to approximate f(0.1). Find the upper bound for the error given by Taylor's Inequality, i.e. the upper bound for ∣f(0.1)−T2(0.1)∣.
For T2 we have n=2, so we need the third derivative, and the question gives it. With a=0 and x=0.1 (see the error bound):
∣f(0.1)−T2(0.1)∣≤3!M∣0.1−0∣3,
where M is the largest ∣f′′′(x)∣ for 0≤x≤0.1.
For 0≤x≤0.1 the bottom 1−x is positive, so ∣f′′′(x)∣=1−x10. A smaller bottom gives a bigger fraction. The bottom is smallest at x=0.1: 1−0.1=0.9=109. So
M=10÷109=10⋅910=9100.
(0.1)3=10001 and 3!=6:
9100⋅61⋅10001=54000100=5401.
Careful: M is not f′′′(0)=10. That is the smallest value on the interval, and it would give 6001, which is not a bound.
Past final · Dec 2009 · MATH 100A · Question 7 · 4 marks
Determine what degree Maclaurin polynomial for ln(1−x) that should be used to approximate ln(1.1), so that the approximation is guaranteed to be accurate to within 10−9.
1−x=1.1 gives x=−0.1=−101. So we use Tn about 0 at x=−101, and the interval is −101≤t≤0.
The chain rule gives a factor −1 each time (the derivative of 1−x):
f′(x)=−(1−x)−1,f′′(x)=−(1−x)−2,f′′′(x)=−2(1−x)−3, …
The pattern is f(k)(x)=−(1−x)k(k−1)!. So ∣f(n+1)(t)∣=(1−t)n+1n!.
For −101≤t≤0, the bottom 1−t is between 1 and 1011, so it is at least 1. Then (1−t)n+1≥1, and ∣f(n+1)(t)∣≤n!. It is largest at t=0: M=n!.
∣Error∣≤(n+1)!n!(101)n+1=(n+1)⋅10n+11,
because (n+1)!=(n+1)⋅n! (see factorials).
We need (n+1)⋅10n+11≤10−9=10⋅1081.
| n | bound | at most 10−9? |
|---|---|---|
| 7 | 8⋅1081 | no: 8<10, so it is bigger |
| 8 | 9⋅1091 | yes |
So use degree 8. Tip: write 10−9 with the same power of 10 as the bound, then compare the other numbers.
Past final · Dec 2010 · MATH 100A · Question 7 · 6 marks
Determine and carefully justify an upper bound for the absolute value of the error that would result if the second degree Maclaurin polynomial T2(x) was used to estimate f(1), where f(x)=ex(x2−7x+15).
Your upper bound may be left unsimplified ("calculator-ready") but it must be a specific numerical value. [Note: You are not required to find T2(x), and no credit will be given for finding T2(x).]
The Lagrange form (see the error bound) says: for some c between 0 and 1,
f(1)−T2(1)=3!f′′′(c)(1−0)3=6f′′′(c).
So we need f′′′, and the largest ∣f′′′∣ on [0,1].
The product rule with (ex)′=ex gives (exp)′=ex(p+p′): keep the bracket and add its derivative.
f′(x)=ex(x2−7x+15+2x−7)=ex(x2−5x+8),
f′′(x)=ex(x2−5x+8+2x−5)=ex(x2−3x+3),
f′′′(x)=ex(x2−3x+3+2x−3)=ex(x2−x)=exx(x−1).
For 0≤c≤1, bound each factor:
So ∣f′′′(c)∣≤4e.
∣f(1)−T2(1)∣≤61⋅4e=24e.
A simpler bound is also correct: ∣c(c−1)∣≤1 on [0,1] gives 6e. Any number that is surely at least ∣f′′′∣ works; a smaller one is better. Keep e as a symbol: the question allows it.
Past final · Dec 2012 · MATH 100A · Question 11 · 5 marks
Give a complete proof that for all x satisfying −1≤x≤1, 0≤cos(x)−(1−2x2)≤241
Hint: use a Taylor polynomial.
The derivatives of cosx are cosx,−sinx,−cosx,sinx,cosx. At 0 they are 1,0,−1,0,1 (see trig values). So
T2(x)=1−2x2.
The x3 coefficient is 0÷3!=0, so T3(x) is the same polynomial: T3(x)=1−2x2.
Use n=3. The Lagrange form (see the error bound) says: for each x there is a number c between 0 and x with
cosx−(1−2x2)=4!coscx4=24coscx4.
Why T3 and not T2: with T2 the error is 6sincx3, which can be negative, and it only gives the bound 61.
If −1≤x≤1, then c is also between −1 and 1. Since π>3, 2π>23>1. So c is between −2π and 2π, where cosine is positive:
0<cosc≤1.
For −1≤x≤1: 0≤x4≤1. (A fourth power is never negative.)
Both cosc and x4 are between 0 and 1, so their product is too. Divide by 24:
0≤24coscx4≤241.
That is, 0≤cosx−(1−2x2)≤241 for all −1≤x≤1. ■
Tip: when the next coefficient is 0 (here the x3 one), use the error of the higher polynomial. It gives a smaller bound and a sign you can read.
Past final · Apr 2013 · MATH 100C · Question 8 · 10 marks
(a) Write out the third-order Maclaurin polynomial for the function ln(1+x).
(b) How many terms in the Maclaurin polynomial should you keep if you wish to approximate ln(1.1) with an error below 10−6?
Write 1+x1=(1+x)−1 and use the power rule:
| derivative | at x=0 | divide by | coefficient |
|---|---|---|---|
| f(x)=ln(1+x) | f(0)=0 | 0!=1 | 0 |
| f′(x)=(1+x)−1 | f′(0)=1 | 1!=1 | 1 |
| f′′(x)=−(1+x)−2 | f′′(0)=−1 | 2!=2 | −21 |
| f′′′(x)=2(1+x)−3 | f′′′(0)=2 | 3!=6 | 31 |
T3(x)=x−2x2+3x3.
ln(1.1)=ln(1+0.1), so x=101. The derivatives follow the pattern
f(n+1)(x)=(−1)n(1+x)n+1n!,∣f(n+1)(t)∣=(1+t)n+1n!.
For 0≤t≤101, the bottom (1+t)n+1 is at least 1. So ∣f(n+1)(t)∣≤n!, largest at t=0: M=n!. Then (see the error bound)
∣Error∣≤(n+1)!n!(101)n+1=(n+1)⋅10n+11.
| n | bound | below 10−6? |
|---|---|---|
| 3 | 4⋅1041 | no |
| 4 | 5⋅1051 | no: 5⋅105<106, so it is bigger |
| 5 | 6⋅1061 | yes |
So use degree 5. Its constant term is 0, so it has five terms:
x−2x2+3x3−4x4+5x5.
Keep 5 terms.
Past final · Dec 2014 · MATH 100A · Question 11(b) · 5 marks
Let g(x)=ex+e−x.
Your friend uses a degree-2 Taylor polynomial about a=0 to approximate g(1). Show that the absolute error in their approximation is no greater than 4/9.
By the chain rule, (e−x)′=−e−x. So the derivatives take turns:
g′=ex−e−x,g′′=ex+e−x,g′′′=ex−e−x.
(Your friend's polynomial: g(0)=2, g′(0)=0, g′′(0)=2, so T2(x)=2+x2 and T2(1)=3. The error does not need it.)
The Lagrange form (see the error bound) says: for some c between 0 and 1,
g(1)−T2(1)=3!g′′′(c)(1−0)3=6ec−e−c.
ex−e−x increases: ex increases and e−x decreases, so subtracting it adds more and more. At 0 it is 1−1=0; at 1 it is e−e−1. So for 0≤c≤1:
0≤ec−e−c≤e−e1,∣g(1)−T2(1)∣≤6e−1/e.
You have no calculator, so use e<3. Then e1>31, so subtracting e1 takes away more than 31:
e−e1<3−31=38.
So the error is less than 38÷6=188=94. Tip: bound e by easy numbers, like 2<e<3.
Past final · Dec 2014 · MATH 100C · Question 1(m) · 3 marks
Estimate sin(0.12)−0.12 by considering the linear approximation of sinx at x=0.
At 0: sin0=0 and cos0=1, so the linear approximation is T1(x)=x. It says sin(0.12) is about 0.12. The question asks how big the error sin(0.12)−0.12 can be.
For n=1 (see the error bound):
sin(0.12)−0.12≤2M(0.12−0)2,
where M is the largest ∣f′′∣ between 0 and 0.12. Here f′′(x)=−sinx, and ∣sinx∣≤1 always. So M=1 works.
(0.12)2=0.0144, and half of it is 0.0072:
sin(0.12)−0.12≤2(0.12)2=0.0072.
As a fraction, 0.12=253, so this is 6259÷2=12509.
A smaller bound: for sinx the x2 coefficient is −sin0÷2=0, so T1=T2, and the error of T2 with M=1 gives 6(0.12)3.
Past final · Dec 2015 · MATH 100A · Question 11(b) · 4 marks
If f(3)(x)=10−x2xsin(x)+x2cos(x), show that the absolute value of the error when we approximate f(1) using the second Maclaurin polynomial is less than 0.04=1/25.
The Lagrange form (see the error bound) says: for some c between 0 and 1,
∣f(1)−T2(1)∣=3!∣f(3)(c)∣⋅13=6∣f(3)(c)∣.
For 0<c<1: ∣sinc∣≤1, ∣cosc∣≤1, c<1 and c2<1. The size of a sum is at most the sum of the sizes:
∣csinc+c2cosc∣≤c⋅1+c2⋅1<1+1=2.
c2<1, so 10−c2>10−1=9. The bottom is positive and bigger than 9.
A bigger top and a smaller bottom make a bigger fraction, so
∣f(3)(c)∣<92,∣f(1)−T2(1)∣<92÷6=542=271.
27>25, so 271<251=0.04. Done.
Careful: for a bound, the bottom must be its smallest value. Using 10−c2<10 would make the fraction smaller, not bigger.
A new problem every time, with numbers that work on paper
Pick a kind. Solve the problem on paper first, with no calculator. Then type each coefficient: every box is checked on its own. If you cannot continue, open a hint. The answer shows once you have checked, or used every hint.
More of the same kind: Newton's method and Euler's method, related rates and optimization. One recipe per kind of question: the Math 100 Problem Playbook.
