1.2.7 · D5Calculus & Optimization Basics

Question bank — Taylor series approximation

1,529 words7 min readBack to topic

Before we start, one word we will lean on constantly: local. A statement is local at if it only claims to be true for close to — a small neighborhood around that one point. Taylor's whole promise is local, and most traps below come from forgetting that.


True or false — justify

A Taylor polynomial of order matches AND its first derivatives at .
True — that is literally how the coefficients are chosen; is set so the -th derivative of the polynomial equals at for every .
If two smooth functions share the same Taylor series at , they are equal near .
False — (with ) and share the all-zeros series at , yet for any . Matching every derivative at one point does not force equality.
The Maclaurin series is a different kind of series from the Taylor series.
False — Maclaurin is just the name for a Taylor series with the special choice ; nothing new is happening, only the expansion point moved to the origin.
A convergent Taylor series always converges to the function that generated it.
False — convergence of the series and equality with the function are two separate facts. The example converges (to ) everywhere but equals its function nowhere except the origin.
Adding more Taylor terms always improves accuracy at a fixed point .
False — only inside the radius of convergence. For at , each extra term makes the partial sum worse because blows up; more terms help only where the series converges.
The remainder vanishing as is what guarantees the series equals .
True — equality holds exactly when . The Taylor series "works" precisely on the set of where the leftover error can be driven to zero.
For an even function, the Maclaurin series contains only even powers of .
True — an even function has (all odd derivatives vanish at ), so every odd-power coefficient dies, leaving only — which is why has no odd terms.
A degree-1 Taylor polynomial is always the tangent line to the curve at .
True — order-1 matches value and slope, and "a line matching height and slope at a point" is the definition of the tangent; higher terms only bend it into the curve.

Spot the error

" is the 3rd-order Taylor polynomial."
The factorials are missing. Correct is ; without dividing by the higher terms are far too large.
"To approximate near , use the Maclaurin series (expand at )."
You cannot expand at — it is undefined there (and its derivatives blow up). Expand at , the point you actually care about, giving .
"The remainder is ."
The derivative is evaluated at some unknown between and , not at : . Using would make just another Taylor term, not the true error.
"Newton's method step is ."
It is — the inverse Hessian. Minimizing the 2nd-order model solves to ; using itself has the wrong units and points the wrong way (see Newton's Method, Hessian matrix).
"Gradient descent uses the second-order Taylor expansion."
Gradient descent uses only the first-order piece plus a chosen step size ; it deliberately throws away the curvature term , which is what distinguishes it from Newton (see Gradient Descent).
" is only valid because is small."
The approximation is valid because the next term is , which is tiny when is near ; it is a statement about being small, not about . At the approximation badly overshoots .
"Since all derivatives of equal , the coefficients of its Maclaurin series grow."
The derivatives evaluated at all equal , so the coefficients are , which shrink rapidly. The point of evaluation collapses the growing function to a constant .

Why questions

Why does a factorial appear in the denominator, not some other number?
Differentiating exactly times produces the factor ; dividing by is precisely what cancels it so the polynomial's -th derivative lands on .
Why does matching more derivatives improve the approximation near ?
The remainder scales like ; raising the order raises that exponent, so for the error term shrinks much faster (see Approximation error and Big-O).
Why do ML optimizers care about Taylor series at all?
A loss surface is expensive and complicated, but locally it is a simple polynomial in the step ; optimizers minimize that cheap local model instead — 1st-order gives gradient descent, 2nd-order gives Newton.
Why must the curvature term use (a positive-semidefinite Hessian) for a convex bowl?
The 2nd-order term is the local shape; if it is a bowl opening upward in every direction, which is exactly the local condition for Convex functions and guarantees the Newton step aims at a minimum, not a saddle.
Why is expanding at the right point more important than adding more terms?
Accuracy is governed by ; if is large no number of terms may converge, but shrinking by choosing near your target improves every order at once.
Why does the Taylor polynomial's error term evaluate the derivative at a mystery point ?
Because the true function bends by an amount somewhere between its bend at and at ; the Mean-Value-style captures "some representative curvature in between" without us needing to know exactly where.
Why do only odd powers survive in the series for ?
At the even-order derivatives of are , so their coefficients vanish, leaving — the series inherits 's odd symmetry.

Edge cases

What is the Taylor series of a polynomial (say degree 3) — does it ever "approximate"?
It reproduces the polynomial exactly: all derivatives above order 3 are zero, so the series truncates and the remainder is identically . Taylor of a polynomial is not an approximation, it is an equality everywhere.
What happens to the Taylor series at itself?
Every term with vanishes, leaving only ; the approximation is exact at the expansion point, with zero error, no matter the order.
Can a function be infinitely differentiable yet have a useless Taylor series?
Yes — at is smooth with every derivative zero there, so its series is and captures nothing about the true (nonzero) function; smoothness does not guarantee a helpful series.
What does a radius of convergence of mean?
The series only equals the function at the single point and diverges for every other ; the "approximation" is useless anywhere you'd actually want to move.
What if — does the 2nd-order term disappear, and is that a problem?
The quadratic term vanishes, so the local model is just a line (flat curvature at ); for Newton's method this means is singular and doesn't exist, so the pure Newton step is undefined and needs a fallback.
If exactly, what step does Newton's method compute at a stationary point where ?
— it stays put, correctly signalling it has reached a critical point (though whether it is a minimum depends on 's sign).
Recall One-line survival guide

Divide by ; the series is local; convergence equality; expand near where you stand; gradient descent = 1st order, Newton = 2nd order with .

Connections