Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The total differential of f is the sum of partial derivatives and differential changes for each variable:

d ⁣f=(fx)yd ⁣x+(fy)xd ⁣y\d{f} = \td{}{f}{x}{y} \d{x} + \td{}{f}{y}{x} \d{y}

For example if f=x2cosyf = x^2 \cos y, then

d ⁣f=2xcosyd ⁣xx2sinyd ⁣y\d{f} = 2x \cos y \d{x} - x^2 \sin y \d{y}

The total differential tells us how f will change in response to small changes in one or more of its variables. The expression above is for functions of two variables, but it generalizes immediately to more.

The total differental can also be used to form other derivatives with respect to variables that f does not explicitly depend on. For example, suppose x(t)x(t) and y(t)y(t) both depend on one variable tt; then, f is effectively a function of only t through its dependencies on x and y. Its orderinary derivative can be calculated using the total differential to apply the chain rule:

d ⁣fd ⁣t=2xcosyd ⁣xd ⁣tx2sinyd ⁣yd ⁣t\dd{}{f}{t} = 2x \cos y \dd{}{x}{t} - x^2 \sin y \dd{}{y}{t}

Similarly, if x(t,s)x(t,s) and y(t,s)y(t,s) depend on multiple variables t and s, partial derivatives can be formed in the same way:

(ft)s=2xcosy(xt)sx2siny(yt)s\td{}{f}{t}{s} = 2x \cos y \td{}{x}{t}{s} - x^2 \sin y \td{}{y}{t}{s}

Skill builder problems

Given

d ⁣f=pd ⁣xqd ⁣y\d{f} = p \d{x} - q \d{y}

Express the following:

Solution to Exercise 1

Based on differential:

(fx)y=p\td{}{f}{x}{y} = p
Solution to Exercise 2

Based on differential:

(fy)x=q\left(\frac{\partial f}{\partial y}\right)_x = -q
Solution to Exercise 3
(2fx2)y=x((fx)y)y=(px)y\begin{align} \left(\frac{\partial^2 f}{\partial x^2}\right)_y = \frac{\partial }{\partial x} \left(\left(\frac{\partial f}{\partial x}\right)_y \right)_y = \left(\frac{\partial p}{\partial x}\right)_y \end{align}
Solution to Exercise 4
(2fy2)x=y((fy)x)x=((q)y)x=(qy)x\begin{align} \left(\frac{\partial^2 f}{\partial y^2}\right)_x = \frac{\partial }{\partial y} \left(\left(\frac{\partial f}{\partial y}\right)_x \right)_x = \left(\frac{\partial (-q)}{\partial y}\right)_x = -\left(\frac{\partial q}{\partial y}\right)_x \end{align}
Solution to Exercise 5
2fxy=x((fy)x)y=(qx)y\begin{align} \frac{\partial^2 f}{\partial x \partial y} = \frac{\partial }{\partial x} \left(\left(\frac{\partial f}{\partial y}\right)_x \right)_y = -\left(\frac{\partial q}{\partial x}\right)_y \end{align}
Solution to Exercise 6
2fyx=y((fx)y)x=(py)x\begin{align} \frac{\partial^2 f}{\partial y \partial x} = \frac{\partial }{\partial y} \left(\left(\frac{\partial f}{\partial x}\right)_y \right)_x = \left(\frac{\partial p}{\partial y}\right)_x \end{align}

Given:

f=cos(4x+y2)+x2yx=2uty=t2\begin{align} f &= \cos(4x+y^2) + x^2y\\ x &= 2ut\\ y &= t^2 \end{align}

Evaluate:

Solution to Exercise 7
(ft)u=(fx)y(xt)u+(fy)x(yt)u=[4sin(4x+y2)+2xy](2u)+[2ysin(4x+y2)+x2](2t)=[4sin(8ut+t4)+4ut3](2u)+[2t2sin(8ut+t4)+4u2t2](2t)=4(2u+t3)sin(8ut+t4)+16u2t3\begin{align} \td{}{f}{t}{u} &= \td{}{f}{x}{y} \td{}{x}{t}{u} + \td{}{f}{y}{x} \td{}{y}{t}{u} \\ &= \left[-4\sin(4x+y^2)+2xy\right](2u) + \left[-2y\sin(4x+y^2)+x^2\right](2t)\\ &= \left[-4\sin(8ut+t^4)+4ut^3\right](2u) + \left[-2t^2\sin(8ut+t^4)+4u^2t^2\right](2t)\\ &= -4(2u+t^3)\sin(8ut+t^4) + 16u^2t^3 \end{align}
Solution to Exercise 8
(fu)t=(fx)y(xu)t+(fy)x(yu)t=[4sin(4x+y2)+2xy](2t)+0=2t[4sin(8ut+t4)+4ut3]\begin{align} \td{}{f}{u}{t} &= \td{}{f}{x}{y} \td{}{x}{u}{t} + \td{}{f}{y}{x} \td{}{y}{u}{t} \\ &= \left[-4\sin(4x+y^2)+2xy\right](2t) + 0 \\ &= 2t\left[-4\sin(8ut+t^4)+4ut^3\right] \end{align}