Geometry The
volume of a
cone depends on the cone's
height and its
radius according to the formula V(r, h) = \frac{\pi r^2 h}{3}. The partial derivative of with respect to is \frac{ \partial V}{\partial r} = \frac{ 2 \pi r h}{3}, which represents 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 equals {{nowrap|\frac{1}{3}\pi r^2,}} which represents the rate with which the volume changes if its height is varied and its radius is kept constant. By contrast, the
total derivative of with respect to and are respectively \begin{align} \frac{dV}{dr} &= \overbrace{\frac{2 \pi r h}{3}}^\frac{ \partial V}{\partial r} + \overbrace{\frac{\pi r^2}{3}}^\frac{ \partial V}{\partial h}\frac{dh}{dr}\,, \\ \frac{dV}{dh} &= \overbrace{\frac{\pi r^2}{3}}^\frac{\partial V}{\partial h} + \overbrace{\frac{2 \pi r h}{3}}^\frac{ \partial V}{\partial r}\frac{dr}{dh}\,. \end{align} The difference between the total and partial derivative is the elimination of indirect dependencies between variables in partial derivatives. If (for some arbitrary reason) the cone's proportions have to stay the same, and the height and radius are in a fixed ratio , k = \frac{h}{r} = \frac{dh}{dr}. This gives the total derivative with respect to , \frac{dV}{dr} = \frac{2 \pi r h}{3} + \frac{\pi r^2}{3}k\,, which simplifies to \frac{dV}{dr} = k \pi r^2, Similarly, the total derivative with respect to is \frac{dV}{dh} = \pi r^2. The total derivative with respect to and of the volume intended as scalar function of these two variables is given by the
gradient vector \nabla V = \left(\frac{\partial V}{\partial r},\frac{\partial V}{\partial h}\right) = \left(\frac{2}{3}\pi rh, \frac{1}{3}\pi r^2\right).
Optimization Partial derivatives appear in any calculus-based
optimization problem with more than one choice variable. For example, in
economics a firm may wish to maximize
profit with respect to the choice of the quantities and of two different types of output. The
first order conditions for this optimization are . Since both partial derivatives and will generally themselves be functions of both arguments and , these two first order conditions form a
system of two equations in two unknowns.
Thermodynamics, quantum mechanics and mathematical physics Partial derivatives appear in thermodynamic equations like
Gibbs-Duhem equation, in quantum mechanics as in
Schrödinger wave equation, as well as in other equations from
mathematical physics. The variables being held constant in partial derivatives here can be ratios of simple variables like
mole fractions in the following example involving the Gibbs energies in a ternary mixture system: \bar{G_2}= G + (1-x_2) \left(\frac\right)_{\frac{x_1}{x_3}} Express
mole fractions of a component as functions of other components' mole fraction and binary mole ratios: \begin{align} x_1 &= \frac{1-x_2}{1+\frac{x_3}{x_1}} \\ x_3 &= \frac{1-x_2}{1+\frac{x_1}{x_3}} \end{align} Differential quotients can be formed at constant ratios like those above: \begin{align} \left(\frac{\partial x_1}{\partial x_2}\right)_{\frac{x_1}{x_3}} &= - \frac{x_1}{1-x_2} \\ \left(\frac{\partial x_3}{\partial x_2}\right)_{\frac{x_1}{x_3}} &= - \frac{x_3}{1-x_2} \end{align} Ratios X, Y, Z of mole fractions can be written for ternary and multicomponent systems: \begin{align} X &= \frac{x_3}{x_1 + x_3} \\ Y &= \frac{x_3}{x_2 + x_3} \\ Z &= \frac{x_2}{x_1 + x_2} \end{align} which can be used for solving
partial differential equations like: \left(\frac{\partial \mu_2}{\partial n_1}\right)_{n_2, n_3} = \left(\frac{\partial \mu_1}{\partial n_2}\right)_{n_1, n_3} This equality can be rearranged to have differential quotient of mole fractions on one side.
Image resizing Partial derivatives are key to target-aware image resizing algorithms. Widely known as
seam carving, these algorithms require each
pixel in an image to be assigned a numerical 'energy' to describe their dissimilarity against orthogonal adjacent pixels. The
algorithm then progressively removes rows or columns with the lowest energy. The formula established to determine a pixel's energy (magnitude of
gradient at a pixel) depends heavily on the constructs of partial derivatives.
Economics Partial derivatives play a prominent role in
economics, in which most functions describing economic behaviour posit that the behaviour depends on more than one variable. For example, a societal
consumption function may describe the amount spent on consumer goods as depending on both income and wealth; the
marginal propensity to consume is then the partial derivative of the consumption function with respect to income. ==See also==