Integration by parts applied to ∫e2x(3x2+x−1) dx\int e^{2x}(3x^2+x-1)\,dx is a familiar routine: differentiate the polynomial, integrate the exponential, repeat until the polynomial runs out. The routine always ends with an answer of the same shape, e2xe^{2x} times a quadratic. Chapter 5 of Rida Abu-Sokon's book turns that observation into linear algebra. If the functions involved form a finite-dimensional space that differentiation maps into itself, then differentiation is a matrix, and the integral can be found by solving one linear system. This explainer builds the idea from the vector-space vocabulary up.

Functions as vectors

A set of functions is a vector space when sums and scalar multiples of its members stay in the set. Polynomials of degree at most two form one: adding 1+x1+x and x2x^2 gives another polynomial of that kind. The functions asin⁡ωx+bcos⁡ωxa\sin\omega x+b\cos\omega x form another. A linear combination of functions ϕ1,…,ϕm\phi_1,\dots,\phi_m is any expression c1ϕ1+⋯+cmϕmc_1\phi_1+\dots+c_m\phi_m; their span is the set of all such combinations; and they form a basis of the space they span when none of them is a combination of the others. The number of basis functions is the dimension. The space span⁡{1,x,x2}\operatorname{span}\{1,x,x^2\} has dimension three even though it contains infinitely many functions.

Once a basis is fixed, every function in the space is recorded by its list of coefficients. Collect the basis into a column Φ(x)=(ϕ1(x),…,ϕm(x))T\Phi(x)=(\phi_1(x),\dots,\phi_m(x))^{T}; then f(x)=uTΦ(x)f(x)=u^{T}\Phi(x), where u∈Rmu\in\mathbb{R}^m is the coordinate vector of ff. For example, 3x2+x−13x^2+x-1 has coordinates u=(−1,1,3)Tu=(-1,1,3)^{T} in the basis (1,x,x2)(1,x,x^2).

Closure under differentiation

A space VV is closed under differentiation if f∈Vf\in V implies f′∈Vf'\in V. The space span⁡{1,x,x2}\operatorname{span}\{1,x,x^2\} is closed, and so is span⁡{sin⁡ωx,cos⁡ωx}\operatorname{span}\{\sin\omega x,\cos\omega x\}. The space span⁡{x}\operatorname{span}\{x\} is not, because (x)′=1(x)'=1 is not a multiple of xx; neither is span⁡{1/x}\operatorname{span}\{1/x\}. Closure is the property that makes everything below possible, because it lets differentiation act inside a fixed, finite list of coordinates.

The differentiation matrix

If VV is closed, the derivative of each basis function is a combination of basis functions, ϕi′=∑jΩijϕj\phi_i'=\sum_j\Omega_{ij}\phi_j. In vector form,

Φ′(x)=Ω Φ(x),f=uTΦ ⟹ f′=uTΩ Φ=(ΩTu)TΦ.\Phi'(x)=\Omega\,\Phi(x),\qquad f=u^{T}\Phi\ \Longrightarrow\ f'=u^{T}\Omega\,\Phi=(\Omega^{T}u)^{T}\Phi .

So on coordinates, differentiation is the matrix ΩT\Omega^{T}. For the two bases above (the book lists these and others as "ready matrices"):

Φ=(1xx2):  ΩT=(010002000);Φ=(cos⁡ωxsin⁡ωx):  Ω=ω(0−110).\Phi=\begin{pmatrix}1\\ x\\ x^2\end{pmatrix}:\ \ \Omega^{T}=\begin{pmatrix}0&1&0\\0&0&2\\0&0&0\end{pmatrix};\qquad \Phi=\begin{pmatrix}\cos\omega x\\ \sin\omega x\end{pmatrix}:\ \ \Omega=\omega\begin{pmatrix}0&-1\\1&0\end{pmatrix}.

Check the first one on 3x2+x−13x^2+x-1: ΩT(−1,1,3)T=(1,6,0)T\Omega^{T}(-1,1,3)^{T}=(1,6,0)^{T}, which is the coordinate vector of 6x+16x+1. The trigonometric matrix is ω\omega times a quarter-turn rotation: differentiating cos⁡\cos and sin⁡\sin rotates the coordinate vector by 90∘90^\circ and scales it by ω\omega.

Why polynomials give nilpotent matrices

Differentiation lowers the degree of a polynomial by one. On polynomials of degree at most m−1m-1, applying it mm times gives zero for every input, so the matrix satisfies (ΩT)m=0(\Omega^{T})^m=0. A matrix with a vanishing power is called nilpotent; its only eigenvalue is 00, and it is strictly triangular in the monomial basis. This is not a quirk of the basis: any finite-dimensional space of polynomials closed under differentiation forces nilpotency, because a nonzero eigenvalue λ\lambda would need a polynomial with p′=λpp'=\lambda p, and only eλxe^{\lambda x} satisfies that.

The spectrum of Ω\Omega therefore records what kind of functions live in the space. Polynomials give eigenvalue 00; cos⁡ωx,sin⁡ωx\cos\omega x,\sin\omega x give ±iω\pm i\omega; eαxcos⁡ωx,eαxsin⁡ωxe^{\alpha x}\cos\omega x,e^{\alpha x}\sin\omega x give α±iω\alpha\pm i\omega; eαxcosh⁡ωx,eαxsinh⁡ωxe^{\alpha x}\cosh\omega x,e^{\alpha x}\sinh\omega x give α±ω\alpha\pm\omega.

From an integral to a linear solve

Now take f=uTΦ∈Vf=u^{T}\Phi\in V and look for an antiderivative of ebxf(x)e^{bx}f(x) of the same shape, F(x)=ebxΦ(x)TzF(x)=e^{bx}\Phi(x)^{T}z with an unknown constant vector zz. The product rule and Φ′=ΩΦ\Phi'=\Omega\Phi give F′(x)=ebxΦ(x)T(bI+ΩT)zF'(x)=e^{bx}\Phi(x)^{T}(bI+\Omega^{T})z. Matching this with ebxΦ(x)Tue^{bx}\Phi(x)^{T}u and using linear independence of the basis gives a single linear system:

(bI+ΩT) z=u,M(b):=(bI+ΩT)−1,∫0aebxf(x) dx=[ebx Φ(x)TM(b) u]0a.(bI+\Omega^{T})\,z=u,\qquad M(b):=(bI+\Omega^{T})^{-1},\qquad \int_0^a e^{bx}f(x)\,dx=\Big[e^{bx}\,\Phi(x)^{T}M(b)\,u\Big]_0^a .
(1)

This boundary formula is what the book calls the Matrix Boundary Method (MBM). Its recipe has five steps: choose a basis and write f=uTΦf=u^{T}\Phi; build Ω\Omega; invert bI+ΩTbI+\Omega^{T} once; form F(x)=ebxΦTM(b)uF(x)=e^{bx}\Phi^{T}M(b)u; evaluate F(a)−F(0)F(a)-F(0). Because M(b)M(b) depends only on the basis and on bb, one inversion serves every ff in the space.

For polynomials, nilpotency also explains the shape of M(b)M(b). Since (ΩT/b)m=0(\Omega^{T}/b)^m=0, the geometric series for the inverse terminates:

M(b)=1b(I+ΩTb)−1=1b∑k=0m−1(−ΩTb)k=(1b−1b22b301b−2b2001b)(m=3).M(b)=\frac1b\Big(I+\tfrac{\Omega^{T}}{b}\Big)^{-1}=\frac1b\sum_{k=0}^{m-1}\Big(-\frac{\Omega^{T}}{b}\Big)^{k}=\begin{pmatrix}\frac1b&-\frac1{b^2}&\frac2{b^3}\\[2pt]0&\frac1b&-\frac2{b^2}\\[2pt]0&0&\frac1b\end{pmatrix}\quad(m=3).

The powers 1/b,1/b2,1/b31/b,1/b^2,1/b^3 are the successive steps of integration by parts, now produced by three terms of a finite series.

A truncated exponential–polynomial integral

Compute ∫01e2x(3x2+x−1) dx\displaystyle\int_0^1 e^{2x}(3x^2+x-1)\,dx with the basis (1,x,x2)(1,x,x^2) and b=2b=2.

  1. Coordinates: u=(−1,1,3)Tu=(-1,1,3)^{T}.
  2. Matrix: with b=2b=2, M(2)=(1/2−1/41/401/2−1/2001/2)M(2)=\begin{pmatrix}1/2&-1/4&1/4\\0&1/2&-1/2\\0&0&1/2\end{pmatrix}.
  3. Solve: z=M(2)u=(−12−14+34, 12−32, 32)T=(0,−1,32)Tz=M(2)u=(-\tfrac12-\tfrac14+\tfrac34,\ \tfrac12-\tfrac32,\ \tfrac32)^{T}=(0,-1,\tfrac32)^{T}.
  4. Antiderivative: F(x)=e2x(−x+32x2)F(x)=e^{2x}\big(-x+\tfrac32x^2\big). Check: F′(x)=e2x(2(−x+32x2)+(−1+3x))=e2x(3x2+x−1)F'(x)=e^{2x}\big(2(-x+\tfrac32x^2)+(-1+3x)\big)=e^{2x}(3x^2+x-1).
  5. Boundary values: F(1)=12e2F(1)=\tfrac12e^2 and F(0)=0F(0)=0. Simpson's rule on the original integrand gives the same value, 3.694528…3.694528\ldots, to ten digits.
∫01e2x(3x2+x−1) dx=e22≈3.69453\int_0^1 e^{2x}(3x^2+x-1)\,dx=\frac{e^2}{2}\approx 3.69453

Because M(2)M(2) does not depend on ff, any other quadratic costs only a matrix–vector product. For f=x2f=x^2, u=(0,0,1)Tu=(0,0,1)^{T} gives z=(14,−12,12)Tz=(\tfrac14,-\tfrac12,\tfrac12)^{T}, so ∫01e2xx2 dx=[e2x(14−12x+12x2)]01=(e2−1)/4≈1.59726\int_0^1e^{2x}x^2\,dx=\big[e^{2x}(\tfrac14-\tfrac12x+\tfrac12x^2)\big]_0^1=(e^2-1)/4\approx1.59726. By hand, each new polynomial would mean a fresh round of integration by parts.

The trigonometric basis works the same way. With b=1b=1 and ω=2\omega=2, M=15(1−221)M=\frac15\begin{pmatrix}1&-2\\2&1\end{pmatrix}; for f=sin⁡2xf=\sin 2x, u=(0,1)Tu=(0,1)^{T} and z=(−25,15)Tz=(-\tfrac25,\tfrac15)^{T}, so ∫0πexsin⁡2x dx=[ex(−25cos⁡2x+15sin⁡2x)]0π=25(1−eπ)≈−8.85628\int_0^\pi e^{x}\sin 2x\,dx=\big[e^{x}(-\tfrac25\cos 2x+\tfrac15\sin 2x)\big]_0^\pi=\tfrac25(1-e^{\pi})\approx-8.85628.

The truncated integral is called a truncated Laplace integral for a reason. Put b=−sb=-s and let a→∞a\to\infty. If ss exceeds the real parts of all eigenvalues of Ω\Omega, the boundary term at aa vanishes and only the value at 00 survives:

∫0∞e−sxf(x) dx=−Φ(0)TM(−s) u=Φ(0)T(sI−ΩT)−1u.\int_0^\infty e^{-sx}f(x)\,dx=-\Phi(0)^{T}M(-s)\,u=\Phi(0)^{T}\big(sI-\Omega^{T}\big)^{-1}u .

On a finite-dimensional space closed under differentiation, the Laplace transform is therefore the resolvent (sI−ΩT)−1(sI-\Omega^{T})^{-1} of the differentiation matrix, read off at x=0x=0. For polynomials the first row of (sI−ΩT)−1(sI-\Omega^{T})^{-1} is (1/s, 1/s2, 2/s3)(1/s,\,1/s^2,\,2/s^3), reproducing L{1}\mathcal{L}\{1\}, L{x}\mathcal{L}\{x\} and L{x2}\mathcal{L}\{x^2\}; for (cos⁡ωx,sin⁡ωx)(\cos\omega x,\sin\omega x) it gives s/(s2+ω2)s/(s^2+\omega^2) and ω/(s2+ω2)\omega/(s^2+\omega^2). This is the same structure that appears in linear systems theory, where (sI−A)−1(sI-A)^{-1} is the Laplace transform of the matrix exponential exAe^{xA} that solves y′=Ayy'=Ay.

What the method is, and what it is not

The underlying facts are standard: coordinate representations of linear maps, the matrix of differentiation, and the method of undetermined coefficients for y′+by=fy'+by=f. What the book adds is a systematic packaging for truncated integrals ∫0aebxf(x) dx\int_0^a e^{bx}f(x)\,dx, which are finite-interval versions of the Laplace integral, together with a catalogue of ready matrices and extensions to products of bases and to linear ordinary differential equations in later sections of the chapter. The method is exact, but it applies only to inputs that lie in a known finite-dimensional space closed under differentiation; it does not evaluate ∫0aebxln⁡x dx\int_0^a e^{bx}\ln x\,dx, for example.

References

  1. Rida Jamal Badawi Abu-Sokon. Analytical Methods for Higher-Order Derivatives, Integral Transforms, and Matrix-Based Techniques, First edition. Kindle Direct Publishing, 2026. Chapter 5, §5.1–5.2 (§5.2.1–5.2.11).
  2. Sheldon Axler. Linear Algebra Done Right, Third edition. Springer, 2015. Vector spaces, bases, matrices of linear maps, and nilpotent operators..
  3. Roger A. Horn and Charles R. Johnson. Matrix Analysis, Second edition. Cambridge University Press, 2012. Nilpotent matrices, triangular forms and matrix inverses. Cited in the book's bibliography..