
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 modelled revenue as a function of price: \(R(p) = 1200p - 20p^2\).

Raising the price by €1 gains exactly €780 of revenue at \(p = 10\), but loses €20 at \(p = 30\). One curve, very different local behaviour.
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\).
Question
For \(f(x) = x^2\), what is the difference quotient from \(a = 2\) to \(a + h = 4\)? Type the number in the chat.
\[\frac{f(4) - f(2)}{4 - 2} = \frac{16 - 4}{2} = 6\]
The secant from \(1\) to \(3\) had slope \(4\), this one has slope \(6\): the parabola gets steeper as we move right, exactly what the next slides confirm.

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}\]
Question
You are told \(f'(a) = -3\). What does that say?
| (a) \(f\) is decreasing at \(a\), with tangent slope \(-3\) | (b) \(f(a) = -3\) |
| (c) \(f\) has a minimum at \(a\) | (d) \(f\) drops by exactly \(3\) between \(a\) and \(a + 1\) |
(a): the derivative is a slope, and a negative slope means the graph falls at \(a\).
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.
Near \(a\), the graph and its tangent are almost indistinguishable:
\[f(a + h) \;\approx\; f(a) + f'(a) \cdot h \qquad \text{for small } h\]
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 3’s exponent rules pay off: rewrite as a power, differentiate, translate back. Fractions and roots stop being special cases.
Question
Let \(f(x) = x^4\). What is \(f'(2)\)? Type the number. Bonus: differentiate \(g(x) = \dfrac{1}{x^2}\).
\[f'(x) = 4x^3, \qquad f'(2) = 4 \cdot 8 = 32\]
\[g(x) = x^{-2}, \qquad g'(x) = -2x^{-3} = -\frac{2}{x^3}\]
Common Mistake
\(f'(2) = 4 \cdot 2^4 = 64\) forgets to reduce the exponent. Exponent down front and one less on top.
\[(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.
Revenue from a promotion budget \(x\): \(\;R(x) = -0.5x^3 + 6x^2 + 20x\)
The sign of \(R'\) is the trend report: positive means “spend more”, negative means “you overshot”.
Question
A cost function is \(C(q) = 0.1q^2 + 4q + 50\). What is \(C'(20)\)? Type the number.
\[C'(q) = 0.2q + 4, \qquad C'(20) = 4 + 4 = 8\]
At \(20\) units, cost grows at €8 per unit, while the fixed cost \(50\) has disappeared from \(C'\) entirely: it never reacts to output.
\[(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.
Question
What is the derivative of \(\;(3x + 2)^5\)?
| (a) \(5(3x + 2)^4\) | (b) \(15(3x + 2)^4\) |
| (c) \(5 \cdot 3^4\) | (d) \(15x\,(3x + 2)^4\) |
(b): outer derivative \(5(3x+2)^4\), times the inner derivative \(3\).
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}\]
Differentiate \(\;u(x) = x \cdot e^{x}\;\) and \(\;v(x) = \ln(x^2 + 1)\).
Name the structure first, product or chain, and the rule follows. Two rules can also nest: \(\left(x e^{2x}\right)'\) is a product whose second factor needs the chain rule.
Question
Differentiate \(\;f(x) = e^{2x}\;\) and \(\;g(x) = \ln(5x)\). Type both derivatives in the chat.
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}\]
Question
Let \(f(x) = 2x^3 - 5x\). What is \(f''(3)\)? Type the number.
\[f'(x) = 6x^2 - 5, \qquad f''(x) = 12x, \qquad f''(3) = 36\]
Positive: at \(x = 3\) the slope is increasing, the graph bends upward, convex there. The next slide makes that reading official.
Session 3’s chord intuition, now with a formal test on an interval:
Sales from an advertising budget \(a\) (in €1000): \(\;S(a) = 100\sqrt{a}\)

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.
Question
Same cost function, \(C(q) = 0.5q^2 + 10q + 200\). Approximately what does the 101st unit cost? Type the number.
\[C'(100) = 100 + 10 = 110 \qquad \text{so about €110}\]
Exact check: \(C(101) - C(100) = 6310.5 - 6200 = 110.5\). Again the tangent slope misses by 50 cents, and it is far quicker than the subtraction.
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