01 / 21

Derivatives for
Demand & Revenue

Learn how marginal analysis uses derivatives to find optimal pricing, maximize revenue, and interpret demand curves like an economist.

Business Calculus

What Is a Demand Function?

A demand function \( D(p) \) (or equivalently \( q = f(p) \)) tells you the quantity demanded of a product at a given price \( p \). As price rises, demand typically falls: the curve slopes downward.

Price (p) Quantity (q) \( D(p) \) 0 25 50 200 100

Building the Revenue Function

Revenue is simply price times quantity. If quantity depends on price through a demand function \( D(p) \), then:

This is a downward-opening parabola: revenue starts at zero, rises to a maximum, then falls back to zero. The derivative \( R'(p) \) tells us exactly where revenue peaks.

Why Derivatives Matter Here

Marginal Demand
\( D'(p) \) measures how demand changes per $1 price increase. It is typically negative.
Marginal Revenue
\( R'(p) \) measures the extra revenue earned by a small price increase. It can be positive or negative.
Optimization
Setting \( R'(p) = 0 \) finds the price that maximizes revenue: the turning point of the parabola.

Core Rule: Marginal Revenue

This formula has two intuitive parts:

1
\( D(p) \): revenue gained from selling existing units at the slightly higher price.
2
\( p \cdot D'(p) \): revenue lost because the price hike drives some customers away (this term is negative).

Visualizing Maximum Revenue

Price (p) R(p) Max R = 2500 \( p=25 \) \( R(p) = 200p - 4p^2 \) 0 10 20 30 40 50

\( D'(p) \) vs. \( R'(p) \)

\( D'(p) \) \( R'(p) \)
Measures Change in quantity per $1 Change in revenue per $1
Typical Sign Always negative Positive, then negative
Key Insight Steeper = more price-sensitive Zero at max revenue
Units \( \text{units} / \text{dollar} \) \( \text{dollars} / \text{dollar} \)

How to Find Maximum Revenue

1
Write the revenue function. Multiply price by demand: \( R(p) = p \cdot D(p) \). Expand if needed.
2
Differentiate. Find \( R'(p) \) using power rules or the product rule.
3
Set \( R'(p) = 0 \). Solve for the critical price \( p^* \).
4
Confirm it is a maximum. Check \( R''(p^*) < 0 \) (concave down) or use a sign chart for \( R'(p) \).
5
Compute max revenue. Plug \( p^* \) back into \( R(p) \) to get the dollar amount.

Example 1: Linear Demand

A coffee shop finds that daily demand is \( D(p) = 300 - 6p \) cups when the price is \( p \) dollars. Find the price that maximizes daily revenue.

1
\( R(p) = p(300 - 6p) = 300p - 6p^2 \)
2
\( R'(p) = 300 - 12p \)
3
Set \( 300 - 12p = 0 \implies p^* = 25 \)
4
\( R''(p) = -12 < 0 \) ✓ confirmed maximum
5
\( R(25) = 300(25) - 6(625) = 7500 - 3750 = \$3{,}750 \)

Example 2: Nonlinear Demand

A streaming service models subscribers (in thousands) as \( D(p) = \frac{500}{p + 5} \) where \( p \) is the monthly fee in dollars.

1
\( R(p) = p \cdot \frac{500}{p + 5} = \frac{500p}{p + 5} \)
2
Quotient rule: \( R'(p) = \frac{500(p+5) - 500p}{(p+5)^2} = \frac{2500}{(p+5)^2} \)
3
\( R'(p) = \frac{2500}{(p+5)^2} > 0 \) for all \( p > 0 \). Revenue is always increasing!

Example 3: Quadratic Demand

A gadget maker has demand \( D(p) = 1000 - 2p^2 \) for \( 0 \le p \le 22 \). Find the revenue-maximizing price.

1
\( R(p) = p(1000 - 2p^2) = 1000p - 2p^3 \)
2
\( R'(p) = 1000 - 6p^2 \)
3
\( 1000 - 6p^2 = 0 \implies p^2 = \frac{500}{3} \implies p^* \approx 12.91 \)
4
\( R''(p) = -12p \). At \( p^* \approx 12.91 \): \( R'' \approx -155 < 0 \) ✓ max
5
\( R(12.91) \approx 1000(12.91) - 2(12.91)^3 \approx 12{,}910 - 4{,}303 = \$8{,}607 \)

The Product Rule in Action

When you cannot easily expand \( R(p) = p \cdot D(p) \), apply the product rule directly. Let \( u = p \) and \( v = D(p) \):

This is especially useful for demand functions involving square roots, exponentials, or fractions where expanding would be messy.

Interpreting the Sign of \( R'(p) \)

Price (p)
\( R'(p) > 0 \)
Revenue rising
\( R'(p) < 0 \)
Revenue falling
\( p^* = 25 \)
\( R'(p) > 0 \)
Raising price increases revenue. The gain from higher price outweighs lost sales.
\( R'(p) < 0 \)
Raising price decreases revenue. Lost sales now outweigh the price gain.

Confirming with \( R''(p) \)

After finding \( p^* \) where \( R'(p^*) = 0 \), the second derivative test tells you the nature of the critical point:

\( R''(p^*) < 0 \)
Concave down at \( p^* \). This is a maximum: revenue peaks here.
\( R''(p^*) > 0 \)
Concave up at \( p^* \). This is a minimum: revenue has a trough (rare in standard models).
\( R''(p^*) = 0 \)
Inconclusive. Use a sign chart of \( R'(p) \) around \( p^* \) instead.

Common Mistakes to Avoid

✕ Forgetting the Product Rule
Students write \( R'(p) = p \cdot D'(p) \), dropping the \( D(p) \) term. Remember: \( R' = D(p) + p \cdot D'(p) \).
✕ Ignoring the Domain
A critical point at \( p = -5 \) is meaningless for pricing. Always check that \( p^* > 0 \) and \( D(p^*) > 0 \).
✕ Confusing \( D'(p) \) and \( R'(p) \)
Setting \( D'(p) = 0 \) does not find max revenue. You need \( R'(p) = 0 \). Demand's derivative has a different meaning.

Summary of Key Formulas

Concept Formula What It Tells You
Demand \( q = D(p) \) Quantity at price \( p \)
Revenue \( R(p) = p \cdot D(p) \) Total income at price \( p \)
Marginal Revenue \( R'(p) = D(p) + pD'(p) \) Revenue change per $1
Optimal Price Solve \( R'(p) = 0 \) Where revenue is maximized
Max Confirmation \( R''(p^*) < 0 \) Confirms a peak, not a valley

Question 1 of 5

If \( D(p) = 400 - 8p \), what is the revenue function \( R(p) \)?

Question 2 of 5

Given \( R(p) = 400p - 8p^2 \), what is the marginal revenue \( R'(p) \)?

Question 3 of 5

A company's revenue is \( R(p) = 600p - 12p^2 \). At what price is revenue maximized?

Question 4 of 5

Using the product rule, \( R'(p) = D(p) + p \cdot D'(p) \). If \( D(p) = 100 - 2p \), what does \( R'(10) \) equal?

Question 5 of 5

If \( R'(p^*) = 0 \) and \( R''(p^*) = -8 \), what can you conclude?