
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
Differentiate \(f(x) = 2x^2 - 8x + 3\). At which \(x\) is the tangent horizontal?
Optimization means finding the input \(x\) that makes \(f(x)\) as large or as small as possible.
An extremum of a smooth function can only sit in one of three kinds of place:
For the smooth business functions in this tutorial, the first two cover almost everything, and stationary points come first.

At a smooth peak or valley the graph momentarily stops rising or falling, the tangent is horizontal, so its slope \(f'(x)\) is zero.
A point \(x^*\) with \(f'(x^*) = 0\) is called a stationary point (or critical point).
\[f'(x^*) = 0 \qquad \text{the first-order condition (FOC)}\]
Take \(f(x) = x^3 - 3x^2 - 9x + 5\). Where are its stationary points?
Always factor \(f'(x)\) if you can, the stationary points are just its roots, and a factored form hands them to you directly.
Session 4 promised: the best output is where marginal revenue meets marginal cost. Here is why.
Profit is revenue minus cost: \(\;\pi(q) = R(q) - C(q)\).
The first-order condition \(\pi'(q) = 0\) becomes:
\[\pi'(q) = R'(q) - C'(q) = 0 \quad \Longleftrightarrow \quad R'(q) = C'(q)\]
Question
A function satisfies \(f'(2) = 0\). Does that alone tell you \(x = 2\) is a maximum or a minimum?
At a stationary point \(x^*\), curvature settles the question, Session 4’s \(f''\) returns:


For \(f(x) = x^3\): \(f'(0) = 0\) and \(f''(0) = 0\). The tangent is flat, yet the graph keeps rising, a saddle point, neither peak nor valley.
Common Mistake
Declaring “\(f'(x^*) = 0\), therefore it is a maximum”. A stationary point is only a candidate. Always check the second-order condition (or watch how \(f'\) changes sign across \(x^*\)) before naming it a max or a min.
Question
At a stationary point \(x^*\) of a cost function, you compute \(f''(x^*) = 8 > 0\). Is \(x^*\) a local maximum or a local minimum?
A local optimum is best only in its neighborhood, a bigger peak may sit elsewhere.
To find the global max and min of \(f\) on \([a, b]\), compare a short list:
Common Mistake
Finding stationary points but forgetting the endpoints. The global optimum often sits at a boundary, skip it and you get the wrong answer.

Maximize \(g(x) = x^3 - 3x\) on \([0,3]\):
| \(x\) | \(0\) | \(1\) (stationary) | \(3\) (endpoint) |
|---|---|---|---|
| \(g(x)\) | \(0\) | \(-2\) | \(\mathbf{18}\) |
The only interior stationary point is a minimum; the global max \(18\) sits at the boundary \(x = 3\).
Real decisions come with hard limits, and those edges are candidates:
Question
You maximize profit and the FOC gives \(q = 45\). But your plant can make at most \(40\) units, so \(q \in [0, 40]\) and profit is still rising at \(q = 40\). What is the best feasible output?
We reuse Session 4’s cost function and add a revenue function:
\[C(q) = 0.5q^2 + 10q + 200 \qquad R(q) = 100q - 0.5q^2\]
Subtract cost from revenue, term by term:
\[\pi(q) = (100q - 0.5q^2) - (0.5q^2 + 10q + 200)\]
\[\pi(q) = -q^2 + 90q - 200\]


The optimal quantity is \(q = 45\), and the maximum profit is \[\pi(45) = -45^2 + 90 \cdot 45 - 200 = -2025 + 4050 - 200 = 1825,\] that is €1825, the highest point of the profit curve.
A warehouse orders a product with steady annual demand. Order too often and ordering costs pile up; order too much and holding costs pile up. Balance them.

With \(D = 1000\), \(K = 80\), \(h = 4\), so \(T(q) = \dfrac{80000}{q} + 2q\):
Solve the FOC in symbols and the classic EOQ formula drops out:
\[\frac{D K}{q^2} = \frac{h}{2} \;\Rightarrow\; q^2 = \frac{2 D K}{h} \;\Rightarrow\; \boxed{\,q^* = \sqrt{\dfrac{2 D K}{h}}\,}\]
Question
A supplier doubles the fixed cost \(K\) per order. According to \(q^* = \sqrt{\frac{2DK}{h}}\), does the economic order quantity rise or fall, and by how much?
That’s it for today.
Any Questions?
The recipe is always the same: differentiate, set \(f' = 0\), solve, then let \(f''\) decide. Name the goal (maximize or minimize) and the sign of \(f''\) you want follows.
See you there, and bring your questions!
Session 05 - Single Variable Optimization | Dr. Tobias Vlcek | Home