Tutorials › Linear Algebra › Matrix of Integration with a Fixed Constant Convention

Matrix Representations of Linear Maps · Tutorial 436 of 1000

Matrix of Integration with a Fixed Constant Convention

Learn to represent polynomial integration in monomial coordinates and understand why requiring the antiderivative to vanish at the origin gives a linear map.

Intermediate 10 min read

What You'll Learn

  • Define the polynomial integration map with its zero-at-origin convention
  • Identify the domain and codomain monomial bases and matrix dimensions
  • Derive each matrix column from the image of a monomial
  • Compute the matrix action on polynomial coefficient vectors
  • Explain why a nonzero fixed integration constant does not define a linear map

Integration as a Linear Map

Every polynomial has many antiderivatives: adding any constant to one antiderivative gives another. To represent integration as a map, we must choose one antiderivative for each input. Requiring the result to be zero at the origin makes that choice precise. It also determines the first row of the matrix: every output has constant coefficient zero.

Work over \(\mathbb{R}\). For \(n\geq 0\), let \(P_n\) denote the vector space of real polynomials of degree at most \(n\), together with the zero polynomial. Its ordered monomial basis is \(\mathcal{B}_n=(1,x,\ldots,x^n)\). Thus if \(p\in P_n\), there are unique real coefficients \(a_0,\ldots,a_n\) such that \(p(x)=a_0+a_1x+\cdots+a_nx^n\). We use \(\mathcal{B}_{n+1}=(1,x,\ldots,x^{n+1})\) for the codomain.

Definition: The zero-at-origin integration map \(T:P_n\to P_{n+1}\) is defined by \(T(p)(x)=\int_0^x p(t)\,dt\). The lower limit fixes the integration constant: \(T(p)(0)=0\) for every \(p\in P_n\).

Integrating each monomial gives an explicit formula for the output. If \(p(x)=\sum_{k=0}^{n}a_kx^k\), then

$$ T(p)(x)=\sum_{k=0}^{n}a_k\frac{x^{k+1}}{k+1}. $$

In particular, the degree of \(T(p)\) is at most \(n+1\), as required for the codomain. The formula also shows that \(T\) is linear: for \(p,q\in P_n\) and \(a,b\in\mathbb{R}\), integration of the coefficientwise sum gives \(T(ap+bq)=aT(p)+bT(q)\). The zero-at-origin condition is essential to this formula; an additional constant term would change the map.

Building the Matrix from Monomials

The matrix of \(T\) relative to \(\mathcal{B}_n\) in the domain and \(\mathcal{B}_{n+1}\) in the codomain has \(n+2\) rows and \(n+1\) columns. Its \(j\)th column is the coordinate vector of \(T(x^{j-1})\) in \(\mathcal{B}_{n+1}\). Since \(T(x^{j-1})=x^j/j\), that column has \(1/j\) in row \(j+1\) and zero in every other row.

Theorem: For \(n\geq0\), the matrix \(\mathbf{M}=[T]_{\mathcal{B}_{n+1}\leftarrow\mathcal{B}_n}\) has entries \(m_{ij}=1/j\) when \(i=j+1\), and \(m_{ij}=0\) otherwise, for \(1\leq i\leq n+2\) and \(1\leq j\leq n+1\). Consequently, if \([\ p\ ]_{\mathcal{B}_n}=(a_0,\ldots,a_n)^\top\), then \(\mathbf{M}[\ p\ ]_{\mathcal{B}_n}=[T(p)]_{\mathcal{B}_{n+1}}\).

Proof. Assume \(p\in P_n\), and write \(p(x)=\sum_{k=0}^{n}a_kx^k\). The \(j\)th domain basis vector is \(x^{j-1}\), and its image is \(T(x^{j-1})=\int_0^x t^{j-1}\,dt=x^j/j\). In the ordered codomain basis \((1,x,\ldots,x^{n+1})\), the coordinate of \(x^j/j\) is \(1/j\) in position \(j+1\), with all other coordinates zero. Therefore these image coordinate vectors are exactly the columns specified in the theorem. Multiplying the matrix by the input coordinate vector forms the same linear combination of those columns as \(p\) forms of its basis vectors: \(\sum_{j=1}^{n+1}a_{j-1}[T(x^{j-1})]_{\mathcal{B}_{n+1}}\). By linearity this is \([T(p)]_{\mathcal{B}_{n+1}}\), proving the stated coordinate equation. \(\square\)

Written out, the matrix has a zero first row, followed by the scaled entries for \(x,x^2,\ldots,x^{n+1}\):

$$ \mathbf{M}= \begin{bmatrix} 0&0&0&\cdots&0\\ 1&0&0&\cdots&0\\ 0&\frac12&0&\cdots&0\\ 0&0&\frac13&\cdots&0\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 0&0&0&\cdots&\frac{1}{n+1} \end{bmatrix}. $$

The first row is not an omission. It records that the constant coefficient of every output is zero. The denominators come from integrating the input monomials; the entries are not all \(1\), because \(x^k\) integrates to \(x^{k+1}/(k+1)\).

Worked Examples

Worked Example: The Constant-Polynomial Case

Take \(n=0\). The domain is \(P_0\), with basis \((1)\), and the codomain is \(P_1\), with basis \((1,x)\). The single domain basis vector maps as follows:

$$ T(1)(x)=\int_0^x 1\,dt=x. $$

The coordinate vector of \(x\) in \((1,x)\) is \((0,1)^\top\). Therefore the matrix is \(\mathbf{M}=\begin{bmatrix}0\\1\end{bmatrix}\). For an arbitrary input \(p(x)=a\), its domain coordinate vector is \((a)\), so

$$ \begin{bmatrix}0\\1\end{bmatrix} \begin{bmatrix}a\end{bmatrix} = \begin{bmatrix}0\\a\end{bmatrix}. $$

This output coordinate vector represents \(ax\), which agrees with \(\int_0^x a\,dt=ax\). The output is zero at \(x=0\), including when \(a=0\).

Worked Example: A Matrix from \(P_2\) to \(P_3\)

Find the matrix of \(T:P_2\to P_3\) in the ordered bases \(\mathcal{B}_2=(1,x,x^2)\) and \(\mathcal{B}_3=(1,x,x^2,x^3)\). Apply \(T\) to each domain basis vector:

$$ T(1)=x,\qquad T(x)=\frac{x^2}{2},\qquad T(x^2)=\frac{x^3}{3}. $$

Their coordinate vectors in \(\mathcal{B}_3\) are respectively \((0,1,0,0)^\top\), \((0,0,\tfrac12,0)^\top\), and \((0,0,0,\tfrac13)^\top\). Placing these as columns gives

$$ \mathbf{M}= \begin{bmatrix} 0&0&0\\ 1&0&0\\ 0&\frac12&0\\ 0&0&\frac13 \end{bmatrix}. $$

For \(p(x)=3-2x+4x^2\), the input coordinate vector is \((3,-2,4)^\top\). The matrix calculation is

$$ \mathbf{M} \begin{bmatrix}3\\-2\\4\end{bmatrix} = \begin{bmatrix} 0\\ 3\\ -1\\ \frac43 \end{bmatrix}. $$

This vector represents \(3x-x^2+\tfrac43x^3\). Direct integration gives the same result: \(\int_0^x(3-2t+4t^2)\,dt=3x-x^2+\tfrac43x^3\). As a check, differentiating the output gives \(3-2x+4x^2\), and its value at \(x=0\) is \(0\).

Worked Example: A Nonzero Fixed Constant

Suppose instead that for every input we choose the antiderivative whose constant term is \(2\), defining \(S(p)(x)=\int_0^x p(t)\,dt+2\). This is a well-defined function from \(P_n\) to \(P_{n+1}\), but it is not a linear map. Test the zero input:

$$ S(0)(x)=\int_0^x 0\,dt+2=2\ne0. $$

Every linear map must send the zero vector to the zero vector: if \(S\) were linear, then \(S(0)=S(0\cdot p)=0\cdot S(p)=0\). The computed value contradicts this necessary condition. For example, when \(p(x)=2+4x\), the output is \(S(p)(x)=2+2x+2x^2\), but adding \(2\) to the integral has also made the rule fail the zero-input test. Thus a fixed nonzero integration constant cannot be represented by a matrix as a linear map.

More generally, if a fixed constant \(c\) is added to every integral, the resulting rule sends \(0\) to the constant polynomial \(c\). It is linear only when \(c=0\). The zero-at-origin convention is exactly the choice that makes the integration rule linear.

Reading the Matrix and Avoiding a Common Error

Matrix multiplication makes the coefficient rule visible. If the input coefficients are \(a_0,\ldots,a_n\), then the output coefficient of \(1\) is \(0\), the coefficient of \(x\) is \(a_0\), the coefficient of \(x^2\) is \(a_1/2\), and, in general, the coefficient of \(x^{k+1}\) is \(a_k/(k+1)\). Integration shifts each input coefficient up by one power and divides it by the new exponent.

Common mistake: putting the input constant coefficient into the output constant position. A tempting but incorrect first column for the matrix is \((1,1,0,\ldots)^\top\), on the mistaken idea that integrating \(1\) leaves a constant \(1\) and adds \(x\). That would claim \(\int_0^x 1\,dt=1+x\). But \(\int_0^x 1\,dt=x\): the lower limit forces the value at the origin to be zero. The correct first column has \(0\) in the constant row and \(1\) in the \(x\) row.

The distinction between the domain and codomain bases is important when reading coordinates. The input coefficient of \(x^k\) occupies position \(k+1\) in \(\mathcal{B}_n\); after integration, its contribution occupies position \(k+2\) in \(\mathcal{B}_{n+1}\), scaled by \(1/(k+1)\). The matrix is rectangular because the domain has \(n+1\) basis vectors while the codomain has \(n+2\). The extra codomain coordinate is the highest possible power \(x^{n+1}\); the constant coordinate, although part of the codomain basis, is always zero for outputs of this particular map.

This representation is useful whenever polynomial inputs and outputs are handled by their coefficient lists. It replaces an integration rule with an ordinary matrix-vector multiplication while preserving the chosen constant convention. Changing that convention can change not just the matrix entries but whether the rule is linear at all.

Check Your Understanding

Use the ordered monomial bases and the zero-at-origin convention unless a question says otherwise.

  1. What are the dimensions of the matrix representing \(T:P_4\to P_5\), and why?
  2. Write the matrix of \(T:P_1\to P_2\) in the ordered monomial bases.
  3. Use that matrix to find the coordinate vector of \(T(5-6x)\) in \((1,x,x^2)\).
  4. Explain why the first row of the matrix of \(T:P_n\to P_{n+1}\) is zero.
  5. For a fixed real number \(c\), when is \(p\mapsto\int_0^x p(t)\,dt+c\) a linear map? Justify your answer using its value at the zero polynomial.

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