---
id: 1501
lang: en
translation_of: index.md
source_sha256: c33e4a19279ebc3b68445e38ed655fdb6f21f10a6d004cc284b761cf90baa3f9
title: "Taylor Expansion"
description: "A function that is differentiable everywhere on its domain can be written as a polynomial function: its Taylor expansion."
tags: ["Math","Taylor Expansion","Maclaurin Series"]
translated: 2026-11-27
translator: Claude Opus 5.5
translator_model: claude-opus-5-5
translation_notes:
  - "亦成为 read as 亦称为, “is also called”."
  - "在列出 read as 再列出, “then list”."
  - "带回原式 (sic) read as 代回原式, “substitute back into the original expression”."
---

## Definition

For a function $f(x)$, if it is differentiable everywhere on its domain, then it can be written as a polynomial function (that is, the Taylor expansion of this function). In general, we have:

$$
f(x) = \sum_{n = 0}^{\infty} \frac{f^{(n)}(x_0)}{n!}(x - x_0)^n
$$

When $x_0 = 0$, this expression is also called the Maclaurin series.

<!--more-->

## Derivation

Consider the case $x_0 = 0$ (as it turns out, $x_0$ does not affect the conclusion): Taylor's idea is to construct a polynomial function that gets infinitely close to an arbitrary function; the larger $n$ is taken, the closer it fits the original function. Let the function to approximate be $f(x)$, and let the polynomial function be $g(x)$. We consider setting this polynomial function to be:

$$
g(x) = \sum_{n = 0}^{\infty} a_n x^n
$$

To find this polynomial function, the most important thing is to find ${a_n}$. If we look at this problem from the angle of calculus, we find that higher-order derivatives can give us enough information.

Let us think about the conditions these two functions must satisfy. First, take $x=0$; then we certainly have:

$$
f(0) = g(0)
$$

This is beyond doubt. Expanding it, we find:

$$
f(0) = a_0
$$

So we have the information for the first coefficient. Now we consider the information that differentiation gives us. First we list the case of the first derivative, then the cases of the other derivatives:

$$
\begin{gathered} f'(0) = g'(0), f'(0) = a_1 \\ f''(0) = g''(0), f''(0) = 2a_2 \\ f'''(0) = g'''(0), f'''(0) = 6a_3 \\ \dots \end{gathered}
$$

This pattern is obvious; thinking about the basic differentiation formulas, you can see that $f^n(0) = (n!)a_n$. So, going the other way, we get:

$$
a_n = \frac{f^n(0)}{n!}
$$

Substituting back into the original expression:

$$
g(x) = \sum_{n = 0}^{\infty} \frac{f^n(0)}{n!} x^n
$$
