---
title: "Willingness to Pay, Constant Elasticity, and 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/consumer_utility/overview.html#willingness-to-pay-constant-elasticity-and-utility-function) | [Author: Fan Wang](https://fanwangecon.github.io/)  
Date: 2026-11-29 | [HTML](https://fanwangecon.github.io/Micro4Econ/htmlpdfq/consumer_utility/cutil0_willingness2pay_elasticity_utility.html) | [PDF](https://fanwangecon.github.io/Micro4Econ/htmlpdfq/consumer_utility/cutil0_willingness2pay_elasticity_utility.pdf) | [QMD](https://fanwangecon.github.io/Micro4Econ/htmlpdfq/consumer_utility/cutil0_willingness2pay_elasticity_utility.qmd)

## Willingness to Pay, Constant Elasticity, and Utility Function

### Data on willingness to pay

There is some survey that elicits willingness to pay (WTP) for air pollution reduction. The survey asks:

1. Suppose we are at pollution level $P_{c}$, which might be the current level of pollution the respondent is facing or some hypothetical level in a survey experiment. Suppose that utility is monotonically decreasing in pollution.
2. Suppose we reduce pollution level to $P_{n}<P_{c}$, the deviation in pollution is $\Delta_P = P_{c}-P_{n} >0$.
3. Suppose your current level of economic resources (reflected as consumption) is $C_{c}$. $C_{c}$ might be your actual level of consumption or some hypothetical level in a survey experiment. Suppose that utility is monotonically increasing in consumption.
4. How much of your economic resource $C_c$ are you willing to give up if pollution reduces $P_c$ to $P_n$, for you to be indifferent between the world with high $(C_{c}, P_{c})$ and lower levels of both $(C_{n}, P_{n})$, where $C_n$ is the level of resources you will have after giving up $\Delta_C$.
5. Let's define the amount you are willing to give up is $\Delta_C = C_c - C_n > 0$. If $\Delta_C$ is positive, you are willing to give up some consumption to have lower pollution. If $\Delta_C$ is zero, you are not willing to give up any consumption to have lower pollution.

What are the pieces of data we get from this survey experiment?

1. Current hypothetical or actual consumption level $C_c$ and current pollution level $P_c$.
2. Survey proposed hypothetical new pollution level $P_n$ and deviation $\Delta_P$.
3. *Respondent answer*: Willingness to pay $\Delta_C$.

These data points might be obtained from multiple survey experiments, and multiple respondents within each. An important point to note. $\Delta_C$ is a function of $C_c$, $P_c$, and $\Delta_P$. If two individuals with the same $C_c$ and $P_c$ and facing the same $\Delta_P$ give different $\Delta_C$ answers, then they have different preference parameters. But in generally, differences in $\Delta_C$ answers can be due to differences in any of the three arguments: $C_c$, $P_c$, and $\Delta_P$. In another word, people with different "willingness to pay" might share the same preferences.

### Indifference and willingness to pay

Why did we gather the willingness to pay data? We want to capture the utility function, but we can not measure utility directly. But through questions on willingness to pay, we can get data that help us infer the marginal rate of substitution (MRS) between pollution and consumption, which in turn helps us pin down preference parameters in a utility function up to some normalization. 

Suppose we have utility function $U(C,P)$, where $C$ is the consumption and $P$ is the pollution level. Suppose that the derivative of $U$ with respect to $C$ is positive, and the derivative of $U$ with respect to $P$ is negative. That is, more consumption is preferred, and less pollution is preferred.

Willingness to pay is related to $U(C,P)$ as follows, given $C_c$, $P_c$, and $\Delta_P$, solve for the $\Delta_C^{\ast}(C_c, P_c, \Delta_P)$:

$$
\begin{aligned}
U(C_c, P_c) &=
U\left(
    C_c - \Delta_C^{\ast}(C_c, P_c, \Delta_P),
    P_c - \Delta_P
    \right)\\
0 &=
U(C_c, P_c) - 
U\left(
    C_c - \Delta_C^{\ast}(C_c, P_c, \Delta_P),
    P_c - \Delta_P
\right)\\
\end{aligned}
$$

The total differential of utility at $(C_c,P_c)$ is:

$$
\begin{aligned}
dU &= \frac{\partial U}{\partial C} dC + \frac{\partial U}{\partial P} dP
\end{aligned}
$$

The differential describes an infinitesimal change. Along an indifference curve, $dU=0$, so $U_C\,dC+U_P\,dP=0$. The survey changes both quantities by finite amounts, $dC\approx-\Delta_C^\ast$ and $dP\approx-\Delta_P$. A first-order Taylor approximation around the initial point therefore gives:

$$
\begin{aligned}
0 &\approx \frac{\partial U}{\partial C} \left(-\Delta_C^{\ast}(C_c, P_c, \Delta_P)\right) + \frac{\partial U}{\partial P} \left(-\Delta_P\right)\\
\frac{
    \frac{\partial U}{\partial P} \rvert_{(C_c, P_c)}
    }{
    \frac{\partial U}{\partial C} \rvert_{(C_c, P_c)}
    }
&\approx
- \frac{\Delta_C^{\ast}(C_c, P_c, \Delta_P)}{\Delta_P}
\end{aligned}
$$

Define the positive marginal willingness to pay for a pollution reduction as
$R(C,P)=-U_P(C,P)/U_C(C,P)>0$. The equation above says
$R(C_c,P_c)\approx\Delta_C^\ast/\Delta_P$. The signed MRS $U_P/U_C$ is
negative and is approximately $-\Delta_C^\ast/\Delta_P$.

Note:

- $R$ is positive because $U_P<0$ and $U_C>0$.
- The approximation evaluates marginal utilities at the initial point $(C_c,P_c)$. They can vary across points even for one fixed utility function.
- The equality becomes exact in the limit as $\Delta_P\to0$. For a finite pollution change, the WTP ratio is an average slope along the indifference curve, not necessarily the MRS at the initial point. Thus, equal preferences and initial conditions can generate different finite-change WTP responses for different proposed changes.

### Local to global relationships

Suppose WTP data let us approximate $R(C,P)=-U_P/U_C$ at several points.
A single observation does not determine how the MRS changes elsewhere, so we
need restrictions that carry local information across consumption and
pollution levels. Two familiar restrictions are:

1. If the elasticity of $R$ with respect to the ratio $P/C$ is constant,
   then $\ln R$ is linear in $\ln(P/C)$, yielding a CES-type family.
2. If the elasticity of $R$ with respect to $P$ is constant and $R$ does not
   depend on $C$, then $\ln R$ is linear in $\ln P$, yielding a
   quasilinear family.

These are special cases of a more general constant-elasticity relationship.

### Generalizing elasticities of marginal utility

Write the marginal utilities as separate log-linear functions:

$$
\begin{aligned}
\ln(-U_P) &= a + \beta_{PP}\ln(P) + \beta_{PC}\ln(C),\\
\ln(U_C) &= b + \beta_{CP}\ln(P) + \beta_{CC}\ln(C).
\end{aligned}
$$

The coefficients are elasticities of the corresponding marginal utility:

$$
\begin{aligned}
\beta_{PP} &= \frac{P U_{PP}}{U_P},
&\quad \beta_{PC} &= \frac{C U_{PC}}{U_P},\\
\beta_{CP} &= \frac{P U_{CP}}{U_C},
&\quad \beta_{CC} &= \frac{C U_{CC}}{U_C}.
\end{aligned}
$$

Subtracting the second equation from the first gives the log of the positive
MRS $R=-U_P/U_C$:

$$
\ln(R)=(a-b)
+(\beta_{PP}-\beta_{CP})\ln(P)
+(\beta_{PC}-\beta_{CC})\ln(C).
$$

Thus the MRS elasticities identify differences of the marginal-utility
elasticities, not each coefficient separately. The two log-marginal-utility
equations also cannot be chosen independently: equality of mixed partials,
$U_{PC}=U_{CP}$, imposes restrictions on their coefficients. In particular,
the mixed-derivative equality can be written

$$
-\beta_{PC}\frac{-U_P}{C}
=\beta_{CP}\frac{U_C}{P}.
$$

If the cross-partial is zero, both cross elasticities must be zero:
$\beta_{PC}=\beta_{CP}=0$. A zero cross-partial is a separability
restriction; it does not follow merely from constant MRS elasticities. The
MRS itself is the more direct object to model.

The coefficients in the generalized MRS equation are
$\Lambda=a-b$, $\phi=\beta_{PP}-\beta_{CP}$, and
$\psi=\beta_{PC}-\beta_{CC}$.

### Generalized log-MRS model

Let $\phi$ and $\psi$ be the elasticities of the positive MRS with respect
to pollution and consumption. The general relationship is

$$
\boxed{\ln(R(C,P))=\Lambda+\phi\ln(P)+\psi\ln(C),\qquad R=-\frac{U_P}{U_C}>0.}
$$

Equivalently,

$$
\frac{\partial\ln R}{\partial\ln P}=\phi,\qquad
\frac{\partial\ln R}{\partial\ln C}=\psi.
$$

This model includes the main two-good utility families used here:

- If $\psi=0$, the MRS depends on $P$ alone and the preferences are
  quasilinear.
- If $\phi=-\psi$, the MRS depends only on $P/C$ and the preferences are
  homothetic; this gives the CES family, including its Cobb-Douglas limit.
- If $\phi+\psi\ne0$, the MRS depends on the scale of the bundle as well as
  its ratio, so the preferences are generally non-homothetic.

The corresponding utility representations and special cases are derived
below.

### WTP data to parameters

For each survey question $i$, the finite-change approximation gives
$R_i\approx\Delta_{C,i}/\Delta_{P,i}$. For sufficiently small changes, the
general model therefore implies

$$
\ln\left(\frac{\Delta_{C,i}}{\Delta_{P,i}}\right)
\approx \Lambda+\phi\ln(P_{c,i})+\psi\ln(C_{c,i}).
$$

With variation in both $P_c$ and $C_c$, this relationship can be estimated
by a log-linear regression. The design matrix with columns
$1,\ln(P_c),\ln(C_c)$ must have rank three to identify
$(\Lambda,\phi,\psi)$; with more observations, regression can be used.
Because the left-hand side is only an approximation
for finite pollution changes, estimates should be interpreted accordingly.
The log specification also requires positive observed WTP; zero or censored
responses need a separate treatment.

### Utility function from constant-elasticity assumptions

Set $A=\exp(\Lambda)$. The MRS restriction is equivalent to the differential
equation $U_P+A P^\phi C^\psi U_C=0$. Its indifference curves satisfy

$$
dC=A P^\phi C^\psi\,dP.
$$

Integrating yields a utility representation $U(C,P)=G(H(C,P))$, where
$G$ is any differentiable function with $G'>0$ and

$$
H(C,P)=
\begin{cases}
\dfrac{C^{1-\psi}}{1-\psi}
-A\dfrac{P^{1+\phi}}{1+\phi}, & \psi\ne1,\ \phi\ne-1,\\[6pt]
\ln(C)-A\dfrac{P^{1+\phi}}{1+\phi}, & \psi=1,\ \phi\ne-1,\\[6pt]
\dfrac{C^{1-\psi}}{1-\psi}-A\ln(P), & \psi\ne1,\ \phi=-1,\\[6pt]
\ln(C)-A\ln(P), & \psi=1,\ \phi=-1.
\end{cases}
$$

Indeed, $U_C=G'(H)C^{-\psi}$ and $U_P=-A G'(H)P^\phi$, so
$-U_P/U_C=A P^\phi C^\psi$. The arbitrary increasing transformation $G$
cannot be identified from WTP or MRS data. It also matters for cardinal
cross-partials:

$$
U_{PC}=U_{CP}=-A P^\phi C^{-\psi}G''(H).
$$

Thus an affine $G$ gives a zero cross-partial, whereas a nonlinear $G$ can
give a nonzero one without changing preferences or the MRS. The zero-cross-
partial claim is therefore about a particular utility representation, not
an implication of the MRS elasticities.

For $\psi=0$, the expression reduces to a quasilinear representation:

$$
U(C,P)=G\left(
C-A\int_1^P s^\phi\,ds
\right).
$$

For $\phi=-\psi$, let $k=1+\phi$. If $k\ne0$, the CES-type representation is

$$
U(C,P)=G\left(\frac{C^k-A P^k}{k}\right);
$$

if $k=0$, its limit is $G(\ln(C)-A\ln(P))$. When $\phi+\psi\ne0$, the
generalized representation is generally not homothetic. In all cases,
WTP identifies tradeoffs rather than the utility scale or location.

The CES and quasilinear utility examples below use convenient choices of
$G$; other increasing transformations represent the same preferences.

### CES utility visualization

We plot via python contours of the indifference curves for both utility aggregators across different values of the parameters $\nu$ and $\Lambda$.

![CES Utility Contours](../preference/_img/issues_20250930_gpp_wtp2u_ces.png)

```{python}
#| echo: false
#| eval: false
# We have equations:
#   - \widetilde{U}(C, P) = C^{1+\nu} - \exp{(\Lambda)} \cdot P^{1+\nu}, if nu != -1.
#   - \widetilde{U}(C, P) = \ln\left(C\right) - \exp{(\Lambda)} \cdot \ln(P), if nu = -1.
# loop over combinations of nu and lambda:
#   1. nu = -0.5, lambda = log(0.5)
#   2. nu = 0, lambda = log(0.5)
#   3. nu = 0.5, lambda = log(0.5)
#   4. nu = -0.5, lambda = 0
#   5. nu = 0.0, lambda = 0
#   6. nu = 0.5, lambda = 0
#   7. nu = -0.5, lambda = log(2)
#   8. nu = 0.0, lambda = log(2)
#   9. nu = 0.5, lambda = log(2)
# Generate contour 3 by 3 contour plots, with 1,2,3 first row, 4,5,6 second row, 7,8,9 third row.
# Specifically, in each plot:
# (1) The x-axis is pollution (P), the y-axis is consumption (C), and the z-axis is \widetilde{U}(C, P)
# (2) generate contour plot of \widetilde{U} for values of C and P between 0 and 1
# (3) the contour plots should each have 5 levels, use darkred to darkgreen color map, and show contour value levels for each contour line

nu_lambda_combos = [
    (-0.5, np.log(0.5)),
    (0.0, np.log(0.5)),
    (0.5, np.log(0.5)),
    (-0.5, 0.0),
    (0.0, 0.0),
    (0.5, 0.0),
    (-0.5, np.log(2)),
    (0.0, np.log(2)),
    (0.5, np.log(2)),
]

C_grid = np.linspace(0.01, 1, 100)
P_grid = np.linspace(0.01, 1, 100)
C_mesh, P_mesh = np.meshgrid(C_grid, P_grid)

fig, axes = plt.subplots(3, 3, figsize=(16, 16))
contour_colors = LinearSegmentedColormap.from_list("custom_rg", ["red", "green"], N=7)

for idx, (nu, Lambda) in enumerate(nu_lambda_combos):
    ax = axes[idx // 3, idx % 3]
    if nu != -1:
        U_mesh = C_mesh ** (1 + nu) - np.exp(Lambda) * P_mesh ** (1 + nu)
    else:
        U_mesh = np.log(C_mesh) - np.exp(Lambda) * np.log(P_mesh)
    levels = np.linspace(np.min(U_mesh), np.max(U_mesh), 7)
    cs = ax.contour(
        C_mesh, P_mesh, U_mesh, levels=levels, cmap=contour_colors, linewidths=2
    )
    ax.clabel(cs, inline=True, fontsize=10, fmt="%.2f")
    ax.set_title(f"$\\nu$={nu}, $\exp(\\Lambda)$={np.exp(Lambda):.2f}")
    ax.set_xlabel("Consumption (C)")
    ax.set_ylabel("Pollution (P)")
    ax.grid(True)

plt.tight_layout()
plt.suptitle(
    "Contour Plots of $\\widetilde{U}(C, P)$ for Different $\\nu$ and $\\Lambda$",
    fontsize=18,
    y=1.02,
)
plt.show()
```

### Quasilinear utility visualization

![quasilinear Utility Contours](../preference/_img/issues_20250928_gpp_wtp2u_linc.png)

```{python}
#| echo: false
#| eval: false
import numpy as np
from matplotlib.colors import LinearSegmentedColormap
import matplotlib.pyplot as plt
import matplotlib.cm as cm

# 2025-10-15 12:20:09, AIS = 
# We have equations:
#   - \widetilde{C}(C, P) = C - \exp{(\Lambda)} \cdot \frac{P^{1+\nu}}{1+\nu}, if nu != -1.
#   - \widetilde{C}(C, P) = C - \exp{(\Lambda)} \cdot \ln(P), if nu = -1.
# loop over combinations of nu and lambda:
#   1. nu = -0.5, lambda = log(0.5)
#   2. nu = 0, lambda = log(0.5)
#   3. nu = 0.5, lambda = log(0.5)
#   4. nu = -0.5, lambda = 0
#   5. nu = 0.0, lambda = 0
#   6. nu = 0.5, lambda = 0
#   7. nu = -0.5, lambda = log(2)
#   8. nu = 0.0, lambda = log(2)
#   9. nu = 0.5, lambda = log(2)
# Generate contour 3 by 3 contour plots, with 1,2,3 first row, 4,5,6 second row, 7,8,9 third row.
# Specifically, in each plot:
# (1) The x-axis is pollution (P), the y-axis is consumption (C), and the z-axis is \widetilde{C}(C, P)
# (2) generate contour plot of \widetilde{C} for values of C and P between 0 and 1
# (3) the contour plots should each have 5 levels, use darkred to darkgreen color map, and show contour value levels for each contour line

nu_lambda_combos = [
    (-0.5, np.log(0.5)),
    (0.0, np.log(0.5)),
    (0.5, np.log(0.5)),
    (-0.5, 0.0),
    (0.0, 0.0),
    (0.5, 0.0),
    (-0.5, np.log(2)),
    (0.0, np.log(2)),
    (0.5, np.log(2)),
]

C_grid = np.linspace(0.01, 1, 100)
P_grid = np.linspace(0.01, 1, 100)
C_mesh, P_mesh = np.meshgrid(C_grid, P_grid)

fig, axes = plt.subplots(3, 3, figsize=(16, 16))
contour_colors = LinearSegmentedColormap.from_list("custom_rg", ["red", "green"], N=7)

for idx, (nu, Lambda) in enumerate(nu_lambda_combos):
    ax = axes[idx // 3, idx % 3]
    if nu != -1:
        U_mesh = C_mesh - np.exp(Lambda) * P_mesh ** (1 + nu) / (1 + nu)
    else:
        U_mesh = C_mesh - np.exp(Lambda) * np.log(P_mesh)
    levels = np.linspace(np.min(U_mesh), np.max(U_mesh), 7)
    cs = ax.contour(
        C_mesh, P_mesh, U_mesh, levels=levels, cmap=contour_colors, linewidths=2
    )
    ax.clabel(cs, inline=True, fontsize=10, fmt="%.2f")
    ax.set_title(f"$\\nu$={nu}, $\exp(\\Lambda)$={np.exp(Lambda):.2f}")
    ax.set_xlabel("Consumption (C)")
    ax.set_ylabel("Pollution (P)")
    ax.grid(True)

plt.tight_layout()
plt.suptitle(
    "Contour Plots of $\\widehat{C}(C, P)$ for Different $\\nu$ and $\\Lambda$",
    fontsize=18,
    y=1.02,
)
plt.show()
```
