Notes by Sara
Lesson 18

A shortcut for marginal cost

Example, with made-up numbers. Last lesson, a factory's cost of making q units was 5,000 + 20q + 0.01q2, and we found the marginal cost at 1,000 units by brute force: $40.01 for one more unit. Is there a way to get the marginal cost at any level of output, in one line?

The idea

The derivative of a function is itself a function. Find it once, and you can read off the sensitivity anywhere. Here is the factory's cost (top) and its derivative, the marginal cost (bottom):

As the cost curve gets steeper, the marginal cost line rises. At 1,000 units it reads $40 per unit.

The five rules

RuleFunctionDerivativeIn plain words
Constant5,0000A fixed amount doesn't change, so its rate of change is zero.
Powerxnn × xn−1Bring the power down in front, then lower it by 1.
Sum and multiple3f + g3f′ + g′Take each part separately. Numbers in front stay put.
e and lnex  ·  ln xex  ·  1/xex is its own derivative. For any base: ax becomes ax × ln a.
Chainf(g(x))f′(g) × g′(x)For a function inside a function: derivative of the outside, times derivative of the inside.

Apply them to the factory's cost, piece by piece:

5,000 is a constant→ 0
20q is 20 × q1→ 20 × 1 = 20
0.01q2→ 0.01 × 2q = 0.02q
Marginal cost20 + 0.02q

At 1,000 units: 20 + 0.02 × 1,000 = $40. Brute force gave $40.01, because one whole unit is a small step, not an infinitely small one.

Quick check

What is the derivative of 3x4?

Worked example: the chain rule

The present value of $100 in 5 years is PV = 100 × (1 + r)−5. How sensitive is it to the rate r, at 5%?

1. Outside: 100 × (something)−5, by the power rule100 × −5 × (1 + r)−6
2. Inside: 1 + r has derivative 1× 1
3. At r = 0.05−500 ÷ 1.056
Sensitivity−$3.73 per point

The formula gives −373.11 per 1.00 change in r, which means per 100 percentage points. Divide by 100 for one point: near 5%, the $78.35 present value drops about $3.73 for each point rates rise, for small moves.

One more check on an earlier lesson. In Rate of change, $1,000 × 1.08t grew at $166.15 a year at year 10. The ax rule gives it straight away: 1,000 × 1.0810 × ln 1.08 = 2,158.92 × 0.07696 = $166.15.

Try it yourself
The power rule on any term a × xn.
Derivative

This handles one term at a time. For the factory, the 0.01q2 term gives 20 at 1,000 units; add 20 from the 20q term to get the $40 marginal cost.

Common mistakes
Three slips beginners make.
  • Forgetting to lower the power. The derivative of x3 is 3x2, not 3x3.
  • Keeping the constant. Fixed costs disappear from marginal cost. The derivative of 5,000 is 0.
  • Skipping the inside in the chain rule. The derivative of e0.05t is 0.05e0.05t: the 0.05 comes from the inside.

Remember

  • Constants vanish. Powers come down and drop by one. Sums split into parts.
  • ex is its own derivative, and ln x becomes 1/x.
  • Chain rule: derivative of the outside × derivative of the inside.

Check yourself

Three questions. Try them without scrolling up.

1. What is the derivative of 5x2?

2. Revenue is R = 50q − 0.1q2. What is the marginal revenue at q = 100?

3. What is the derivative of e0.05t?

Score: 0 of 3