Definitions

# Partial derivative

In mathematics, a partial derivative of a function of several variables is its derivative with respect to one of those variables with the others held constant (as opposed to the total derivative, in which all variables are allowed to vary). Partial derivatives are useful in vector calculus and differential geometry.

The partial derivative of a function f with respect to the variable x is written as fx, xf, or ∂f/∂x. The partial-derivative symbol is a rounded letter, distinguished from the straight d of total-derivative notation. The notation was introduced by Legendre and gained general acceptance after its reintroduction by Jacobi.

## Introduction

Suppose that ƒ is a function of more than one variable. For instance,

$f\left(x, y\right) = x^2 + xy + y^2.,$

It is difficult to describe the derivative of such a function, as there are an infinite number of tangent lines to every point on this surface. Partial differentiation is the act of choosing one of these lines and finding its slope. Usually, the lines of most interest are those that are parallel to the x-axis, and those that are parallel to the y-axis.

A good way to find these parallel lines is to treat the other variable as a constant. For example, to find the tangent line of the above function at (1, 1, 3) that is parallel to the x-axis, we treat y as a constant one. The graph and this plane are shown on the right. On the left, we see the way the function looks on the plane y = 1. By finding the tangent line on this graph, we discover that the slope of the tangent line of ƒ at (1, 1, 3) that is parallel to the x axis is three. We write this in notation as

$frac\left\{part z\right\}\left\{part x\right\} = 3$

at the point (1, 1, 3),

or as "The partial derivative with respect to x at (1, 1, 3) is 3."

## Definition

The function f can be reinterpreted as a family of functions of one variable indexed by the other variables:

$f\left(x,y\right) = f_x\left(y\right) = ,! x^2 + xy + y^2.,$

In other words, every value of x defines a function, denoted fx, which is a function of one real number. That is,

$f_x\left(y\right) = x^2 + xy + y^2.,$

Once a value of x is chosen, say a, then f(x,y) determines a function fa which sends y to a2 + ay + y2:

$f_a\left(y\right) = a^2 + ay + y^2. ,$

In this expression, a is a constant, not a variable, so fa is a function of only one real variable, that being y. Consequently the definition of the derivative for a function of one variable applies:

$f_a\text{'}\left(y\right) = a + 2y. ,$

The above procedure can be performed for any choice of a. Assembling the derivatives together into a function gives a function which describes the variation of f in the y direction:

$frac\left\{part f\right\}\left\{part y\right\}\left(x,y\right) = x + 2y.,$

This is the partial derivative of f with respect to y. Here ∂ is a rounded d called the partial derivative symbol. To distinguish it from the letter d, ∂ is sometimes pronounced "der", "del", "dah", or "partial" instead of "dee".

In general, the partial derivative of a function f(x1,...,xn) in the direction xi at the point (a1,...,an) is defined to be:

$frac\left\{part f\right\}\left\{part x_i\right\}\left(a_1,ldots,a_n\right) = lim_\left\{h to 0\right\}frac\left\{f\left(a_1,ldots,a_i+h,ldots,a_n\right) - f\left(a_1,ldots,a_n\right)\right\}\left\{h\right\}.$

In the above difference quotient, all the variables except xi are held fixed. That choice of fixed values determines a function of one variable $f_\left\{a_1,ldots,a_\left\{i-1\right\},a_\left\{i+1\right\},ldots,a_n\right\}\left(x_i\right) = f\left(a_1,ldots,a_\left\{i-1\right\},x_i,a_\left\{i+1\right\},ldots,a_n\right)$, and by definition,

$frac\left\{df_\left\{a_1,ldots,a_\left\{i-1\right\},a_\left\{i+1\right\},ldots,a_n\right\}\right\}\left\{dx_i\right\}\left(a_1,ldots,a_n\right) = frac\left\{part f\right\}\left\{part x_i\right\}\left(a_1,ldots,a_n\right).$

In other words, the different choices of a index a family of one-variable functions just as in the example above. This expression also shows that the computation of partial derivatives reduces to the computation of one-variable derivatives.

An important example of a function of several variables is the case of a scalar-valued function f(x1,...xn) on a domain in Euclidean space Rn (e.g., on R2 or R3). In this case f has a partial derivative ∂f/∂xj with respect to each variable xj. At the point a, these partial derivatives define the vector

$nabla f\left(a\right) = left\left(frac\left\{partial f\right\}\left\{partial x_1\right\}\left(a\right), ldots, frac\left\{partial f\right\}\left\{partial x_n\right\}\left(a\right)right\right).$

This vector is called the gradient of f at a. If f is differentiable at every point in some domain, then the gradient is a vector-valued function ∇f which takes the point a to the vector ∇f(a). Consequently the gradient determines a vector field.

## Examples

Consider the volume V of a cone; it depends on the cone's height h and its radius r according to the formula

$V\left(r, h\right) = frac\left\{pi r^2 h\right\}\left\{3\right\}.$

The partial derivative of V with respect to r is

$frac\left\{ partial V\right\}\left\{partial r\right\} = frac\left\{ 2 pi r h\right\}\left\{3\right\}.$

It describes the rate with which a cone's volume changes if its radius is varied and its height is kept constant. The partial derivative with respect to h is

$frac\left\{ partial V\right\}\left\{partial h\right\} = frac\left\{pi r^2\right\}\left\{3\right\}$

and represents the rate with which the volume changes if its height is varied and its radius is kept constant.

Now consider by contrast the total derivative of V with respect to r and h. They are, respectively

$frac\left\{operatorname dV\right\}\left\{operatorname dr\right\} = overbrace\left\{frac\left\{2 pi r h\right\}\left\{3\right\}\right\}^frac\left\{ partial V\right\}\left\{partial r\right\} + overbrace\left\{frac\left\{pi r^2\right\}\left\{3\right\}\right\}^frac\left\{ partial V\right\}\left\{partial h\right\}frac\left\{partial h\right\}\left\{partial r\right\}$

and

$frac\left\{operatorname dV\right\}\left\{operatorname dh\right\} = overbrace\left\{frac\left\{pi r^2\right\}\left\{3\right\}\right\}^frac\left\{ partial V\right\}\left\{partial h\right\} + overbrace\left\{frac\left\{2 pi r h\right\}\left\{3\right\}\right\}^frac\left\{ partial V\right\}\left\{partial r\right\}frac\left\{partial r\right\}\left\{partial h\right\}$

We see that the difference between the total and partial derivative is the elimination of indirect dependencies between variables in the latter.

Now suppose that, for some reason, the cone's proportions have to stay the same, and the height and radius are in a fixed ratio k:

$k = frac\left\{h\right\}\left\{r\right\} = frac\left\{partial h\right\}\left\{partial r\right\}$

This gives the total derivative:

$frac\left\{operatorname dV\right\}\left\{operatorname dr\right\} = frac\left\{2 pi r h\right\}\left\{3\right\} + kfrac\left\{pi r^2\right\}\left\{3\right\}$

Equations involving an unknown function's partial derivatives are called partial differential equations and are common in physics, engineering, and other sciences and applied disciplines.

## Notation

For the following examples, let f be a function in x, y and z.

First-order partial derivatives:

$frac\left\{ partial f\right\}\left\{ partial x\right\} = f_x = partial_x f.$

Second-order partial derivatives:

$frac\left\{ partial^2 f\right\}\left\{ partial x^2\right\} = f_\left\{xx\right\} = partial_\left\{xx\right\} f.$

Second-order mixed derivatives:

$frac\left\{partial^2 f\right\}\left\{partial y , partial x\right\} = frac\left\{partial\right\}\left\{partial y\right\} left\left(frac\left\{partial f\right\}\left\{partial x\right\} right\right) = f_\left\{xy\right\} = partial_\left\{yx\right\} f.$

Higher-order partial and mixed derivatives:

$frac\left\{ partial^\left\{i+j+k\right\} f\right\}\left\{ partial x^i, partial y^j, partial z^k \right\} = f^\left\{\left(i, j, k\right)\right\}.$

When dealing with functions of multiple variables, some of these variables may be related to each other, and it may be necessary to specify explicitly which variables are being held constant. In fields such as statistical mechanics, the partial derivative of f with respect to x, holding y and z constant, is often expressed as

$left\left(frac\left\{partial f\right\}\left\{partial x\right\} right\right)_\left\{y,z\right\}.$

## Formal definition and properties

Like ordinary derivatives, the partial derivative is defined as a limit. Let U be an open subset of Rn and f : UR a function. We define the partial derivative of f at the point a = (a1, ..., an) ∈ U with respect to the i-th variable xi as

$frac\left\{ partial \right\}\left\{partial x_i \right\}f\left(mathbf\left\{a\right\}\right) =$
lim_{h rightarrow 0}{ f(a_1, dots , a_{i-1}, a_i+h, a_{i+1}, dots ,a_n) - f(a_1, dots ,a_n) over h }

Even if all partial derivatives ∂f/∂xi(a) exist at a given point a, the function need not be continuous there. However, if all partial derivatives exist in a neighborhood of a and are continuous there, then f is totally differentiable in that neighborhood and the total derivative is continuous. In this case, we say that f is a C1 function. We can use this fact to generalize for vector valued functions (f : UR'm) by carefully using a componentwise argument.

The partial derivative $frac\left\{partial f\right\}\left\{partial x\right\}$ can be seen as another function defined on U and can again be partially differentiated. If all mixed second order partial derivatives are continuous at a point (or on a set), we call f a C2 function at that point (or on that set); in this case, the partial derivatives can be exchanged by Clairaut's theorem:

$frac\left\{partial^2f\right\}\left\{partial x_i, partial x_j\right\} = frac\left\{partial^2f\right\} \left\{partial x_j, partial x_i\right\}.$