Partial derivatives
We review the derivative you already know from single-variable calculus, then extend the same idea to functions of two variables.
The main idea stays the same: a derivative measures rate of change. The difference is that for a function of two variables, we can ask how the function changes in the -direction or in the -direction.
A quick review of the single-variable derivative
If is a function of one variable, then the derivative at is defined by the limit
provided the limit exists.
This is the slope of the tangent line, or more generally the instantaneous rate of change of with respect to its input.
Partial derivatives for functions of two variables
Now let be a function of two variables.
The partial derivative with respect to is
and the partial derivative with respect to is
The notation is different from ordinary derivatives. We use the symbol instead of because we are differentiating with respect to only one variable while keeping the other variable fixed.
The rule
To find a partial derivative:
- when differentiating with respect to , treat as a constant;
- when differentiating with respect to , treat as a constant.
That is the whole idea.
Geometric meaning
If is a surface, the cleanest 2D picture is to freeze one variable and graph a slice.
Take the surface
At the point in the domain, the output is
To understand , keep fixed and look at the 2D graph
To understand , keep fixed and look at the 2D graph
Both slopes can be illustrated directly on the 3D surface with tangent lines drawn through the point .
Hemisphere: z = sqrt(9 - x^2 - y^2) with tangent lines
The interactive plot above draws the hemisphere surface and overlays the two tangent lines so you can view them together in 3D. Use the renderer controls to rotate and inspect the tangents against the surface.
Example 1: first partial derivatives of a polynomial
Let
Find and .
Solution:
For , treat as constant:
For , treat as constant:
This example shows the basic rule: only one variable is changing at a time.
Example 2: the other variable stays constant
Let
Find .
Solution:
When differentiating with respect to , the quantity is just a constant, and is also a constant.
So
If you see while taking , do not differentiate it. Keep it fixed.
Higher partial derivatives
We can differentiate partial derivatives again. These are called higher partial derivatives.
For example, if is a function, then we can take its partial derivative with respect to again and write
Similarly,
and the mixed partials are
For the nice functions we study in calculus, the mixed partials usually agree:
More precisely, this is guaranteed when the mixed partials are continuous near the point. In practice, that means the order of differentiation does not matter for the smooth examples in this course.
Example 3: confirm that f_xy = f_yx
Let
Compute and .
Solution:
First compute :
Now differentiate with respect to :
Next compute :
Now differentiate with respect to :
So in this example,
Example 4: higher derivatives of a polynomial
Let
Compute , , , and .
Solution:
First partial derivatives:
Second partial derivatives:
Mixed partials:
Again, the mixed partials match.
Summary
- A single-variable derivative is defined by a limit with one input changing.
- A partial derivative is the same idea, but for a function of two variables.
- The notation and means “differentiate with respect to while holding constant.”
- The notation and means “differentiate with respect to while holding constant.”
- Higher partial derivatives are obtained by differentiating again, and for smooth functions the mixed partials satisfy .