Tutorials › Linear Algebra › Differentiation Between Polynomial Spaces

Linear Maps Between Vector Spaces · Tutorial 400 of 1000

Differentiation Between Polynomial Spaces

Learn how polynomial differentiation acts on coefficient vectors and what its kernel, image, injectivity, and surjectivity reveal.

Intermediate 9 min read

What You'll Learn

  • Define differentiation as a map from P_n to P_(n−1), for n at least 1.
  • Convert the derivative of a polynomial into a rule for its coefficients.
  • Construct and use the standard-basis matrix of the differentiation map.
  • Determine the kernel and image of differentiation between these polynomial spaces.
  • Explain why the map is surjective but not injective.
  • Recognize and correct common errors involving degree bounds and coefficient positions.

Differentiation as a Map Between Polynomial Spaces

For a polynomial, differentiation lowers the degree unless the polynomial is constant, in which case its derivative is zero. That familiar operation can also be viewed as a function between two vector spaces. This viewpoint makes it possible to ask not only for the derivative of one polynomial, but also how differentiation acts on all polynomials in a specified domain, what outputs it can produce, and whether different inputs can have the same output.

Work over \(\mathbb{R}\), and let \(n\geq 1\). Write \(\mathcal{P}_n\) for the vector space of real polynomials of degree at most \(n\), including the zero polynomial. Thus \(\mathcal{P}_n\) has basis \((1,x,\dots,x^n)\). The codomain \(\mathcal{P}_{n-1}\) consists of polynomials of degree at most \(n-1\), with basis \((1,x,\dots,x^{n-1})\). Define \(D_n:\mathcal{P}_n\to\mathcal{P}_{n-1}\) by taking the usual polynomial derivative.

Definition: If \(p(x)=a_0+a_1x+\cdots+a_nx^n\), then \(D_n(p)=p'(x)=a_1+2a_2x+\cdots+na_nx^{n-1}\). The coefficients \(a_k\) may be zero, so this formula applies to every polynomial in \(\mathcal{P}_n\), including those of degree less than \(n\) and the zero polynomial.

The coefficient rule follows by differentiating each term: the derivative of \(a_kx^k\) is \(ka_kx^{k-1}\) for \(k\geq1\), while the derivative of the constant term \(a_0\) is zero. In particular, the coefficient of \(x^j\) in the output is \((j+1)a_{j+1}\) for \(0\leq j\leq n-1\). The coefficient \(a_0\) does not affect the output.

Linearity and the Coefficient Matrix

Theorem: For every \(n\geq1\), the map \(D_n:\mathcal{P}_n\to\mathcal{P}_{n-1}\) is linear: for all \(p,q\in\mathcal{P}_n\) and \(c\in\mathbb{R}\), \(D_n(p+q)=D_n(p)+D_n(q)\) and \(D_n(cp)=cD_n(p)\).

Proof. Write \(p(x)=\sum_{k=0}^n a_kx^k\) and \(q(x)=\sum_{k=0}^n b_kx^k\). Their sum has coefficient \(a_k+b_k\) on \(x^k\), so \(D_n(p+q)=\sum_{k=1}^n k(a_k+b_k)x^{k-1}\). Distributing the factors and grouping the two sums gives \(\sum_{k=1}^n ka_kx^{k-1}+\sum_{k=1}^n kb_kx^{k-1}=D_n(p)+D_n(q)\). The polynomial \(cp\) has coefficient \(ca_k\) on \(x^k\), so \(D_n(cp)=\sum_{k=1}^n k(ca_k)x^{k-1}=c\sum_{k=1}^n ka_kx^{k-1}=cD_n(p)\). Both defining conditions for a linear map hold. \(\square\)

Use the ordered bases \((1,x,\dots,x^n)\) in the domain and \((1,x,\dots,x^{n-1})\) in the codomain. The matrix of \(D_n\) has \(n\) rows and \(n+1\) columns. Its \(j\)th column is the coordinate vector of the derivative of the \(j\)th domain basis vector. Since \(D_n(1)=0\) and \(D_n(x^k)=kx^{k-1}\) for \(1\leq k\leq n\), the first column is zero and each later column has a single nonzero entry.

$$ [D_n]= \begin{bmatrix} 0&1&0&\cdots&0\\ 0&0&2&\cdots&0\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 0&0&0&\cdots&n \end{bmatrix}. $$

In this display, the entry \(k\) is in row \(k\), column \(k+1\), for \(1\leq k\leq n\). If \([p]\) denotes the coordinate vector of \(p\) in the stated domain basis, and \([D_n(p)]\) its coordinate vector in the stated codomain basis, then the matrix represents the map by \([D_n(p)]=[D_n][p]\). The two coordinate vectors use different basis lengths: the input has \(n+1\) entries and the output has \(n\).

Worked Example: Differentiating by Matrix Multiplication

Let \(D_3:\mathcal{P}_3\to\mathcal{P}_2\) and \(p(x)=2-3x+4x^2-2x^3\). Find the derivative using the coefficient matrix.

The input coordinate vector, in the basis \((1,x,x^2,x^3)\), is \((2,-3,4,-2)^\top\). The matrix of the map in the corresponding standard bases is

$$ [D_3]= \begin{bmatrix} 0&1&0&0\\ 0&0&2&0\\ 0&0&0&3 \end{bmatrix}. $$

Multiplication gives each output coefficient:

$$ [D_3(p)] = \begin{bmatrix} 0&1&0&0\\ 0&0&2&0\\ 0&0&0&3 \end{bmatrix} \begin{bmatrix}2\\-3\\4\\-2\end{bmatrix} = \begin{bmatrix} 0(2)+1(-3)+0(4)+0(-2)\\ 0(2)+0(-3)+2(4)+0(-2)\\ 0(2)+0(-3)+0(4)+3(-2) \end{bmatrix} = \begin{bmatrix}-3\\8\\-6\end{bmatrix}. $$

These are the coefficients on \(1,x,x^2\), so \(D_3(p)=-3+8x-6x^2\). Check: differentiating each term directly gives \(0-3+8x-6x^2\), the same polynomial. The matrix has shifted each coefficient down one power and multiplied it by the original exponent.

Kernel, Image, and What the Map Can Do

For a map \(T:V\to W\), its kernel is the set of inputs sent to the zero vector, \(\ker T=\{\mathbf{v}\in V:T(\mathbf{v})=\mathbf{0}\}\). Its image is the set of outputs it actually attains, \(\operatorname{im}T=\{T(\mathbf{v}):\mathbf{v}\in V\}\). A map is injective if distinct inputs always have distinct outputs, and surjective if every element of its codomain is attained. For polynomial maps, the zero vector is the zero polynomial.

Theorem: For \(n\geq1\), \(\ker D_n=\{a:a\in\mathbb{R}\}\), the space of constant polynomials, and \(\operatorname{im}D_n=\mathcal{P}_{n-1}\). Consequently, \(D_n\) is not injective and is surjective.

Proof. First, let \(p(x)=\sum_{k=0}^n a_kx^k\). It lies in \(\ker D_n\) exactly when \(D_n(p)\) is the zero polynomial. The coefficient of \(x^{k-1}\) in \(D_n(p)\) is \(ka_k\) for each \(1\leq k\leq n\). A polynomial is zero exactly when all its coefficients are zero, so \(D_n(p)=0\) exactly when \(ka_k=0\) for every such \(k\). Each integer \(k\geq1\) is nonzero in \(\mathbb{R}\), hence each equation forces \(a_k=0\). There is no condition on \(a_0\), which proves that the kernel consists precisely of constants.

Next, every output of \(D_n\) belongs to \(\mathcal{P}_{n-1}\) by its coefficient formula, so \(\operatorname{im}D_n\subseteq\mathcal{P}_{n-1}\). For the reverse inclusion, take any \(q(x)=b_0+b_1x+\cdots+b_{n-1}x^{n-1}\) in \(\mathcal{P}_{n-1}\), and form \(p(x)=b_0x+\frac{b_1}{2}x^2+\cdots+\frac{b_{n-1}}{n}x^n\). This is in \(\mathcal{P}_n\), and differentiating its terms gives \(D_n(p)=b_0+b_1x+\cdots+b_{n-1}x^{n-1}=q\). Thus every element of the codomain is attained and \(\operatorname{im}D_n=\mathcal{P}_{n-1}\). The kernel contains \(1\) and \(0\), which are distinct inputs with the same output \(0\), so \(D_n\) is not injective. Since every codomain element is attained, the map is surjective. \(\square\)

This proof uses the real field in two places: the coefficient \(k\) is nonzero, and division by \(k\) is possible. The theorem is stated over \(\mathbb{R}\), where both conditions hold. The explicit construction for a preimage also shows why surjectivity does not require injectivity: adding any constant to an input leaves its derivative unchanged.

Worked Example: Finding a Preimage of a Given Polynomial

For \(D_3:\mathcal{P}_3\to\mathcal{P}_2\), find all polynomials \(p\) such that \(D_3(p)=5-2x+3x^2\).

Write \(p(x)=a_0+a_1x+a_2x^2+a_3x^3\). Its derivative is \(a_1+2a_2x+3a_3x^2\). Matching coefficients with \(5-2x+3x^2\) gives \(a_1=5\), \(2a_2=-2\), and \(3a_3=3\). Therefore \(a_2=-1\), \(a_3=1\), while \(a_0\) is unrestricted. The full set of preimages is

$$ p(x)=c+5x-x^2+x^3,\qquad c\in\mathbb{R}. $$

Check: differentiating gives \(0+5-2x+3x^2=5-2x+3x^2\) for every value of \(c\). Thus the target has a preimage, and changing that preimage by a constant does not change its derivative.

Degree and a Second Coefficient Check

The degree behavior is another direct consequence of the coefficient rule. If \(p\) is nonconstant of degree \(m\), its leading term is \(a_mx^m\) with \(a_m\ne0\). Its derivative has leading term \(ma_mx^{m-1}\), and \(ma_m\ne0\) over \(\mathbb{R}\). Thus its derivative has degree \(m-1\). This statement does not apply to constant polynomials: their derivative is zero, which has no degree under the usual convention.

Worked Example: The Degree Drop and the Matrix Action

Take \(D_4:\mathcal{P}_4\to\mathcal{P}_3\) and \(p(x)=-4+2x-5x^3+3x^4\). Its coefficient vector in \((1,x,x^2,x^3,x^4)\) is \((-4,2,0,-5,3)^\top\). The matrix calculation is

$$ [D_4(p)] = \begin{bmatrix} 0&1&0&0&0\\ 0&0&2&0&0\\ 0&0&0&3&0\\ 0&0&0&0&4 \end{bmatrix} \begin{bmatrix}-4\\2\\0\\-5\\3\end{bmatrix} = \begin{bmatrix} 2\\ 0\\ 3(-5)\\ 4(3) \end{bmatrix} = \begin{bmatrix}2\\0\\-15\\12\end{bmatrix}. $$

Therefore \(D_4(p)=2-15x^2+12x^3\). The input has degree \(4\), and its derivative has degree \(3\). Check: direct termwise differentiation gives \(0+2-15x^2+12x^3\), agreeing with the matrix product and with the predicted degree drop.

Common Pitfall: Shifting Coefficients the Wrong Way

A frequent error is to place the derivative coefficients in the same positions as the input coefficients. For instance, the incorrect calculation \(D_3(1+2x+3x^2)= (1,2,3,0)\) both keeps the wrong number of coefficients and fails to multiply by the exponents. The input has four possible coefficient positions in \(\mathcal{P}_3\), but the output has only three in \(\mathcal{P}_2\). The correct computation is \(D_3(1+2x+3x^2)=0+2+6x=2+6x\), with output coordinate vector \((2,6,0)^\top\) in the basis \((1,x,x^2)\).

The constant coefficient disappears because constants differentiate to zero; it does not move into the output. Each coefficient \(a_k\) for \(k\geq1\) instead becomes \(ka_k\) in the position for \(x^{k-1}\). Keeping the domain and codomain bases distinct helps prevent both the position error and the common mistake of treating the matrix as square.

Differentiation is therefore a concrete example of a linear map whose behavior is visible in its coefficient matrix: one input direction, the constant term, is lost, while every polynomial in the codomain can be produced. These facts are useful whenever a problem asks whether a target polynomial can be obtained as a derivative or whether a derivative determines its input uniquely.

Check Your Understanding

Use the coefficient rule and the stated domain and codomain to justify each answer.

  1. For \(D_2:\mathcal{P}_2\to\mathcal{P}_1\), find the matrix in the standard polynomial bases.
  2. Compute the coordinate vector of \(D_3(4-2x+x^2+5x^3)\) in the basis \((1,x,x^2)\).
  3. Find all \(p\in\mathcal{P}_2\) such that \(D_2(p)=3-4x\).
  4. State the kernel of \(D_4\) and explain why this map is not injective.
  5. Give a reason every polynomial in \(\mathcal{P}_{n-1}\) is the derivative of some polynomial in \(\mathcal{P}_n\), for \(n\geq1\).

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

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