Functions and Optimization
Functions and Optimization
Daniel Halbheer
halbheer@hec.fr
Session Outline
This session shows how mathematics can be
used to tackle business problems:
• Linking the business environment,
managerial decisions, and outcomes.
• Optimizing business outcomes to make
smart managerial decisions.
• Analyzing the impact of changes in the
business environment on decisions.
2
Climate and Business
Source: PwC Strategy and Business (2023): How climate adaptation can both protect
and grow your business. Link.
3
Pricing Example
Mapping / function
Market potential
Consumer price sensitivity
Firm technology Sales
Competition Firm profit
Questions: What drives the outcomes sales and firm profit? And
how?
4
A Changing Environment
Question: How would
a recession affect sales
and profit?
Specifically: How does
the recession affect the
purchase decisions of
the consumers? What is
the impact on the cost
structure of the firm?
Quantifying impact:
Need a mathematical
Link to podcast: https://on.wsj.com/2MnjAGP
model to gain insights.
5
How can sales be described
mathematically?
Collect Survey Data
7
Deriving Demand
25 Based on Stated Willingness to Pay / Sample Size N = 69
20
Price (€/unit)
15
The demand function tells the quantities consumers
will wish to purchase at various prices.
10
Note: When price falls, the quantity demanded
increases—the “law of demand.”
5
0
0 10 20 30 40 50 60 70 80
Quantity (units)
8
Demand and Profit
100
Based on Stated Willingness to Pay / Sample Size N = 69
Price (€/unit), Profit (€)
80
60
40
Profit
Demand
20
0
0 10 20 30 40 50 60 70 80
-40 Note: The unit costs are constant and set at €1.
9
Bling Water Pricing in
La Grande Épicerie de Paris
10
How is a function defined? What
are commonly used functions?
Functions
Definition: A function 𝑓: 𝑋 → 𝑌 is a rule that
assigns, to each element 𝑥 of 𝑋, at most one
element of 𝑌. If an element is assigned to 𝑥 in
𝑋, it is denoted by 𝑓 𝑥 .
13
Graphing 𝑦 2 =𝑥
17
Quadratic Functions
Definition: A function 𝑓 is quadratic in 𝑥 if
and only if 𝑓 𝑥 = 𝑎𝑥 2 + 𝑏𝑥 + 𝑐, where 𝑎, 𝑏,
and 𝑐 are constants, with 𝑎 ≠ 0.
Exercise: A firm offers a service at zero unit
cost and faces demand 𝐷 𝑝 = 10 − 𝑝 for a
given price p. What is the profit-maximizing
price for the firm? Use a graphical argument.
18
Exponential Functions
Definition: The function 𝑓 𝑥 = 𝑏 𝑥 , where
𝑏 > 0, 𝑏 ≠ 1, and the exponent is any real
number, is called exponential function with
base 𝑏.
Exercise: Show that the compound amount
𝑆(𝑡) of the principal 𝑃 at the end of 𝑡 years at
the rate of 𝑟 compounded annually is given by
𝑆(𝑡) = 𝑃(1 + 𝑟)𝑡 .
19
Project Evaluation
Suppose you need to evaluate two projects.
The company’s internal hurdle rate is 10%.
Project A: Invest $1,000 and earn $430 each
year, over three years.
Project B: Invest $10,000 and earn $2,700
each year, over five years.
Question: Which project is “better,” and why?
20
Quantifying Performance
Note: The Net Present Value (NPV) is the value of the project to the firm and
discounts future cash flows back to time 0. The Internal Rate of Return (IRR)
measures the future rate of return and solves NPV = 0.
21
Natural Exponential Function
Definition: The function 𝑓 𝑥 = 𝑒 𝑥 , where 𝑒
is a mathematical constant, is called the
natural exponential function.
Note: 𝑒 is approximately equal to 2.71828.
Geeky fact: If interest is compounded 𝑛 times
per year, then 𝑆(𝑡) = 𝑃(1 + 𝑟Τ𝑛)𝑛𝑡 . If 𝑛 → ∞,
known as “continuous compounding,” then
𝑆 𝑡 = 𝑃𝑒 𝑟𝑡 , as 𝑒 ≡ lim 1 + 1Τ𝑛 𝑛 .
𝑛→∞
22
The Function 𝑦 = 𝑒 𝑥
27
What is a derivative? What can it
be used for?
Business Analysis
• A key question often is how a change in the
business environment affects decisions and
outcomes—a what-if analysis.
• When the mapping between outcome and
environment is linear, such a change is
captured by the “slope” of the function.
• For nonlinear mappings, such a change is
captured by the “derivative” of the function.
29
The Slope of a Line
Definition: Let (𝑥0 , 𝑦0 ) and (𝑥1 , 𝑦1 ) be points
on a line 𝐿. The ratio
𝑦1 − 𝑦0
𝑚=
𝑥1 − 𝑥0
is called the slope of the line 𝐿.
Exercise: Graph a linear function 𝑦 = 𝑎𝑥 + 𝑏
in the 𝑥, 𝑦 -space and illustrate the slope.
30
Nonlinear Functions
Definition: Let 𝑥0 , 𝑓 𝑥0 be a point on the
graph of 𝑦 = 𝑓 𝑥 . The derivative of 𝑓 at 𝑥0 ,
written
𝑑𝑓 𝑑𝑦
′
𝑓 𝑥0 or (𝑥0 ) or 𝑥0 ,
𝑑𝑥 𝑑𝑥
33
Approximating 𝑦 = ln(𝑥)
𝑓′ 𝑥 𝑥
𝐸 𝑥 =
𝑓(𝑥)
is called the elasticity of the function 𝑓(𝑥).
Note: The elasticty 𝐸 𝑥 captures the percent
change of the output 𝑓 relative to the percent
change of the input 𝑥.
35
Price Elasticity
Assume that demand can be described by the
linear function 𝐷 𝑝 = 𝑀 − 𝑏𝑝, with 𝑏 > 0.
Exercise 1: Show that the price elasticity of
demand is given by
𝑏𝑝
𝐸 𝑝 = .
𝑀−𝑏𝑝
38
Avoiding Pitfalls
Note: Minimization
of convex functions
works analogously.
40
Optimal Pricing
• Consider a monopoly firm—a firm that
does not face a “competitive constraint.”
• The constant unit costs for the product or
service are given by 𝑐, where 𝑐 ∈ [0,1).
• Demand is given by 𝐷 𝑝 = 1 − 𝑝.
Exercise: Derive the profit as a function of
price and determine the profit-maximizing
price. How does the price vary with 𝑐?
41
Numerical Optimization
Note: Excel Solver is
helpful to determine
numerical solutions.
If needed, constraints
can be added to find
the constrained
solution.
Example: Consider a
price ceiling of 0.4 set
by a regulator.
42
Back to NPV and IRR
Exercise: Use Excel
Solver to determine
the IRR of the project.
43
Conclusions
This session showed how mathematics can
be used to tackle business problems:
• Linking the business environment,
managerial decisions, and outcomes.
• Optimizing business outcomes to make
smart managerial decisions.
• Analyzing the impact of changes in the
business environment on decisions.
44
Extra materials:
Inverse elasticity pricing
Monopoly Pricing
Technology and demand:
• Consider a monopoly firm with unit cost 𝑐.
• Demand is given by 𝐷 𝑝 , with 𝐷 ′ (𝑝) < 0.
Profit function: The profit function can be
written as 𝜋 𝑝 = (𝑝 − 𝑐)𝐷 𝑝 .
Optimal pricing: The optimal price solves
𝜋′ 𝑝 = 0, that is, 𝐷 𝑝 + 𝑝 − 𝑐 𝐷 ′ 𝑝 = 0.
46
The Inverse Elasticity Rule
47
Managerial Implications
1. Costs and consumer price sensitivity
jointly determine the optimal price.
2. Higher unit costs lead to a higher price.
3. Higher consumer price sensitivity reduces
the pricing power of the firm.
Note: Consumer price sensitivity affects “cost
pass-through”—the extent to which higher
costs are passed on to consumers.
48