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 used in vector calculus and differential geometry.
The partial derivative of a function with respect to the variable is variously denoted by
It can be thought of as the rate of change of the function in the -direction.
Sometimes, for , the partial derivative of with respect to is denoted as Since a partial derivative generally has the same arguments as the original function, its functional dependence is sometimes explicitly signified by the notation, such as in:
The symbol used to denote partial derivatives is ∂. One of the first known uses of this symbol in mathematics is by Marquis de Condorcet from 1770, who used it for partial differences. The modern partial derivative notation was created by Adrien-Marie Legendre (1786), although he later abandoned it; Carl Gustav Jacob Jacobi reintroduced the symbol in 1841.
Definition
Like ordinary derivatives, the partial derivative is defined as a limit. Let U be an open subset of and a function. The partial derivative of f at the point with respect to the i-th variable xi is defined as
Where is the unit vector of i-th variable xi. Even if all partial derivatives 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, it is said that f is a C1 function. This can be used to generalize for vector valued functions, , by carefully using a componentwise argument.
The partial derivative can be seen as another function defined on U and can again be partially differentiated. If the direction of derivative is not repeated, it is called a mixed partial derivative. If all mixed second order partial derivatives are continuous at a point (or on a set), f is termed a C2 function at that point (or on that set); in this case, the partial derivatives can be exchanged by Clairaut's theorem:
Notation
For the following examples, let f be a function in x, y, and z.
First-order partial derivatives:
Second-order partial derivatives:
Second-order mixed derivatives:
Higher-order partial and mixed derivatives:
When dealing with functions of multiple variables, some of these variables may be related to each other, thus it may be necessary to specify explicitly which variables are being held constant to avoid ambiguity. In fields such as statistical mechanics, the partial derivative of f with respect to x, holding y and z constant, is often expressed as
Conventionally, for clarity and simplicity of notation, the partial derivative function and the value of the function at a specific point are conflated by including the function arguments when the partial derivative symbol (Leibniz notation) is used. Thus, an expression like
is used for the function, while
might be used for the value of the function at the point . However, this convention breaks down when we want to evaluate the partial derivative at a point like . In such a case, evaluation of the function must be expressed in an unwieldy manner as
or
in order to use the Leibniz notation. Thus, in these cases, it may be preferable to use the Euler differential operator notation with as the partial derivative symbol with respect to the i-th variable. For instance, one would write for the example described above, while the expression represents the partial derivative function with respect to the first variable.
For higher order partial derivatives, the partial derivative (function) of with respect to the j-th variable is denoted . That is, , so that the variables are listed in the order in which the derivatives are taken, and thus, in reverse order of how the composition of operators is usually notated. Of course, Clairaut's theorem implies that as long as comparatively mild regularity conditions on f are satisfied.
Gradient
An important example of a function of several variables is the case of a scalar-valued function on a domain in Euclidean space (e.g., on or ). In this case f has a partial derivative with respect to each variable xj. At the point a, these partial derivatives define the vector
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 produces a vector field.
A common abuse of notation is to define the del operator (∇) as follows in three-dimensional Euclidean space with unit vectors :
Or, more generally, for n-dimensional Euclidean space with coordinates and unit vectors :
Directional derivative
Example
Suppose that f is a function of more than one variable. For instance,
The graph of this function defines a surface in Euclidean space. To every point on this surface, there are an infinite number of tangent lines. 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 xz-plane, and those that are parallel to the yz-plane (which result from holding either y or x constant, respectively).
To find the slope of the line tangent to the function at P(1, 1) and parallel to the xz-plane, we treat y as a constant. The graph and this plane are shown on the right. Below, we see how the function looks on the plane y = 1. By finding the derivative of the equation while assuming that y is a constant, we find that the slope of f at the point (x, y) is:
So at (1, 1), by substitution, the slope is 3. Therefore,
at the point (1, 1). That is, the partial derivative of z with respect to x at (1, 1) is 3, as shown in the graph.
The function f can be reinterpreted as a family of functions of one variable indexed by the other variables:
In other words, every value of y defines a function, denoted fy, which is a function of one variable x. That is,
In this section the subscript notation fy denotes a function contingent on a fixed value of y, and not a partial derivative.
Once a value of y is chosen, say a, then f(x,y) determines a function fa which traces a curve x2 + ax + a2 on the xz-plane:
In this expression, a is a constant, not a variable, so fa is a function of only one real variable, that being x. Consequently, the definition of the derivative for a function of one variable applies:
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 x direction:
This is the partial derivative of f with respect to x. Here '∂' is a rounded 'd' called the partial derivative symbol; to distinguish it from the letter 'd', '∂' is sometimes pronounced "partial".
Higher order partial derivatives
Second and higher order partial derivatives are defined analogously to the higher order derivatives of univariate functions. For the function the "own" second partial derivative with respect to x is simply the partial derivative of the partial derivative (both with respect to x):: 316–318
The cross partial derivative with respect to x and y is obtained by taking the partial derivative of f with respect to x, and then taking the partial derivative of the result with respect to y, to obtain
Schwarz's theorem states that if the second derivatives are continuous, the expression for the cross partial derivative is unaffected by which variable the partial derivative is taken with respect to first and which is taken second. That is,
or equivalently
Own and cross partial derivatives appear in the Hessian matrix which is used in the second order conditions in optimization problems. The higher order partial derivatives can be obtained by successive differentiation
Antiderivative analogue
There is a concept for partial derivatives that is analogous to antiderivatives for regular derivatives. Given a partial derivative, it allows for the partial recovery of the original function.
Consider the example of
The so-called partial integral can be taken with respect to x (treating y as constant, in a similar manner to partial differentiation):
Here, the constant of integration is no longer a constant, but instead a function of all the variables of the original function except x. The reason for this is that all the other variables are treated as constant when taking the partial derivative, so any function which does not involve x will disappear when taking the partial derivative, and we have to account for this when we take the antiderivative. The most general way to represent this is to have the constant represent an unknown function of all the other variables.
Thus the set of functions , where g is any one-argument function, represents the entire set of functions in variables x, y that could have produced the x-partial derivative .
If all the partial derivatives of a function are known (for example, with the gradient), then the antiderivatives can be matched via the above process to reconstruct the original function up to a constant. Unlike in the single-variable case, however, not every set of functions can be the set of all (first) partial derivatives of a single function. In other words, not every vector field is conservative.
Applications
Geometry
The volume V of a cone depends on the cone's height h and its radius r according to the formula
The partial derivative of V with respect to r is
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 h equals , 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 V with respect to r and h are respectively
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,
This gives the total derivative with respect to r,
which simplifies to
Similarly, the total derivative with respect to h is
The total derivative with respect to both r and h of the volume intended as scalar function of these two variables is given by the gradient vector
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 π(x, y) with respect to the choice of the quantities x and y of two different types of output. The first order conditions for this optimization are πx = 0 = πy. Since both partial derivatives πx and πy will generally themselves be functions of both arguments x and y, 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 xi in the following example involving the Gibbs energies in a ternary mixture system:
Express mole fractions of a component as functions of other components' mole fraction and binary mole ratios:
Differential quotients can be formed at constant ratios like those above:
Ratios X, Y, Z of mole fractions can be written for ternary and multicomponent systems:
which can be used for solving partial differential equations like:
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
- d'Alembert operator
- Chain rule
- Curl (mathematics)
- Divergence
- Exterior derivative
- Iterated integral
- Jacobian matrix and determinant
- Laplace operator
- Multivariable calculus
- Symmetry of second derivatives
- Triple product rule, also known as the cyclic chain rule.
Notes
- Cajori, Florian (1952), A History of Mathematical Notations, vol. 2 (3 ed.), The Open Court Publishing Company, 596
- Miller, Jeff (n.d.). "Earliest Uses of Symbols of Calculus". In O'Connor, John J.; Robertson, Edmund F. (eds.). MacTutor History of Mathematics archive. University of St Andrews. Retrieved 2023-06-15.
- Spivak, M. (1965). Calculus on Manifolds. New York: W. A. Benjamin. p. 44. ISBN 9780805390216.
- R. Wrede; M.R. Spiegel (2010). Advanced Calculus (3rd ed.). Schaum's Outline Series. ISBN 978-0-07-162366-7.
- The applicability extends to functions over spaces without a metric and to differentiable manifolds, such as in general relativity.
- This can also be expressed as the adjointness between the product space and function space constructions.
- Chiang, Alpha C. (1984). Fundamental Methods of Mathematical Economics (3rd ed.). McGraw-Hill.
External links
- "Partial derivative", Encyclopedia of Mathematics, EMS Press, 2001 [1994]
- Partial Derivatives at MathWorld
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 used in vector calculus and differential geometry The partial derivative of a function f x y displaystyle f x y dots with respect to the variable x displaystyle x is variously denoted by fx displaystyle f x fx displaystyle f x xf displaystyle partial x f Dxf displaystyle D x f D1f displaystyle D 1 f xf displaystyle frac partial partial x f or f x displaystyle frac partial f partial x It can be thought of as the rate of change of the function in the x displaystyle x direction Sometimes for z f x y displaystyle z f x y ldots the partial derivative of z displaystyle z with respect to x displaystyle x is denoted as z x displaystyle tfrac partial z partial x Since a partial derivative generally has the same arguments as the original function its functional dependence is sometimes explicitly signified by the notation such as in fx x y f x x y displaystyle f x x y ldots frac partial f partial x x y ldots The symbol used to denote partial derivatives is One of the first known uses of this symbol in mathematics is by Marquis de Condorcet from 1770 who used it for partial differences The modern partial derivative notation was created by Adrien Marie Legendre 1786 although he later abandoned it Carl Gustav Jacob Jacobi reintroduced the symbol in 1841 DefinitionLike ordinary derivatives the partial derivative is defined as a limit Let U be an open subset of Rn displaystyle mathbb R n and f U R displaystyle f U to mathbb R a function The partial derivative of f at the point a a1 an U displaystyle mathbf a a 1 ldots a n in U with respect to the i th variable xi is defined as xif a limh 0f a1 ai 1 ai h ai 1 an f a1 ai an h limh 0f a hei f a h displaystyle begin aligned frac partial partial x i f mathbf a amp lim h to 0 frac f a 1 ldots a i 1 a i h a i 1 ldots a n f a 1 ldots a i dots a n h amp lim h to 0 frac f mathbf a h mathbf e i f mathbf a h end aligned Where ei displaystyle mathbf e i is the unit vector of i th variable xi Even if all partial derivatives f xi a displaystyle partial f partial x i 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 it is said that f is a C1 function This can be used to generalize for vector valued functions f U Rm displaystyle f U to mathbb R m by carefully using a componentwise argument The partial derivative f x textstyle frac partial f partial x can be seen as another function defined on U and can again be partially differentiated If the direction of derivative is not repeated it is called a mixed partial derivative If all mixed second order partial derivatives are continuous at a point or on a set f is termed a C2 function at that point or on that set in this case the partial derivatives can be exchanged by Clairaut s theorem 2f xi xj 2f xj xi displaystyle frac partial 2 f partial x i partial x j frac partial 2 f partial x j partial x i NotationFor the following examples let f be a function in x y and z First order partial derivatives f x fx xf displaystyle frac partial f partial x f x partial x f Second order partial derivatives 2f x2 fxx xxf x2f displaystyle frac partial 2 f partial x 2 f xx partial xx f partial x 2 f Second order mixed derivatives 2f y x y f x fx y fxy yxf y xf displaystyle frac partial 2 f partial y partial x frac partial partial y left frac partial f partial x right f x y f xy partial yx f partial y partial x f Higher order partial and mixed derivatives i j kf xi yj zk f i j k xi yj zkf displaystyle frac partial i j k f partial x i partial y j partial z k f i j k partial x i partial y j partial z k f When dealing with functions of multiple variables some of these variables may be related to each other thus it may be necessary to specify explicitly which variables are being held constant to avoid ambiguity In fields such as statistical mechanics the partial derivative of f with respect to x holding y and z constant is often expressed as f x y z displaystyle left frac partial f partial x right y z Conventionally for clarity and simplicity of notation the partial derivative function and the value of the function at a specific point are conflated by including the function arguments when the partial derivative symbol Leibniz notation is used Thus an expression like f x y z x displaystyle frac partial f x y z partial x is used for the function while f u v w u displaystyle frac partial f u v w partial u might be used for the value of the function at the point x y z u v w displaystyle x y z u v w However this convention breaks down when we want to evaluate the partial derivative at a point like x y z 17 u v v2 displaystyle x y z 17 u v v 2 In such a case evaluation of the function must be expressed in an unwieldy manner as f x y z x 17 u v v2 displaystyle frac partial f x y z partial x 17 u v v 2 or f x y z x x y z 17 u v v2 displaystyle left frac partial f x y z partial x right x y z 17 u v v 2 in order to use the Leibniz notation Thus in these cases it may be preferable to use the Euler differential operator notation with Di displaystyle D i as the partial derivative symbol with respect to the i th variable For instance one would write D1f 17 u v v2 displaystyle D 1 f 17 u v v 2 for the example described above while the expression D1f displaystyle D 1 f represents the partial derivative function with respect to the first variable For higher order partial derivatives the partial derivative function of Dif displaystyle D i f with respect to the j th variable is denoted Dj Dif Di jf displaystyle D j D i f D i j f That is Dj Di Di j displaystyle D j circ D i D i j so that the variables are listed in the order in which the derivatives are taken and thus in reverse order of how the composition of operators is usually notated Of course Clairaut s theorem implies that Di j Dj i displaystyle D i j D j i as long as comparatively mild regularity conditions on f are satisfied GradientAn important example of a function of several variables is the case of a scalar valued function f x1 xn displaystyle f x 1 ldots x n on a domain in Euclidean space Rn displaystyle mathbb R n e g on R2 displaystyle mathbb R 2 or R3 displaystyle mathbb R 3 In this case f has a partial derivative f xj displaystyle partial f partial x j with respect to each variable xj At the point a these partial derivatives define the vector f a f x1 a f xn a displaystyle nabla f a left frac partial f partial x 1 a ldots frac partial f partial x n a 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 produces a vector field A common abuse of notation is to define the del operator as follows in three dimensional Euclidean space R3 displaystyle mathbb R 3 with unit vectors i j k displaystyle hat mathbf i hat mathbf j hat mathbf k x i y j z k displaystyle nabla left frac partial partial x right hat mathbf i left frac partial partial y right hat mathbf j left frac partial partial z right hat mathbf k Or more generally for n dimensional Euclidean space Rn displaystyle mathbb R n with coordinates x1 xn displaystyle x 1 ldots x n and unit vectors e 1 e n displaystyle hat mathbf e 1 ldots hat mathbf e n j 1n xj e j x1 e 1 x2 e 2 xn e n displaystyle nabla sum j 1 n left frac partial partial x j right hat mathbf e j left frac partial partial x 1 right hat mathbf e 1 left frac partial partial x 2 right hat mathbf e 2 dots left frac partial partial x n right hat mathbf e n Directional derivativeThis section is an excerpt from Directional derivative Definition edit A contour plot of f x y x2 y2 displaystyle f x y x 2 y 2 showing the gradient vector in black and the unit vector u displaystyle mathbf u scaled by the directional derivative in the direction of u displaystyle mathbf u in orange The gradient vector is longer because the gradient points in the direction of greatest rate of increase of a function The directional derivative of a scalar function f x f x1 x2 xn displaystyle f mathbf x f x 1 x 2 ldots x n along a vector v v1 vn displaystyle mathbf v v 1 ldots v n is the function vf displaystyle nabla mathbf v f defined by the limit vf x limh 0f x hv f x h displaystyle nabla mathbf v f mathbf x lim h to 0 frac f mathbf x h mathbf v f mathbf x h This definition is valid in a broad range of contexts for example where the norm of a vector and hence a unit vector is undefined ExampleSuppose that f is a function of more than one variable For instance z f x y x2 xy y2 displaystyle z f x y x 2 xy y 2 A graph of z x2 xy y2 For the partial derivative at 1 1 that leaves y constant the corresponding tangent line is parallel to the xz plane A slice of the graph above showing the function in the xz plane at y 1 The two axes are shown here with different scales The slope of the tangent line is 3 The graph of this function defines a surface in Euclidean space To every point on this surface there are an infinite number of tangent lines 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 xz plane and those that are parallel to the yz plane which result from holding either y or x constant respectively To find the slope of the line tangent to the function at P 1 1 and parallel to the xz plane we treat y as a constant The graph and this plane are shown on the right Below we see how the function looks on the plane y 1 By finding the derivative of the equation while assuming that y is a constant we find that the slope of f at the point x y is z x 2x y displaystyle frac partial z partial x 2x y So at 1 1 by substitution the slope is 3 Therefore z x 3 displaystyle frac partial z partial x 3 at the point 1 1 That is the partial derivative of z with respect to x at 1 1 is 3 as shown in the graph The function f can be reinterpreted as a family of functions of one variable indexed by the other variables f x y fy x x2 xy y2 displaystyle f x y f y x x 2 xy y 2 In other words every value of y defines a function denoted fy which is a function of one variable x That is fy x x2 xy y2 displaystyle f y x x 2 xy y 2 In this section the subscript notation fy denotes a function contingent on a fixed value of y and not a partial derivative Once a value of y is chosen say a then f x y determines a function fa which traces a curve x2 ax a2 on the xz plane fa x x2 ax a2 displaystyle f a x x 2 ax a 2 In this expression a is a constant not a variable so fa is a function of only one real variable that being x Consequently the definition of the derivative for a function of one variable applies fa x 2x a displaystyle f a x 2x a 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 x direction f x x y 2x y displaystyle frac partial f partial x x y 2x y This is the partial derivative of f with respect to x Here is a rounded d called the partial derivative symbol to distinguish it from the letter d is sometimes pronounced partial Higher order partial derivativesSecond and higher order partial derivatives are defined analogously to the higher order derivatives of univariate functions For the function f x y displaystyle f x y the own second partial derivative with respect to x is simply the partial derivative of the partial derivative both with respect to x 316 318 2f x2 f x x fx x fxx displaystyle frac partial 2 f partial x 2 equiv partial frac partial f partial x partial x equiv frac partial f x partial x equiv f xx The cross partial derivative with respect to x and y is obtained by taking the partial derivative of f with respect to x and then taking the partial derivative of the result with respect to y to obtain 2f y x f x y fx y fxy displaystyle frac partial 2 f partial y partial x equiv partial frac partial f partial x partial y equiv frac partial f x partial y equiv f xy Schwarz s theorem states that if the second derivatives are continuous the expression for the cross partial derivative is unaffected by which variable the partial derivative is taken with respect to first and which is taken second That is 2f x y 2f y x displaystyle frac partial 2 f partial x partial y frac partial 2 f partial y partial x or equivalently fyx fxy displaystyle f yx f xy Own and cross partial derivatives appear in the Hessian matrix which is used in the second order conditions in optimization problems The higher order partial derivatives can be obtained by successive differentiationAntiderivative analogueThere is a concept for partial derivatives that is analogous to antiderivatives for regular derivatives Given a partial derivative it allows for the partial recovery of the original function Consider the example of z x 2x y displaystyle frac partial z partial x 2x y The so called partial integral can be taken with respect to x treating y as constant in a similar manner to partial differentiation z z xdx x2 xy g y displaystyle z int frac partial z partial x dx x 2 xy g y Here the constant of integration is no longer a constant but instead a function of all the variables of the original function except x The reason for this is that all the other variables are treated as constant when taking the partial derivative so any function which does not involve x will disappear when taking the partial derivative and we have to account for this when we take the antiderivative The most general way to represent this is to have the constant represent an unknown function of all the other variables Thus the set of functions x2 xy g y displaystyle x 2 xy g y where g is any one argument function represents the entire set of functions in variables x y that could have produced the x partial derivative 2x y displaystyle 2x y If all the partial derivatives of a function are known for example with the gradient then the antiderivatives can be matched via the above process to reconstruct the original function up to a constant Unlike in the single variable case however not every set of functions can be the set of all first partial derivatives of a single function In other words not every vector field is conservative ApplicationsGeometry The volume of a cone depends on height and radius The volume V of a cone depends on the cone s height h and its radius r according to the formula V r h pr2h3 displaystyle V r h frac pi r 2 h 3 The partial derivative of V with respect to r is V r 2prh3 displaystyle frac partial V partial r frac 2 pi rh 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 h equals 13pr2 textstyle 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 V with respect to r and h are respectively dVdr 2prh3 V r pr23 V hdhdr dVdh pr23 V h 2prh3 V rdrdh displaystyle begin aligned frac dV dr amp overbrace frac 2 pi rh 3 frac partial V partial r overbrace frac pi r 2 3 frac partial V partial h frac dh dr frac dV dh amp overbrace frac pi r 2 3 frac partial V partial h overbrace frac 2 pi rh 3 frac partial V partial r frac dr dh end aligned 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 k hr dhdr displaystyle k frac h r frac dh dr This gives the total derivative with respect to r dVdr 2prh3 pr23k displaystyle frac dV dr frac 2 pi rh 3 frac pi r 2 3 k which simplifies to dVdr kpr2 displaystyle frac dV dr k pi r 2 Similarly the total derivative with respect to h is dVdh pr2 displaystyle frac dV dh pi r 2 The total derivative with respect to both r and h of the volume intended as scalar function of these two variables is given by the gradient vector V V r V h 23prh 13pr2 displaystyle 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 p x y with respect to the choice of the quantities x and y of two different types of output The first order conditions for this optimization are px 0 py Since both partial derivatives px and py will generally themselves be functions of both arguments x and y 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 Schrodinger 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 xi in the following example involving the Gibbs energies in a ternary mixture system G2 G 1 x2 G x2 x1x3 displaystyle bar G 2 G 1 x 2 left frac partial G partial x 2 right frac x 1 x 3 Express mole fractions of a component as functions of other components mole fraction and binary mole ratios x1 1 x21 x3x1x3 1 x21 x1x3 textstyle begin aligned x 1 amp frac 1 x 2 1 frac x 3 x 1 x 3 amp frac 1 x 2 1 frac x 1 x 3 end aligned Differential quotients can be formed at constant ratios like those above x1 x2 x1x3 x11 x2 x3 x2 x1x3 x31 x2 displaystyle begin aligned left frac partial x 1 partial x 2 right frac x 1 x 3 amp frac x 1 1 x 2 left frac partial x 3 partial x 2 right frac x 1 x 3 amp frac x 3 1 x 2 end aligned Ratios X Y Z of mole fractions can be written for ternary and multicomponent systems X x3x1 x3Y x3x2 x3Z x2x1 x2 displaystyle begin aligned X amp frac x 3 x 1 x 3 Y amp frac x 3 x 2 x 3 Z amp frac x 2 x 1 x 2 end aligned which can be used for solving partial differential equations like m2 n1 n2 n3 m1 n2 n1 n3 displaystyle 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 alsod Alembert operator Chain rule Curl mathematics Divergence Exterior derivative Iterated integral Jacobian matrix and determinant Laplace operator Multivariable calculus Symmetry of second derivatives Triple product rule also known as the cyclic chain rule NotesCajori Florian 1952 A History of Mathematical Notations vol 2 3 ed The Open Court Publishing Company 596 Miller Jeff n d Earliest Uses of Symbols of Calculus In O Connor John J Robertson Edmund F eds MacTutor History of Mathematics archive University of St Andrews Retrieved 2023 06 15 Spivak M 1965 Calculus on Manifolds New York W A Benjamin p 44 ISBN 9780805390216 R Wrede M R Spiegel 2010 Advanced Calculus 3rd ed Schaum s Outline Series ISBN 978 0 07 162366 7 The applicability extends to functions over spaces without a metric and to differentiable manifolds such as in general relativity This can also be expressed as the adjointness between the product space and function space constructions Chiang Alpha C 1984 Fundamental Methods of Mathematical Economics 3rd ed McGraw Hill External links Partial derivative Encyclopedia of Mathematics EMS Press 2001 1994 Partial Derivatives at MathWorld