When a space of functions is closed under differentiation, d/dx becomes a matrix, and a truncated integral ∫0aebxf(x)dx becomes one linear solve — the idea behind the book's Matrix Boundary Method.
Author
RIDA MATH Editorial
Published
Reading time
7 minutes
Educational Interpretation: RIDA MATH's explanation of mathematics for learning purposes.
Classical Foundation: Established mathematics found in standard textbooks and references.
Book Framework: The organising framework, notation, or terminology introduced in the book.
Integration by parts applied to ∫e2x(3x2+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, e2x 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+x and x2 gives another polynomial of that kind. The functions asinωx+bcosωx form another. A linear combination of functions ϕ1,…,ϕm is any expression c1ϕ1+⋯+cmϕ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} 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; then f(x)=uTΦ(x), where u∈Rm is the coordinate vector of f. For example, 3x2+x−1 has coordinates u=(−1,1,3)T in the basis (1,x,x2).
Closure under differentiation
A space V is closed under differentiation if f∈V implies f′∈V. The space span{1,x,x2} is closed, and so is span{sinωx,cosωx}. The space span{x} is not, because (x)′=1 is not a multiple of x; neither is 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 V is closed, the derivative of each basis function is a combination of basis functions, ϕi′=∑jΩijϕj. In vector form,
Φ′(x)=ΩΦ(x),f=uTΦ⟹f′=uTΩΦ=(ΩTu)TΦ.
So on coordinates, differentiation is the matrix ΩT. For the two bases above (the book lists these and others as "ready matrices"):
Check the first one on 3x2+x−1: ΩT(−1,1,3)T=(1,6,0)T, which is the coordinate vector of 6x+1. The trigonometric matrix is ω times a quarter-turn rotation: differentiating cos and sin rotates the coordinate vector by 90∘ and scales it by ω.
Why polynomials give nilpotent matrices
Differentiation lowers the degree of a polynomial by one. On polynomials of degree at most m−1, applying it m times gives zero for every input, so the matrix satisfies (ΩT)m=0. A matrix with a vanishing power is called nilpotent; its only eigenvalue is 0, 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 λ would need a polynomial with p′=λp, and only eλx satisfies that.
The spectrum of Ω therefore records what kind of functions live in the space. Polynomials give eigenvalue 0; cosωx,sinωx give ±iω; eαxcosωx,eαxsinωx give α±iω; eαxcoshωx,eαxsinhωx give α±ω.
From an integral to a linear solve
Now take f=uTΦ∈V and look for an antiderivative of ebxf(x) of the same shape, F(x)=ebxΦ(x)Tz with an unknown constant vector z. The product rule and Φ′=ΩΦ give F′(x)=ebxΦ(x)T(bI+ΩT)z. Matching this with ebxΦ(x)Tu and using linear independence of the basis gives a single linear system:
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Φ; build Ω; invert bI+ΩT once; form F(x)=ebxΦTM(b)u; evaluate F(a)−F(0). Because M(b) depends only on the basis and on b, one inversion serves every f in the space.
For polynomials, nilpotency also explains the shape of M(b). Since (ΩT/b)m=0, the geometric series for the inverse terminates:
Boundary values: F(1)=21e2 and F(0)=0. Simpson's rule on the original integrand gives the same value, 3.694528…, to ten digits.
∫01e2x(3x2+x−1)dx=2e2≈3.69453
Because M(2) does not depend on f, any other quadratic costs only a matrix–vector product. For f=x2, u=(0,0,1)T gives z=(41,−21,21)T, so ∫01e2xx2dx=[e2x(41−21x+21x2)]01=(e2−1)/4≈1.59726. By hand, each new polynomial would mean a fresh round of integration by parts.
The trigonometric basis works the same way. With b=1 and ω=2, M=51(12−21); for f=sin2x, u=(0,1)T and z=(−52,51)T, so ∫0πexsin2xdx=[ex(−52cos2x+51sin2x)]0π=52(1−eπ)≈−8.85628.
The link to the Laplace transform
The truncated integral is called a truncated Laplace integral for a reason. Put b=−s and let a→∞. If s exceeds the real parts of all eigenvalues of Ω, the boundary term at a vanishes and only the value at 0 survives:
∫0∞e−sxf(x)dx=−Φ(0)TM(−s)u=Φ(0)T(sI−ΩT)−1u.
On a finite-dimensional space closed under differentiation, the Laplace transform is therefore the resolvent (sI−ΩT)−1 of the differentiation matrix, read off at x=0. For polynomials the first row of (sI−ΩT)−1 is (1/s,1/s2,2/s3), reproducing L{1}, L{x} and L{x2}; for (cosωx,sinωx) it gives s/(s2+ω2) and ω/(s2+ω2). This is the same structure that appears in linear systems theory, where (sI−A)−1 is the Laplace transform of the matrix exponential exA that solves y′=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=f. What the book adds is a systematic packaging for truncated integrals ∫0aebxf(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 ∫0aebxlnxdx, for example.
References
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).
Sheldon Axler. Linear Algebra Done Right, Third edition. Springer, 2015. Vector spaces, bases, matrices of linear maps, and nilpotent operators..
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..