MATH 150 · Mathematics for Economics I

Rules of Differentiation: Power, Sum, Product and Chain

Learn the power, sum, product, quotient and chain rules so you can find marginal values without grinding through limits every time.

Key takeaways

  • The power rule says the derivative of x raised to n is n times x raised to n minus 1, and it works for any real exponent.
  • Constants multiply through, and the derivative of a sum is the sum of the derivatives.
  • The product rule says the derivative of f times g is f′g plus fg′, and it is not simply f′ times g′.
  • The chain rule handles a function inside a function by multiplying the outer derivative by the inner derivative.
  • Checking a derivative by plugging in numbers and comparing a small step takes seconds and catches most slips.

Kai rents kayaks on a lake. Every question Kai asks has the same shape. How much more revenue from one more rental? How much more output from one more guide? How fast does the cost per rental fall as more kayaks go out? Each is a derivative.

You could answer each one by writing out the limit, expanding, canceling and shrinking h, the way we did for the bagel shop. That works, and it is tiresome. Mathematicians noticed long ago that the same few patterns keep turning up, and they boiled the patterns down into rules. Learn the rules, and you can differentiate most of what economics throws at you in a line or two.

"To differentiate" just means to take a derivative. The verb sounds grander than it is.

The power rule

The workhorse comes first.

d/dx of xⁿ = n × xⁿ⁻¹

Bring the exponent down in front, then lower the exponent by one.

Function Derivative Why
x² 2x exponent 2 comes down, 2 − 1 = 1
x³ 3x²
x⁵ 5x⁴
x (that is, x¹) 1 the slope of the line y = x
7 (that is, 7x⁰) 0 constants do not change
√x (that is, x^½) ½ x^(−½) = 1 / (2√x) exponent may be a fraction
1/x (that is, x⁻¹) −x⁻² = −1 / x² exponent may be negative

The last two rely on exponents and powers. Rewrite roots and reciprocals as powers first, then apply the rule.

Check with the limit for x³: ((x + h)³ − x³) / h = (3x²h + 3xh² + h³) / h = 3x² + 3xh + h². As h goes to 0, this is 3x².

Constants and sums

Two more rules make polynomials easy.

  • Constant multiple rule. The derivative of c × f(x) is c × f′(x).
  • Sum rule. The derivative of f(x) + g(x) is f′(x) + g′(x). The same holds for differences.

Apply them to the kayak shop's daily cost, in dollars, for q rentals:

C(q) = 80 + 3q + 0.02q²
C′(q) = 0 + 3 + 0.02 × 2q = 3 + 0.04q

At q = 50, marginal cost is 3 + 2 = $5 per rental. The $80 fixed cost disappears, as fixed costs always do at the margin.

A longer polynomial, y = 4x³ − 6x² + 5x − 9, gives

y′ = 12x² − 12x + 5

Term by term: 4 × 3 = 12, then 6 × 2 = 12, then 5, then the constant −9 vanishes.

Differentiating a polynomial term by term
1 Split the sum Treat each term on its own: 4x³, −6x², 5x, −9. 2 Apply the power rule Bring each exponent down and subtract one. 3 Keep the coefficients Multiply the old coefficient by the exponent. 4 Drop the constant A plain number has derivative zero. 5 Add up the pieces The result is 12x² − 12x + 5. Split the sum Treat each term on its own: 4x³, −6x², 5x, −9. 1 Apply the power rule Bring each exponent down and subtract one. 2 Keep the coefficients Multiply the old coefficient by the exponent. 3 Drop the constant A plain number has derivative zero. 4 Add up the pieces The result is 12x² − 12x + 5. 5

The product rule

Often a quantity is two changing things multiplied together. Revenue is price times quantity, and both can change. The product rule says

d/dx of (f × g) = f′ × g + f × g′

In words: differentiate the first and leave the second, then leave the first and differentiate the second. Add.

First, test it where you know the answer. Take f = x² and g = x³. The product is x⁵, whose derivative is 5x⁴. By the rule:

f′g + fg′ = 2x × x³ + x² × 3x² = 2x⁴ + 3x⁴ = 5x⁴

It checks out.

Now an economic case. Kai's rental price depends on volume: p(q) = 20 − 0.5q. Revenue is R = p × q.

R′ = p′ × q + p × 1
   = (−0.5)(q) + (20 − 0.5q)
   = 20 − q

Read the two pieces. The term p is the price Kai gets for the extra rental. The term p′ × q is the loss on all the other rentals, since the price has to fall by 0.5 for each of the q units. This matches the marginal revenue from the revenue hill, where R = 20q − 0.5q² and R′ = 20 − q.

The product rule applied to revenue
R′ = p + p′ × q R′ = Marginal revenue The change in revenue from one more rental. p = Price effect What the extra rental brings in. p′ × q = Discount effect What is lost on existing rentals when the price drops. Negative here. R′ = p + p′ × q R′ = Marginal revenue The change in revenue from one more rental. p = Price effect What the extra rental brings in. p′ × q = Discount effect What is lost on existing rentals when the price drops. Negative here.

With a falling demand curve, the second term is negative, which is why marginal revenue is below price.

Marginal product with two inputs

The Cobb-Douglas function from the exponents lesson has two factors. Suppose Kai's guided tours produce output Q = 20 × K^½ × L^½, with K kayaks and L guides. Holding K fixed, differentiate with respect to L. Since K^½ is a constant in this exercise, the power rule does the job:

dQ/dL = 20 × K^½ × ½ × L^(−½) = 10 × K^½ / L^½

At K = 4 and L = 9: 10 × 2 / 3 ≈ 6.67 tours per extra guide. At L = 16 it falls to 10 × 2 / 4 = 5. Adding guides keeps helping, but less each time, which is diminishing returns in action. A derivative taken while holding the other variables fixed is called a partial derivative, a topic for later courses. For now, treat the other letters as plain numbers.

Practice with roots and reciprocals

Many functions in economics hide their powers. Spend a minute rewriting them before you differentiate.

A firm's cost might be C = 40 + 6√q. Rewrite √q as q^½:

C = 40 + 6q^½
C′ = 6 × ½ × q^(−½) = 3 / √q

At q = 9, marginal cost is 3 / 3 = $1 per unit. At q = 100 it is 3 / 10 = $0.30. This cost curve rises, but each unit costs less than the last. That is the opposite of the bagel shop. It is the shape of a business with big economies of scale, such as a software firm.

A demand relationship might arrive as q = 100 / p. Rewrite it as q = 100p⁻¹:

dq/dp = 100 × (−1) × p⁻² = −100 / p²

At p = 5, quantity is 20 and the slope is −100 / 25 = −4 units per dollar. At p = 10, quantity is 10 and the slope is −1. A price rise from $5 matters far more, in units lost, than the same rise from $10. The slope is negative everywhere, so more price always means fewer sales.

The rule for reciprocals deserves memorizing: the derivative of 1/x is −1/x². The sign tells you the function falls as x rises, and the size shrinks as x grows.

The quotient rule

When one function is divided by another:

d/dx of (f / g) = (f′g − fg′) / g²

The order matters, since subtraction is not symmetric. A good chant: low d-high minus high d-low, over low squared.

Average cost is total cost divided by quantity, so it uses this rule. Return to the bagel cost C(q) = 50 + 2q + 0.1q², with C′ = 2 + 0.2q.

AC′ = (C′ × q − C × 1) / q²
    = ((2 + 0.2q)q − (50 + 2q + 0.1q²)) / q²
    = (0.1q² − 50) / q²

This is zero when q² = 500, so q ≈ 22.4. At that quantity, AC = 50 / 22.36 + 2 + 2.236 ≈ 6.47, and MC = 2 + 0.2 × 22.36 ≈ 6.47. They match, confirming that marginal cost crosses average cost at its lowest point.

An easier route is to rewrite AC = 50/q + 2 + 0.1q = 50q⁻¹ + 2 + 0.1q and use the power rule: AC′ = −50q⁻² + 0.1. Same answer. When you can avoid the quotient rule by rewriting, do.

Marginal cost crosses average cost at its minimum
Dollars per dozen 22.4 Average cost Marginal cost Lowest average cost Dozens baked Dollars per dozen 22.4 Average cost Marginal cost Lowest average cost Dozens baked

Below the crossing, marginal cost pulls the average down. Above it, marginal cost pushes the average up.

The chain rule

Sometimes one thing depends on a second, which depends on a third. Kai's revenue depends on the number of customers, and customers depend on advertising spending a. Suppose

R = 8n          (each customer brings $8)
n = 10 × a^½    (customers rise with ad dollars, with diminishing returns)

Revenue is a function of a function. The chain rule says multiply the rates along the chain:

dR/da = (dR/dn) × (dn/da)
dR/dn = 8
dn/da = 10 × ½ × a^(−½) = 5 / √a
dR/da = 8 × 5 / √a = 40 / √a

At a = 16 ad dollars, dR/da = 40 / 4 = $10 of extra revenue per extra ad dollar. Sanity check: revenue at a = 16 is 8 × 10 × 4 = $320. At a = 17, it is 80 × 4.1231 = $329.85. The gain is $9.85 for the dollar, close to the $10 estimate.

The chain rule has a second, more mechanical form for nested expressions. For f(g(x)), the derivative is f′(g(x)) × g′(x): the derivative of the outside, evaluated at the inside, times the derivative of the inside.

y = (3x² + 1)⁴
outside: u⁴ has derivative 4u³
inside: 3x² + 1 has derivative 6x
y′ = 4 (3x² + 1)³ × 6x = 24x (3x² + 1)³

At x = 1: 24 × 4³ = 24 × 64 = 1,536. Check with a small step: y at 1 is 256 and y at 1.001 is about 257.540. The difference per 0.001 is about 1,540, close to 1,536.

A habit worth building: check by a small step

Every derivative can be checked against a number. Pick an input, compute the function there and a hair above, and divide the change by the size of the step. If your formula says 12 and your check says 8, you have a slip.

Try it on y = x³ − 4x at x = 2. The formula is y′ = 3x² − 4, which gives 8. Now the numerical check: y(2) = 8 − 8 = 0, and y(2.01) = 8.120601 − 8.04 = 0.080601. The change is 0.080601, and dividing by 0.01 gives 8.06. That is close to 8, and moving the step closer to zero would make it closer still.

Another check uses shape. If a total cost curve rises, its derivative should be positive. If your marginal cost formula comes out negative for sensible output levels, something is off. If a demand curve slopes down, its derivative with respect to price should be negative.

A third check uses units. If cost is in dollars and quantity is in dozens, the derivative must be in dollars per dozen. A derivative with the wrong units has the wrong form.

Finally, test an edge case. At q = 0, what should marginal revenue be? It should equal the price at the very first unit, because there is nothing to discount. For R′ = 20 − q, the value at 0 is 20, which is the price at 0 as well: p(0) = 20. The two agree.

A worked example: Kai's best rental volume

Kai rents kayaks at price p = 20 − 0.5q. Total cost is C = 80 + 3q + 0.02q².

Step 1: Revenue. R = pq = 20q − 0.5q².

Step 2: Marginal revenue (by the sum and power rules): R′ = 20 − q.

Step 3: Marginal cost: C′ = 3 + 0.04q.

Step 4: Set them equal.

20 − q = 3 + 0.04q
17 = 1.04q
q ≈ 16.35

Step 5: Evaluate. For whole rentals, compare q = 16 and q = 17.

q = 16: p = 12,   R = 192,   C = 80 + 48 + 5.12 = 133.12,   profit = 58.88
q = 17: p = 11.5, R = 195.5, C = 80 + 51 + 5.78 = 136.78,   profit = 58.72

Sixteen rentals gives slightly more profit than seventeen: $58.88 against $58.72. The calculus value of 16.35 sits between them, as it should. The whole picture, including why MR = MC finds a peak, is in finding maximums and minimums.

Which rule fits which structure
Sums and constants Terms added together Differentiate piece by piece Fixed amounts vanish Products and quotients Two changing factors multiplied Two changing factors divided Use the product or quotient rule, or rewrite with powers Nested functions One function inside another Multiply the outer rate by the inner rate Use the chain rule Sums and constants Terms added together Differentiate piece by piece Fixed amounts vanish Products and quotients Two changing factors multiplied Two changing factors divided Use the product or quotient rule, or rewrite with powers Nested functions One function inside another Multiply the outer rate by the inner rate Use the chain rule

The common mistake: multiplying derivatives

The most common error is writing (f × g)′ = f′ × g′. Test it with f = x² and g = x³. The wrong rule gives 2x × 3x² = 6x³. The correct answer is 5x⁴. These are not even the same kind of expression.

Other frequent slips:

  • Forgetting the inside derivative. The derivative of (3x² + 1)⁴ is not 4(3x² + 1)³. The factor 6x is missing.
  • Subtracting 1 but not multiplying. The derivative of x⁵ is 5x⁴, not x⁴.
  • Differentiating a constant exponent. The function 2ˣ is not x × 2^(x−1). The power rule needs the variable in the base. Exponentials like this have their own rule in derivatives of exponentials and logarithms.
  • Sign errors in the quotient rule. The numerator is f′g − fg′, in that order.

A quick test catches most errors. Choose a number, compute the function at x and at x + 0.001, and divide the change by 0.001. The result should be close to your formula.

Words to know

Differentiate to find the derivative of a function.

Power rule the derivative of xⁿ is n times xⁿ⁻¹.

Product rule the derivative of f times g is f′g plus fg′.

Quotient rule the derivative of f over g is (f′g minus fg′) over g squared.

Chain rule the derivative of a function of a function is the outer derivative times the inner derivative.

Marginal product the added output from one more unit of an input.

Partial derivative the derivative with respect to one variable while the others are held fixed.

Check yourself

  1. Differentiate y = 5x⁴ − 3x² + 8x − 12.
  2. Differentiate y = x² × (x + 3) using the product rule and verify by expanding first.
  3. Find the derivative of √x + 4/x.
  4. Differentiate y = (2x + 5)³.
  5. A firm has revenue R = 40q − q² and cost C = 100 + 4q + q². Find the output where MR equals MC.
  6. Explain why (f × g)′ is not f′ × g′, using a small example.
Show the answers
  1. y′ = 20x³ − 6x + 8.
  2. The product rule gives 2x(x + 3) + x² × 1 = 3x² + 6x, and expanding gives x³ + 3x² with derivative 3x² + 6x.
  3. Rewrite as x^½ + 4x⁻¹, so the derivative is 1 / (2√x) − 4 / x².
  4. 3 (2x + 5)² × 2 = 6 (2x + 5)².
  5. MR = 40 − 2q and MC = 4 + 2q, so 36 = 4q and q = 9.
  6. With f = x² and g = x³ the product is x⁵ with derivative 5x⁴, while f′ × g′ = 6x³, which is a different expression.

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