Skip to content

Functions of two variables and partial derivatives

A function of two variables, such as output as a function of capital and labour, has a graph that is a surface over the plane. Each level curve is where it takes one fixed value, and a partial derivative is an ordinary derivative in one variable with the other held fixed: the marginal product of labour at a fixed level of capital, for example.

In this topic

Taught
Before the final, flavour C
Questions
15
Total marks
44
Suggested time
67 min
Difficulty

Introductory to Capstone

Show the 4 hardest

Key results

Partial derivatives
fx(a,b)=lim⁡h→0f(a+h,b)−f(a,b)h,fy(a,b)=lim⁡h→0f(a,b+h)−f(a,b)hf_x(a, b) = \lim_{h \to 0}\frac{f(a + h, b) - f(a, b)}{h}, \qquad f_y(a, b) = \lim_{h \to 0}\frac{f(a, b + h) - f(a, b)}{h}

When the limits exist; in practice, differentiate in one variable with the other held constant.

Mixed partial derivatives
fxy=∂∂y(∂f∂x)=∂∂x(∂f∂y)=fyxf_{xy} = \frac{\partial}{\partial y}\Bigl(\frac{\partial f}{\partial x}\Bigr) = \frac{\partial}{\partial x}\Bigl(\frac{\partial f}{\partial y}\Bigr) = f_{yx}

When fxyf_{xy} and fyxf_{yx} are continuous near the point (Clairaut’s theorem).

Estimating a change
f(a+Δx,b+Δy)−f(a,b)≈fx(a,b) Δx+fy(a,b) Δyf(a + \Delta x, b + \Delta y) - f(a, b) \approx f_x(a, b)\,\Delta x + f_y(a, b)\,\Delta y

When fxf_x and fyf_y are continuous near (a,b)(a, b) and Δx\Delta x and Δy\Delta y are small.

Slope of a level curve
dydx=−fxfy\frac{dy}{dx} = -\frac{f_x}{f_y}

Along the level curve f(x,y)=cf(x, y) = c, when fxf_x and fyf_y are continuous near the point and fy≠0f_y \neq 0 there.

Read the theoryUBC Math 100 §14.2 Functions of two variablesUBC Math 100 §14.3 Sketching surfaces in 3DUBC Math 100 §15.1 Partial derivativesUBC Math 100 §15.2 Higher order partial derivatives

Worked example

Standard3 marks · 4 min

Let f(x,y)=(x+y2)exyf(x, y) = \left(x + y^{2}\right)e^{xy}. Find fy(2,1)f_y(2, 1).

Strategy

Treat x as a constant and differentiate in y. Both factors depend on y, so the product rule applies, and the exponential needs the chain rule.

Working

  1. fy=2y exy+(x+y2)⋅x exyf_y = 2y\,e^{xy} + \left(x + y^{2}\right)\cdot x\,e^{xy}

    Product rule. The chain rule on the exponential gives the factor x, the y-derivative of the exponent xy.

  2. fy(2,1)=2(1)e2+(2+1)(2)e2f_y(2, 1) = 2(1)e^{2} + (2 + 1)(2)e^{2}

    Substitute x = 2 and y = 1, so xy = 2.

  3. =2e2+6e2=8e2≈59.11= 2e^{2} + 6e^{2} = 8e^{2} \approx 59.11

    Collect the multiples of e².

Answer

fy(2,1)=8e2≈59.11f_y(2, 1) = 8e^{2} \approx 59.11

The answer is 8 e squared, about 59.11.

Check

The relative rate f_y/f is 2y/(x + y²) + x = 2/3 + 2 = 8/3 at (2, 1), and 8/3 of f(2, 1) = 3e² is 8e².

Where this goes wrong

Differentiating eˣʸ in y as eˣʸ, which gives 5e². The exponent is xy, and its y-derivative, x, multiplies the exponential.

On the paper

Say which variable is held constant, differentiate, and substitute the point last.

Leans on

The chain rule for exponentials, from The chain rule and logarithms

Your turn

Standard3 marks · 4 min

Let f(x,y)=x−yx+2yf(x, y) = \dfrac{x - y}{x + 2y}. Find ∂f∂x\dfrac{\partial f}{\partial x} at (2,1)(2, 1).

Answer this question

Practice questions

5 of the 15, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.

  • Introductory2 marks · 3 min

    Let f(x,y)=9−x2−y2f(x, y) = \sqrt{9 - x^{2} - y^{2}}. Which statement gives f(2,−1)f(2, -1) and the domain of ff correctly?

    Answer this question
  • Introductory2 marks · 3 min

    Let f(x,y)=x2−4x+y2f(x, y) = x^{2} - 4x + y^{2}. Which describes the level curve f(x,y)=5f(x, y) = 5?

    Answer this question
  • Standard3 marks · 4 min

    A firm’s output is Q(K,L)=12K1/4L3/4Q(K, L) = 12K^{1/4}L^{3/4} units, where KK is units of capital and LL is units of labour. It now uses K=16K = 16 and L=81L = 81. Which statement correctly gives and interprets the marginal product of labour, ∂Q∂L\dfrac{\partial Q}{\partial L}, there?

    Answer this question
  • Challenging3 marks · 6 min

    Let f(x,y)=log⁡ ⁣(x2+xy+1)f(x, y) = \log\!\left(x^{2} + xy + 1\right). Find fxy(2,1)f_{xy}(2, 1), the derivative in yy of fxf_x, and check it against fyx(2,1)f_{yx}(2, 1).

    Answer this question
  • Capstone5 marks · 10 min

    A firm’s weekly output is Q(K,L)=15K1/3L2/3Q(K, L) = 15K^{1/3}L^{2/3} units, where KK and LL are its weekly spending on capital and on labour, in thousands of dollars. It now spends K=64K = 64 and L=8L = 8. Find the two marginal products, decide which way one thousand dollars of spending should be moved between the inputs to raise output, and estimate the resulting increase in output.

    Give the estimated increase in weekly output, in units.

    Answer this question

Browse all 15 questions