MATH 150 · Mathematics for Economics I

The Derivative as a Marginal Value

Define the derivative as the limit of the slope, read it as marginal cost and marginal revenue, and use it to find a profit-maximizing output.

Key takeaways

  • The derivative of a function at a point is the limit of the slope of secant lines as the interval shrinks, which equals the slope of the tangent line there.
  • In economics the derivative of a total is the marginal value: marginal cost from total cost, marginal revenue from total revenue.
  • A positive derivative means the function is rising, a negative one means falling, and zero means a flat spot where a peak or valley may sit.
  • The derivative gives a good estimate of the change from one more unit, though not an exact one, because marginal values keep changing.
  • A firm that wants maximum profit expands output until marginal revenue falls to equal marginal cost.

A bagel shop owner named Tess stands at the oven at 5 a.m. and asks herself one question that matters more than any other: should I bake one more dozen?

She does not ask about the whole day. She does not ask what the average dozen costs, because the oven fee spread across many dozens will fool her. She asks what changes if she bakes one more. How much more will it cost? How much more will it bring in?

Economists call that kind of question a marginal question, and the derivative is its exact mathematical form. It takes the idea of the instantaneous rate of change from the last lesson and gives it a name, a notation and a job.

Defining the derivative

For a function f, the derivative at x is

f′(x) = limit as h approaches 0 of (f(x + h) − f(x)) / h

The symbol f′ is read "f prime." Another common notation is df/dx, which looks like a fraction but is one symbol for "the derivative of f with respect to x." For a function of time, you will sometimes see a dot, or the letter d in front of the variable.

Let's do the work for Tess's cost curve. Her total cost of baking q dozen is

C(q) = 50 + 2q + 0.1q²

The $50 is the oven fee, $2 is ingredient cost per dozen, and the 0.1q² grows because a crowded kitchen is a slow, wasteful one.

C(q + h) − C(q) = 2h + 0.1(2qh + h²) = 2h + 0.2qh + 0.1h²
Divide by h:       2 + 0.2q + 0.1h
Let h approach 0:  2 + 0.2q

So C′(q) = 2 + 0.2q. At q = 10, that is 4, which agrees with the number we squeezed out last time. At q = 20 it is 6. At q = 30 it is 8.

Tess's cost curve and its tangent at 10 dozen
Total cost ($) 10 $80 Total cost Tangent, slope 4 10 dozen, $80 Dozens baked Total cost ($) 10 $80 Total cost Tangent, slope 4 10 dozen, $80 Dozens baked

The tangent touches the curve at one point. Its slope, 4, is the marginal cost there.

Notice that the slope gets steeper as q grows. That matches the story: each new dozen is costlier than the last.

Reading the derivative as "marginal"

Because the derivative is an instantaneous slope, it measures the marginal effect: how much the output changes for a tiny added unit of input.

  • The derivative of total cost is marginal cost (MC).
  • The derivative of total revenue is marginal revenue (MR).
  • The derivative of total profit is marginal profit.
  • The derivative of total utility, a measure of satisfaction, is marginal utility.

Always attach units. C′(10) = 4 means dollars of cost per dozen of bagels, evaluated at 10 dozen.

Why "tiny" added unit? The derivative is a limit, so it is the exact rate at a point. One more full dozen is a step of size 1, not 0. The derivative gives a good estimate of the cost of that step, as long as the slope does not change much across it.

Check how good. C′(10) = 4 estimates that the 11th dozen adds about $4. The actual figure is C(11) − C(10) = 84.1 − 80 = 4.1. The error is a dime. The estimate is off a bit because the slope increases across the step: at 10 it is 4, and at 11 it is 4.2, and the real step averages those, 4.1.

To get a still better estimate for a step of half a dozen, use the tangent line:

C(10.5) ≈ 80 + 4 × 0.5 = 82
Actual: 50 + 21 + 0.1 × 110.25 = 82.025

Off by two and a half cents. The tangent line is a small-step approximation. The smaller the step, the better it works.

The sign of the derivative

The derivative also tells a story of direction.

Sign of f′(x) What the curve is doing Example in economics
Positive Rising Total cost always rises with output
Negative Falling Quantity demanded falls as price rises
Zero Momentarily flat Possible peak or valley

A zero derivative marks a place where the curve levels off. If you are looking for the best output, that is where to look. The method is spelled out in finding maximums and minimums.

Reading a derivative at a glance
Positive and growing Rising ever faster, like total cost for a crowded kitchen. Positive and shrinking Still rising but with diminishing gains, like output from a fixed oven. Zero Level for an instant. A candidate for the top of a hill or bottom of a valley. Negative Falling. More of the input now lowers the total. Positive and growing Rising ever faster, like total cost for a crowded kitchen. Positive and shrinking Still rising but with diminishing gains, like output from a fixed oven. Zero Level for an instant. A candidate for the top of a hill or bottom of a valley. Negative Falling. More of the input now lowers the total.

Derivatives you can already take

A few quick results save time.

  • A constant, such as 50, has derivative 0. A fee that never changes adds nothing at the margin.
  • A line y = mx + b has derivative m everywhere. The slope is the same at every point.
  • The square function q² has derivative 2q. You can check this with the limit: ((q + h)² − q²) / h = 2q + h, which goes to 2q.
  • A constant times a function gives the constant times the derivative.
  • The derivative of a sum is the sum of the derivatives.

Apply these to C(q) = 50 + 2q + 0.1q²:

C′(q) = 0 + 2 + 0.1 × 2q = 2 + 0.2q

Same as before, in one line. The next lesson collects these into rules.

Why economists lean on the margin

Why not just compare totals? Because totals hide the decision. Tess could compare her profit at 10 dozen, at 20 and at 30 by computing the whole thing each time. That works, but it needs a calculation for every possible quantity, and it does not show her which way to move.

The marginal approach is a compass. At any quantity she can check one thing: is the next dozen worth more than it costs? If yes, go up. If no, go down. She settles where the answer flips. A hiker on a foggy hill does the same thing, feeling for the direction the ground rises and stepping that way, without needing a map of the whole mountain.

This is why the first lesson of microeconomics is thinking at the margin. People rarely decide between all or nothing. They decide whether to study one more hour, drive one more mile, or hire one more worker. The derivative is the tool that turns that habit into numbers.

It also guards against a classic error, the sunk cost trap. The $50 oven fee is already owed. It does not appear in C′(q), and rightly so. It cannot change the answer to "should I bake one more dozen?"

A worked example: Tess chooses how many to bake

Tess faces demand for her bagels. Suppose she can sell q dozen at a price of

p = 14 − 0.1q

dollars per dozen, the same shape of inverse demand used in lines, slopes and intercepts.

Step 1: Write total revenue.

R(q) = p × q = 14q − 0.1q²

Step 2: Take the derivative to get marginal revenue.

R′(q) = 14 − 0.2q

Compare with price: at q = 10, the price is $13, but marginal revenue is only $12. To sell the extra dozen, she must lower the price on all of them, so the net gain is less than the price. This is the same effect you saw in the revenue hill.

Step 3: Recall marginal cost.

C′(q) = 2 + 0.2q

Step 4: Compare the two at the margin. At q = 10, MR = 12 and MC = 4. Another dozen brings in $8 more than it costs. Bake it. At q = 40, MR = 6 and MC = 10. Another dozen costs $4 more than it brings in. Do not bake it.

Step 5: Set MR equal to MC and solve.

14 − 0.2q = 2 + 0.2q
12 = 0.4q
q = 30

Step 6: Find the price and profit at q = 30.

p = 14 − 3 = $11
R = 11 × 30 = 330
C = 50 + 60 + 90 = 200
Profit = 330 − 200 = $130

Step 7: Check the neighbors.

q = 29:  R = 406 − 84.1 = 321.9,  C = 50 + 58 + 84.1 = 192.1,  profit = 129.80
q = 31:  R = 434 − 96.1 = 337.9,  C = 50 + 62 + 96.1 = 208.1,  profit = 129.80

Both neighbors do slightly worse than $130. The rule works.

Marginal revenue meets marginal cost
Dollars per dozen 30 $8 Marginal revenue Marginal cost Best output bake more bake less Dozens baked Dollars per dozen 30 $8 Marginal revenue Marginal cost Best output bake more bake less Dozens baked

Left of 30, each dozen adds more than it costs. Right of 30, it adds less.

The rule MR = MC is one of the most used results in economics. A competitive seller has marginal revenue equal to the market price, giving "price equals marginal cost," which you will see in perfect competition and profit maximization. A seller with market power, as in monopoly, sets marginal revenue equal to marginal cost and then charges the higher price that demand allows.

Notice a subtle point. At q = 30, the price is $11 but MC is $8. That gap exists because Tess faces a downward-sloping demand curve. With a different market, the numbers change and the logic stays.

Average versus marginal

People mix up average and marginal values all the time, so pin down the difference with Tess's own numbers.

At q = 20 dozen:

Average cost = C / q = 130 / 20 = $6.50 per dozen
Marginal cost = C′(20) = 2 + 4 = $6.00 per dozen

Here the marginal cost is below the average, so adding a dozen pulls the average down. At q = 30:

Average cost = 200 / 30 = $6.67
Marginal cost = 8

Now marginal exceeds average, so another dozen pulls the average up. The two lines cross where average cost is lowest, which is a useful fact for later: the minimum of average cost happens where MC equals AC. Compare it to a grade point average. A new test score above your average pulls it up. One below pulls it down.

Other marginals you will meet

The same idea reaches well beyond bakeries.

A student's score on an exam depends on hours studied. The derivative of the score with respect to hours is the marginal return to studying: points gained from one more hour. Early hours are often worth a lot, and later ones less.

A household's spending depends on its income. The derivative of spending with respect to income is the marginal propensity to consume from the multiplier lesson. If it is 0.8, one more dollar of income brings 80 cents of extra spending.

A farm's harvest depends on workers hired. The derivative is the marginal product of labor: bushels added by one more worker. Because fields are fixed in size, it usually shrinks as workers crowd in.

In every case, the recipe is the same. Write the total as a function. Take its derivative. Read the result as "the change from one more," with units, at a particular level.

One idea, many marginals
The derivative The rate of change of a total at a point. Marginal utility Added satisfaction from one more item. Marginal product Added output from one more worker. Marginal cost Added cost of one more unit. Marginal revenue Added sales income from one more unit. The derivative The rate of change of a total at a point. Marginal cost Added cost of one more unit. Marginal revenue Added sales income from one more unit. Marginal product Added output from one more worker. Marginal utility Added satisfaction from one more item.

The common mistake: using the wrong curve for the decision

Three errors stand out.

  • Using average cost instead of marginal cost. At 20 dozen, the average cost is $6.50 but the next dozen costs about $6. At 30 dozen, average is $6.67 and the next costs $8. A decision should follow the marginal number. Past costs, like the oven fee, are already spent.
  • Using price instead of marginal revenue. A seller who faces a downward demand curve gains less than the price from one more sale.
  • Forgetting units and the point. A derivative is a value at a specific input. "The marginal cost is 4" means nothing until you say 4 dollars per dozen at 10 dozen.

There is one more: assuming the derivative exists everywhere. At a sharp corner, such as a tax bracket threshold, the left and right slopes disagree, so no derivative exists there. Economists handle those places separately.

Words to know

Derivative the limit of the slope of secant lines, which is the instantaneous rate of change of a function.

Marginal cost the derivative of total cost, the added cost of one more unit.

Marginal revenue the derivative of total revenue, the added revenue from one more unit.

Marginal value the derivative of any total, the change in it from one more unit.

Tangent line the line that touches a curve at a point and has the curve's slope there.

Average cost total cost divided by the quantity produced.

Inverse demand demand written with price as a function of quantity.

Check yourself

  1. Use the limit definition to find the derivative of f(x) = x².
  2. If C(q) = 100 + 5q + 0.5q², find marginal cost at q = 8.
  3. Total revenue is R(q) = 20q − 0.5q². Find marginal revenue at q = 10.
  4. For the cost in question 2, use the derivative to estimate the cost of the 9th unit, then compute the exact cost.
  5. With MR = 14 − 0.2q and MC = 2 + 0.2q, why is q = 25 not the best output?
  6. Explain the difference between marginal cost and average cost.
Show the answers
  1. ((x + h)² − x²) / h = 2x + h, which approaches 2x.
  2. C′(q) = 5 + q, so C′(8) = 13 dollars per unit.
  3. R′(q) = 20 − q, so R′(10) = 10.
  4. The estimate at q = 8 is about 13, while the exact C(9) − C(8) = 185.5 − 172 = 13.5.
  5. At 25, MR = 9 and MC = 7, so another unit adds more revenue than cost and output should rise.
  6. Marginal cost is the cost of one more unit, while average cost is total cost spread over all units made so far.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: First calculus

  1. Rates of Change and the Idea of a LimitMove from average rates of change to instant ones by shrinking an interval, and learn what a limit is and when one fails to exist.11 min
  2. The Derivative as a Marginal ValueDefine the derivative as the limit of the slope, read it as marginal cost and marginal revenue, and use it to find a profit-maximizing output.12 min
  3. Rules of Differentiation: Power, Sum, Product and ChainLearn the power, sum, product, quotient and chain rules so you can find marginal values without grinding through limits every time.11 min
  4. Derivatives of Exponentials and LogarithmsFind derivatives of e to the x and the natural log, and see why a growth rate is simply the derivative of a logarithm.12 min
  5. Elasticity With CalculusCompute point elasticity from a derivative, see how it changes along a straight demand line, and link it to revenue and to a seller's pricing.12 min
  6. Finding Maximums and MinimumsUse first and second derivatives to find the best output, the lowest average cost and the best bundle, and avoid the usual optimization traps.11 min
  7. Areas Under Curves: A First Look at IntegralsSee how adding thin slices gives areas under curves, and use integrals to rebuild total cost from marginal cost and to measure consumer surplus.11 min

In the news