(Slides) Chapter 3. Function of Several Variables
(Slides) Chapter 3. Function of Several Variables
November 4, 2024
Defintion
A function f, of two variables, is a rule that assigns to each pair of
numbers, (x, y), the unique number z.
Example
Let
z = f(x, y) = xy + 2y.
Then
Substituting x = 3 and y = 4 gives
z = f(3, 4) = 3 × 4 + 2 × 4 = 20.
z = f(4, 3) = 4 × 3 + 2 × 3 = 18.
Graph
Let z = f(x, y) be a function of two variables. Then
Exercise
Ex 1: If z = f(x, y) = 2x2 y + 3x. Evaluate f(2, 3), f(3, 2), f(0, 2), and
f(3, 0). Are there any (x, y) for which f(x, y) = f(y, x)?
Ex 3: Let
1 2
z = f(x, y) = x 3 y 3
Assume x and y both increase by 25%. Determine the percentage
change in z.
Partial derivatives
Definition
The partial derivative of z = f(x, y) with respect to x is written as
δz δf
or or fx
δx δx
and is found by differentiating f with respect to x, with y held constant.
Definition
The partial derivative of z = f(x, y) with respect to y is written as
δz δf
or or fy
δy δy
Rule
Given a function z = f(x, y).
Example
Let
f(x, y) = 3x2 y + xy.
Then
fx = 6xy + y.
fy = 3x2 + x.
Let
z = x2 y3 − 10x.
Then
δz
= 2xy3 − 10.
δx
δz
= 3x2 y2 .
δy
Definition
For a function z = f(x, y), there are four second-order partial
derivatives. We write
δ2z δ2f
or or fxx .
δx2 δx2
for the function obtained by differentiating twice with respect to x,
δ2z δ2f
or or fyy .
δy2 δy2
Definition
We write
δ2z δ2f
or or fxy .
δyδx δyδx
for the function obtained by differentiating first with respect to x and
then with respect to y,
δ2z δ2f
or or fyx .
δxδy δxδy
Exercise
Ex 3: Let z = f(x, y) = exy . Evaluate zxx (1, 2) and zyx (2, 1).
Note
We have that
fxy = fyx
holds for all functions that arise in economics. Therefore, it is
immaterial in which order the partial differentiation is performed.
Formula
The net change in z is estimated by
δz δz
∆z ≈ ∆x + ∆y.
δx δy
Special cases
Formula
If x changes by a small amount ∆x and y is fixed, then
δz
∆z ≈ ∆x.
δx
Formula
If y changes by a small amount ∆y and x is fixed, then
δz
∆z ≈ ∆y.
δy
δz δz
If z = x3 y − y3 x, evaluate and at the point (1, 3). Hence
δx δy
estimate the change in z when x increases from 1 to 1, 1 and y
decreases from 3 to 2, 8 simultaneously.
Solution
First,
δz δz
= 3x2 y − y3 and = x3 − 3y2 x.
δx δy
δz δz
Therefore, (1, 3) = −18; (1, 3) = −26. Now, at the point (1, 3),
δx δy
we have
x increases from 1 to 1, 1 ⇒ ∆x = 0, 1.
y decreases from 3 to 2, 8 ⇒ ∆y = −0, 2.
Hence, by using small increments formula,
δz δz
∆z ≈ ∆x + ∆y ≈ 3, 4
δx δy
Nguyễn Hoàng Huy Tú Functions of several variables
3.1. Functions of several variables
First-order derivatives
3.2. Partial derivatives
Second-order partial derivatives
3.3. Marginal functions and elasticity
Small increments formula
3.4. Unconstrained optimization
Implicit Differentiation
3.5 Constrained Optimization
Exercise
Ex 1. Use the small increments formula to estimate the change in
z = x2 y4 − x6 + 4y.
when
a. x increases from 1 to 1, 1 and y remains fixed at 0
b. x remains fixed at 1 and y decreases from 0 to −0, 5.
c. x increases from 1 to 1, 1 and y decreases from 0 to −0, 5.
Ex 2. If
z = x2 y3 − 10xy + y2 .
evaluate zx and zy at the point (2, 3). Hence estimate the change in z
as x increases by 0, 2 and y decreases by 0, 1.
Implicit Differentiation
Formula
If f(x, y) = constant, then
dy fx
=− .
dx fy
y3 + 2xy2 − x = 5.
dy fx 2y2 − 1
=− =− 2 .
dx fy 3y + 4xy
Exercise
a. xy − y3 + y = 0.
b. y5 − xy2 = 10.
Elasticity of demand
Suppose that the demand, Q for a certain good depends on its price, P,
the price of an alternative good, PA , and the income of consumers, Y
so that
Q = f(P, PA , Y)
Definition
The (own) price elasticity of demand is defined to be
% change in Q δQ P
EP = = × .
% change in P δP Q
Elasticity of demand
Definition
The cross-price elasticity is defined to be
% change in Q δQ PA
EPA = = × .
% change inPA δPA Q
Definition
The income elasticity is defined to be
% change in Q δQ Y
EY = = × .
% change in Y δY Q
Example
Q = 100 − 2P + 2PA + 0, 1Y
Utility function
Definition
To analyse the behaviour of consumers quantitatively we associate
with each set of options a number, U, called utility, which indicates
the level of satisfaction.
Suppose that there are two goods, G1 and G2, and that the consumer
buys x1 items of G1 and x2 items of G2.
The variable U is then a function of x1 and x2 , which we write as
U = U(x1 , x2 ).
Marginal utility
Definition
Given a utility function U = U(x1 , x2 ). The derivative
δU
δx1
is called the marginal utility of x1 . The derivative
δU
δx2
is called the marginal utility of x2 .
Marginal utility
Formula
If x1 and x2 both change then the net change in U can be found from
the small increments formula
δU δU
∆U ≈ ∆x1 + ∆x2 .
δx1 δx2
Example
δU δU
and
δx1 δx2
when x1 = 100 and x2 = 200. Hence estimate the change in utility
when x1 decreases from 100 to 99 and x2 increases from 200 to 201.
Indifference curves
Definition
Given a utility function U = U(x1 , x2 ). Indifference curves join
points (x1 , x2 ) which give the same value of utility. Mathematically,
an indifference curve is defined by an equation
U(x1 , x2 ) = U0
Indifference curves
Definition
The marginal rate of commodity substitution, MRCS, is defined to be
dx2 Ux
MRCS = − = 1.
dx1 Ux2
Example
Exercise
Ex 1: Given the demand function
Q = 500 − 3P − 2PA + 0, 01Y
where P = 20, PA = 30 and Y = 5000. Find the price elasticity of
demand, the cross-price elasticity of demand, the income elasticity of
demand. If income rises by 5%, calculate the corresponding
percentage change in demand.
Ex 2: An individual’s utility function is given by
U = 1000x1 + 450x2 + 5x1 x2 − 2x21 − x22
where x1 is the amount of leisure measured in hours per week and x2
is earned income measured in dollars per week. Determine the value
of the marginal utilities when x1 = 138 and x2 = 500.
Hence estimate the change in U if the individual works for an extra
hour, which increases earned income by $15 per week.
Nguyễn Hoàng Huy Tú Functions of several variables
3.1. Functions of several variables
3.2. Partial derivatives Elasticity of demand
3.3. Marginal functions and elasticity Utility
3.4. Unconstrained optimization Production
3.5 Constrained Optimization
Production functions
Definition
The output, Q, depends on capital K, and labour, L, so we can write
Q = f(K, L)
Marginal product
Given a production function Q = f(K, L).
Definition
The partial derivative
δQ
δK
is called the marginal product of capital, denoted by MPK .
Definition
The partial derivative
δQ
δL
is called the marginal product of labour, denoted by MPL .
Marginal product
Formula
If K and L both change simultaneously, then the net change in Q can
be found from the small increments formula
δQ δQ
∆Q ≈ ∆K + ∆L.
δK δL
Isoquants
Definition
Let Q = f(K, L) be a production function. Isoquants join possible
combinations of inputs (K, L) which produce a constant level of
output Q0 .
f(Q, L) = Q0
Definition
The marginal rate of technical substitution, MRTS, is defined to be
dK MPL
MRTS = − = .
dL MPK
Exercise
Ex 1: If Q = 2K3 + 2L2 K. Show that
K(MPK ) + L(MPL ) = 3Q.
Ex 2: Evaluate MPK and MPL for production function
√
Q = 2LK + L.
given that the current levels of K and L are 7 and 4, respectively.
Hence estimate the increase in capital needed to maintain the current
level of output given 1 decrease in labour.
Stationary points
Definition
Let z = f(x, y) be a function. A point (a, b) is called a stationary point
if
fx (a, b) = 0
fy (a, b) = 0
Classification
Step 3: Calculate A = fxx (a, b), B = fxy (a, b) and C = fyy (a, b).
Step 4:
AC − B2 > 0
⇒ a minimum.
A>0
AC − B2 > 0
⇒ a maximum.
A<0
Example
f(x, y) = xy − x3 − y2 .
Exercise
f(x, y) = x3 + y2 − 3x − 4y + 3.
f(x, y) = x2 + y4 + 2xy.
Exercise
Ex 1: A firm sells two goods G1 and G2 at $70 and $50, respectively,
each. The total cost is given by
TC = Q21 + Q1 Q2 + Q22
Find the maximum profit and the values of Q1 and Q2 at which this is
achieved.
Ex 2: A monopolist produces two goods with demand functions
P1 = 40 − Q1 and P2 = 60 − 2Q2
and the cost function is TC = Q21
+ 3Q1 Q2 + Q22 . Determine the
maximum value of profit.
Ex 3: A firm sells two related products whose demand functions are
given as
Q1 = 190 − 4P1 − P2 and Q2 = 120 − 2P1 − 3P2 .
Calculate the maximum revenue.
Nguyễn Hoàng Huy Tú Functions of several variables
3.1. Functions of several variables
3.2. Partial derivatives
Stationary points
3.3. Marginal functions and elasticity
Maximum profit
3.4. Unconstrained optimization
3.5 Constrained Optimization
Exercise
Ex 4: A firm’s production function is given by
1 1
Q = 2L 2 + 3K 2
Labour costs are $2 per unit, capital costs are $1 per unit and output
sells at $8 per unit. Find the maximum profit and the value of L and K
at which it is achieved.
Ex 5: An individual’s utility function is given by
Example
A firm’s unit capital and labour costs are $1 and $2 respectively. If the
production function is given by
Q = 4KL + L2
Constrained Optimization
z = f(x, y)
subject to a constraint
φ(x, y) = M.
gK = 0 4L − λ = 0 λ = 4L
gL = 0 ⇔ 4K + 2L − 2λ = 0 ⇔ 4K − 6L = 0
gλ = 0 105 − K − 2L = 0 K + 2L = 105
K = 45
⇔ L = 30
λ = 120
Hence the output has a maximum at K = 45 and L = 30. Moreover
Qmax = 6300.
Substitution
K + 2L = 105
we obtain that
K = 105 − 2L.
Now,
Example
U = x1 x2
where x1 and x2 denote the number of items of two goods, G1 and G2.
The prices of the goods are $2 and $10 respectively. Assuming that
the individual has $400 available to spend on these goods, find the
utility-maximizing values of x1 and x2 .
Example
Unit capital and labour costs are $4 and $5 respectively and the firm
spends a total of $60 on these inputs. Find the values of K and L
which maximize output.
Example
Lagrange Multiplier
Meaning
The value of λ gives the approximate change in the optimal value of f
due to a 1 unit increase in M.
Exercise
Q = 10K1/2 L1/2
Q = 2K1/2 L1/2
Unit capital and labour costs are $4 and $3 respectively. Find the
values of K and L which minimize total input costs if the firm is
contracted to provide 160 units of output.
Exercise
Ex 3: Find the maximum value of
z = 6 − 3x2 + 2y
subject to the constraint y − 2x2 = 2.
Ex 4: A monopolistic producer of two goods, G1 and G2, has a total
cost function
TC = 5Q1 + 10Q2
where Q1 and Q2 denote the quantities of G1 and G2. If P1 and P2
denote the corresponding prices then the demand equations are
P1 = 50 − Q1 − Q2
P2 = 100 − Q1 − 4Q2
Find the maximum profit if the firm’s total costs are fixed at $100.
Estimate the new optimal profit if total costs rise to $101.
Nguyễn Hoàng Huy Tú Functions of several variables