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

Nobody ever gives you profit.

Last week you met one function at a time. A business never has one. It has a rent bill, a bean bill and a payroll β€” three functions β€” and the number the board actually asks about, profit, is not measured anywhere: it is assembled out of the others. This week is the arithmetic that assembles it.

Six ways to put functions together, and each one answers a different kind of question. Add them and you get a total. Subtract and you get a margin. Multiply and you get revenue. Divide and you get a per-unit figure. Chain them and you follow a business process end to end. Run one backwards and you answer the question management actually asked: not "what happens if?" but "what do we need to do?"

1Why combine at allprofit is not a measurement, it is a construction
2The four operations+ βˆ’ Γ— Γ· on functions, and where the domain goes
3Interceptswhere a curve crosses the axes, and what each crossing means
4Compositionf(g(x)) β€” a chain of business steps, and why order is meaning
5Inversesrunning the machine backwards, and when you may
6Exponentials & logsthe rules, properly, because next week assumes them

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: Bonchek, "How to Create an Exponential Mindset" (HBR, 2016) β–Ά The Lecture button (top-right) shows the deck we use in class

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

  • Combine two functions by addition, subtraction, multiplication, division and multiplication by a constant β€” and say which business question each combination answers.
  • Work out the domain of a combination, and explain why a quotient loses more of it than the other four.
  • Find the x- and y-intercepts of a graph, and read each one as a business fact rather than a coordinate.
  • Form the composite (f ∘ g)(x) = f(g(x)), and show by example that f ∘ g and g ∘ f are different functions.
  • Define the inverse of a function, find it by solving y = f(x) for x, and verify it with f ∘ f⁻¹ = Id.
  • Say when an inverse exists at all β€” and why a demand curve has one but a revenue curve does not.
  • Use the rules for exponents and logarithms fluently enough to simplify an expression without looking them up.

Resources β€” tick them off as you go

βœ“Lecture deck β€” the β–Ά Lecture button above; presented in class in Week 2. Print it to PDF from inside the deck if you want it on paper.
βœ“Reading: Bonchek, "How to Create an Exponential Mindset", Harvard Business Review, July 2016 β€” on Cyberlearn. Short, and it is really about section 2.6: human intuition is linear and the world is not.
βœ“Part 2 Β· the exercise set β€” eight exercises done with your instructor in the second half of the session. Section 2.7 below.
βœ“Week 2 homework β€” the twelve problems from the printed sheet, with hints and full worked solutions. Not graded; it is how you find out whether the lesson stuck.
Section 2.6 is revision with a purpose: you met exponentials and logarithms in Week 1 as a story about growth. Here they come back as rules, because from Week 5 onwards you differentiate them, and a shaky log rule in October is a lost mark in January.
← Course page
A reset link lives at the bottom of section 2.8.
Section 2.1 Β· Why combine functions at all

Profit is not a measurement. It is a construction.

J
"Theo asked me this morning what our profit per day is. There is no meter on the wall that reads it. What we have is a rent contract, an invoice from the bean supplier, a payroll run and a till. Profit is what you get when you put those four things together in the right way β€” and the whole argument is about which way is right."
Jane Β· Head of Insights, XY Coffee Co.
The situation

Four numbers arrive from four different places, and none of them is the answer.

XY Coffee's roastery reports its costs in three separate lines, because three different departments own them. Write q for the daily production, in thousands of coffee doses:

f(q) = 10Β 000  β€” fixed costs: rent, insurance, the standing charge on the roaster
g(q) = 200q  β€” materials: green beans, capsules, packaging
h(q) = 5qΒ²  β€” salaries: overtime, night shifts, agency staff as the plant is pushed
πŸ”Read the three shapes, not the three formulas. A constant does not react to q at all β€” rent is owed on a day you roast nothing. A straight line reacts proportionally β€” twice the doses, twice the beans. A square reacts faster than proportionally β€” and that is a claim about the world: pushing the plant harder costs more than proportionally more, because you are buying overtime rather than ordinary hours. Every function in this course is a claim of that kind. Ask what shape is being asserted, and why.

Nobody in the building has "total cost" on their desk. It does not exist as a measurement β€” it exists as an operation performed on three things that do:

C = f + g + h   so   C(q) = 10Β 000 + 200q + 5qΒ²
πŸ”The first line is about the functions themselves: C is the sum of those three rules, once and for all. The second is about one day's output: at this particular q, add the three numbers. That distinction β€” an operation on rules versus an operation on numbers β€” is the single new idea of this session, and the four operations below are all built on it.

Last week: what does this one relationship say? This week: what do I get when I put two relationships together?

Try it Β· assemble the profit function

Three cost lines in, one profit curve out.

XY Coffee sells a thousand doses for CHF 800, so revenue is R(q) = 800q. Click along the strip to build the answer one operation at a time; the graph redraws at each step.

Building C, then R, then P Β· click each step
0 of 5 steps opened β€” open all five to complete this section.

Two things are worth saying out loud about that last curve, because they are not obvious from the algebra:

  • Profit starts at βˆ’10Β 000 and ends negative too. Make nothing and you lose the rent; make too much and the overtime eats you. P(q) = βˆ’5qΒ² + 600q βˆ’ 10Β 000 is a downward parabola, so it is above zero only between its two roots β€” 20 and 100 thousand doses a day. There are two break-evens, and the business lives between them.
  • The best day is not the biggest day. The peak sits at q = 60, where profit is CHF 8Β 000 β€” not at 100, where it is zero. "Sell more" is not a strategy; it is an assumption, and this curve refutes it. Finding that peak without reading it off a graph is Week 8, and the tool that gets you there arrives in Week 4.
On the coffee β†’ Theo's instinct is to run the roastery flat out, because the plant is expensive and idle machines feel like waste. The profit function says the opposite: past 60 the salaries term grows faster than the revenue term, and every extra thousand doses is worth less than the one before. The argument is now checkable, which is the whole point.
Try it

Which operation builds this quantity?

Every line below is a real business quantity, and every one of them is made out of simpler ones. Name the operation. Getting this reflex is most of what section 2.2 is for β€” and it is what makes an exam question readable before you have written anything.

Sum Β· Difference Β· Product Β· Quotient Β· Composition
The retail case the deck opens with

A chain of three measurements, and the revenue nobody records.

A retail company wants to know what its online channel earns. It records three things every day: the number of website visits V, the conversion rate C (the fraction of visits that become a purchase), and the average transaction value T.

R(t) = T( V(t) Γ— C(t) )
πŸ”Two different operations in one line, and reading the brackets tells you the order. Inside the brackets: a product β€” visits times conversion rate is the number of orders. Outside: T is applied to that number, not multiplied by it β€” a composition. If you read T(…) as "T times", you get an answer with the wrong units and no warning.

Notice what is not in that formula: revenue. It is never measured. Three things are measured, and revenue is the thing you build by combining them β€” which is exactly Theo's question about profit, in a different company.

The mistake this session exists to preventCombining functions looks like ordinary arithmetic, and it mostly is. What it is not is safe with domains. Adding, subtracting and multiplying keep everything both functions allow; dividing throws away every point where the bottom one is zero; composing throws away every point whose output the second function cannot accept. Three of the six operations cost you domain, and nobody reminds you.
Section 2.2 Β· The four operations

Adding, subtracting, multiplying, dividing β€” rules, not numbers

The definition

Four operations, one pattern: do it at every x.

Let f and g be two functions defined on the same domain A. Then:

(f + g)(x) = f(x) + g(x)   for all x in A
(f βˆ’ g)(x) = f(x) βˆ’ g(x)   for all x in A
(f Β· g)(x) = f(x) Β· g(x)   for all x in A
(f ⁄ g)(x) = f(x) ⁄ g(x)   for all x in A, provided g(x) β‰  0
πŸ”Every line has the same shape, and the shape is the idea. On the left of each equals sign, the operation is done to the functions β€” f + g is a new rule, a new machine. On the right, it is done to the numbers they produce at one particular x. The definition is the bridge: a new machine is defined by saying what it outputs at every single input. And the last line carries a condition the first three do not β€” that is the whole of the domain trap below.

Two more you will use constantly, and which are really special cases:

h(x) = βˆ’f(x)  β€” multiplication by the constant βˆ’1
h(x) = 1 ⁄ f(x),  f(x) β‰  0  β€” the quotient with the constant function 1 on top
πŸ”Multiplying a function by a constant scales every output without changing the shape β€” Β½Β·f is the same curve, half as tall. That is what makes "halve the price" and "halve the margin" different sentences: the first changes an input, the second scales an output. And 1/f is NOT the inverse function, however much the notation invites you to think so. The inverse is section 2.5 and is written f⁻¹; this is a reciprocal. Two different ideas, and confusing them is the commonest notation error of the whole semester.
Try it Β· the combiner

Pick two functions and an operation. Watch the formula, the table and the graph agree.

The deck's worked example is f(x) = 3x βˆ’ 1 and g(x) = xΒ² + 3x. Here it is live, along with XY Coffee's own pair. Change the operation and see what happens to the shape, not just the symbols β€” that is what you are actually being asked to learn.

f, g, and what you get when you combine them
xf(x)g(x)result
Try all four operations on at least one pair.

The deck's example worked out in full, so you can check yourself against it:

(f + g)(x) = xΒ² + 6x βˆ’ 1
(f βˆ’ g)(x) = βˆ’xΒ² βˆ’ 1
(f Β· g)(x) = (3x βˆ’ 1)(xΒ² + 3x) = 3xΒ³ + 8xΒ² βˆ’ 3x
(f ⁄ g)(x) = (3x βˆ’ 1) ⁄ (xΒ² + 3x)
(Β½ Β· f)(x) = (3 ⁄ 2)x βˆ’ Β½
πŸ”Watch the degree as you go down the list β€” it is the quickest check that you have not slipped. Adding two functions gives you the higher of the two degrees (2). Subtracting can give you the same (2) β€” and occasionally less, if the leading terms cancel. Multiplying adds the degrees: 1 + 2 = 3. Dividing gives something that is not a polynomial at all. If your product came out quadratic, you have dropped a term; you do not need to re-check the arithmetic to know that.
The domain β€” where three of these quietly cost you something

The result is only defined where both ingredients are, and division takes more.

This is the part the printed definition puts in six words β€” "defined on the same domain A" β€” and the part the exam actually tests.

What each operation does to the domain Β· step through it
Step through all four.
On the coffee β†’ XY Coffee's average cost per thousand doses is a quotient: A(q) = C(q) ⁄ q = 10Β 000 ⁄ q + 200 + 5q. Its domain excludes q = 0 β€” and that exclusion is not a technicality, it is the most important sentence on this page. On a day you roast nothing, "cost per dose" has no value. You still owe the CHF 10Β 000, but there is nothing to divide it among. Any spreadsheet that reports a cost per unit on a zero-output day is reporting a division by zero with a comforting label on it.

And watch what that quotient does as production falls. At 60 thousand doses average cost is CHF 666.67 per thousand; at 40, CHF 650; at 20, CHF 800. It falls, bottoms out, then climbs β€” because the fixed CHF 10Β 000 is being spread over more and more units while the salaries term climbs to meet it. That U-shape is the single most examined curve of the fall semester, and you have now built it out of an addition and a division.

Which operation answers which question

The algebra is easy. Choosing it is the skill.

Sum β€” "what is the total?"
Three cost lines become one cost. Three regions become group revenue. Use it when the parts are genuinely separate and measured in the same unit. Adding francs to francs is fine; adding francs to kilos is a mistake nothing will warn you about.
Difference β€” "what is left over?"
Profit = revenue βˆ’ cost. Contribution = price βˆ’ variable cost. Net migration = arrivals βˆ’ departures. The order matters and the sign carries the meaning: R βˆ’ C and C βˆ’ R are both perfectly good functions, and only one of them is profit.
Product β€” "how much, at how much each?"
Revenue = price Γ— quantity. Wage bill = hours Γ— rate. The trap is that both factors often move together. Raise the price and quantity falls, so revenue is a product of two things that fight each other β€” which is exactly why the revenue curve is a parabola with a peak, and not a straight line.
Quotient β€” "how much per one?"
Average cost, revenue per customer, market share, cost per click. Every ratio in business is a quotient of two functions, and every one of them has a hole where the denominator vanishes. Ask what that hole means before you call it an edge case β€” it is usually a real business state, like a day with no sales.
Section 2.3 Β· Intercepts and graphs

Where a curve crosses an axis, something has run out

The definition, and it is the easy part

An intercept is a point where the graph meets an axis.

The rectangular coordinate system gives you a geometric way to look at an equation in two variables. Two of its points have names, because two of them get asked about constantly:

x-intercept β€” where the graph crosses the x-axis. Find it by setting y = 0 and solving for x.
y-intercept β€” where the graph crosses the y-axis. Find it by setting x = 0 and reading off y.
πŸ”The two rules look symmetric and the mistake is to think they are equally hard. Setting x = 0 is substitution β€” put zero in, get a number out, one step, always works. Setting y = 0 is solving an equation β€” and how hard that is depends entirely on the function: trivial for a line, a quadratic formula for a parabola, sometimes impossible in closed form. So the y-intercept is a lookup and the x-intercept is a problem. Budget your exam time accordingly.

Worked, exactly as the deck does it. For y = 2x + 3:

When y = 0: 0 = 2x + 3, so x = βˆ’3 ⁄ 2.   When x = 0: y = 2(0) + 3 = 3.
πŸ”Notice the sign flip, because it catches people every year: the formula has +3 and the x-intercept is at βˆ’3 ⁄ 2. That is not a coincidence or a trick β€” you moved the 3 across the equals sign, which changes its sign. If your x-intercept came out positive here, that is the step you skipped.
The case that makes the definition earn its keep

x = 3 β€” an equation with an x-intercept and no y-intercept.

Sketch it and it is a vertical line through 3. It crosses the x-axis at (3, 0). Does it cross the y-axis? No β€” and it cannot. The y-axis is the set of points where x = 0, and on this graph x is 3 everywhere. There is no point with x = 0 on it at all.

x333
y03βˆ’2

Two things fall out of this small example, and both matter more than it looks:

  • "No intercept" is a real answer, not a failed calculation. Exactly as Ξ” < 0 was in Week 1. Writing "there is no y-intercept, because x is never zero on this graph" is a complete answer and earns full marks; writing nothing earns none.
  • This graph is not a function. Feed it x = 3 and it hands you back every real number at once. It is an equation with a graph, and every function has a graph, but the reverse is not true. Week 1's definition β€” at most one output per input β€” is what fails here, and section 2.5 will make the same test do a different job.
Try it Β· read the crossings

XY Coffee's cash position over the next twelve months.

The finance team models the roastery's cash balance, in thousands of francs, t months from now, as K(t) = 2tΒ² βˆ’ 24t + 54. Every intercept on that curve is a date on somebody's calendar. Find them.

Cash balance Β· find the crossings
0 of 4 readings opened β€” open all four to complete this section.
On the coffee β†’ The y-intercept is CHF 54Β 000 β€” what is in the bank today. The two x-intercepts are month 3 and month 9. Between them the balance is negative, bottoming out at βˆ’CHF 18Β 000 in month 6. That is not a mathematical curiosity, it is an overdraft facility that has to be arranged in month 2, by someone, with a bank. A curve that crosses zero twice is a business that needs financing for exactly the span between the crossings β€” and the length of that span, six months, is what the bank will ask about first.
Try it

How many x-intercepts, without computing any of them?

You can usually tell by looking. A cubic with no constant term has a root at zero; a sum of a square and a positive number never reaches zero at all; a downward parabola whose peak is above the axis crosses twice. Use the discriminant and the shape, not the calculator.

None Β· One Β· Two
Section 2.4 Β· Composition

A function inside a function

The question that needs it

Marketing wants to know what a franc of advertising is worth. Nobody measures that.

XY Coffee measures two things, in two different departments, and neither of them is the answer.

N(x) = 100·√x  β€” customers won, from an advertising spend of x (in thousands)
R(n) = 70n + nΒ² ⁄ 20  β€” revenue in francs, from n customers
πŸ”Look at what each one takes and what it gives back. N eats money and produces customers. R eats customers and produces money. The output of the first is exactly the input the second wants β€” and that is the only condition composition needs. If N produced kilos and R wanted customers, there would be no chain to build, and no amount of algebra would rescue it.

Marketing's question is revenue as a function of advertising spend. That function is not measured anywhere, because no department sits at both ends of the chain. You build it by feeding one machine into the other:

70Β·(100√x) + (100√x)Β² ⁄ 20 = 7Β 000·√x + 500Β·x
πŸ”Every n in R's formula has been replaced by the whole of N's formula β€” brackets and all. That is the entire mechanical rule. The brackets are not optional: (100√x)Β² is 10Β 000x, while 100√xΒ² would be 100x, a hundred times smaller. Then the 10Β 000x over 20 gives 500x, and the whole thing collapses to something you can plot.

That function has a name: the composite, or composition, of R and N.

Try it Β· the two-stage machine

Watch a number go through both stages.

Feed in an advertising budget. The middle box shows you the part nobody usually sees β€” the number of customers β€” which is the value the whole chain hinges on and the one a single formula hides.

spend β†’ customers β†’ revenue
0 of 5 budgets tried β€” try all five to complete this half of the section.
On the coffee β†’ Spend 9 and revenue is 25Β 500. Spend 16 β€” seven thousand more β€” and revenue is 36Β 000, which is ten and a half thousand more. The campaign pays for itself. But look at the shape of the curve: it is flattening. Somewhere the next franc of advertising stops returning more than a franc, and the model can tell you exactly where. That is Exercise 8, and it is Week 8 in miniature.
The definition

Formally, and then the part that actually needs care.

For functions f : X β†’ Y and g : Y β†’ Z, the composite of f with g is the function g ∘ f : X β†’ Z defined by

(g ∘ f)(x) = g( f(x) )
πŸ”The one that goes first is the one written last. In g ∘ f, f is applied first β€” you can see why on the right-hand side, where f is inside the brackets and therefore has to be worked out before g can do anything. The notation reads right to left, like nesting boxes, and this is the single most common source of a wrong answer in this section. When in doubt, drop the ∘ and write g(f(x)), where the order is unmissable.

...and the domain of g ∘ f is the set of those x in the domain of f such that f(x) is in the domain of g.

πŸ”That clause is doing real work, so read it twice. It is not enough that x is allowed into f. What comes out of f has to be something g will accept. With f(x) = x βˆ’ 5 and g(y) = √y, the composite √(x βˆ’ 5) needs x β‰₯ 5 β€” even though f itself is happy with every real number. The restriction is imposed from downstream, which is why you cannot find the domain of a composite by looking at either function alone.

Worked, as in the deck. With F(p) = pΒ² + 4p βˆ’ 3 and G(p) = 2p + 1:

F(G(p)) = (2p + 1)Β² + 4(2p + 1) βˆ’ 3 = 4pΒ² + 12p + 2
G(F(p)) = 2(pΒ² + 4p βˆ’ 3) + 1 = 2pΒ² + 8p βˆ’ 5
G(F(1)) = G(2) = 5
πŸ”Two different functions out of the same two ingredients β€” and they do not even have the same leading coefficient, 4 against 2. That is the proof, in one line, that composition is not commutative. And notice the third line: to get G(F(1)) you do not need either expanded formula. Work out F(1) = 2, then G(2) = 5. Two arithmetic steps against half a page of algebra β€” always ask whether the question wants the function or just one value.
Try it Β· order is meaning

A 10% discount and a CHF 20 delivery fee. Which goes first is worth real money.

A wholesale customer orders CHF 240 of beans. There is a 10% trade discount, d(x) = 0.9x, and a flat delivery charge, v(x) = x + 20. Both will be applied. Nobody has said in which order β€” and the contract does not say either.

Two orders, two invoices
Work out both orders to complete this section.

The gap is CHF 2.00, and it is not arbitrary: it is exactly 10% of the delivery fee. Discount the goods only, and the fee escapes the discount. Discount the total, and it does not. Two francs on a 240-franc order is small; the same clause on a contract with a CHF 4Β 000 freight charge is CHF 400 a shipment, and it is the kind of thing that gets argued about in a room with lawyers in it.

Where this bites in an examNot on the arithmetic β€” on the reading. "A 10% discount is applied and delivery is added" describes two different invoices and the sentence does not say which. When a question composes two operations, write down which one acts first before you compute anything, and say so in your answer. If the wording is genuinely ambiguous, answer both and say why they differ: that is a better answer than picking one and being lucky.
Two properties worth having

The identity, and associativity.

Define the identity function Id : X β†’ X by Id(x) = x β€” the machine that gives you back exactly what you put in. Then for any function f:

f ∘ Id = Id ∘ f = f   Β·   (f ∘ g) ∘ h = f ∘ (g ∘ h)
πŸ”The first says Id does nothing, which sounds like a waste of a definition. It is not: it is what "undo" is going to mean. In section 2.5 a function and its inverse compose to exactly this, and that is the whole definition of an inverse β€” do it, undo it, and you are back where you started. The second says brackets do not matter when you chain three: a three-stage process gives the same answer however you group the stages, which is why a supply chain can be modelled in pieces. Neither property says order does not matter. It does.
Section 2.5 Β· Inverse functions

Running the machine backwards

J
"Your model tells me how many doses we sell at any price. That is a fine thing to know, but it is not what I was asked. The board has committed to shipping one and a half million doses a day. They want to know what to charge. Same relationship, opposite direction β€” and you would be amazed how often that is the whole job."
Jane Β· Head of Insights, XY Coffee Co.
The situation

The demand function answers "what happens if?". Management asked "what do we do?".

XY Coffee's daily demand for coffee doses, as a function of the retail price p in francs, is:

Q(p) = 5Β 000Β 000 ⁄ (p + 1) βˆ’ 500Β 000  if 0 ≀ p ≀ 9,  and 0 if p > 9
πŸ”A case-defined function, and the second case is the honest part: above CHF 9 nobody buys at all, so the formula is switched off rather than allowed to go negative. The p + 1 in the denominator is there so the function does not explode at a price of zero β€” at p = 0 demand is 4Β 500Β 000, a big number but a finite one. A modeller chose that +1 deliberately, and you should notice choices like it.

Put a price in, get a quantity out. Jane has a quantity and wants a price. There is no second model to build β€” the relationship between price and quantity is already there, and it is a one-to-one relationship. What is needed is to read it the other way round, and reading it the other way round is algebra:

Solving for p Β· one move at a time
Step through all four moves.

So the inverse, which is the price as a function of quantity, is

P(q) = 5Β 000Β 000 ⁄ (q + 500Β 000) βˆ’ 1
πŸ”Compare it with the original, line by line, because the resemblance is not a coincidence. The +1 that was inside the bracket has become a βˆ’1 outside; the βˆ’500Β 000 that was outside has become a +500Β 000 inside. Every operation has swapped places and reversed. That is what undoing a machine looks like when you write it down, and it is why the last step of the working is always the first operation to be undone.

And the two functions, stated formally, are mirror images of each other in what they take and what they give:

Q : [0 ; 9] β†’ [0 ; 4Β 500Β 000],  p ↦ 5Β 000Β 000 ⁄ (p+1) βˆ’ 500Β 000
P : [0 ; 4Β 500Β 000] β†’ [0 ; 9],  q ↦ 5Β 000Β 000 ⁄ (q+500Β 000) βˆ’ 1
πŸ”Read the two intervals and then read them again in the other order. The domain of one is the range of the other, exactly. That is not a nice property an inverse happens to have β€” it is the definition doing its work. If the sets did not match up, some q would have no price, and P would not be a function at all.
Try it Β· the mirror

A function and its inverse, reflected in the line y = x.

Drag the price. The blue curve reads it forwards; the red one is the same relationship read backwards. Every point on one has a twin on the other with its coordinates swapped β€” which is exactly what reflecting in y = x does.

Q(p) and P(q) Β· the same fact, twice
Move the slider across at least five prices to complete this half.
On the coffee β†’ Jane's answer: at q = 1Β 500Β 000, P = 5Β 000Β 000 ⁄ 2Β 000Β 000 βˆ’ 1 = CHF 1.50 a dose, and the revenue that comes with it is CHF 2Β 250Β 000 a day. Now she can go back to the board with the thing they did not ask for but needed: the volume target has a price attached, and the price is low. Whether 1.50 covers the cost of a dose is a different question β€” and it is the one you will be able to answer properly by Week 8.
The definition, and how you check you have it right

An inverse is a function that undoes another one.

f( f⁻¹(x) ) = f⁻¹( f(x) ) = x   β€” that is,  f ∘ f⁻¹ = f⁻¹ ∘ f = Id
πŸ”This is where the identity function from section 2.4 stops being a formality. "Undo" is defined as "compose to Id". And the superscript βˆ’1 is NOT an exponent: f⁻¹ is the inverse function, while f(x)⁻¹ would be one over f(x). Two entirely different objects, one keystroke apart. This is the single worst piece of notation in the course and there is nothing to be done about it except know.

Geometrically, f⁻¹ is the mirror image of f in the identity line y = x β€” which is the picture above, and the reason the picture is worth drawing.

The proof that they really are inverses is a composition. This is the standard exam request β€” "show that P is the inverse of Q" β€” and it is done by computing P ∘ Q and getting p back:

P(Q(p)) = 5Β 000Β 000 ⁄ ( Q(p) + 500Β 000 ) βˆ’ 1
= 5Β 000Β 000 ⁄ ( [5Β 000Β 000 ⁄ (p+1) βˆ’ 500Β 000] + 500Β 000 ) βˆ’ 1
= 5Β 000Β 000 ⁄ ( 5Β 000Β 000 ⁄ (p+1) ) βˆ’ 1 = (p + 1) βˆ’ 1 = p
πŸ”Watch the middle line, because that is where the work happens: the βˆ’500Β 000 and the +500Β 000 annihilate each other, which is precisely the design of the inverse. Then dividing 5Β 000Β 000 by "5Β 000Β 000 over (p+1)" flips the fraction and gives p + 1 β€” dividing by a fraction multiplies by its reciprocal. Finally the βˆ’1 cancels the +1. Every step undoes one step of Q, in reverse order. And the same argument run the other way shows (Q ∘ P)(q) = q; you need both directions before you may claim they are inverses.
Two standard results, and one method

Linear functions, solving equations, and how to find any inverse.

The inverse of a linear function is linear
Take f(x) = ax + b. f multiplies by a and adds b, so guess that the inverse subtracts b and divides by a: g(x) = (x βˆ’ b) ⁄ a. Check both ways: f(g(x)) = aΒ·(xβˆ’b) ⁄ a + b = x and g(f(x)) = (ax + b βˆ’ b) ⁄ a = x. Note the order of the undoing: b comes off first, then the division β€” the reverse of the order f applied them. And note that a β‰  0 is required, which is the algebra telling you a horizontal line cannot be inverted.
Inverses solve equations
Most equations are f(x) = 0 for some f. If f is one-to-one, apply f⁻¹ to both sides: f⁻¹(f(x)) = f⁻¹(0), and the left side is just x. So x = f⁻¹(0), and it is the only solution. This is what you have been doing since school without a name for it: "take the square root of both sides", "take logs of both sides" β€” every one of those moves is applying an inverse.
The method, in one line
To invert a one-to-one f: write y = f(x) and solve for x in terms of y. Example: f(x) = (x βˆ’ 1)Β² for x β‰₯ 1. Then x βˆ’ 1 = √y β€” and the restriction x β‰₯ 1 is what lets you take the positive root and drop the Β±. So f⁻¹(y) = √y + 1. Without that restriction there would be two candidates for every y and no inverse at all.
Try it

Which of these can be run backwards?

An inverse exists exactly when no two inputs share an output β€” otherwise the backwards machine would have to return two answers at once, and that is not a function. On a graph it is the horizontal line test: if any horizontal line meets the curve twice, there is no inverse.

Has an inverse Β· No inverse
Why revenue has no inverse, and it mattersWeek 1's revenue curve R(p) = 900p βˆ’ 60pΒ² gives CHF 3Β 000 at two prices, 5.00 and 10.00. So "give me the price that produces CHF 3Β 000 of revenue" has no single answer, and R⁻¹ does not exist. That is not a defect in the mathematics; it is a fact about the business, and it is exactly what makes a revenue target a poor instruction. Narrow the domain β€” say, prices below the peak of 7.50 β€” and the inverse springs into existence. Restricting the domain to buy yourself an inverse is a standard and entirely legitimate move, and it is what x β‰₯ 1 was doing above.
Section 2.6 Β· Exponentials and logarithms

The rules, properly β€” because from Week 5 you differentiate these

Why this is here, in a session about operations

Because the exponential and the logarithm are the best-known pair of inverses in the course.

Week 1 introduced them as a story: exponentials answer "where will we be in a year?", logarithms answer "when will we get there?". That story is right, and section 2.5 has just given you the machinery to say what it actually means:

exp(ln(u)) = u  Β·  ln(exp(x)) = x  Β·  exp(x) = u ⟺ x = ln(u)
πŸ”The first two lines are the inverse definition from section 2.5 with f = exp written in. These two functions compose to the identity, in both directions. The third line is the same fact in the ⟺ spelling: a logarithm IS an exponent. Not a consequence of one, not a way of approximating one β€” the two sides are one statement written twice, which is why the arrow points both ways.

And one more that will do a lot of work from Week 5 onwards:

ax = exp( x Β· ln(a) ),  if a > 0
πŸ”Any exponential, in any base, can be rewritten in base e. That is why calculus only ever needs one exponential function. Right now it looks like a curiosity; in Week 5 it is the reason you differentiate 1.06t without learning a separate rule for base 1.06 β€” and there is no such rule, because this identity means there does not need to be one.
Try it Β· the rule tester

Eight rules for exponents, seven for logarithms. Click one and watch it hold.

Reading a list of rules teaches nobody anything. Click each one and it is applied to actual numbers, both sides worked out separately, so you can see that the two sides really are the same β€” and, for the ones written as traps, that they are not.

Click a rule to test it on numbers
0 rules tested β€” test at least six, from both families, to complete this half.
The two lists, for reference

Worth copying onto your two exam sheets in your own hand.

Rules for exponents
bx Β· by = bx+y
bx ⁄ by = bxβˆ’y
(bx)y = bxΒ·y
(bΒ·c)x = bx Β· cx
(b ⁄ c)x = bx ⁄ cx
bΒΉ = b  Β·  b⁰ = 1  Β·  bβˆ’x = 1 ⁄ bx
Rules for logarithms
logb(mΒ·n) = logb m + logb n
logb(m ⁄ n) = logb m βˆ’ logb n
logb(mr) = r Β· logb m
logb(1 ⁄ m) = βˆ’ logb m
logb 1 = 0  Β·  logb b = 1
logb m = loga m ⁄ loga b  β€” change of base
πŸ”Read the two columns side by side, line by line, because they are the same list. Multiplication on the exponent side becomes addition on the log side; a power becomes a multiplication. That is not a coincidence to be memorised twice β€” it is the inverse relationship showing through. A logarithm converts one level of operation down: Γ— becomes +, Γ· becomes βˆ’, a power becomes a product. That is what it was invented to do, three centuries before calculators, and it is why the third rule is the one that lets you solve for a time.
The three that are not ruleslog(m + n) is not log m + log n. log(m ⁄ n) is not log m ⁄ log n. (log m)r is not r log m. Every one of these is a real rule with one symbol changed, which is exactly what makes them dangerous β€” they look right. Test any suspect line on numbers you know: log(10 + 10) = log 20 β‰ˆ 1.30, while log 10 + log 10 = 2. Ten seconds, and it settles the question for good.
Try it Β· peel an expression

A nested logarithm, one layer at a time.

These are the deck's own examples. The technique is always the same and always worth saying out loud: work from the outside in for writing a log in simpler terms, and from the inside out for evaluating one.

Pick an expression, then peel it
Peel at least three of the five all the way down.
Try it

Rule or trap?

Six lines. Three are genuine rules and three are the near-misses that cost marks. Decide before you test β€” and if you are unsure, the trick above (try it on numbers you know) is exactly what you should be doing in the exam.

True Β· False
On the coffee β†’ XY Coffee's app has 1Β 200 subscribers, growing 6% a month: S(t) = 1Β 200 Β· (1.06)t. Marketing wants to know when it doubles. Set (1.06)t = 2, take logs of both sides, and the third rule brings the t down: t = ln 2 ⁄ ln 1.06 = 11.9 months. Without that one rule the t is stuck up in the exponent and the question is unanswerable. That is the rule earning its keep, and it is why this section is not filler.
Section 2.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 β€” assemble, combine, read the crossings, chain, invert, and grow β€” and the last one puts all of it back together.

  • 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 2.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 piece of notation and what it is constantly mistaken for β€” the trap. Tap to flip it to what it actually means. Not scored; it is here because this week's errors are almost all reading errors rather than arithmetic ones.

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

Twelve questions on this week

The first four are the review quiz exactly as it is printed for Session 2 β€” same questions, same five options each, right down to "None of the above". The eight 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 operations, six questions

The whole session on one card.

Every operation 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 last two are the ones that are genuinely new. Adding and multiplying functions is arithmetic you have done since school, wearing a new hat. Composition and inversion are new ideas, and they are the two that Week 5 (the chain rule) and the whole of the spring semester (discounting, which is compounding inverted) are built on.

Where this goes next

In Week 3 you take the two shapes you have used most this week β€” the line and the parabola β€” and study them properly: slope as a rate of change, demand and supply as lines that cross, break-even and market equilibrium as systems of equations. Do the Week 2 homework first: twelve problems from the printed sheet, by hand, with a calculator. It is not graded and it is the best two hours you will spend this week.

Before the next session β†’ read Bonchek's "How to Create an Exponential Mindset" on Cyberlearn β€” it is four pages and it is really a commentary on section 2.6. And if the domain work in 2.2 felt shaky, go back to Week 1 Β§1.5: everything from here on assumes you can find a domain without thinking about it.