Total Differential
students, imagine standing on a hill and trying to estimate how much your elevation changes when you take a small step in some direction π. You do not need to recalculate the whole hill from scratch every time. Instead, you can use the slope in each direction to make a quick, accurate estimate. That idea is the heart of the total differential in multivariable calculus.
In this lesson, you will learn how the total differential helps approximate changes in functions of several variables, how it connects to tangent planes, and why it is a key tool for the chain rule in multivariable settings. By the end, you should be able to:
- Explain what the total differential means and why it matters.
- Use it to estimate changes in a function.
- Connect it to linear approximation and tangent planes.
- See how it fits into the chain rule for several variables.
What the Total Differential Means
Suppose a function depends on more than one variable, like $z=f(x,y)$. If both $x$ and $y$ change a little, then $z$ usually changes too. The total differential gives the approximate change in $z$ caused by small changes in the input variables.
For a function $z=f(x,y)$, the total differential is
$$dz=f_x(x,y)\,dx+f_y(x,y)\,dy$$
Here:
- $f_x(x,y)$ is the partial derivative with respect to $x$,
- $f_y(x,y)$ is the partial derivative with respect to $y$,
- $dx$ and $dy$ are small changes in the inputs,
- $dz$ is the corresponding approximate change in the output.
Think of $dz$ as a quick estimate of how much $z$ changes when $x$ and $y$ change a little. The word βtotalβ is important because it combines the effect of all input variables.
For a function of three variables $w=f(x,y,z)$, the total differential becomes
$$dw=f_x\,dx+f_y\,dy+f_z\,dz$$
The pattern continues for more variables: add one term for each variable, using the partial derivative and its small change.
Why It Works: Local Linear Behavior
The total differential is based on the idea that a smooth function looks almost like a plane when you zoom in close enough π. That plane is the tangent plane.
If $z=f(x,y)$ is differentiable at $(a,b)$, then near that point,
$$f(x,y)\approx f(a,b)+f_x(a,b)(x-a)+f_y(a,b)(y-b)$$
This is the linear approximation, and it is closely tied to the differential. If we let
$$dx=x-a, \qquad dy=y-b$$
then the change in $z$ is approximated by
$$dz=f_x(a,b)\,dx+f_y(a,b)\,dy$$
So the total differential is the linear part of the change in the function. It tells you how the function responds to small movement in the input space.
Real-world example
Suppose $f(x,y)$ gives the temperature at a location based on east-west position $x$ and north-south position $y$. If you move a small amount east and north, the total differential estimates how much the temperature changes. If the temperature changes quickly in the east-west direction but slowly in the north-south direction, then $f_x$ will be larger in magnitude than $f_y$, and eastward movement will matter more.
This is useful in science and engineering because exact recomputation is often hard, but small-change estimates are very practical.
Computing a Total Differential
To compute a total differential, follow these steps:
- Find all needed partial derivatives.
- Multiply each partial derivative by the corresponding small change.
- Add the terms together.
Example 1
Let
$$f(x,y)=x^2y+3y$$
Find the total differential.
First compute the partial derivatives:
$$f_x(x,y)=2xy$$
$$f_y(x,y)=x^2+3$$
So the total differential is
$$df=2xy\,dx+(x^2+3)\,dy$$
This formula tells you how a small change in $x$ and $y$ changes the output of the function.
Example 2: numerical estimate
Let
$$f(x,y)=x^2y+3y$$
and estimate the change in $f$ near $(1,2)$ if $dx=0.1$ and $dy=-0.05$.
First evaluate the partial derivatives at $(1,2)$:
$$f_x(1,2)=2(1)(2)=4$$
$$f_y(1,2)=1^2+3=4$$
Then
$$df=4(0.1)+4(-0.05)=0.4-0.2=0.2$$
So the function is estimated to increase by about $0.2$. This is an approximation, not an exact value, but it is often very close when the changes are small.
Connection to Tangent Planes
The total differential and tangent planes are closely related because both describe the same local linear idea.
The tangent plane to $z=f(x,y)$ at $(a,b,f(a,b))$ is
$$z=f(a,b)+f_x(a,b)(x-a)+f_y(a,b)(y-b)$$
Now compare that with the differential form. If $dx=x-a$ and $dy=y-b$, then the change in $z$ from the point $(a,b)$ is approximately
$$dz=f_x(a,b)\,dx+f_y(a,b)\,dy$$
So the tangent plane gives the approximate value of the function, and the total differential gives the approximate change in value. They are two ways of describing the same local linear behavior.
Geometry intuition
Imagine a smooth surface shaped like a blanket draped over a table. At one point, the surface may curve, but if you zoom in enough, it looks flat. The tangent plane is that flat surface, and the total differential tells you how much you move up or down on that plane when you move a little in the input variables.
This idea is one reason tangent planes are so important in multivariable calculus: they let us turn a complicated surface into something much easier to study.
The Total Differential and Error Estimation
A major use of the total differential is estimating measurement error π. If a quantity is computed from measured inputs, then small errors in those inputs produce an approximate error in the output.
Example 3: radius and area
The area of a circle is
$$A=\pi r^2$$
Its differential is
$$dA=2\pi r\,dr$$
If a radius is measured as $r=10$ cm and the measurement error is $dr=0.1$ cm, then
$$dA=2\pi(10)(0.1)=2\pi$$
So the area may change by about $2\pi$ square centimeters. This does not give the exact error, but it gives a very useful estimate.
This is especially helpful when the formula is difficult to recompute exactly or when only approximate input values are known.
Total Differential and the Chain Rule
The total differential is deeply connected to the chain rule in multivariable calculus. When a variable depends on other variables, the chain rule tracks how changes flow through the system.
Suppose $z=f(x,y)$, and both $x$ and $y$ depend on $t$. Then $z$ also depends on $t$. The chain rule says
$$\frac{dz}{dt}=f_x\frac{dx}{dt}+f_y\frac{dy}{dt}$$
This formula looks very similar to the total differential. In fact, you can think of it as a differential idea divided by $dt$.
If
$$dz=f_x\,dx+f_y\,dy$$
and $x=x(t)$, $y=y(t)$, then dividing by $dt$ gives
$$\frac{dz}{dt}=f_x\frac{dx}{dt}+f_y\frac{dy}{dt}$$
So the total differential helps explain why the chain rule has this form. Each input contributes to the final rate of change, and the contributions are added together.
Example 4
Let
$$z=x^2+y^2$$
where
$$x=t^2, \qquad y=\sin t$$
First compute the partial derivatives:
$$f_x=2x, \qquad f_y=2y$$
Then
$$\frac{dz}{dt}=2x\frac{dx}{dt}+2y\frac{dy}{dt}$$
Since
$$\frac{dx}{dt}=2t \qquad \text{and} \qquad \frac{dy}{dt}=\cos t$$
we get
$$\frac{dz}{dt}=2(t^2)(2t)+2(\sin t)(\cos t)$$
or
$$\frac{dz}{dt}=4t^3+2\sin t\cos t$$
This shows how the chain rule follows the path of change from $t$ to $x$ and $y$, and then from $x$ and $y$ to $z$.
Common Mistakes to Avoid
When using the total differential, students, keep these points in mind:
- Do not confuse $dz$ with the exact change $\Delta z$. The differential is an approximation.
- Use the partial derivatives at the correct point when estimating changes.
- Match each small change with the right variable, such as $dx$, $dy$, or $dz$.
- Remember that the total differential works best for small changes.
A common mistake is to plug in large changes and expect a very accurate result. The approximation may still help, but its reliability decreases as the changes get larger.
Conclusion
The total differential is one of the most useful ideas in multivariable calculus because it summarizes how a function changes when several inputs change a little at the same time. It gives a linear estimate of change, connects directly to tangent planes, and explains the structure of the chain rule. In practice, it helps with approximation, geometry, and error analysis. If you understand the total differential, you have a strong foundation for studying both tangent planes and multivariable chain rule problems.
Study Notes
- The total differential of $z=f(x,y)$ is $dz=f_x\,dx+f_y\,dy$.
- For $w=f(x,y,z)$, the total differential is $dw=f_x\,dx+f_y\,dy+f_z\,dz$.
- $dz$ is an approximate change in the output caused by small input changes.
- The total differential is closely related to linear approximation and tangent planes.
- The tangent plane formula is $z=f(a,b)+f_x(a,b)(x-a)+f_y(a,b)(y-b)$.
- The total differential is useful for estimating errors and small changes in measurements.
- The multivariable chain rule follows the same idea as the total differential.
- For $z=f(x,y)$ with $x=x(t)$ and $y=y(t)$, $\frac{dz}{dt}=f_x\frac{dx}{dt}+f_y\frac{dy}{dt}$.
- Total differentials work best when changes are small and the function is smooth.
