Professional Documents
Culture Documents
Differentiation and Optimization
Differentiation and Optimization
Usual derivatives
Key takeaways
Some functions admit (first-order) derivatives that you are supposed to know
, , , ,
Suppose 𝑓 and 𝑔 are two functions. We note the composition of functions 𝑓 ∘ 𝑔: in other words,
(𝑓 ∘ 𝑔)(𝑥) is equivalent to 𝑓(𝑔(𝑥))The following rule are important to remember:
(𝑓 + 𝑔) = 𝑓 + 𝑔
(𝑓 × 𝑔) = 𝑓 × 𝑔 + 𝑓 × 𝑔
(𝑓 ∘ 𝑔) = 𝑓 ∘ 𝑔 × 𝑔
Exercises
1. 𝑓(𝑥) = 3𝑥 + 2
2. 𝑓(𝑥) = 3/𝑥
3. 𝑓(𝑥) = 𝑒
4. 𝑓(𝑥) = 𝑙𝑛(5𝑥 + 3)
5. 𝑓(𝑥) =
6. 𝑓(𝑥) = (5𝑥 + 2𝑥)
( )
7. 𝑓(𝑥) = ( )
Polynomial function
A polynomial function is a function of the form
𝑓(𝑥) = 𝑎 𝑥 + 𝑎 𝑥 +⋯ + 𝑎 𝑥 + 𝑎 𝑥 + 𝑎 ,
where 𝑛 is a nonnegative integer and the {𝑎 } are constant coefficients. Note that a polynomial
function can be equivalently written as
𝑓(𝑥) = 𝑎 𝑥 .
,…,
Recalling the previous paragraph on derivatives, we can easily study the derivatives of a polynomial
equation, given by
𝑓 (𝑥) = 𝑘𝑎 𝑥 .
,…,
𝑓′′(𝑥) = 𝑘(𝑘 − 1) 𝑎 𝑥 .
,…,
It is not easy to establish in general whether a polynomial function is increasing, decreasing, convex
or concave, nor to determine whether there exist roots, i.e., the values of the variable 𝑥 such that
𝑓(𝑥) = 0, and if such roots exists whether there are any other roots.
Quadratic function
Key take-aways
𝑓(𝑥) = 𝑎𝑥 + 𝑏𝑥 + 𝑐.
Such polynomial forms are common in economics because its admits two roots (not necessarily
distinct), given by
−𝑏 − √𝑏 − 4𝑎𝑐,
𝑥 =
2𝑎
−𝑏 + √𝑏 − 4𝑎𝑐,
𝑥 =
2𝑎
provided that 𝑏 > 4𝑎𝑐 (we ignore complex numbers). This allows us to re-write the quadratic
function as
Exercises
Optimization
Key take-aways
Suppose you are given a function 𝑓(⋅), called objective function; let 𝑥 denote the variable. An
optimization problem is a problem of the form
sup 𝑓(𝑥)
inf 𝑓(𝑥)
Exercise
1. Determine if the functions from the previous exercise are convex/concave and what are the
optimum
2. Find the portfolio with the minimum variance