As is often the case in measure-theoretic questions, the definition of essential supremum and infimum does not start by asking what a function f does at points x (that is, the
image of f), but rather by asking for the set of points x where f equals a specific value y (that is, the
preimage of y under f). Let f : X \to \Reals be a
real valued
function defined on a set X. The
supremum of a function f is characterized by the following property: f(x) \leq \sup f \leq \infty for
all x \in X and if for some a \in \Reals \cup \{+\infty\} we have f(x) \leq a for
all x \in X then \sup f \leq a. More concretely, a real number a is called an
upper bound for f if f(x) \leq a for all x \in X; that is, if the set f^{-1}(a, \infty) = \{x \in X : f(x) > a\} is
empty. Let U_f = \{a \in \Reals : f^{-1}(a, \infty) = \varnothing\}\, be the set of upper bounds of f and define the
infimum of the empty set by \inf \varnothing = +\infty. Then the supremum of f is \sup f = \inf U_f. By definition, if the set of upper bounds U_f is empty, we have \sup f = + \infty. Now assume in addition that (X, \Sigma, \mu) is a
measure space and, for simplicity, assume that the function f is
measurable. Similar to the supremum, the essential supremum of a function is characterised by the following property: f(x) \leq \operatorname{ess} \sup f \leq \infty for \mu-
almost all x \in X and if for some a \in \Reals \cup \{+\infty\} we have f(x) \leq a for \mu-
almost all x \in X then \operatorname{ess} \sup f \leq a. More concretely, a number a is called an ''
of f if the measurable set f^{-1}(a, \infty) is a set of \mu-measure zero,{{efn|For nonmeasurable functions the definition has to be modified by assuming that f^{-1}(a, \infty) is contained in a set of measure zero. Alternatively, one can assume that the measure is complete.}} That is, if f(x) \leq a for \mu-almost all'' x in X. Let U^{\operatorname{ess}}_f = \{a \in \Reals : \mu(f^{-1}(a, \infty)) = 0\} be the set of essential upper bounds. Then the '''''' is defined similarly as \operatorname{ess} \sup f = \inf U^{\mathrm{ess}}_f if U^{\operatorname{ess}}_f \neq \varnothing, and \operatorname{ess}\sup f = +\infty otherwise. Exactly in the same way one defines the ''''
as the supremum of the s'', that is, \operatorname{ess} \inf f = \sup \{b \in \Reals : \mu(\{x: f(x) if the set of essential lower bounds is nonempty, and as -\infty otherwise; again there is an alternative expression as \operatorname{ess} \inf f = \sup\{a \in \Reals : f(x) \geq a \text{ for almost all } x \in X\} (with this being -\infty if the set is empty). ==Examples==