Tutorials › Calculus II › Taylor Polynomials of Products

Taylor Polynomials · Tutorial 818 of 998

Taylor Polynomials of Products

Learn how to combine Taylor coefficients by convolution to find and check a Taylor polynomial for a product.

Beginner 10 min read

What You'll Learn

  • State the coefficient-convolution rule for a product at a chosen center.
  • Explain why the Leibniz formula gives the rule.
  • Multiply Taylor polynomials while retaining only terms through the requested degree.
  • Calculate product approximations for exponential, trigonometric, and logarithmic functions.
  • Check a product polynomial using derivatives and avoid common coefficient errors.

Why Products Require Care

A Taylor polynomial describes a function near a chosen center using powers of the displacement from that center. When two functions are multiplied, their Taylor polynomials can be multiplied too—but the coefficient of a given power in the product may come from several pairs of terms.

For instance, the coefficient of \(h^2\) in a product can receive contributions from a constant times a quadratic term, two linear terms, and a quadratic term times a constant. The rule that collects all these contributions is called coefficient convolution. It gives a systematic way to find the Taylor polynomial of a product without repeatedly differentiating that product from scratch.

Taylor Polynomials and the Product Rule

Let \(f\) and \(g\) have continuous derivatives through order \(n\) on an open interval containing \(a\). Their degree-\(n\) Taylor polynomials centered at \(a\) are

$$ T_{n,f,a}(x)=\sum_{j=0}^{n}\frac{f^{(j)}(a)}{j!}(x-a)^j, \qquad T_{n,g,a}(x)=\sum_{j=0}^{n}\frac{g^{(j)}(a)}{j!}(x-a)^j. $$

Here, \(f^{(0)}=f\), and \(0!=1\). The degree-\(n\) Taylor polynomial of \(fg\) is determined by the derivatives of the product through order \(n\). Its coefficient of \((x-a)^k\) is

$$ \frac{(fg)^{(k)}(a)}{k!} = \sum_{j=0}^{k} \frac{f^{(j)}(a)}{j!} \frac{g^{(k-j)}(a)}{(k-j)!}, \qquad 0\le k\le n. $$

Each term in the sum pairs a degree-\(j\) contribution from \(f\) with a degree-\((k-j)\) contribution from \(g\). All such pairs have combined degree \(k\).

Theorem: If \(f\) and \(g\) have continuous derivatives through order \(n\) near \(a\), then \(T_{n,fg,a}\) is obtained by multiplying \(T_{n,f,a}\) and \(T_{n,g,a}\) and retaining only terms of degree at most \(n\) in \(x-a\). Equivalently, the coefficient of \((x-a)^k\) is the sum of all products of coefficients whose degrees add to \(k\).

Terms of degree greater than \(n\) in the polynomial product cannot change any coefficient of degree at most \(n\). They are discarded for this calculation; the theorem does not assert that the full product of the two degree-\(n\) Taylor polynomials equals the Taylor polynomial of \(fg\).

Why the Convolution Rule Holds

The key fact is the Leibniz formula for derivatives of a product. For each integer \(k\ge 0\), if the necessary derivatives exist, then

$$ (fg)^{(k)}(x) = \sum_{j=0}^{k}\binom{k}{j}f^{(j)}(x)g^{(k-j)}(x). $$

This identity is a statement about the functions at every \(x\) in an interval, not just about their values at the center. That distinction matters: an equality of values at one point cannot be differentiated to obtain an identity for the next derivative.

1
Start the induction.
For \(k=0\), the sum has one term, so it says \((fg)(x)=f(x)g(x)\), which is true.
2
Differentiate the variable identity.
Assume the Leibniz formula holds for every \(x\) at order \(k\). Differentiating its right-hand side term by term gives $$ \sum_{j=0}^{k}\binom{k}{j} \left(f^{(j+1)}(x)g^{(k-j)}(x)+f^{(j)}(x)g^{(k-j+1)}(x)\right). $$
3
Collect matching terms.
In the first part of the sum, set \(r=j+1\); in the second, set \(r=j\). For each interior term, the resulting coefficient is $$ \binom{k}{r-1}+\binom{k}{r}=\binom{k+1}{r}. $$ The end terms have coefficient \(1\). Thus the sum becomes the Leibniz formula at order \(k+1\).
4
Evaluate at the center and divide.
Set \(x=a\), then divide the order-\(k\) formula by \(k!\). Since \(\binom{k}{j}/k!=1/(j!(k-j)!)\), the coefficient of \((x-a)^k\) has the stated convolution form.

This proves the product rule for Taylor coefficients. The assumption of enough derivatives ensures that each differentiation in the induction is valid through the required order.

Worked Product Approximations

Worked Example: \(e^x\cos x\) Through Degree Three

Find the degree-three Maclaurin polynomial for \(h(x)=e^x\cos x\). The relevant polynomials are

$$ T_{3,e^x,0}(x)=1+x+\frac{x^2}{2}+\frac{x^3}{6}, \qquad T_{3,\cos x,0}(x)=1-\frac{x^2}{2}. $$

Multiply and collect terms through degree three. The constant coefficient is \(1\). The coefficient of \(x\) is \(1\). For \(x^2\), the contributions are \(\frac12\cdot 1\) and \(1\cdot(-\frac12)\), giving \(\frac12-\frac12=0\). For \(x^3\), the contributions are \(\frac16\cdot 1\) and \(1\cdot(-\frac12)\), giving \(\frac16-\frac12=-\frac13\). Therefore,

$$ T_{3,h,0}(x)=1+x-\frac{x^3}{3}. $$

Check by differentiating \(h\). We have \(h(0)=1\), \(h'(x)=e^x(\cos x-\sin x)\), so \(h'(0)=1\). Also \(h''(x)=-2e^x\sin x\), so \(h''(0)=0\), and \(h'''(x)=-2e^x(\sin x+\cos x)\), so \(h'''(0)=-2\). The Taylor coefficients are \(1\), \(1\), \(0/2!\), and \(-2/3!=-1/3\), as required.

Worked Example: \((1+x)\ln(1+x)\) Through Degree Three

Find the degree-three Maclaurin polynomial for \(q(x)=(1+x)\ln(1+x)\). The logarithm is defined near \(x=0\), and its degree-three polynomial is

$$ T_{3,\ln(1+x),0}(x)=x-\frac{x^2}{2}+\frac{x^3}{3}. $$

The other factor is the exact polynomial \(1+x\). Multiplication gives

$$ (1+x)\left(x-\frac{x^2}{2}+\frac{x^3}{3}\right) =x+\left(1-\frac12\right)x^2 +\left(-\frac12+\frac13\right)x^3+\frac{x^4}{3}. $$

Discard the degree-four term. Since \(1-\frac12=\frac12\) and \(-\frac12+\frac13=-\frac16\),

$$ T_{3,q,0}(x)=x+\frac{x^2}{2}-\frac{x^3}{6}. $$

For a check, differentiate the product: \(q'(x)=\ln(1+x)+1\), \(q''(x)=1/(1+x)\), and \(q'''(x)=-1/(1+x)^2\). At zero, \(q(0)=0\), \(q'(0)=1\), \(q''(0)=1\), and \(q'''(0)=-1\). These give coefficients \(0\), \(1\), \(1/2\), and \(-1/6\), matching the result.

Worked Example: \(\sin x\cos x\) Near \(x=\pi/4\)

Find the degree-two Taylor polynomial of \(\sin x\cos x\) centered at \(a=\pi/4\). Write \(h=x-\pi/4\), and set \(r=\sqrt{2}/2\). Using the sine and cosine values and derivatives at the center,

$$ T_{2,\sin x,\pi/4}=r+rh-\frac{r}{2}h^2, \qquad T_{2,\cos x,\pi/4}=r-rh-\frac{r}{2}h^2. $$

The constant coefficient of their product is \(r^2=1/2\). The coefficient of \(h\) is \(r(-r)+r(r)=0\). The coefficient of \(h^2\) has three contributions:

$$ r\left(-\frac r2\right)+(r)(-r)+\left(-\frac r2\right)r =-\frac{r^2}{2}-r^2-\frac{r^2}{2} =-2r^2=-1. $$

Thus the degree-two polynomial is

$$ T_{2,\sin x\cos x,\pi/4}(x) =\frac12-\left(x-\frac{\pi}{4}\right)^2. $$

Check directly: \(\sin x\cos x=\frac12\sin(2x)\). At \(x=\pi/4\), the function has value \(1/2\), its first derivative is \(\cos(2x)=0\), and its second derivative is \(-2\sin(2x)=-2\). The quadratic Taylor coefficient is \(-2/2!=-1\), confirming the calculation.

A Common Coefficient Error

A frequent mistake is to omit the contribution from a pair of different-degree terms, or to omit the binomial coefficient when using the derivative form of the product rule. For example, take \(f(x)=g(x)=e^x\) at zero. Since \(f(0)=g(0)=f'(0)=g'(0)=f''(0)=g''(0)=1\), an incorrect second-derivative calculation might write

$$ (fg)''(0)\ \text{incorrectly}=f''(0)g(0)+f'(0)g'(0)+f(0)g''(0)=3. $$

The product rule applied twice has a factor of \(2\) on the middle term:

$$ (fg)''(0)=f''(0)g(0)+2f'(0)g'(0)+f(0)g''(0)=1+2+1=4. $$

Therefore the coefficient of \(x^2\) is \(4/2!=2\), not \(3/2\). Convolution shows the same result: the degree-two coefficient is \(\frac12\cdot1+1\cdot1+1\cdot\frac12=2\). In the polynomial multiplication, the two cross-products \(x\cdot x\) account for the middle contribution.

Using the Rule Reliably

For a requested degree \(n\), it is useful to organize the calculation by total degree. To find a coefficient of degree \(k\), combine only pairs of degrees that add to \(k\). This keeps the calculation manageable and prevents irrelevant higher-degree terms from obscuring the answer.

Target degreeContributions from the two factors
0degree 0 and degree 0
1degrees 0 and 1; degrees 1 and 0
2degrees 0 and 2; degrees 1 and 1; degrees 2 and 0
3degrees 0 and 3; degrees 1 and 2; degrees 2 and 1; degrees 3 and 0

The center must be consistent throughout. At a general center \(a\), the powers are powers of \(x-a\), and the coefficients come from derivatives evaluated at \(a\). At the Maclaurin center \(a=0\), those powers are simply powers of \(x\). The convolution principle is identical in either case.

This method is especially useful when the factors have familiar Taylor polynomials or when their derivatives are already known. It avoids recalculating every derivative of the product and makes clear exactly which terms determine the requested degree. Its scope here is products: combining Taylor polynomials for sums and scalar multiples uses the corresponding coefficient-by-coefficient operations.

Check Your Understanding

For each question, identify the coefficients or terms needed before carrying out the calculation.

  1. State the convolution formula for the coefficient of \((x-a)^k\) in the Taylor polynomial of \(fg\).
  2. When multiplying two degree-four Taylor polynomials, which pairs of degrees contribute to the coefficient of \((x-a)^3\)?
  3. Find the degree-two Maclaurin polynomial for \(e^x\sin x\) using product coefficients.
  4. Why must the Leibniz identity be stated for a variable \(x\) before differentiating it in an induction proof?
  5. For \(f(x)=g(x)=e^x\), what is the degree-two coefficient in the Taylor polynomial of \(fg\), and how can convolution verify it?

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon