Calculus bootcamp
Calculus bootcamp
Maths - Calculus
MSDA - Bootcamp 2024 Summer
KT Wong
Faculty of Social Sciences, HKU
2024-08-27
The materials in this topic are drawn from Simon and Blume (1994) and Chiang and
Wainwright (2005)
Outline
1. Functions
2. Limits
3. Derivatives
4. Optimization
5. Higher-order derivatives
6. Some common rules
7. Partial derivatives
8. Integrals
9. Constraint optimization
Functions
What is a function?
▶ domain
▶ range
▶ mapping
Limits
What is a limit?
▶ idea of a slope
Is it unique?
Derivatives
What is Derivative?
▶ slope of a function
▶ rate of change
▶ df
dx
▶ ′
f (x)
file:///Users/leslie/Library/Containers/com.microsoft.Outlook/Data/tmp/Outlook Temp/Maths - Calculus_student.html#/constraint-optimization-1 5/26
8/28/24, 9:29 AM Maths - Calculus
▶ d
dx
f (x)
▶ d
dx
f
Optimization
Higher-order derviatives
second-order derivative
▶ concave
▶ convex
▶ inflection point
third-order derivative
▪ dxn
dx
= nxn−1
▶ product rule
▪ d
dx
f (x)g(x) = f ′ (x)g(x) + f (x)g′ (x)
▶ quotient rule
▪ d f (x)
dx g(x)
=
f ′ (x)g(x)−f (x)g′ (x)
(g(x))2
▶ chain rule
▪ d
dx
f (g(x)) = f ′ (g(x))g′ (x)
▶ special rules for logs and exponents
▪ d
dx
ln(x) = 1
x
file:///Users/leslie/Library/Containers/com.microsoft.Outlook/Data/tmp/Outlook Temp/Maths - Calculus_student.html#/constraint-optimization-1 9/26
▪
8/28/24, 9:29 AM Maths - Calculus
d x
dx
e = ex
Exercises:
d 3
1. dx
(6 x + 5)
2. d
dx
√ (5x3 ‾‾‾‾‾‾‾‾‾‾‾‾
+ 3x + 5)‾
df (x)
3. let h(x) = 2x + 3; g(x) = 5x2 + 3x, let f (x) = h(x) ∗ g(x), dx
h(x) dp(x)
4. let p(x) = g(x)
, dx
d(g(h(x)))
5. dx
d 6
6. dx
ln( x + 8)
d 6x+3
7. dx
e
d 3 x
8. dx
x e
Partial derviatives
▶ ∂f
∂y
Exercise:
▶ let f (x, y) = x2 y3 + 3x + 2y
▶ find
∂f
∂x
and
∂f
∂y
Integrals
What is an integral?
▶ area under the curve
▶ anti-derivative
Notation
▶ b
∫ a f (x)dx
▶ ∫ X f (x)dx
We are most interested in the concept rather than actual (hand) calculation of the
integrals
Constraint optimization
Constraint optimization
in economics, a consumer faces the problem of maximizing her utility subject to the
income constraint:
max u(x1 , x2 ) s. t. p1 x1 + p2 x2 = y
x1 ,x2
Constraint optimization
the optimal solution is at the point where the budget line is tangent to the indifference
curve
MU1 p1
=
MU2 p2
where MU1 and MU2 are the marginal utilities of good 1 and good 2 respectively
Constraint optimization
Constraint optimization
the Lagrange multiplier could be interpreted as the “marginal utility of income” in our
example
Constraint optimization
Inequality-Constrained Optimization
max f (x) s. t. x ≥ 0
x
(x ) {
df ∗ ≤0 if x∗ = 0
dx =0 if x∗ > 0
Constraint optimization
Theorem
Suppose that f : → is a C 1 function. Then, if x∗ maximizes f (x) for all x ≥ 0 ,
then x∗ satisfies
df ∗
(x ) ≤ 0
dx
df
x∗ (x∗ ) = 0
dx
x∗ ≥ 0
Constraint optimization
L(x, λ) = f (x) + λx
the FOC is
dL ∗ ∗ df ∗
(x , λ ) = (x ) + λ∗ = 0
dx dx
dL ∗ ∗
(x , λ ) = x∗ ≥ 0
dλ
dL ∗ ∗
λ∗ ≥ 0, λ∗ (x , λ ) = 0
dλ
the first and second equation is the same as the FOC for the equality-constrained
optimization problem
Constraint optimization
Mixed Constraints Problem
Constraint optimization
Theorem of Kuhn-Tucker Conditions
Constraint optimization
References
Chiang, Alpha, Chung-i, and Kevin. Wainwright. 2005. Fundamental Methods of
Mathematical Economics. 4th ed. / [rev. by] Kevin Wainwright. New York:
McGraw-Hill.
Simon, Carl P., and Lawrence. Blume. 1994. Mathematics for Economists. 1st ed.
New York ; W.W. Norton.