Let f:[a,b]→R, and let
P:a=x0<x1<⋯<xn=b
be a \reftext{def:partition-closed-interval-c54-2026a}{partition} of [a,b]. For each i=1,…,n, let
Mi=sup{f(t):t∈[xi−1,xi]},mi=\reftextdef:lower−bound−infimum−c54−2026ainf{f(t):t∈[xi−1,xi]}.
The upper sum and lower sum of f with respect to P are defined by
U(f,P)=i=1∑nMi(xi−xi−1),L(f,P)=i=1∑nmi(xi−xi−1).