
Mathematics for Master Students
Which tasks gave you trouble? Bring them up now. We take the time to go through them before we move on to today’s topic.
Question
Let \(f(x) = \sqrt{x}\) and \(g(x) = 2x + 7\). Compute \(\;(f \circ g)(1)\;\) and find the domain of \(f \circ g\).
Session 3 modeled revenue as a function of price: \(R(p) = 1200p - 20p^2\).

Raising the price by €1 gains about €780 of revenue at \(p = 10\), but loses about €20 at \(p = 30\). One curve, very different local behavior.
How much does \(f\) change per unit of input, between \(a\) and \(a + h\)?
\[\frac{f(a+h) - f(a)}{h} \qquad \text{the [difference quotient]{.highlight}}\]

The difference quotient is the slope of the secant line through \((a, f(a))\) and \((a+h, f(a+h))\): here \(\frac{9 - 1}{2} = 4\) for \(f(x) = x^2\) from \(a = 1\) to \(a + h = 3\).

Keep \(a\) fixed and pull the second point closer: the secants tilt toward one limiting line, the tangent at \(a\). Its slope is the rate of change right at \(a\).
For \(f(x) = x^2\) at \(a = 1\), the secant slope is \(\frac{(1+h)^2 - 1}{h}\):
| \(h\) | \(1\) | \(0.5\) | \(0.1\) | \(0.01\) | \(0.001\) |
|---|---|---|---|---|---|
| secant slope | \(3\) | \(2.5\) | \(2.1\) | \(2.01\) | \(2.001\) |
The derivative of \(f\) at \(a\) is the instantaneous rate of change:
\[f'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}\]
Check against the table: at \(a = 1\) we get \(f'(1) = 2\), exactly where the secant slopes settled. And at \(a = 3\): slope \(6\), the parabola gets steeper as we move right.
All of these mean the same thing:
| Notation | Read as |
|---|---|
| \(f'(x)\) | “\(f\) prime of \(x\)” |
| \(\dfrac{df}{dx}\) | “derivative of \(f\) with respect to \(x\)” |
| \(\dfrac{d}{dx} f(x)\) | “\(\frac{d}{dx}\) applied to \(f(x)\)” |
\(\frac{df}{dx}\) deliberately looks like a difference quotient: it reminds you where the derivative comes from. We mostly write \(f'(x)\); with several variables around (e.g. \(C(q)\)), the \(\frac{dC}{dq}\) form says with respect to what.
Question
A courier van covers 150 km in 2 hours. Halfway through, a speed camera clocks it at 90 km/h. Which number is an average rate of change, which is a derivative, and can both be correct at once?

Nobody computes difference quotients all day, rules do the work:
The rule also covers negative and fractional exponents, rewrite first:
Session 1’s exponent rules pay off: rewrite as a power, differentiate, translate back. Fractions and roots stop being special cases.
\[(c \cdot f)'(x) = c \cdot f'(x) \qquad (f + g)'(x) = f'(x) + g'(x)\]
Every polynomial is now differentiable in one line. Keep \(C'(q) = q + 10\) in mind, it returns later today.
\[(f \cdot g)'(x) = f'(x)\,g(x) + f(x)\,g'(x)\]
Common Mistake
\((f \cdot g)' \neq f' \cdot g'\), try \(f(x) = g(x) = x\): the product \(x^2\) has derivative \(2x\), not \(1\).
\[\left(\frac{f}{g}\right)'(x) = \frac{f'(x)\,g(x) - f(x)\,g'(x)}{\left(g(x)\right)^2}\]
For a composition \((f \circ g)(x) = f(g(x))\), Session 3’s chaining:
\[\left(f(g(x))\right)' = f'(g(x)) \cdot g'(x)\]
Common Mistake
Stopping at \(3(2x^2 + 1)^2\), the inner derivative \(4x\) must come along. Forgetting it is the classic chain-rule slip.
A warehouse’s stock grows over time, and storage cost depends on stock:
\[q(t) = 30 + 4t \ \text{ pallets after } t \text{ weeks}, \qquad S(q) = 0.2q^2 \ \text{ cost in €}\]
How fast does the cost grow over time? Differentiate the chain \(S(q(t))\):
\[\frac{dS}{dt} = S'(q) \cdot q'(t) = 0.4q \cdot 4 = 1.6\,(30 + 4t)\]
Question
Which rule differentiates each function, and what are the derivatives?
\[\text{(a) } (5x + 1)^4 \qquad \text{(b) } x^3(2x - 7) \qquad \text{(c) } \frac{x}{x^2 + 1}\]
Session 3’s continuous growth: \(K(t) = K_0 \cdot e^{rt}\). Differentiate (chain rule):
\[K'(t) = K_0 \, e^{rt} \cdot r = r \cdot K(t)\]
Building blocks
| \(f(x)\) | \(f'(x)\) |
|---|---|
| \(c\) | \(0\) |
| \(x^n\) | \(n x^{n-1}\) |
| \(e^x\) | \(e^x\) |
| \(a^x\) | \(a^x \ln a\) |
| \(\ln x\) | \(\frac{1}{x}\) |
Combination rules
| Rule | Formula |
|---|---|
| Constant multiple | \((c f)' = c f'\) |
| Sum | \((f + g)' = f' + g'\) |
| Product | \((f g)' = f'g + f g'\) |
| Quotient | \(\left(\frac{f}{g}\right)' = \frac{f'g - f g'}{g^2}\) |
| Chain | \((f(g))' = f'(g) \cdot g'\) |
These ten lines differentiate every function in Session 3’s gallery: practice comes with the tasks, the table lives on the cheatsheet.
\(f'\) is again a function, so differentiate again:
\[f''(x) = \left(f'\right)'(x) \qquad \text{also written } \frac{d^2 f}{dx^2}\]
Session 3’s chord intuition, now with a formal test on an interval:

Question
A warehouse’s handling cost \(C(q)\) satisfies \(C'(q) > 0\) and \(C''(q) > 0\) for all realistic \(q\). What does each sign say about the next pallet?
Economists call \(C'(q)\) the marginal cost at output level \(q\):
Take today’s cost function \(C(q) = 0.5q^2 + 10q + 200\), so \(C'(q) = q + 10\).
Mind the units: \(C'(q)\) is € per unit, not €: a rate, not a cost.
The same idea on the revenue side, sell \(q\) units, earn \(R(q)\):
Rates in units depend on the units, pricing needs percentages. For a demand function \(D(p)\):
\[\varepsilon = \frac{p}{D(p)} \cdot D'(p)\]
Weekly demand for a same-day delivery service: \(D(p) = 500 - 10p\), so \(D'(p) = -10\).
Question
At the current price, a freight forwarder estimates the elasticity of demand at \(\varepsilon = -0.4\). Elastic or inelastic, and what does a small price increase do to revenue?
That’s it for today.
Any Questions?
When differentiating, name the structure first: sum, product, quotient or chain? The right rule follows automatically.
See you there, and bring your questions!
Session 04 - Differentiation | Dr. Tobias Vlcek | Home