---
title: "Binary preference to real-valued utility function"
author:
  - name: "Fan Wang"
    affiliation: "Department of Economics, University of Houston"
    url: "https://fanwangecon.github.io/"
date: "2026-11-29"
---

**Part of [Production, Preferences, and Equilibrium: Theory and Applications](https://fanwangecon.github.io/Micro4Econ/).**  
[Main Micro4Econ site](https://fanwangecon.github.io/Micro4Econ/) | [View this section in the book](https://fanwangecon.github.io/Micro4Econ/preference/overview.html#binary-preference-to-real-valued-utility-function) | [Author: Fan Wang](https://fanwangecon.github.io/)  
Date: 2026-11-29 | [HTML](https://fanwangecon.github.io/Micro4Econ/htmlpdfq/preference/pref3_preference_to_utility.html) | [PDF](https://fanwangecon.github.io/Micro4Econ/htmlpdfq/preference/pref3_preference_to_utility.pdf) | [QMD](https://fanwangecon.github.io/Micro4Econ/htmlpdfq/preference/pref3_preference_to_utility.qmd)

## Binary preference to real-valued utility function

### Real-valued utility function mapping from goods space to real line

Individuals have preferences over elements of the consumption set. Each element of the consumption set can be summarized by a bundle/vector of characteristics quantified in the $\mathbb{R}^n_+$ space. Utility functions give economists a shortcut: rather than getting lost in $n$-dimensional characteristics/commodity/consumption-set space, we dimension reduce to the real numbers, and use this single dimension to capture our relative preferences over the rich array of elements in our consumption set.

Given some consumption bundle $\mathbf{x} \in \mathbb{R}^N_+$, the real-valued utility function $u: \mathbb{R}^N_+ \rightarrow \mathbb{R}$ that represents the binary preference relationship $\precsim$ assigns a unique value to $\mathbf{x}$ along the real line, such that for an alternative bundle $\widehat{\mathbf{x}} \in \mathbb{R}^{N}_+$, $u(\widehat{\mathbf{x}}) \le u(\mathbf{x})$ if and only if $\widehat{\mathbf{x}} \precsim \mathbf{x}$. Here, $\widehat{\mathbf{x}} \precsim \mathbf{x}$ means that $\mathbf{x}$ is weakly preferred to $\widehat{\mathbf{x}}$.

> Theorem: A real-valued function that represents the binary preference relations exists if preferences over $\mathbb{R}^N_+$ satisfy completeness, transitivity, continuity, and strict monotonicity.

### Proof strategy

A proof has segments/steps. Each segment has inputs and outputs. The final segment leads to the theorem's conclusion. The inputs for each segment are either assumptions or results from prior steps. Sometimes, we might not understand all segments of a proof, or maybe we have not yet fully proven prior segments, but we can still proceed to work on later segments.

If not all assumptions are used, that means some assumptions are stronger than needed for the results and can be weakened. 

In this proof, we have the following segments/steps:

1. Define a ray of consumption bundles, indexed by a real scalar, to compare all alternative bundles against.
2. Use "completeness" to divide all bundles on the ray into two sets: those to which $x$ is weakly preferred, and those that are weakly preferred to $x$.
3. Use "strict monotonicity" and "transitivity" to show that every element of the first set is weakly below every element of the second set, and that both sets are non-empty.
4. Use "continuity" to show that both sets are closed. Their ordering and non-emptiness ensure that they are bounded on the relevant sides, so they have maximum and minimum elements, respectively.
5. Use set intersection to define the set of bundles on the ray that are indifferent to $x$, and use "completeness" to show that this set is non-empty.
6. Use "strict monotonicity" to show that the set of bundles on the ray that are indifferent to $x$ is a singleton set.
7. Use the unique scalar value on the ray that is indifferent to $x$ to define the utility function, and use "transitivity" and "strict monotonicity" to show that the utility function represents the binary preference relation.

```{=latex}
\begin{center}
\begin{tikzpicture}[
  stepbox/.style={draw, rounded corners, align=left, text width=11.2cm, inner sep=6pt},
  flow/.style={->, thick}
]
\node[stepbox] (ray) {\textbf{1. Choose a positive ray.} Choose $e\in\mathbb{R}^N_{++}$ and define $\mathcal{E}=\{ke:k\in\mathbb{R}_+\}$. For each bundle $\mathbf{x}$, define $A(\mathbf{x})=\{ke\in\mathcal{E}:ke\precsim\mathbf{x}\}$ and $B(\mathbf{x})=\{ke\in\mathcal{E}:\mathbf{x}\precsim ke\}$.};
\node[stepbox, below=8pt of ray] (order) {\textbf{2. Order the ray sections.} Completeness makes $A(\mathbf{x})\cup B(\mathbf{x})=\mathcal{E}$. Weak monotonicity makes $A(\mathbf{x})$ nonempty; strict monotonicity makes $B(\mathbf{x})$ nonempty; strict monotonicity and transitivity order the two sets.};
\node[stepbox, below=8pt of order] (bounds) {\textbf{3. Attain the boundary values.} Continuity makes both sets closed; their order and nonemptiness make $A(\mathbf{x})$ bounded above and $B(\mathbf{x})$ bounded below. Thus $\max A(\mathbf{x})$ and $\min B(\mathbf{x})$ exist.};
\node[stepbox, below=8pt of bounds] (meet) {\textbf{4. Find an indifferent point.} Completeness rules out a gap between these extrema, so $\max A(\mathbf{x})=\min B(\mathbf{x})=k_{\mathbf{x}}$ and $k_{\mathbf{x}}e\sim\mathbf{x}$.};
\node[stepbox, below=8pt of meet] (unique) {\textbf{5. Establish uniqueness.} Strict monotonicity along the ray implies that no two distinct scalar values can both be indifferent to $\mathbf{x}$.};
\node[stepbox, below=8pt of unique] (represent) {\textbf{6. Represent preferences.} Define $u(\mathbf{x})=k_{\mathbf{x}}$. Transitivity and monotonicity along the ray give $\widehat{\mathbf{x}}\precsim\mathbf{x}\ \Longleftrightarrow\ k_{\widehat{\mathbf{x}}}\le k_{\mathbf{x}}$, so $u$ represents $\precsim$.};
\draw[flow] (ray) -- (order);
\draw[flow] (order) -- (bounds);
\draw[flow] (bounds) -- (meet);
\draw[flow] (meet) -- (unique);
\draw[flow] (unique) -- (represent);
\end{tikzpicture}
\end{center}
```

### Using completeness, transitivity, continuity, and strict monotonicity to construct a real-valued utility function that represents binary preference relations

First, let $e$ be an element of the consumption set, $e \in \mathbb{R}^{N}_{++}$ and $e = \left(e_1, e_2, \dots, e_{N-1}, e_N \right)$ where $e_j\in \mathbb{R}_{++}$ for all $j \in \left\{1,2, \dots, N-1, N\right\}$. We define the continuum of consumption bundles that spans in the direction of $e$ from the origin as $\mathcal{E} = \left\{ k \cdot e \mid k \in \mathbb{R}_+ \right\}$. Thus, $\mathcal{E}$ is the ray from the origin that shoots through $e$.

For this construction, we choose $e_j=1$ for all $j \in \left\{1,2, \dots, N-1, N\right\}$, such that $e = \left(1, 1, \dots, 1, 1\right)$ and $\mathcal{E} = \left\{ k \cdot e \mid k \in \mathbb{R}_+ \right\} = \left\{ \left(k, k, \dots, k, k\right) \mid k \in \mathbb{R}_+ \right\}$.

Second, by **completeness**, for any bundle $x \in \mathbb{R}^{N}_+$, and for any bundle on the ray $k \cdot e \in \mathcal{E}$, either $x \precsim k \cdot e$ or $k \cdot e \precsim x$. We define two sets, set A consists of all elements of the ray that $x$ is weakly preferred to, and set B are all elements of the ray that are weakly preferred to $x$. Specifically, we have:

$$
\begin{aligned}
A(x) = \left\{ k \cdot e \in \mathcal{E} \mid k \cdot e \precsim x \right\}\\
B(x) = \left\{ k \cdot e \in \mathcal{E} \mid x \precsim k \cdot e \right\}
\end{aligned}
$$

Third, by **strict monotonicity**, we know that for any two bundles on the ray, $k_1 \cdot e$ and $k_2 \cdot e$, if $k_1 < k_2$, then $k_1 \cdot e \prec k_2 \cdot e$. Both sets $A(x)$ and $B(x)$ are non-empty. Since $x \in \mathbb{R}^N_+$, monotonicity gives $0 \cdot e \precsim x$, so $A(x)$ is non-empty. There exists a sufficiently large $k^{high} \in \mathbb{R}_+$ such that $k^{high} \cdot e \gg x$, which means that $x \prec k^{high} \cdot e$ and $k^{high} \cdot e \in B(x)$, so $B(x)$ is non-empty. Also, every element of $A(x)$ is weakly below every element of $B(x)$ on the ray: if $a \cdot e \in A(x)$ and $b \cdot e \in B(x)$, then $a \le b$. Otherwise, strict monotonicity gives $b \cdot e \prec a \cdot e$, while the definitions of $A(x)$ and $B(x)$ and transitivity imply $a \cdot e \precsim b \cdot e$, a contradiction.

Fourth, by the **continuity** axiom of preference, both sets $A(x)$ and $B(x)$ are closed along the ray $\mathcal{E}$. (The continuity axiom states that any "at least as good as" and "no better than" sets with respect to $x\in \mathbb{R}^{N}_+$ are closed.) From the ordering in the previous step, $A(x)$ is bounded above and $B(x)$ is bounded below. Therefore, $A(x)$ has a maximum element, call it $k^{A(x),\max} \cdot e$, and $B(x)$ has a minimum element, call it $k^{B(x),\min} \cdot e$.

Fifth, by definition, the intersection of $A$ and $B$ is the set of points on the ray that are **indifferent** to $x$, specifically:

$$
\begin{aligned}
C(x) = A(x) \cap B(x) = \left\{ k \cdot e \in \mathcal{E} \mid 
k \cdot e \sim x
 \right\}
\end{aligned}
$$

Since every element of $A(x)$ is weakly below every element of $B(x)$ on the ray, $k^{A(x),\max} \le k^{B(x),\min}$. If the inequality were strict, there would be a $\widetilde{k}$ between them such that $\widetilde{k} \cdot e \notin A(x)$ and $\widetilde{k} \cdot e \notin B(x)$. This contradicts **completeness**, which requires $\widetilde{k} \cdot e \precsim x$ or $x \precsim \widetilde{k} \cdot e$. Therefore, $k^{A(x),\max} = k^{B(x),\min}$, and their common bundle belongs to $A(x) \cap B(x)$. Thus, $C(x)$ is non-empty.

Sixth, we only have a "real-valued" function if each bundle is mapped to a unique scalar value. We have already shown that $C(x)$ is non-empty. It is also a singleton set: if two distinct scalar values $k_1 < k_2$ both belonged to $C(x)$, then $k_1 \cdot e \sim x$ and $k_2 \cdot e \sim x$. By transitivity, this would imply $k_1 \cdot e \sim k_2 \cdot e$, which contradicts **strict monotonicity** along the ray, since $k_1 \cdot e \prec k_2 \cdot e$.

Seventh, now we can use the values of $k$ to characterize the real-valued utility function. Suppose we have bundles $x, \widehat{x} \in \mathbb{R}^{N}_+$, and their corresponding unique scalar values on the ray are $k_x$ and $k_{\widehat{x}}$, such that $x \sim k_x \cdot e$ and $\widehat{x} \sim k_{\widehat{x}} \cdot e$. We define the utility function as:

$$
\begin{aligned}
u(x) = k_x\\
u(\widehat{x}) = k_{\widehat{x}}
\end{aligned}
$$

By **transitivity**, when $\widehat{x} \precsim x$, we have:

$$
\begin{aligned}
\begin{gathered}
k_{\widehat{x}} \cdot e \sim \widehat{x} \precsim x \sim k_x \cdot e\\
k_{\widehat{x}} \cdot e \precsim  k_x \cdot e\\
\end{gathered}
\end{aligned}
$$

By **strict monotonicity**, this implies that $k_{\widehat{x}} \le k_x$: otherwise, $k_x \cdot e \prec k_{\widehat{x}} \cdot e$, which contradicts $k_{\widehat{x}} \cdot e \precsim k_x \cdot e$.

$$
\begin{aligned}
\begin{gathered}
\Rightarrow u(\widehat{x}) = k_{\widehat{x}} \le k_x = u(x)\\
\Rightarrow u(\widehat{x}) \le u(x)\\
\end{gathered}
\end{aligned}
$$

To establish that $u$ represents the preference relation, we also need to show the reverse direction. When $u(\widehat{x}) \le u(x)$, we have:

$$
\begin{aligned}
\begin{gathered}
u(\widehat{x}) = k_{\widehat{x}} \le k_x = u(x)\\
k_{\widehat{x}} \cdot e \precsim  k_x \cdot e\\
\Rightarrow \widehat{x} \sim k_{\widehat{x}} \cdot e \precsim k_x \cdot e \sim x\\
\Rightarrow \widehat{x} \precsim x\\
\end{gathered}
\end{aligned}
$$

Here, $k_{\widehat{x}} \le k_x$ implies $k_{\widehat{x}} \cdot e \precsim k_x \cdot e$ by monotonicity along the ray.

We have shown that the utility function $u: \mathbb{R}^{N}_+ \rightarrow \mathbb{R}$ represents the binary preference relation $\precsim$. Note that this function is not unique. In step one, we chose $e_j=1$ for all $j \in \left\{1,2, \dots, N-1, N\right\}$, but $e\in \mathbb{R}^{N}_{++}$ can be any vector with strictly positive elements. Different choices of $e$ can lead to different utility functions that represent the same binary preference relation.

The utility function constructed above is also continuous. To see this, consider a sequence of bundles $\{x_n\}$ that converges to $x$, and let $k_x=u(x)$. For any $\epsilon>0$, strict monotonicity along the ray gives $(k_x+\epsilon)e \succ x$. If $k_x>\epsilon$, it also gives $x\succ(k_x-\epsilon)e$. By continuity of preferences, these strict preferences continue to hold for bundles sufficiently close to $x$. Therefore, for all sufficiently large $n$, $k_x-\epsilon<u(x_n)<k_x+\epsilon$ when $k_x>\epsilon$, and $0\le u(x_n)<k_x+\epsilon$ when $k_x\le\epsilon$. Thus, $u(x_n)\to u(x)$.
