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 \(A = \{20, 30, 40\}\) (prices in €) and \(B = \{400, 500, 600, 800\}\) (bags per week). How many ordered pairs does \(A \times B\) contain? Is \((600, 30)\) one of them?
Session 1 asked which price earns the roastery the most profit. Today: describe price, bags, cost and profit as functions, then read the answer off their shapes.
Session 1's roastery sells its coffee in 1 kg bags. It controls one number: the price \(p\) per bag.
Question
Session 1 asked: which price earns the most profit? By the end of today, we can answer.
Question
The roastery keeps two tables. Which gives exactly one answer for each entry on the left?
Price list
| Price \(p\) (€) | Demand \(q\) (bags) |
|---|---|
| 20 | 800 |
| 30 | 600 |
| 40 | 400 |
Order log
| Customer | Order (bags) |
|---|---|
| Meier | 12 |
| Meier | 30 |
| Kaya | 12 |
The price list: each price gives exactly one demand. Meier gives two different values, so the log has no single answer for Meier.
A function is a rule that gives each input exactly one output: the grid lights exactly one dot per column.
Common Mistake
“Exactly one” restricts the outputs per input: two different inputs may well share the same output.
The price list follows one rule: every €1 more loses 20 bags, so
\[D: \mathbb{R} \to \mathbb{R}, \quad p \mapsto 1200 - 20p\]
\(D\) and \(D(p)\) are different things: \(D\) is the rule, \(D(p)\) is a number: the value at \(p\).
The graph of \(D\) on the grid is its set of lit dots. Look at the dashed lines: one lit dot, two circle points.
A curve is a function graph \(\Leftrightarrow\) every vertical line hits it at most once: one column, one lit dot.
Question
Which of the two graphs shows \(y\) as a function of \(x\)?
Only Graph B: A fails the vertical line test: \(x = 1\) gives both \(y = 1\) and \(y = -1\). The kink in B is fine.
On the grid, four rows are marked, but row \(500\) is never hit.
For \(D: A \to B\), three sets matter:
Question
\(f: \mathbb{R} \to \mathbb{R}\), \(f(x) = x^2 + 1\). Which set is the range of \(f\)?
| (a) \(\mathbb{R}\) | (b) \([0, \infty)\) |
| (c) \([1, \infty)\) | (d) \((1, \infty)\) |
(c): \(x^2 \geq 0\), so \(x^2 + 1 \geq 1\), and the value \(1\) is reached at \(x = 0\): square bracket.
(a) is the codomain, not the range: the declared landing zone is larger than the outputs that actually occur.
To evaluate, substitute the input everywhere the variable appears, just as \(D(30) = 1200 - 20 \cdot 30 = 600\) on the price–demand grid. Take \(f(x) = x^2 - 2x\):
Put negative inputs in parentheses before squaring: \((-1)^2 = 1\), not \(-1\).
“How much does \(f\) change when the input moves from \(a\) to \(a + h\)?”: to answer, substitute the whole expression, in parentheses. Again \(f(x) = x^2 - 2x\):
\[ \begin{aligned} f(a + h) &= (a + h)^2 - 2(a + h) \\ &= (a+h)(a+h) - 2(a+h) = a^2 + 2ah + h^2 - 2a - 2h \end{aligned} \]
Common Mistake
\(f(a + h) \neq f(a) + f(h)\), check: \(f(1 + 1) = f(2) = 0\), but \(f(1) + f(1) = -1 - 1 = -2\).
Question
Again \(f(x) = x^2 - 2x\). What is \(f(-2)\)? Type the number.
\[f(-2) = (-2)^2 - 2 \cdot (-2) = 4 + 4 = 8\]
Common Mistake
\(f(-2) = 0\) comes from dropping a sign: either \((-2)^2 = -4\) or \(-2 \cdot (-2) = -4\). Both minus signs matter.
Look where the line starts and how far the dashed step climbs.
Question
A linear cost function gives \(C(10) = 250\) and \(C(30) = 350\). What are the slope \(m\) and the intercept \(b\)? Type both numbers.
Hint: slope = change in cost ÷ change in bags.
Demand \(D(p) = 1200 - 20p\): each extra euro loses 20 bags (slope \(-20\)). Revenue = price × bags sold: \(R(p) = p \cdot (1200 - 20p)\)
| \(p\) | 0 | 10 | 20 | 30 | 40 | 50 | 60 |
|---|---|---|---|---|---|---|---|
| \(D(p)\) | 1200 | 1000 | 800 | 600 | 400 | 200 | 0 |
| \(R(p)\) | 0 | 10,000 | 16,000 | 18,000 | 16,000 | 10,000 | 0 |
Two forces pull against each other: revenue rises, peaks, falls, symmetrically around \(p = 30\).
Look at the axis of symmetry: the peak sits halfway between the zeros.
\(R(p) = -20p^2 + 1200p\): a line times a line gives a parabola. Any \(f(x) = ax^2 + bx + c\) opens up if \(a > 0\), down if \(a < 0\); its vertex sits at \(x = -b/(2a)\), here \(-1200/(2 \cdot (-20)) = 30\).
Question
Another product has revenue \(R(p) = 800p - 10p^2\). Does the parabola open upward or downward, and at which price is the vertex? Type the number.
Is €5 per bag realistic at any volume? Look at this cost curve’s slope: it flattens, then steepens again.
A polynomial \(a_n x^n + \dots + a_0\) of degree \(n\) has up to \(n - 1\) turning points (where the curve turns from rising to falling, or back); this cubic has none but switches from flattening to steepening.
Look at the curve: it explodes near zero, then settles towards €5.
Average cost \(A(q) = C(q)/q = 200/q + 5\): the fixed €200 is spread thinner with every bag: economies of scale.
Look at both branches: they blow up near zero and flatten far out.
A rational function is a quotient of polynomials. \(A(q)\) is the hyperbola \(1/x\) stretched by \(200\) and lifted by \(5\): a vertical asymptote at \(q = 0\), where it is undefined, and a horizontal asymptote at \(5\).
Question
Average cost is \(A(q) = \dfrac{200}{q} + 5\). Beyond how many bags does one bag cost less than €6 on average?
Now the input is time: Session 1's €1000 reserve at 5% per year.
| Year \(t\) | 0 | 1 | 2 | 3 | \(t\) |
|---|---|---|---|---|---|
| Compound \(\times 1.05\) | 1000 | 1050 | 1102.50 | 1157.63 | \(1000 \cdot 1.05^t\) |
| Simple \(+\,50\) | 1000 | 1050 | 1100.00 | 1150.00 | \(1000 + 50t\) |
Any start \(a > 0\), any factor \(b > 0\): \(f(x) = a \cdot b^x\) is an exponential function. \(b > 1\) multiplies by more than 1 (growth); \(0 < b < 1\) keeps only a fraction (decay).
Both pass through \((0,1)\) since \(a = f(0) = 1\); the values stay strictly positive.
Question
The resale value of the roastery’s delivery van follows \(V(t) = 50{,}000 \cdot 0.8^t\) (in €, after \(t\) years). Which statement is true?
| (a) The value grows by \(20\%\) per year | (b) The value shrinks by \(20\%\) per year |
| (c) The value shrinks by €10,000 per year | (d) The value reaches €0 after \(5\) years |
(b): base \(0.8 < 1\) means decay, and each year keeps \(80\%\) of the previous value.
Common Mistake
(c) is the first year only: \(50{,}000 \to 40{,}000\). The second year loses \(8000\), the third \(6400\). And (d) never happens: an exponential stays strictly positive.
Question
A bank pays 100% interest per year on €1. Credited once: €2. Credited as two halves of 50%: \(1.5^2 =\) €2.25. What do you hold after one year if interest is credited every second?
| (a) €2.25 | (b) about €2.72 |
| (c) about €10 | (d) unlimited, it keeps growing |
| Credited | yearly | monthly | daily | every second |
|---|---|---|---|---|
| After 1 year | €2 | €2.61 | €2.71 | €2.71828… |
Credited \(n\) times a year at rate \(r\): \(\left(1 + \frac{r}{n}\right)^n \to e^r\) per year as \(n \to \infty\); over \(t\) years, \((e^r)^t = e^{rt}\), giving \(K(t) = K_0 \, e^{rt}\): continuous growth
Back to the €1000: which \(t\) gives \(1.05^t = 2\)? Trying \(t = 14\) (\(1.98\)) and \(t = 15\) (\(2.08\)) only brackets it. We need an operation that returns the exponent.
The natural logarithm \(\ln x\) answers: which power of \(e\) gives \(x\)?
\[y = \ln x \;\, \Leftrightarrow \;\, x = e^y\]
\(\ln\) also cracks \(1.05^t = 2\): taking \(\ln\) of both sides brings \(t\) down from the exponent (see Solving for the Exponent).
Count doublings: top = exponent, bottom = growth factor \(2^x\).
| \(x\) | \(-1\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) | \(5\) | \(6\) | \(7\) | \(8\) |
|---|---|---|---|---|---|---|---|---|---|---|
| \(2^x\) | \(\frac12\) | \(1\) | \(2\) | \(4\) | \(8\) | \(16\) | \(32\) | \(64\) | \(128\) | \(256\) |
| \(x\) | \(-1\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) | \(5\) | \(6\) | \(7\) | \(8\) |
|---|---|---|---|---|---|---|---|---|---|---|
| \(2^x\) | \(\frac12\) | \(1\) | \(2\) | \(4\) | \(8\) | \(16\) | \(32\) | \(64\) | \(128\) | \(256\) |
\(\ln\) reads the table upwards in base \(e\): it returns the exponent, so the exponent rules become
\[\ln(xy) = \ln x + \ln y \qquad \ln\frac{x}{y} = \ln x - \ln y \qquad \ln(x^k) = k \ln x\]
The power rule pulls an unknown down from the exponent: that is how logs answer “how long until…?”
Common Mistake
\(\ln(x + y) \neq \ln x + \ln y\): there is no row in the table for adding factors. The rules work for products, not sums.
Question
Which expression equals \(\ln(x^2 y)\) for \(x, y > 0\)?
| (a) \(2 \ln x + \ln y\) | (b) \(2 \ln x \cdot \ln y\) |
| (c) \(\ln(x^2) \cdot \ln y\) | (d) \(2\,(\ln x + \ln y)\) |
(a): the product rule splits \(\ln(x^2 y) = \ln(x^2) + \ln y\), then the power rule gives \(\ln(x^2) = 2 \ln x\).
(d) would be \(\ln(x^2 y^2)\): the factor \(2\) belongs to \(x\) only, so apply the power rule after splitting the product.
The €1000 again: when is \(1000 \cdot 1.05^t = 2000\)?
Isolate, take \(\ln\), divide: every “how long until” question. For decay (\(0 < b < 1\)) the divisor \(\ln b\) is negative, so an inequality flips.
Question
Capital grows continuously at \(r = 5\%\): \(K(t) = K_0 \cdot e^{0.05t}\). When has it doubled?
| (a) 10 years | (b) about 13.9 years |
| (c) 20 years | (d) depends on \(K_0\) |
\[e^{rt} = 2 \quad \Rightarrow \quad rt = \ln 2 \quad \Rightarrow \quad t = \frac{\ln 2}{r} \approx \frac{0.693}{0.05} \approx 13.9\]
Question
Type into your calculator: average cost \(A(q) = 200/q + 5\) at \(q = 0\), \(\sqrt{x}\) at \(x = -4\), \(\ln x\) at \(x = 0\). What happens?
Three error messages, and they are the three red flags:
With no domain stated, take the maximal domain: every real input that triggers no error. Polynomials and exponentials never do.
| Function | Restriction | Maximal domain |
|---|---|---|
| \(\dfrac{1}{x - 3}\) | \(x - 3 \neq 0\) | \(\mathbb{R} \setminus \{3\}\) |
| \(\sqrt{2x + 6}\) | \(2x + 6 \geq 0\) | \([-3, \infty)\) |
| \(\ln(5 - x)\) | \(5 - x > 0\) | \((-\infty, 5)\) |
The results are intervals. Session 1's notation pays off: square bracket at \(-3\) (\(\sqrt{0}\) is fine), round bracket at \(5\) (\(\ln 0\) is not).
Question
What is the maximal domain of \(f(x) = \dfrac{\sqrt{x - 2}}{x - 4}\)?
Collect every restriction first, then combine: one forgotten condition is the typical exam slip.
Look at the shaded parts: the formula keeps going, the business does not.
The roastery’s webshop applies a €10 voucher \(v(p) = p - 10\) and 19% VAT \(T(p) = 1.19p\) to a €50 basket.
Question
What does the customer pay? Shout your number.
\[50 \xrightarrow{\;v\;} 40 \xrightarrow{\;T\;} 47.60 \qquad\qquad 50 \xrightarrow{\;T\;} 59.50 \xrightarrow{\;v\;} 49.50\]
Same two machines, different order, different bill.
Common Mistake
Assuming the order can be swapped: it rarely can. Always check which function acts first.
Feeding one function’s output into the next is a composition. The roastery’s cost depends on bags, and bags depend on price: chain \(D\), then \(C\):
\[(C \circ D)(p) = C(D(p)) = 200 + 5(1200 - 20p) = 6200 - 100p\]
Question
Profit as a function of price is \(\pi(p) = R(p) - C(D(p))\). Revenue peaks at €30. The profit-maximising price is…
| (a) below €30 | (b) exactly €30 |
| (c) above €30 | (d) impossible to tell |
\[\pi(p) = (1200p - 20p^2) - (6200 - 100p) = -20p^2 + 1300p - 6200\]
(c): the vertex sits at \(p = -\dfrac{1300}{2 \cdot (-20)} = 32.5\). A higher price sells fewer bags, and fewer bags cost less to roast, so the peak moves right of the revenue peak.
Question
A customer paid €47.60 after voucher and VAT. What was the basket?
Swap-and-solve: the output becomes the given, the input the unknown. Write \(y = f(x)\) and solve for \(x\).
Demand example: \(q = D(p) = 1200 - 20p\):
\[q = 1200 - 20p \quad \Rightarrow \quad 20p = 1200 - q \quad \Rightarrow \quad p = 60 - \frac{q}{20}\]
Higher price, more revenue? Look at \(R(p)\):
\(f\) is strictly increasing on an interval if \(x_1 < x_2 \Rightarrow f(x_1) < f(x_2)\). \(R\) is strictly increasing on \([0, 30]\) and strictly decreasing on \([30, 60]\).
The dashed line marks €16,000. Which price earned it?
\(R(20) = R(40) = 16{,}000\): which price earned €16,000? No unique answer, so \(R\) has no inverse on \([0, 60]\).
An inverse needs \(f\) one-to-one: each output from exactly one input. Horizontal line test: every horizontal line hits the graph at most once.
Strictly monotone \(\Rightarrow\) one-to-one: on \([0, 30]\) \(R\) has an inverse, just as \(x^2\) on \([0, \infty)\) has \(\sqrt{x}\).
Question
Let \(f(x) = 3x - 6\). What is \(f^{-1}(9)\)?
| (a) \(9\) | (b) \(5\) |
| (c) \(21\) | (d) \(\frac{1}{21}\) |
(b): undo in reverse order: \(9 + 6 = 15\), then \(15 / 3 = 5\). Check: \(f(5) = 9\) ✓
Common Mistake
(a) undoes in the wrong order (\(9/3 + 6\)), (c) runs \(f\) forwards, and (d) reads \(f^{-1}\) as \(\frac{1}{f}\): for functions, the exponent \(-1\) means undo, not divide.
Look at the dashed segment: it flips across the dotted line \(y = x\).
For \(f(x) = 2x - 2\), \(f(3) = 4\) becomes \(f^{-1}(4) = 3\): swapping coordinates reflects the graph across \(y = x\). That is why \(\ln x\) mirrors \(e^x\).
Question
Which of these functions is not one-to-one on \(\mathbb{R}\), and therefore has no inverse there?
| (a) \(f(x) = 2x + 1\) | (b) \(f(x) = e^x\) |
| (c) \(f(x) = x^2 - 4\) | (d) \(f(x) = x^3\) |
(c): \(f(2) = f(-2) = 0\), one output from two inputs, so it fails the horizontal line test.
The other three are strictly increasing on all of \(\mathbb{R}\): each output is hit once, so each has an inverse. Same story as \(D(p) = 1200 - 20p\), which is strictly decreasing and has \(D^{-1}\), while \(R(p)\) earns €16,000 at two prices and has none.
\(A(q) = 200/q + 5\) settles towards the dashed floor but never touches it.
The roastery’s extra bags from an advertising budget \(a\) (in €1000): \(S(a) = 100\sqrt{a}\). Compare with the €1000 reserve at 5% from earlier.
| Step | \(0 \to 1\) | \(1 \to 2\) | \(2 \to 3\) | \(3 \to 4\) |
|---|---|---|---|---|
| Extra bags from the next €1000 | \(+100\) | \(+41\) | \(+32\) | \(+27\) |
| Extra interest in the next year | €50.00 | €52.50 | €55.13 | €57.88 |
Bag gains shrink: diminishing returns. Interest gains grow. Both curves rise, but they bend in opposite directions.
Look at the dashed chords: left, above the curve; right, below it.
Question
The van’s resale value \(V(t) = 50{,}000 \cdot 0.8^t\) loses €10,000, then €8000, then €6400 per year. Which describes the graph?
| (a) Decreasing and concave | (b) Decreasing and convex |
| (c) Increasing and convex | (d) Decreasing, neither shape |
(b): the losses shrink, so the curve falls ever more gently and bends upward. Every chord lies on or above the graph.
Convex says nothing about rising: the direction (monotone) and the bend (convex or concave) are two separate questions.
Profit \(\pi(p) = -20p^2 + 1300p - 6200\) peaks at €32.50; look at the shaded band, the only prices the roastery can actually charge.
€32.50 lies left of \([35, 60]\): right of its peak \(\pi\) only falls, so the roastery charges €35.
That’s it for today.
Any Questions?
When a function confuses you, sketch it: five plotted points reveal more than ten minutes of staring at the formula.
See you there, and bring your questions!
Session 03 - Functions | Dr. Tobias Vlćek | Home