From Derivatives to Polynomial Coefficients
A Taylor polynomial records information about a function and its derivatives at one chosen input, called the center. The coefficient of each power of \(x-a\) comes from a particular derivative evaluated at that center. The derivative order determines which coefficient is used, and a factorial adjusts for the repeated differentiation of that power.
This tutorial focuses on calculating those coefficients. A Taylor polynomial can be formed from derivative values at a point, but that fact alone does not assert that the polynomial equals the function everywhere, or even that an infinite series represents the function. Here we work with finite polynomials and the derivatives needed to construct them.
Written term by term, the same definition is
The index \(k\) identifies both the derivative and the power: the \(k\)th derivative supplies the coefficient of \((x-a)^k\). Do not confuse the derivative value \(f^{(k)}(a)\) with the coefficient itself. The coefficient is that value divided by \(k!\).
Why the Factorial Appears
To see where the factorial comes from, consider a polynomial written in powers of \(x-a\): \(P(x)=c_0+c_1(x-a)+c_2(x-a)^2+\cdots+c_n(x-a)^n\). Differentiate a term \((x-a)^j\) exactly \(k\) times and then set \(x=a\). If \(j<k\), that term has already differentiated to zero. If \(j>k\), its \(k\)th derivative still contains a positive power of \(x-a\), so it is zero at \(x=a\). Only the term with \(j=k\) remains: its \(k\)th derivative is the constant \(k!\).
Consequently, for a polynomial written in powers of \(x-a\), its \(k\)th derivative at \(a\) is \(k!c_k\). Solving for the coefficient gives \(c_k=P^{(k)}(a)/k!\). The Taylor-polynomial formula uses the corresponding derivative values of \(f\) to set each coefficient.
A Reliable Calculation Process
Keep the center visible throughout the calculation. In particular, the powers are powers of \(x-a\), not automatically powers of \(x\). A useful process is to write down the center and degree, calculate the derivatives in order, evaluate each at the center, and only then divide by the appropriate factorial.
For a degree-\(n\) polynomial centered at \(a\), you need derivative values from order \(0\) through \(n\).
Start with \(f\), then find \(f'\), \(f''\), and continue through \(f^{(n)}\).
Find \(f(a), f'(a),\ldots,f^{(n)}(a)\).
For each order \(k\), divide \(f^{(k)}(a)\) by \(k!\) and multiply by \((x-a)^k\).
Worked Examples
Worked Example: A Polynomial Centered at \(a=2\)
Find the degree-3 Taylor polynomial for \(f(x)=x^3-2x^2+4x+1\), centered at \(a=2\).
We need the function and its first three derivatives:
Evaluate each at \(x=2\):
Now divide the derivative values by the matching factorials: \(0!=1\), \(1!=1\), \(2!=2\), and \(3!=6\). The coefficients are \(9\), \(8\), \(8/2=4\), and \(6/6=1\). Therefore,
Check by differentiating this answer. At \(x=2\), its value is \(9\). Its first derivative is \(8+8(x-2)+3(x-2)^2\), which is \(8\) at \(2\). Its second derivative is \(8+6(x-2)\), which is \(8\) at \(2\). Its third derivative is \(6\). These match \(f(2), f'(2), f''(2), f'''(2)\), respectively.
Worked Example: A Rational Function Centered at \(a=1\)
Find the degree-3 Taylor polynomial for \(f(x)=\frac{1}{3-x}\), centered at \(a=1\). The function is defined near \(1\), so its derivatives there can be evaluated.
Write \(f(x)=(3-x)^{-1}\). Repeated differentiation gives
For the first derivative, the chain-rule factors cancel: differentiating \((3-x)^{-1}\) gives \(-1(3-x)^{-2}(-1)=(3-x)^{-2}\). Evaluating all four quantities at \(1\) yields
Divide by \(0!,1!,2!,3!\), in order. The coefficients are \(1/2\), \(1/4\), \(1/4\div2=1/8\), and \(3/8\div6=1/16\). Thus
To check, differentiate the polynomial. Its first derivative at \(1\) is \(1/4\); its second derivative at \(1\) is \(2(1/8)=1/4\); its third derivative is \(6(1/16)=3/8\). Its value at \(1\) is \(1/2\). All four quantities agree with the derivatives of \(f\) evaluated at the center.
Worked Example: A Radical Function Centered at \(a=4\)
Find the degree-4 Taylor polynomial for \(f(x)=\sqrt{x}\), centered at \(a=4\). Since \(4\) is positive, the derivatives used below exist in a neighborhood of the center.
Using \(f(x)=x^{1/2}\), successive derivatives are
At \(x=4\), the powers are \(4^{1/2}=2\), \(4^{3/2}=8\), \(4^{5/2}=32\), and \(4^{7/2}=128\). Therefore,
Divide these values by the factorials \(1,1,2,6,24\), respectively. The coefficients are \(2\), \(1/4\), \(-1/64\), \(3/1536=1/512\), and \(-15/49152=-5/16384\). The result is
Check the derivative values at \(4\). The constant term gives \(T_4(4)=2\). The first derivative at \(4\) is \(1/4\). The second derivative there is \(2(-1/64)=-1/32\). The third derivative is \(3!(1/512)=3/256\), and the fourth derivative is \(4!(-5/16384)=-120/16384=-15/2048\). Each matches the corresponding derivative of \(\sqrt{x}\).
Common Mistake: Forgetting the Factorial
A frequent error is to use \(f^{(k)}(a)\) itself as the coefficient of \((x-a)^k\). For example, in the rational-function example, \(f''(1)=1/4\). Writing \(1/4\) as the coefficient of \((x-1)^2\) is incorrect. The second-order coefficient is \(f''(1)/2!=1/8\).
The error is visible by differentiating the incorrect term. If the term were \(\frac14(x-1)^2\), its second derivative would be \(2(\frac14)=\frac12\), not the required value \(f''(1)=\frac14\). With the corrected coefficient, the second derivative is \(2(\frac18)=\frac14\), as required.
What These Coefficients Do—and Do Not—Tell You
The coefficient calculations encode the function’s value and successive derivative values at the center. In particular, the degree-zero term gives the function value there; the degree-one coefficient is the first derivative there; and higher coefficients require the corresponding factorial adjustment.
These facts describe how to construct the finite Taylor polynomial. They do not, by themselves, prove that the polynomial equals \(f(x)\) away from \(a\), or determine how close its values are to the function. Those are separate questions. For this calculation, the essential requirements are that the needed derivatives exist at the center and that each derivative is evaluated and divided by the correct factorial.
Check Your Understanding
Use the derivative-based coefficient rule to answer each question.
- For a degree-2 Taylor polynomial centered at \(a=3\), what derivative values are needed, and what factorial divides each one?
- If \(f'''(a)=-12\), what is the coefficient of \((x-a)^3\)?
- For \(f(x)=x^2\) centered at \(a=1\), calculate the degree-2 Taylor polynomial using derivatives.
- A student uses \(f''(a)\) as the coefficient of \((x-a)^2\). What factor is missing, and how can differentiating the term reveal the error?
- Does constructing a Taylor polynomial from derivatives alone prove that it equals the function for every \(x\)? Explain briefly.