Indifference Curves and Utility Functions

We get into indifference curves and utility functions — why some baskets make you equally happy, and why piling on more stuff gives you less of a kick each time.

Picking up right where we left off in the last post. No intro. If you’re curious, just go read the previous post and come back hehehe.

So. Say there are infinitely many baskets, numbered 1 through 99999999999999999, and some person, no matter which numbered basket they pick, says they feel “equally happy” about it. Now let me draw all those 99999999999999999999999 baskets as points on a coordinate plane. (Pay attention to the axes.)

Equation from the original notes

Wait — I said I was going to plot points, so why is this a line?

It’s just that there are SO many points that it looks like a line.. ;_; lol Anyway, the shape of “baskets a person feels equally happy with no matter which of the 99999999999999999999999999 they pick” looks like that. Whyyyyyyy? Let me try to explain it in my own way.

Equation from the original notes

If I grab two points out of the many — call them A and B — and try to explain it: why does picking basket A and picking basket B give the same happiness? You’ve probably already noticed,

Equation from the original notes

“Basket B has less clothing than A, but it makes up for it with food in (its own proportional way), so it’s all good ^^” is what they’d say.

The reason I phrased it as “in its own proportional way” is that when you plot out the baskets each person feels indifferent about, the slopes of the curves are different from person to person!!!

Why are the slopes different?

Because when one thing decreases, the other has to increase to make up for it, and the ratio by which it has to increase is different for different people.

Equation from the original notes

<This guy is probably all about looking sharp.>

Equation from the original notes

<This guy is probably a total pig, shake it~>

Utility, one good at a time

Up until now I’ve just been saying “liking” or “preferring.” But the thing that numerically represents this liking, this preferring, is called utility. So this time, we’re going to study the utility function.

Now, instead of looking at two goods like above, I’ll shift the camera onto a single good.

(We’ll bump it back up to 2 later.)

Here, we assume that having more of either good is better.

(We are talking about goods you actually want — obviously excluding stuff like poop, filth, and so on)

For consistency I’ll go with ‘clothing.’ (I want lots of clothes too T_T)

Diminishing marginal utility

For our diminishing-marginal-utility example, we’ll choose a concave utility scale for clothing. More-is-better alone doesn’t force that shape! The function

Equation from the original notes

won’t be the straight-line one we choose here.

Equation from the original notes

For our diminishing-marginal-utility example, utility looks like this. If we read the graph, it’s saying this:

Equation from the original notes

Comparing when you have a little clothing vs. a lot of clothing, even with the same increase in clothing, the size of the utility bump is different.

So here’s what that means. If you hand 100,000 won to a broke kid like me, I’d be all “SQUEEEAAAL!!!” But if you hand 100,000 won to a cartoonishly rich “I-geoni” — my wink at Lee Kun-hee in this made-up joke — they’d probably toss it because it’s bad luck or whatever lol

Now you see why I called humans fickle!!! We get used to having more, forget what it felt like to have less, and another equally big increase doesn’t make us squeal quite as loudly… That’s my grumbling intuition for this example, hehe.

That’s the diminishing marginal utility pattern we’re choosing. But remember, ordinary consumer utility is ordinal: squaring the positive $U=\sqrt{xy}$ gives $\widetilde U=xy$, the same preference ranking with constant marginal utility of x when y is fixed. So diminishing marginal utility depends on the representation, not just on the ranking! Now let me shrink the increase to an infinitesimal unit.

Equation from the original notes

“Marginal utility” = “the ratio of utility increase to the amount of the increase”

<The increase in utility when one unit goes up>

Equation from the original notes

So!!! Marginal utility is what the derivative of the graph above represents, and the law of diminishing marginal utility means the graph is one where the slope decreases as clothing increases!

The textbook example of such a graph, mathematically, is y = \sqrt{x} and that’s what we’re going to use. So let’s just assume this.

Equation from the original notes

Two goods and the total utility function

For food too, we’ll assume a square-root factor for this example, then expand back to 2 goods. It’s a modeling choice, not a deduction from more-is-better alone.

Equation from the original notes

OK, when carrying these formulas around, writing them with the words “clothing” and “food” is annoying, so: clothing → x, food → y. Let’s just go with that~~~

So so so so so

Equation from the original notes

we define them like this, and so!!! the total utility function $U(x,y)$ comes out to be this.

Equation from the original notes

Wow, ok hold on…… why exactly is the total utility function defined as the product of the utilities of each good?

It could be a sum, or a square, or a cube, etc. — there are tons of options, so why specifically the product?!?! Here we’re choosing the product as a handy example: $U(x,y)=\sqrt{xy}$. A sum or another form can describe other preferences. Multiplying isn’t a rule that every utility function has to follow! We’ll use positive x and y for the strict-more-is-better and derivative arguments below; on an axis this particular product is zero.

Honestly, I wasn’t very fond of the argument that was about to lead us to the product form. That’s my personal discomfort with the explanation, not a reason to mistake this chosen example for a universal utility rule!

Seeing it in three dimensions

First, we need to interpret the two-variable function $U(x,y)$. To keep the logic consistent with what we’ve been doing, I’ll think of $x$ and $y$ as “the number of units of each good.” So picture it as the number of units of each good sitting inside the basket.

And here, instead of writing $U(x,y)$, I’ll write it as $z$ and read it as ‘utility (happiness).’

Equation from the original notes

The reason I’m doing that is because I want to draw it on a 3D coordinate axis. When you’re drawing, $z$ feels nicer than $U$. When I need to read it as utility again later, I’ll switch back to $U$…

(sorry for going back and forth hehehe)

Look at this.

Equation from the original notes

Equation from the original notes

Plotted in MATLAB, it comes out like that.

I’ll explain “the line below the ground” in a sec.

First — the height each point on the surface floats above the $xy$-plane is exactly the utility (happiness) you get from picking that much $x$ and that much $y$.

Equation from the original notes

Oh, and do you see the ‘indifference curve’ on this surface ($z=c$)? The lines I projected down to the floor are the indifference curves, and the same-colored lines on the surface…. that is, the points on the line at the same height on the $z$-axis (that’s called a set)

Those points form the indifference curve corresponding to each $U$ value ($z$ value).

If you understand the basic equation of a plane, the indifference curve falls right out of that, so I’ll stop explaining here.

Marginal utility in the math

OK so now we’re going to look at z = \sqrt{xy} mathematically. For the two-variable function $z(x,y)$, the change in the dependent variable $z$ is

Equation from the original notes

defined like this via partial derivatives. So if we use the name $U$ for this function,

Equation from the original notes

And

Equation from the original notes

Oh ho~ Is the “law of diminishing marginal utility” baked into this expression?!

Yes it is!!@@!!! Why? Because \left(\frac{\partial U}{\partial x}\right)_y means: “(with $y$ fixed) by how much does utility change as $x$ changes by this much~~?” That is — \left(\frac{\partial U}{\partial x}\right)_y is the “marginal utility” of good $x$.

Now, here —

Equation from the original notes

with $y$ fixed, as $x$ gets bigger, this quantity gets smaller.

Equation from the original notes

That is, marginal utility decreases!

One piece of corroboration is sitting right here: “If the utility function has the form x^n, then it needs $0 < n < 1$.” For this power-function example, $0\lt n\lt1$ makes marginal utility positive and decreasing. An exponent above 1 gives increasing marginal utility instead — that changes our example, not the foundations of economics!

Four rules for indifference curves

Along with this, let me write a few more things about the indifference curve — the struggles to keep economic logic intact.

  1. When both \frac{\partial U}{\partial x},\ \frac{\partial U}{\partial y} are positive, the indifference curve has a negative slope.
  2. Every consumption basket lies on a unique indifference curve.
  3. Indifference curves cannot intersect.
  4. Indifference curves do not overlap.

Let me talk about #1. #1 already showed up above. The fact that \frac{\partial U}{\partial x},\ \frac{\partial U}{\partial y} are positive means the consumer likes having $x$ and $y$. And \frac{\partial U}{\partial x} > 0 means that when $dx > 0$, $dU > 0$, and the meaning of that is: when $dx > 0$ — if you get more $x$ — $dU > 0$: your happiness changes in the positive direction. That’s what this is saying.

Let’s hit #2. First — for a fixed set of consistent preferences, each basket belongs to one indifference curve!!!! That means one set of equally preferred baskets through that point.

Why does it break if it’s not unique?

Let’s say the same basket, (2 units, 4 units), belonged to two different indifference levels in the same utility representation. That would assign two different levels to one basket — not a well-defined function!

The utility representation itself is not unique: an increasing transformation gives the same preferences and the same indifference curves. The ranking is what matters.

Third — two distinct indifference curves for the same preferences can’t intersect!! Hypothetically, say two different indifference curves crossed each other,

Equation from the original notes

if two different utility levels overlapped like this, what logic breaks? If all the points on these two curves give the same level of satisfaction to a given person —

Equation from the original notes

let’s say this person was sitting at point A, enjoying some amount of satisfaction, and then moved to either B or C. The thing is, it doesn’t make sense for them to feel the same satisfaction at both B and C. When this person is holding the same quantity of $x$, does it really make sense that they feel the same satisfaction holding the $C$-amount of $y$ and holding the $B$-amount of $y$? hehehe What kind of split personality is that lol

And then, fourth — #4 is the same vibe as #3. ‘Can’t intersect’ leads to ‘don’t overlap.’ That is, the indifference curve must not have any area.

Equation from the original notes

That they don’t overlap like this!!! — by running the same argument we used for #3, I’m pretty sure we can prove “this is not allowed” too. So I’ll move on. Move on? Then we’re done lol

In the next post I’ll push further, but anyway, to recap —

Equation from the original notes

the utility function, for each utility $U_1, U_2, U_3, \ldots$ and so on, is drawn like the projected lines below, and from here on, unless something weird comes up, I’m going to draw stuff assuming the utility function below. ok cool.

This was a kind of rough-and-ready post, so if you have any leftover questions, drop them in the comments.

P.S. Did you know? I converted the blog posts into PDFs and offered those notes for sale :-) PDF copies of my physics and finance notes — original purchase information .


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • In the differentiation picture, the partial derivatives are of the total function $U(x,y)=\sqrt{xy}$; the separate $U(x)=\sqrt{x}$ and $U(y)=\sqrt{y}$ labels name its factors.

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.