The rules
A derivative is a local rate of change: . In practice you compute it from a short list of facts:
Logarithmic differentiation handles variable exponents. For , take logs: , so and .
Finding and classifying extrema
- Candidates. Interior critical points, where or does not exist, plus the endpoints of the domain.
- First-derivative test. If changes from to at , it is a local maximum; from to , a local minimum; no sign change, neither.
- Second-derivative test. If and , local maximum; , local minimum; , the test says nothing (, and all have at 0).
- Global answer. Compare the values at all candidates. If is concave on an interval (), any critical point is the global maximum there, which is the usual shortcut.
Concavity is the property to look for. Log-utility, expected growth rates and variance are all concave in the decision variable, so setting the derivative to zero gives the answer directly.
Worked example
which is bigger, e^π or π^e?
Decide, without a calculator, whether or is larger.
Show solutionHide solution
Take logs and divide by : . So compare at and .
which is positive for , zero at and negative for . So has its global maximum on at , and . Therefore . (Numerically .)
The same function answers "which maximises ?" (also ) and explains why is the only integer coincidence: the two sides of the peak take each value once.
Worked example
Kelly betting and a minimum-variance portfolio
(a) A coin lands heads with probability and you bet a fraction of your wealth at even odds. Find the that maximises the expected log growth , , and evaluate it at .
(b) Two assets have volatilities 20% and 30% and correlation . Find the weight in the first asset (with in the second) that minimises portfolio variance.
Show solutionHide solution
(a) Differentiate:
, so is concave and is the global maximum on . At , and the growth rate is per bet. Betting double, , gives : over-betting a positive edge loses money in the long run.
(b) With , and covariance ,
, so . confirms a minimum. The minimum variance is , a volatility of 19.6%, slightly below the 20% of the safer asset alone. In general
Knowledge check
What is the derivative of at ?
Knowledge check
Where is the local maximum of , and what is its value?
Knowledge check
What is the maximum of over ?
Knowledge check
For , . What is ?
Key takeaways
- Power, exponential, log, product, quotient and chain rules cover almost everything; use logarithmic differentiation for variable exponents.
- Candidates for extrema are critical points and endpoints; the second-derivative test classifies them unless .
- Concave objective, interior critical point: global maximum. Look for concavity before doing anything else.
- peaks at , so .
- Kelly fraction at even odds is ; the two-asset minimum-variance weight comes from a single derivative.
Practice problems
Finished reading?
Answer the 4 knowledge checks to complete this lesson (0 done).