An explicit piecewise linear function is
The adjacent formulas agree at and , so the function is continuous, and . Any pair of points at distance can be written with . For every such ,
Thus their values are never equal. The horizontal chord of reciprocal-integer length conclusion does not extend to this distance.
Evaluate the generators as coordinate projections on . The lattice-ordered group they generate consists of continuous positively homogeneous piecewise linear functions with finitely many integer-linear pieces. Equivalently its elements are finite joins of finite meets of integer linear forms. The universal property follows because the real line detects every identity of Abelian lattice-ordered groups: if an identity fails, pass to a prime ordered quotient and select the finitely many active linear pieces. The resulting rational linear inequalities have a real solution by the alternative underlying Farkas' lemma, giving a real witness to failure. This is a statement about integer coefficients and positive homogeneity, not arbitrary real coefficients or affine constant terms.
Piecewise-linear hat function Created 2026-09-28 Updated 2026-10-14
A piecewise-linear hat function is a continuous piecewise linear function that selects one node of a finite element mesh: it is one there and zero at every other node. For an interior node , its exact formula on a possibly nonuniform mesh is
Its support of a function is . It rises on the left interval and falls on the right, producing its hat-shaped graph. The interior hat functions form a basis of the continuous conforming finite element space with homogeneous Dirichlet boundary conditions. Chen's author notes define this nodal basis and illustrate it in one and two dimensions.[ref] The nodal property makes the coefficients directly readable: if , then . Unlike the global Lagrange cardinal polynomials, each of these functions is confined to two neighboring elements.
For example, with , the middle hat function is on , on , and zero elsewhere. Hence , while and . The finite element solution of the one-dimensional Poisson equation therefore has .
Local assembly makes this locality computational. On an element of length , the two local basis functions are and . For the Poisson equation with unit forcing, their local stiffness matrix and load vector are
Add these four matrix entries and two loads to the rows and columns belonging to the element's endpoints, then impose the prescribed boundary values. An interior node receives contributions from its two neighboring elements. Writing and gives
with off-diagonal entries included only for interior neighbors. On a uniform mesh these reduce to , and . Nonadjacent hat functions have no derivative overlap of positive length, so all distant entries vanish. This produces a sparse matrix with only three diagonals: the global coupling is built entirely from local two-node interactions.
Figure 1.
Three interior hat functions on a four-interval mesh, with local stiffness and load contributions assembled into the three-unknown Poisson system
. Details.
Starting with on , this polynomial recurrence gives and . Indeed the error satisfies . Its pointwise limit solves , so it is . Dini's theorem gives uniform convergence. Each continuous piecewise linear function is an affine function plus a finite linear combination of . Scaling and translating the recurrence therefore gives polynomial approximation of every such function, and their density gives the Weierstrass approximation theorem.