1.2.7 · D3Calculus & Optimization Basics

Worked examples — Taylor series approximation

3,026 words14 min readBack to topic
Recall Quick reminder: what does

(factorial) mean? means "multiply all whole numbers from up to ": , , . By convention . It shows up in every Taylor coefficient because differentiating exactly times spits out , and we divide by it to cancel that factor. ::: ::: (by convention)


The scenario matrix

Every Taylor problem lives in one of these case classes. Each row is a distinct thing that can go right or wrong; the last column says which worked example nails it.

# Case class What makes it special Example
C1 Expand at , converges everywhere all derivatives finite, series = function for all Ex 1 ()
C2 Expand at must re-anchor derivatives at the new point Ex 2 ( at )
C3 Inside radius of convergence series truly rebuilds Ex 3 (geometric, )
C4 Outside radius — series diverges function is fine, series explodes Ex 3 (same, )
C5 Degenerate / pathological all derivatives but Ex 4 ()
C6 Error estimate (remainder bound) how many terms for target accuracy Ex 5 ( to 3 decimals)
C7 Real-world word problem physical quantity + units Ex 6 (pendulum period)
C8 Multivariable / ML core gradient + Hessian, matrix step Ex 7 (Newton step on a quadratic)
C9 Exam-style twist reuse a known series cleverly instead of grinding derivatives Ex 8 ( via series)

Prerequisites you may want open: Derivatives and gradients, Approximation error and Big-O, Hessian matrix, Convex functions.


Example 1 — C1: a function that converges everywhere


Example 2 — C2: expanding away from zero


Example 3 — C3 & C4: inside vs outside the radius

This one example shows both the safe and the broken case, because they use the same series.

Figure — Taylor series approximation

Example 4 — C5: the pathological function


Example 5 — C6: how many terms for a target accuracy?


Example 6 — C7: real-world word problem (with units)

Figure — Taylor series approximation

Example 7 — C8: multivariable, Newton's step on a quadratic


Example 8 — C9: exam twist (compose known series)


Recall Which case did each example hit?

Ex1 covers ::: C1 (converges everywhere) Ex2 covers ::: C2 (anchor at ) Ex3 covers ::: C3 and C4 (inside vs outside radius) Ex4 covers ::: C5 (pathological, series function) Ex5 covers ::: C6 (remainder / accuracy count) Ex6 covers ::: C7 (word problem with units) Ex7 covers ::: C8 (multivariable Newton step) Ex8 covers ::: C9 (exam twist via known series)

Connections