Advanced Mathematics

Taylor Series and Approximation

Writing a smooth function as a polynomial built from its derivatives at one point, to approximate it and to see how it behaves nearby.

Needs a step first: 8

Near x=ax = a, a smooth function is matched better and better by f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \cdots, its Taylor series. The first two terms are the tangent line, the next adds curvature, and for functions like exe^x, sin⁡x\sin x and cos⁡x\cos x the full series equals the function everywhere. This is how calculators compute, how physicists simplify (sin⁡θ≈θ\sin\theta \approx \theta for small angles), and the route to Euler's formula.

Where it shows up: Gradient descent relies on the first-order Taylor approximation of the loss, and near any minimum a potential looks like a parabola, which is why harmonic oscillators appear throughout physics.

How to hold it: In your head

See a Taylor series as the tangent line plus ever finer corrections, and know the first terms of exe^x, sin⁡x\sin x and cos⁡x\cos x well enough to say sin⁡θ≈θ\sin\theta\approx\theta and how good that is.

What knowing it looks like

  • Derive the Maclaurin series of exe^x, sin⁡x\sin x and cos⁡x\cos x from their derivatives.
  • Build new series from known ones by substitution, such as e−x2e^{-x^2} from exe^x.
  • Estimate a value such as 1.1\sqrt{1.1} with a few terms and say roughly how large the error is.

Test yourself

Find the Maclaurin series of ln⁡(1+x)\ln(1 + x) up to the x3x^3 term, and use it to estimate ln⁡1.1\ln 1.1.
Show the worked answer
f=ln⁡(1+x)f = \ln(1 + x), f′=(1+x)−1f' = (1 + x)^{-1}, f′′=−(1+x)−2f'' = -(1 + x)^{-2}, f′′′=2(1+x)−3f''' = 2(1 + x)^{-3}. At 00 these are 0,1,−1,20, 1, -1, 2, so ln⁡(1+x)≈x−x22+23!x3=x−x22+x33\ln(1 + x) \approx x - \frac{x^2}{2} + \frac{2}{3!}x^3 = x - \frac{x^2}{2} + \frac{x^3}{3}. With x=0.1x = 0.1: 0.1−0.005+0.000333≈0.095330.1 - 0.005 + 0.000333 \approx 0.09533. The true value is 0.095310.09531; the error is about the size of the next term, x44=0.000025\frac{x^4}{4} = 0.000025. The series only converges for −1<x≤1-1 < x \le 1.

Needs a step first: 8

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "Taylor Series and Approximation" (Undergraduate I tier): Writing a smooth function as a polynomial built from its derivatives at one point, to approximate it and to see how it behaves nearby.
I already know: Rules of Differentiation, Sequences and Series.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Find the Maclaurin series of $\ln(1 + x)$ up to the $x^3$ term, and use it to estimate $\ln 1.1$.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended