How To Find Demand Function From Utility Function
So, you’ve got a utility function—that magical little math expression that sums up your happiness from eating tacos and watching cat videos. And now you want to know: how do I get from “I love tacos” to “I’ll buy 5 tacos at this price”? That, my friend, is the demand function. Don’t worry; it’s easier than it sounds—and a lot more fun than filing taxes.
First, a quick reality check: your utility function is like a recipe for joy. But joy has a budget—unless you’re a billionaire who buys islands on a whim (in which case, hire me!). So we need to maximize happiness while staying within your wallet’s comfort zone. That’s called utility maximization, and it’s the secret sauce of demand.
Step 1: Set Up Your Budget Constraint (aka “The Wallet Sermon”)
Imagine you have two goods: tacos (T) and ramen (R). Your income is $I$, and prices are $P_T$ and $P_R$. Your budget constraint is: $P_T \times T + P_R \times R = I$. Simple, right? It just says: don’t spend more than you have—unless you like eating instant noodles after bills.
Must Read
- Did Kelly Clarkson Just Get Julia Roberts Treatment? The Untold Truth Behind Brooklyn’s $15m Animatronic Bird Drama
- The 5-minute Visit That Broke The Internet: How Kelly Clarkson Sparked A $15 Million Mechanical Bird War
- Petty Revenge Or Viral Genius? Brooklyn Store Slaps $15,000,000 Tag On Molly The Bird After Kelly Clarkson Backlash
Now, you want to get the most “utils” (economist-speak for joy) from each dollar. That means you’ll eat tacos until the marginal utility per dollar of a taco equals that of ramen. Seriously, economists think about this while ordering pizza.
Step 2: Find the Marginal Utility (Time to Play with Derivatives)
Marginal utility is just the extra happiness from one more taco. If your utility function is $U(T, R) = T^{0.5} \times R^{0.5}$, take the derivative with respect to T. That gives you: $MU_T = 0.5 \times T^{-0.5} \times R^{0.5}$. Don’t panic—it’s just math that looks like alien code. Do the same for ramen: $MU_R = 0.5 \times T^{0.5} \times R^{-0.5}$.
Here’s the fun part: these derivatives say, “Hey, if you have a lot of tacos already, one more taco isn’t that thrilling.” That’s the law of diminishing marginal utility—your first taco is heaven, your tenth is a comfort eating regret.
Step 3: Set Up the Optimality Condition (The “Equal Joy per Dollar” Rule)
The golden rule of utility maximization is: $\frac{MU_T}{P_T} = \frac{MU_R}{P_R}$. In English: the extra joy from the last taco, divided by its price, should equal the extra joy from the last ramen, divided by its price. If tacos give more joy per buck, you’d buy more tacos until the balance resets—like a see-saw of deliciousness.

Plug in your marginal utilities: $\frac{0.5 T^{-0.5} R^{0.5}}{P_T} = \frac{0.5 T^{0.5} R^{-0.5}}{P_R}$. See those 0.5s? They cancel out! (Math fairies love when that happens.) Now you get: $\frac{R^{0.5}}{T^{0.5} P_T} = \frac{T^{0.5}}{R^{0.5} P_R}$.
Cross-multiply to get: $R \times P_R = T \times P_T$. That’s simpler than it looks—it means you’ll spend the same amount on tacos and ramen. Deep down, your budget is balanced like a zen garden of snacks.
Step 4: Solve for T in Terms of Prices and Income
Remember your budget: $P_T T + P_R R = I$. And from step 3, $P_R R = P_T T$. Substitute that in: $P_T T + P_T T = I$, so $2 P_T T = I$. Divide by $2P_T$, and boom: $T = \frac{I}{2P_T}$. That’s your demand function for tacos!
Check it out: if income doubles, you buy twice as many tacos. If price doubles, you buy half as many. Economists call this “rational behavior”—I call it “taco logic 101.” And yes, your demand for ramen will be $R = \frac{I}{2P_R}$. Perfect symmetry. Almost as satisfying as a perfect taco bite.
But Wait—What If Utility Functions Are Weird?
Sometimes utility functions are wacky, like $U = T + \ln(R)$ or $U = \min(T, 2R)$. For those, you’ll use a slightly different recipe. With Cobb-Douglas functions (like $T^a R^b$), the demand is always: spend a fraction of income on each good. For perfect substitutes, you buy only the cheaper one—sorry, fancy ramen.

For perfect complements (like peanut butter & jelly), you buy them in fixed ratios. The math gets a bit wild, but the idea stays the same: maximize joy, respect your wallet. You’re basically an economic ninja.
Why This Actually Matters (In Real Life, Not Just Homework)
Knowing how to derive a demand function means you understand why you buy more Netflix when your salary jumps, or why you switch to store-brand cereal when prices bite. It’s the invisible hand giving you a high-five. Plus, when your econ professor asks, “What’s the demand for utility function $U = x^a y^{1-a}$?” you can smile and say, “Easy—it’s $x = aI/P_x$.”
And here’s a secret: if you ever get stuck, just remember—the demand function is your utility function’s best friend. They go together like fries and ketchup, like Wifi and procrastination. Once you find one, the other is just a few algebraic steps away.
A Quick Cheer Before You Go
So go ahead—grab a taco (or ramen), scribble some derivatives, and watch as your utility function magically shapes the demand curve. You’re not just learning economics; you’re learning how to predict your own cravings. And that’s powerful. Even if you’re still hungry afterward.
Remember: in the vast buffet of life, your demand function is just the universe’s way of saying, “You deserve the perfect amount of everything.” Now go maximize your joy—one equation, and one snack, at a time.
