Lesson 35 of 36 · Beyond basic maths (optional)
Derivatives and optimisation
Optional: derivative rules, maxima and minima, profit maximisation with MR = MC, and partial derivatives and gradients of two-variable functions.
About 25 minutes
In this lesson
- Differentiate powers, exponentials, logarithms, products, quotients and compositions by hand.
- Find a maximum or minimum where the first derivative is zero and confirm it with the second derivative, or with the vertex formula for a parabola.
- Maximise profit by setting marginal revenue equal to marginal cost, and check that the result is a maximum.
- Compute partial derivatives and the gradient of a function of two variables.
The idea
Why this lesson is optional
Bocconi's current test page describes quantitative reasoning as numerical and logical problems using basic mathematics, and it publishes no topic list. A 2024 sample test on Bocconi's website, which the current page does not link to and which may not reflect today's form, included an item on the gradient of a function of two variables. Nothing confirms that calculus appears on the current test. Treat this lesson as extra preparation for that possibility, after the core quantitative reasoning lessons.
What a derivative measures
The derivative is the slope of the graph of at the point : how fast changes per unit change in . For a straight line the slope is the same everywhere; for a curve it changes from point to point. In economics the derivative of a total is called a marginal quantity. If is the total cost of units, the marginal cost is approximately the extra cost of one more unit.
The rules you need
| Function | Derivative | Example |
|---|---|---|
| a constant | ||
Sums are differentiated term by term, and a constant factor stays where it is. The power rule also covers roots and reciprocals once they are written as powers: has derivative , and has derivative .
The chain rule says: differentiate the outside function with the inside left alone, then multiply by the derivative of the inside. For the outside is a fourth power and the inside is , so the derivative is . The rule for in the table is the chain rule at work: the inside, , has derivative .
Maxima and minima
At a maximum or minimum of a smooth function, away from the ends of its domain, the graph is momentarily flat, so . Points where this happens are stationary points. To tell which kind you have, look at the second derivative , the derivative of :
- : the curve bends downwards there, so is a local maximum;
- : it bends upwards, so is a local minimum;
- : the test is silent; look at how the sign of changes on either side.
A point where changes sign is a point of inflection, where the curve switches between bending down and bending up. "Local" matters: a local maximum is the highest point nearby, not necessarily the highest value overall. When is restricted to an interval, compare the stationary values with the values at the ends.
Parabolas without calculus
For the derivative is , which is zero at
That is the vertex, and the formula can be used without any calculus. If the parabola opens downwards and the vertex is its maximum; if it is its minimum. The vertex also lies midway between the roots, which gives a check: has roots 0 and 10 and its maximum at , and indeed .
Marginal revenue, marginal cost and profit
Profit is revenue minus cost, . Setting its derivative to zero gives : marginal revenue equals marginal cost. The logic is plain. While one more unit adds more to revenue than to cost, producing it raises profit; the best output is where the two are equal.
is only the first condition. It can also hold where profit is at a minimum, so check the second derivative: profit is at a maximum when , that is, where marginal cost is rising faster than marginal revenue. When the price is fixed, , so and the condition becomes with marginal cost rising. When the price falls as the firm sells more, marginal revenue is below the price: with demand , revenue is and .
Fixed costs have derivative zero. They change the level of profit but not the output that maximises it.
Partial derivatives and the gradient
A function of two variables, , has two partial derivatives. For , treat as a fixed number and differentiate with respect to ; for , do the reverse. For :
The gradient collects them into a vector, in this order: . At it is . The gradient points in the direction in which rises fastest, and at an interior maximum or minimum both partial derivatives are zero.
In economics the partial derivatives of a production function are marginal products: is roughly the extra output from one more unit of labour with capital held fixed. For a Cobb–Douglas function the exponents also describe returns to scale: if , doubling both inputs doubles output; if the sum is above 1, output more than doubles; below 1, it less than doubles.
Worked examples
Example 1: Classifying stationary points
Find and classify the stationary points of , and find its point of inflection.
Differentiate term by term: .
Stationary points are where : and .
Second derivative: . At it is , a local maximum; at it is , a local minimum.
Values: and . Check: between the two points should be falling, and .
Inflection: at , and is negative before 2 and positive after, so the sign changes. . The point lies midway between and , as it does for every cubic with two stationary points.
Answer
Local maximum at , local minimum at , point of inflection at . Stopping at and calling both points maxima is the tempting error; the second derivative shows that is a minimum.
Example 2: Profit with a linear demand curve
A firm faces the demand curve and has total cost . Which output maximises profit, and what is the maximum profit?
Revenue is price times quantity: .
Profit: , a parabola opening downwards because .
Vertex, no calculus needed: .
Second route with marginals: and , equal when , so . And , so this is a maximum.
Profit at : . Check: the price is , revenue , cost , profit 500.
Answer
Output 20, at a price of 60, gives the maximum profit of 500. Setting the price equal to marginal cost, , gives , where profit is : when the price falls as the firm sells more, marginal revenue is below the price, so price = MC is the wrong condition.
Example 3: MR = MC with a cubic cost
A firm sells every unit at a fixed price of 60. Its total cost is . Find the profit-maximising output and the profit there.
With a fixed price, . Marginal cost: .
Set them equal: , so , which factorises as . Output cannot be negative, so .
Second-order check: , which is at . Negative, so profit is at a maximum.
Profit: revenue ; cost ; profit .
Second route: , so .
Answer
, with profit 332. Keeping as a second answer is the slip to avoid: it solves the equation but means nothing as an output.
Example 4: Marginal products in a Cobb–Douglas function
Output is , where is capital and is labour. Find and at , .
Hold fixed and apply the power rule to : .
At , : .
Second route: fix first, so , an ordinary function of . Its derivative is , which is at .
In the same way, . The gradient at this point, in the order , is .
Answer
The marginal product of labour is 10 and that of capital is 2.5: one more unit of labour adds roughly 10 units of output. Since , the function has constant returns to scale. Substituting both and before differentiating is the tempting error: it turns into the constant 80, whose derivative is 0. Fix only the variable you are not differentiating.
Common traps
Multiplying the derivatives of a product
The derivative of is , not . For the product of derivatives gives , but the correct derivative is . Differentiate one factor at a time and add the two terms.
Dropping the inside derivative
The chain rule multiplies by the derivative of the inside: , not . A quick check is to rewrite when you can: , so its derivative is , and the chain rule agrees, .
Treating every stationary point as a maximum
holds at minima and some inflection points too, and can hold where profit is lowest. Always check the sign of the second derivative, or the sign of on either side, before calling a point a maximum.
Price = MC when the price is not fixed
Marginal revenue equals the price only when the price does not depend on output. With a demand curve , marginal revenue is , so set that, not the price, equal to marginal cost.
Setting the other variable to zero
In a partial derivative the other variable is held constant, not set to zero: , not and not 0. Only terms with no at all, such as , vanish when you differentiate with respect to .
Check yourself
Answer each question before you open its answer.
Question 1: Product and chain rules together
Quantitative reasoning: derivatives
If , what is ?
- A.
- B.
- C.
- D.
Show the answer
Answer: C.
Working
Product rule with and : and, by the chain rule, . So , and . Check by logarithms: , so , which is 5 at ; with , .
Why the other options are wrong
- A. Keeps only , the term from differentiating the exponential; the product rule also needs the term .
- B. Treats as its own derivative, dropping the chain-rule factor 2, and gets .
- D. Multiplies the two derivatives, ; the derivative of a product is not the product of the derivatives.
What carries over
For a product, differentiate each factor in turn and add the two terms; inside an exponential, multiply by the derivative of the exponent.
Question 2: Which output maximises profit?
Quantitative reasoning: optimisation
A firm sells every unit at a fixed price of 30. Its total cost is . Which output maximises profit?
- A.
- B.
- C.
- D.Both and
Show the answer
Answer: C.
Working
With a fixed price, . Marginal cost is . Setting them equal: , so and . Second derivative of profit: , which is at (a minimum) and at (a maximum). Check with values: at , revenue 240 and cost , profit 40; at , revenue 60 and cost , profit ; producing nothing gives .
Why the other options are wrong
- A. Solves correctly but keeps the smaller root; there marginal cost is falling and , so profit is at a local minimum.
- B. This is where marginal cost is lowest, , not where marginal cost equals the price.
- D. Treats every solution of as a maximum; the second-derivative test separates them, and profit is 40 at one and at the other.
What carries over
MR = MC gives candidates; the second derivative of profit, or the sign of the slope of MC, picks the maximum.
Question 3: Gradient of a two-variable function
Quantitative reasoning: partial derivatives
What is the gradient of at the point ?
- A.
- B.
- C.
- D.
Show the answer
Answer: B.
Working
With held constant, (the term gives 0), which is at . With held constant, . So the gradient is . Check by fixing one variable first: has derivative at , and has derivative at .
Why the other options are wrong
- A. Differentiates with respect to as , dropping the factor ; is held constant, not removed.
- C. Treats as a constant when differentiating with respect to ; it contains , so its partial derivative is .
- D. Has the right partial derivatives in the wrong order; the gradient lists the derivative with respect to first.
What carries over
A partial derivative holds the other variable constant, and the gradient lists the partial derivatives in the order of the variables.
Key points
Power rule: becomes ; for products, quotients and compositions use the product, quotient and chain rules, never the product of derivatives.
At a smooth interior maximum or minimum ; at such a stationary point, means a local maximum and a local minimum.
A parabola has its vertex at : a maximum if , a minimum if .
Profit peaks where MR = MC and the second derivative of profit is negative; fixed costs do not move the best output.
A partial derivative holds the other variables constant; the gradient lists the partial derivatives as a vector.
All questions here are original and written for UniExamer; none comes from the test maker.
Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.