HEG Genève QUANTITATIVE METHODS I · FALL WEEK 5 ← Course
This week
0%
The year
0%
Fall Week 5 · Quantitative Methods I · HEG Genève

Revenue is price times quantity — and both of them move.

Week 4 gave you the derivative and three rules: constants vanish, factors ride along, sums split. That is enough for a cost made of powers of q. It is not enough for almost anything else a business measures. Revenue is a price times a quantity, and when you sell more the price has to fall — two things moving at once. Average cost is cost divided by output. And the revenue an advert brings in depends on the customers it brings in, which depend on the advert — a function of a function. Week 4 could only handle these by expanding or dividing through first, and most of the time that is not possible.

This week adds the three rules that remove that limit — product, quotient and chain — and puts each one straight to work: marginal cost from an average-cost formula, the marginal propensity to consume, the revenue an extra advert brings in. Then the deck goes back to exponentials and logarithms with the new rules in hand (and differentiates xx), and ends with the derivative of the derivative: whether a cost is rising faster or slower, and whether a product launch is still accelerating.

1Marginal quantitiesan advert, a customer, a franc of revenue — and marginal cost from an average
2Product and quotienttwo things moving at once — revenue p · q, average cost C ⁄ q
3The consumption functionof the next franc of income, how much is spent and how much saved
4Chain and powera function of a function: outer rate × inner rate
5Exponentials and logseu, bu, ln u — and xx by rewriting
6Higher-order derivativesthe rate of the rate — rising faster, or rising slower?

The session is three hours in two parts. Part 1 (~1 h 15) is the lesson: your instructor presents the deck and you follow the same numbered sections here — every slide names its section. Part 2 is eight exercises worked together, given on the slides and as forms below; solutions open as your instructor reveals them.

🏫 In class: 3 h · lesson, then exercises · bring this page open and a calculator 📖 Reading: Burns, "The Chain Rule Derivative Explained with Comics" (Medium, 2020) ▶ The Lecture button (top-right) shows the deck we use in class

By the end of Fall Week 5 you will be able to

  • Differentiate the standard functions quickly and correctly — powers, roots, reciprocals, ex, bx, ln x.
  • Apply the product rule and the quotient rule, and say which one a function needs before starting.
  • Apply the chain rule — and its most common case, the power rule — to composite expressions: outer rate times inner rate.
  • Compute marginal cost from an average-cost formula, and the marginal propensities to consume and to save from a consumption function.
  • Differentiate eu(x), bu(x) and ln u(x), and functions like xx by rewriting them as e(…).
  • Compute second, third and fourth derivatives, and read the sign of f″ as "rising faster" or "rising slower".

Resources — tick them off as you go

✓Lecture deck — the ▶ Lecture button above; presented in class in Week 5. Print it to PDF from inside the deck if you want it on paper.
✓Reading: Burns, "The Chain Rule Derivative Explained with Comics", Medium, 2020 — on Cyberlearn. Ten minutes, and the one picture in it (gears turning gears) is section 5.4 in a sentence: if A turns B twice as fast and B turns C three times as fast, A turns C six times as fast.
✓Part 2 · the exercise set — eight exercises done with your instructor in the second half of the session. Section 5.7 below.
✓Week 5 homework — the twenty-two problems from the printed sheet, with hints and full worked solutions. Not graded; it is how you find out whether the lesson stuck.
Three of the deck's examples — 3ex, x ⁄ ex and the five-term mixed example — closed last week's deck too. They are back on purpose: last week the quotient was shown, this week you can do it.
← Course page
A reset link lives at the bottom of section 5.8.
Section 5.1 · Marginal quantities

An advert brings customers, customers bring revenue — and marginal cost from an average

J
"Marketing wants a bigger ad budget for the app. Their argument is a chain: more ads, more customers; more customers, more revenue. Both links are real and both are curves — the hundredth ad brings fewer customers than the first. I don't want the chain described. I want one number: what does the next ad bring in, in francs, at the budget we have now."
Jane · Head of Insights, XY Coffee Co.
The deck's opening example

When the number of customers is linked to the number of ads as N(x) = 100√x, and the revenue depends on the number of customers as R(n) = 70n + n² ⁄ 20 …

… then the revenue depends on the number of ads as

R(N(x)) = 70(100√x) + (100√x)² ⁄ 20 = 7 000√x + 500x

How can we compute the sensitivity of the revenue with respect to changes in the number of ads?

🔍Read it as two machines in a row. The first turns ads into customers: N(x) = 100√x, so 100 ads bring 1 000 customers and 400 ads bring only 2 000 — the root means each extra ad brings fewer people than the last. The second turns customers into francs: R(n) = 70n + n² ⁄ 20, seventy francs a customer plus a bonus that grows with the crowd. Feeding the first machine's output into the second is composition — Week 2's R ∘ N — and the question "what does one more ad bring in?" is the derivative of the composite. The deck asks it here and answers it in section 5.4 with the chain rule. Here, this one happens to simplify to 7 000√x + 500x, so Week 4's table already answers it: 3 500 ⁄ √x + 500, CHF 850 at 100 ads. Most compositions do not simplify, and that is why the chain rule exists.
Try it · one more ad

Slide the ad budget. Read the two links, and what they give together.

The curve is revenue against ads, R(N(x)) = 7 000√x + 500x; the red line is its tangent. The panel shows the rate worked out link by link — customers per ad, francs per customer — and directly from the simplified formula. Watch the two agree.

dR ⁄ dx = (francs per customer) × (customers per ad)
Try at least five budgets, including 100 ads, to complete this half.
On the coffee → At 100 ads the next ad brings about 5 customers (N′(100) = 50 ⁄ √100), and at 1 000 customers each extra customer is worth about CHF 170 (R′(1 000) = 70 + 1 000 ⁄ 10). Five customers at 170 francs: CHF 850 for the next ad. That is the number Jane asked for, and it came from multiplying the two links' rates — no simplification needed. If an ad costs CHF 400, the budget should grow; past about 400 ads (where the next one brings in CHF 675) it still pays, but less each time. Notice what moves in the two links as x grows: customers per ad falls, francs per customer rises. The product of a falling number and a rising one is what the chain rule computes.
Applications of rate of change to economics — the deck's five definitions

Total cost, marginal cost, total revenue, marginal revenue, average cost.

1. The total cost function is c = C(q).
2. The marginal cost is defined as dc ⁄ dq = C′(q).
3. The total revenue function is r = R(q).
4. The marginal revenue is defined as dr ⁄ dq = R′(q).
5. The average cost is defined as C̄ = C(q) ⁄ q.
🔍Four of the five are Week 4's. The fifth is new and it is the reason for this week: the average cost is a quotient — cost divided by output — so its rate of change needs a rule Week 4 did not have. The bar over the C is how economists write "average" (read it "C-bar"); it is not a derivative and not a complement. At the roastery, with C(q) = 10 000 + 200q + 5q²: at 60 thousand doses the total is 40 000, the marginal is 800 and the average is 666.67. Three different numbers, three different questions — and section 5.2 shows how the second decides whether the third is rising or falling.
Try it · marginal cost from an average cost, one move at a time

If a manufacturer's average-cost equation is C̄(q) = 0.0001q² − 0.02q + 5 + 5 000 ⁄ q, find the marginal-cost function. What is the marginal cost when 50 units are produced?

Plan. The marginal cost is the derivative of the total cost, and you have been handed the average. Go back to the total first — C = C̄ · q — and then differentiate. Differentiating the average directly answers a different question.

From C̄(q) to C′(50) · four moves
Step through all four.
The mistake this example is set to catchDifferentiating C̄ and calling it marginal cost. C̄′(50) = 0.01 − 0.02 − 2 = −2.01 — a perfectly good number that says the average is falling by about two francs per extra unit. It is not what the next unit costs (3.75). Marginal cost is always the derivative of the total. If you are given an average, multiply by q first.
Try it

Which of the five is this sentence about?

Six sentences from XY Coffee's monthly report. Each one is about the marginal cost, the marginal revenue or the average cost — and the giveaway is whether it talks about the next one or each one so far.

Marginal cost · Marginal revenue · Average cost
Section 5.2 · The product rule and the quotient rule

When two things move at once — revenue p · q, and average cost C ⁄ q

Product rule

The derivative of a product is not the product of the derivatives.

(d ⁄ dx)( f(x) · g(x) ) = f′(x) · g(x) + f(x) · g′(x)
🔍In words: the first one moves while the second stands still, plus the second one moves while the first stands still. Two terms, because two things are changing. The tempting wrong version, f′ · g′, fails on the simplest case there is: x · x = x² has derivative 2x, and 1 · 1 = 1 is not 2x. The rule gives 1 · x + x · 1 = 2x ✓. Check every rule you are unsure of on a case you already know.
Try it · why the rule has two terms

Revenue is a rectangle: price up the side, cups along the bottom. Sell a few more cups and watch which pieces change.

At the café, Week 3's demand gives a price of p(q) = 9 − 0.01q francs when q cups a day are sold, so revenue is R(q) = p(q) · q — a product of two things that both depend on q. Start at 200 cups and CHF 7. Choose how many more cups to sell.

ΔR = p · Δq (the gain) + q · Δp (the loss) + Δq · Δp (the corner) · open all four
0 of 4 opened — open all four to complete this half of the section.
On the coffee → Selling more cups does two things to revenue, and the product rule names both. The green strip is the extra cups sold at today's price — p · Δq, the first term. The red strip is the price cut those cups needed, paid on every cup already being sold — q · Δp, the second term, negative. The tiny corner is the price cut on the new cups themselves, and it vanishes as Δq shrinks. Per extra cup: R′ = p + q · p′ = 7 + 200 × (−0.01) = 7 − 2 = 5 — Week 4's R′(200) = 5, now with its meaning on show: the price of the next cup, minus the discount it forces on the 200 others. That second term is what every manager who says "we'll make it up on volume" forgets.
Try it · the deck's product example

Let F(x) = (x² + 3 · x) · (4 · x + 5). Compute F′(x).

f = x² + 3x,  f′ = 2x + 3  ·  g = 4x + 5,  g′ = 4  — name the four pieces first
F′(x) = (2x + 3)(4x + 5) + (x² + 3x) · 4  — first moves, second still; plus first still, second moves
= 8x² + 22x + 15 + 4x² + 12x = 12 · x² + 34 · x + 15  — the deck's answer
🔍Writing out f, f′, g, g′ before anything else is the habit that makes the product rule mechanical: four short lines, then one assembly. Check it the Week 4 way: expand first, F = 4x³ + 17x² + 15x, so F′ = 12x² + 34x + 15 ✓. For two polynomials, expanding works and either route is fine. For x² · ex or (x² + 1)(ex + 1) — quiz question 3 — nothing expands, and the product rule is the only route.
Quotient rule

Bottom times the derivative of the top, minus top times the derivative of the bottom, over the bottom squared.

(d ⁄ dx)( f(x) ⁄ g(x) ) = ( f′(x) · g(x) − f(x) · g′(x) ) ⁄ g²(x)
🔍The same two terms as the product rule, with a minus between them and the bottom squared underneath. The minus is the one thing to remember about order: a top that grows makes the fraction grow (+), a bottom that grows makes it shrink (−). g²(x) means (g(x))², the bottom squared — not g of g. Where does it come from? Write f ⁄ g = f · g−1 and use the product rule with section 5.4's power rule: f′ g−1 + f · (−g−2 g′) = (f′g − fg′) ⁄ g². So the quotient rule is the product rule in disguise, and if you forget it you can rebuild it.

The deck's example, F(x) = (4x² + 3) ⁄ (2x − 1):

F′(x) = ( 8x(2x − 1) − (4x² + 3)2 ) ⁄ (2 · x − 1)²  — the deck's line
= ( 16x² − 8x − 8x² − 6 ) ⁄ (2x − 1)² = ( 8x² − 8x − 6 ) ⁄ (2x − 1)²  — tidied, which the slide leaves to you
Try it · average cost, differentiated

The roastery's average cost A(q) = C(q) ⁄ q, its rate of change by the quotient rule, and where it is lowest.

With C(q) = 10 000 + 200q + 5q², the quotient rule gives A′(q) = ( q · C′(q) − C(q) ) ⁄ q². Divide top and bottom by q and it says something you can use without any algebra:

A′(q) = ( C′(q) − A(q) ) ⁄ q  — marginal minus average, over q
The sign of A′ is the sign of MC − AC · find where A′ = 0
Try at least five outputs, including 45, to complete this half.
On the coffee → Last week the widget showed that the average rises when the marginal is above it, and Week 4 promised a proof. This is the proof: q is positive, so A′ has the sign of C′ − A. Marginal below average → the average falls; above → it rises; equal → the average is flat, at its lowest. Setting 200 + 10q = 10 000 ⁄ q + 200 + 5q gives q² = 2 000, q ≈ 44.7 thousand doses, where the average bottoms out at CHF 647.21. It is the same rule as a class average: one student above the average pulls it up. Week 1 saw this in a table and could not say why; now it is one line.
Try it · the deck's three quick ones

Differentiate f(x) = 2 · x³ ⁄ 5,  f(x) = 4 ⁄ (7 · x³),  f(x) = (5 · x² − 3 · x) ⁄ (4 · x).

2x³ ⁄ 5 → 6x² ⁄ 5  — a constant on the bottom is a constant factor, (2 ⁄ 5)x³. No quotient rule.
4 ⁄ (7x³) → −12 ⁄ (7x⁴)  — a constant on top: (4 ⁄ 7)x−3, the power rule. No quotient rule.
(5x² − 3x) ⁄ (4x) → 5 ⁄ 4  — divide through first: (5x − 3) ⁄ 4, a line with slope 5 ⁄ 4.
🔍The deck puts these straight after the quotient rule to show when not to use it. All three can be done with the quotient rule and all three come out right — after three times the algebra. Before reaching for a rule, ask: is the bottom a constant (constant factor)? Is the top a constant (write it as a negative power)? Does the bottom divide into every term of the top (divide through)? Only when the answer to all three is no is it a real quotient.
Try it

Product rule, quotient rule — or neither, after a rewrite?

Six functions. Decide what you would do before differentiating. Two of them look like quotients and are not.

Product rule · Quotient rule · Neither — rewrite first
Section 5.3 · The consumption function

Of the next franc of income, how much is spent — and how much is saved?

Consumption function — the deck's definitions

Let C(I) be the consumption function, as a function of the income I.

The marginal propensity to consume is

C′(I)

Let S(I) be the saving function. Thus

I = C(I) + S(I)

The marginal propensity to save is equal to one minus marginal propensity to consume:

S′(I) = 1 − C′(I)
🔍The middle line is the whole idea: every franc of income is either spent or saved, so income is consumption plus saving. Differentiate both sides with respect to I — the left side is I, whose rate is 1 — and you get 1 = C′(I) + S′(I): of one extra franc, the part spent and the part saved add up to the franc. That is why MPS is 1 − MPC, and why the deck only ever asks you to compute one derivative. "Marginal propensity" is economics' name for "the rate of change of". An MPC of 0.8 means: of the next CHF 100 of income, CHF 80 is spent and CHF 20 is saved. Read it at a particular income — the propensity of a student and of a banker are not the same number.
Try it · the deck's example, one move at a time

If the consumption function is given by C(I) = 5 · (2 · √(I³) + 3) ⁄ (I + 10), determine the marginal propensity to consume and the marginal propensity to save when I = 100.

Plan. A constant 5 in front, then a quotient. Rewrite the root as a power so the top can be differentiated with the table; let the 5 ride along; quotient rule; then put I = 100 in — and only then.

C′(100) and S′(100) · five moves
Step through all five.
🔍The printed slide stops at MPC ≃ 0.536. The question also asks for the MPS, and that is one subtraction: 1 − 0.536 = 0.464. Evaluate the pieces before assembling them: at I = 100, √(I³) = 1 000, I1⁄2 = 10, I + 10 = 110. The top of the fraction is then 110 × 30 − 2 003 = 1 297 — the deck's number — and the bottom 110² = 12 100.
Try it · the extra franc at every income

The deck's consumption function across incomes. Slide I and watch how the next franc is split.

C′(I) spent · 1 − C′(I) saved · of the next franc
Try at least five incomes, including 100, to complete this half.
On the coffee → The tangent's slope is the MPC, and it falls as income rises: at 50 the next franc is 78 % spent, at 100 it is 54 %, at 400 only 26 %. The richer the household, the smaller the share of an extra franc that is spent. For XY Coffee that is a pricing fact, not a curiosity: a tax cut or a wage rise aimed at lower incomes reaches the till faster than one aimed at higher incomes. And look at the bottom of the slider — below an income of about 31 this formula's MPC is above 1: the household spends more than the extra franc, borrowing or drawing on savings to do it. The MPS is then negative. A formula fitted to data says what the data says, including the uncomfortable parts.
Try it

MPC, MPS — or the average propensity?

Six statements about households. The marginal propensities are about the next franc; the average propensity C(I) ⁄ I is about all the francs so far — the same distinction as marginal and average cost.

MPC · MPS · Average propensity C ⁄ I
Section 5.4 · The chain rule and the power rule

A function of a function: the outer rate times the inner rate

Chain rule

If y is a differentiable function of u and u is a differentiable function of x, then y is a differentiable function of x and

(d ⁄ dx)( f(g(x)) ) = f′(g(x)) · g′(x)
🔍Differentiate the outside, leaving the inside alone; then multiply by the derivative of the inside. The "leaving the inside alone" part is f′(g(x)): the outer function's rate, read at wherever the inner function has put you. In Leibniz notation it looks like fractions cancelling, dy ⁄ dx = (dy ⁄ du) · (du ⁄ dx), and that is the right intuition: rates in a chain multiply. Customers per ad times francs per customer is francs per ad. Gears: if the first turns the second twice as fast and the second turns the third three times as fast, the first turns the third six times as fast — the reading's one picture.

In particular — the power rule, which is the chain rule with an outer function that is a power:

(d ⁄ dx)( g(x)n ) = n · g(x)n−1 · g′(x)
🔍Week 4's power rule, n xⁿ⁻¹, with one thing added: the inner derivative g′(x) on the end. When the inside is plain x, g′ = 1 and the factor is invisible — which is why last week never needed it. The commonest single error in this course is leaving that factor off: (x³ − 1)⁷ → 7(x³ − 1)⁶, full stop. It is option A of quiz question 2, and it is wrong by a factor of 3x².
Try it · peel a composite, layer by layer

Four composites from the deck. For each: the outer function, the inner function, their two rates, and the product.

outer rate (at the inside) × inner rate · open all four
0 of 4 opened — open all four to complete this half of the section.
On the coffee → The fourth composite is section 5.1's chain, ads → customers → revenue, done the chain-rule way: R′(N(x)) · N′(x) = (70 + N ⁄ 10) · (50 ⁄ √x), and at 100 ads that is 170 × 5 = 850. Same number as the direct route, with no need to simplify the composite first. In practice that is the whole point: the two links usually come from two different teams — marketing knows customers per ad, finance knows francs per customer — and the chain rule says multiply their two numbers. Nobody has to write down the composite at all.
The deck's worked examples

(x³ − 1)⁷,  1 ⁄ (x² − 2),  and two with the chain written as y(u) and u(x).

(x³ − 1)⁷ → 7 · (x³ − 1)⁶ · 3x² = 21x² (x³ − 1)⁶  — g = x³ − 1, n = 7
1 ⁄ (x² − 2) = (x² − 2)−1 → −1 · (x² − 2)−2 · 2x = −2x ⁄ (x² − 2)²  — n = −1
y = 2u² − 3u − 2, u = x² + 4:  (4u − 3) · 2x = (4(x² + 4) − 3) · 2x = 8x³ + 26x
y = √u, u = 7 − x³:  ( 1 ⁄ (2√u) ) · (−3x²) = −3x² ⁄ (2√(7 − x³))
A misprint on the printed slideThe printed solution to the first example ends 21 · x² · (x² − 1)⁶. The inside does not change: the power rule lowers the outer exponent, 7 → 6, and leaves the inner function exactly as it was. It is 21x² (x³ − 1)⁶, as the line before it on the same slide says. The inside is copied, never edited.
🔍The second example is a reciprocal. Week 4 would have done it with the table's reciprocal row and a lucky inner derivative of 1; the power rule with n = −1 does it in one line for any inside. A reciprocal is a power, −1, and the power rule handles it. The last two state the chain as two functions, y(u) and u(x), and use dy ⁄ dx = (dy ⁄ du)(du ⁄ dx). The answer must be in x, so substitute u back at the end — leaving a u in the answer to a "find dy ⁄ dx" question loses the mark. Homework 5.6 is exactly this.
Try it · the slide with no printed solution

If F(x) = (x² − 4)⁵ · (3 · x + 5)⁴, find F′(x).

The printed slide stops at "Solution:" — this one is left to the room. Plan. It is a product, so the product rule; and each factor is a power of something, so each factor's derivative needs the power rule, inner derivative and all. Then factor out what the two terms share, because an answer with two eighth-degree terms is not one anybody can use.

Product rule, then the power rule twice, then factor · five moves
Step through all five.
Try it

What does the chain rule multiply by?

Six composites. For each, name the inner derivative — the factor the chain rule adds on the end. Find the inner function first; its derivative is the answer.

The inner derivative u′(x) is …
Section 5.5 · Zoom on exponential and logarithmic functions

eu, bu, ln u — and xx, by rewriting it as e to a power

Derivatives of exponential functions — the deck's four

The table's two rows, and the same two with an inside.

FunctionDerivativeWhat it says
exexWeek 4's row: the function whose rate of change is itself.
eu(x)eu(x) · u′(x)The chain rule with outer function e(·): the exponential copies itself, then multiplies by the exponent's rate. e3x → 3e3x; ex² → 2x ex².
bxbx · ln(b)Week 4's row. Any base other than e brings a constant ln b with it; for b = e it is ln e = 1 and vanishes.
bu(x)bu(x) · ln(b) · u′(x)Both at once: the base's constant and the exponent's rate. 52x³ → 52x³ · ln 5 · 6x² — homework 5.14 b).

Note: ex = exp(x) — the same function, two spellings. exp(…) is used when the exponent is too long to write small: exp(−12x + e²) in quiz question 4.

🔍Rows 2 and 4 are rows 1 and 3 with the chain rule applied — the deck writes them out because they are the cases you will meet. Quiz question 4 is row 2 with u = −12x + e²: the e² is a constant inside the exponent, so u′ = −12 and the derivative is −12 exp(−12x + e²). The exponent itself does not change — option C, exp(−11x + e²), has treated the exponential as if it were a power and lowered it.
Derivatives of logarithmic functions

(ln x)′ = 1 ⁄ x, and with an inside, u′ ⁄ u.

(d ⁄ dx)( ln(x) ) = 1 ⁄ x,   x > 0
(d ⁄ dx)( ln(u(x)) ) = ( 1 ⁄ u(x) ) · u′(x),   u > 0
🔍The second line is last week's u′ ⁄ u — "derivative of the inside over the inside" — and now you can see where it comes from: the chain rule with outer function ln, whose rate at u is 1 ⁄ u, times the inner rate u′. The condition u > 0 is real: a derivative exists only where the function does, and ln of zero or a negative number does not. ln(x² + 1) is defined everywhere (the inside is never below 1); ln(x − 3) only for x > 3.
On the coffee → XY Coffee's subscription app has S(t) = 2 000 e0.05t subscribers t months after launch. By row 2, S′(t) = 0.05 × 2 000 e0.05t = 0.05 S(t): at 10 months, about 165 new subscribers a month. And the relative rate S′ ⁄ S = 0.05 at every t — "growing at 5 % a month" is the statement that the derivative of the log is constant, (ln S)′ = 0.05. Exponential growth is exactly the growth whose percentage rate never changes. Brand awareness after x thousand francs of advertising, A(x) = 20 ln(1 + x), is the opposite shape: A′(x) = 20 ⁄ (1 + x), so the fourth thousand francs buys 4 points and the fortieth buys under half a point.
Try it · the deck's examples, with this week's rules

f(x) = 3 eˣ,  f(x) = x ⁄ eˣ,  and f(x) = e² + eˣ + xᵉ + 2√x + ln(2).

3 ex → 3 ex  — constant factor only
x ⁄ ex → ( 1 · ex − x · ex ) ⁄ e2·x = (1 − x) ⁄ ex  — the quotient rule, which last week could only show
e² + ex + xe + 2√x + ln 2 → ex + e · xe−1 + ( 2√x · ln 2 ) ⁄ ( 2√x )
🔍In the quotient, the bottom squared is (ex)² = e2x — powers of a power multiply — and one factor of ex cancels from the top. In the five-term example the fourth term is now just row 4 of the table: b = 2, u = √x, u′ = 1 ⁄ (2√x), so 2√x · ln 2 · 1 ⁄ (2√x). Last week it needed a rewrite as e√x ln 2; that rewrite is what row 4 does for you.
Differentiating power functions again — the deck's xa

Find f′(x) when f(x) = xa.

f(x) = xa = ea · ln(x)  — any positive number is e to its own log
f′(x) = ( ea · ln(x) )′ = xa · a · x−1 = a · xa−1  — row 2, with u = a ln x and u′ = a ⁄ x
🔍This is the power rule, proved — for any exponent a, fractional, negative or irrational, not just the whole numbers the definition handled in Week 4. The move is the one that will matter on the next slide: when x is somewhere awkward, rewrite the function as e to a power, because eu is the one function whose derivative is easy whatever u is. Why xa = ea ln x? Because eln x = x, so xa = (eln x)a = ea ln x. Last week's board summary, used.
Try it · x to the x, one move at a time

Find f′(x) when f(x) = xx.

Plan. Neither rule fits: the power rule needs a constant exponent, the exponential rule a constant base, and here x is in both places. So rewrite as e to a power, exactly as on the slide before, and the exponent becomes a product, x · ln x — which the product rule handles.

xx = ex ln x · four moves
Step through all four.
Try it · check a derivative with a secant

Four derivatives from this section, each checked against (f(x + 0.001) − f(x)) ⁄ 0.001.

Formula against secant · open all four
0 of 4 opened — open all four to complete this half of the section.
Try it

Where is x — and so which rule?

Last week's question with one more answer. No x: constant. x in the base only: power rule. x in the exponent only: exponential rule. x in both: neither rule applies until you rewrite as e(…).

Constant · Power rule · Exponential rule · Rewrite as e^(…)
Section 5.6 · Higher-order derivatives

The rate of the rate — rising faster, or rising slower?

Higher-order derivatives — the deck's notation

We can take the derivative of the derivative…

NotationWhat it measures
First derivativef′(x),  y′,  dy ⁄ dxHow fast f is changing. Marginal cost.
Second derivativef″(x),  y″,  d²y ⁄ dx²How fast the rate is changing. Is marginal cost itself going up?
Third derivativef‴(x),  y‴,  d³y ⁄ dx³How fast that is changing. Rarely interpreted; often computed.
Fourth derivativef(4)(x),  y(4),  d⁴y ⁄ dx⁴From here on, a number in brackets — four primes are unreadable.
🔍Each one is the derivative of the one before — nothing new to learn, just the same rules applied again. The notation d²y ⁄ dx² is "d ⁄ dx, twice": the 2 on the d and the 2 on the dx are not squares of anything, they count how many times you differentiated. And f(4) with brackets is the fourth derivative; f⁴ without them would be f to the fourth power. The brackets are the difference.
On the coffee → The roastery: C(q) = 10 000 + 200q + 5q², C′(q) = 200 + 10q, C″(q) = 10. The first derivative says what the next thousand doses cost; the second says that cost rises by CHF 10 with every thousand you add — costs rising, and rising faster. Profit, P(q) = −5q² + 600q − 10 000, has P″ = −10: the profit curve bends downward everywhere, so where its slope is zero (q = 60) it can only be a peak. In Week 8 that sentence — f′ = 0 and f″ < 0 means a maximum — is the method.
Try it · climb the ladder

The deck's four examples. Differentiate again until the pattern shows.

f → f′ → f″ → f‴ → f⁽⁴⁾ · open all four
0 of 4 opened — open all four to complete this half of the section.
Try it · read a launch with f, f′ and f″

XY Coffee's new cold-brew app: weekly downloads D(t) = 500 · t · e−t ⁄ 4, t weeks after launch.

A product of a power and an exponential, so its derivatives need this week's rules: D′(t) = 500 e−t ⁄ 4(1 − t ⁄ 4) by the product and chain rules, and once more, D″(t) = 500 e−t ⁄ 4(t ⁄ 16 − 1 ⁄ 2). Slide t and read the two signs together.

sign of D′ · sign of D″ · what the launch is doing
Try at least five weeks, including 4 and 8, to complete this half.
On the coffee → Four phases, and each is a pair of signs. Weeks 0–4: rising (D′ > 0), but already rising more slowly (D″ < 0). Week 4: the peak, D′ = 0 — about 736 downloads. Weeks 4–8: falling, and falling faster (D′ < 0, D″ < 0). Week 8: D″ = 0 — the steepest decline, about 68 fewer downloads a week. After week 8: still falling, but the fall is slowing (D′ < 0, D″ > 0). Most launch reports look only at D and D′ — "downloads are falling" — when the second derivative is what tells you whether the fall has started to ease. Exercise 8 is a decision that turns on it.
Try it

Two signs, one sentence.

Six sentences from business reports. Each describes the sign of the first derivative (rising or falling) and the sign of the second (faster or slower). Translate.

f′ > 0, f″ > 0 · f′ > 0, f″ < 0 · f′ < 0, f″ < 0 · f′ < 0, f″ > 0
f″ is not (f′)²The second derivative is the derivative of the derivative — differentiate twice. Squaring f′ gives a number that is never negative, and would make "falling faster" and "falling slower" impossible to tell apart. f″(x), y″, d²y ⁄ dx²: all three mean "differentiate, then differentiate again".
Section 5.7 · Part 2 · Exercises

Eight exercises, worked together

How this half of the session runs

The second half of the session is the eight exercises below, done as a class. They follow the six lesson sections in order — marginal cost from an average, the product rule as revenue, the quotient rule as average cost, a household's propensities, the chain rule on the ad budget, a chain-rule drill, exponential growth — and the last one asks for a recommendation that turns on a second derivative.

  • The question goes up on the screen; you work it here.
  • Attempt first, then the hint, then the solution. The hint costs you nothing and teaches you more than the answer does.
  • The 🔒 Solution button unlocks when your instructor releases that exercise in class. Once released it stays open, so the whole set is here for revision afterwards.
  • Your answers are saved and reach your instructor's dashboard as classwork. They are not graded — nothing in this course is graded except the three exams.
  • Use the calculator you will use in the exam: a Casio FX-82 Solar or a TI-30 eco RS.
Section 5.8 · Review quiz

Prove it to yourself

Warm-up · false friends

Six pieces of notation from this session that look like something they are not.

Each card shows a term and what it is constantly mistaken for. Tap to flip it to what it actually means. Not scored.

Tap each card to flip it
0 of 6 flipped
Review quiz · not graded

Twelve questions on this week

The first six are the review quiz exactly as it is printed for Session 5 — same questions, same options in the same order, right down to "None of the above". The six after them are this site's addition: the same mathematics, asked the way the midterm asks it.

One attempt per question, every answer explained. Your score syncs to your instructor's dashboard as a self-check but does not count toward your grade — the review quizzes never do. What they do is tell your instructor, before the next session, which idea did not land.

—

Six ideas, six questions

The whole session on one card.

Every idea you met this week exists because a business asks a particular kind of question. This is the table to have in your head when an exam question arrives and you do not yet know what to do with it.

Notice that the middle four are one question — which rule does this function need? — and that the answer is decided by its shape before any differentiating: a product, a quotient, a function of a function, x in an exponent. Recognising the shape is the skill the midterm tests.

Where this goes next

Week 6 is the self-study week — no class on campus; a business case and exercises, with answers provided, and examinable. It assumes the rules of Weeks 4 and 5 are automatic. Then Week 7 puts the derivative to work: marginal analysis, the price elasticity of demand (a relative rate, section 4.4, with a quotient in it), and linear approximation. Do the Week 5 homework first: twenty-two problems from the printed sheet, by hand, with a calculator. Problems 5.1 and 5.7 are fourteen derivatives between them and are the drill.

Before the next session → read Burns' "The Chain Rule Derivative Explained with Comics" on Cyberlearn — ten minutes, and it is section 5.4 in pictures. Then pick any three derivatives from the homework and check each one with a secant on your calculator, as section 5.5 does. A rule you can check yourself is a rule you will trust in the exam.