Partial Derivative
The partial derivative of a function (in two or more variables) is its derivative with respect to one of the variables keeping all the other variables as constants. The process of calculating partial derivative is as same as that of an ordinary derivative except we consider the other variables than the variable with respect to which we are differentiating as constants.
Let us learn more about how to calculate partial derivatives of different orders along with examples.
What is Partial Derivative?
The partial derivative of a multivariable function, say z = f(x, y), is its derivative with respect to one of the variables, x or y in this case, where the other variables are treated as constants. For example,
- for finding the partial derivative of f(x, y) with respect to x (which is represented by ∂f / ∂x), y is treated as constant and
- for finding the partial derivative of f(x, y) with respect to y (which is represented by ∂f / ∂y), x is treated as constant
Note that we are not considering all the variables as variables while doing partial differentiation (instead, we are considering only one variable as a variable at a time) and hence the name "partial". The limit definition of a partial derivative looks very similar to the limit definition of the derivative. We can find the partial derivatives using the following limit formulas:
- ∂f / ∂x = lim h → 0 [ f(x + h, y) - f(x, y) ] / h
- ∂f / ∂y = lim h → 0 [ f(x, y + h) - f(x, y) ] / h
These formulas resemble the derivative definition using the first principle.
Example of Partial Derivative
If f (x, y) = xy, then find the partial derivative ∂f / ∂x.
Solution:
∂f / ∂x = lim h → 0 [ f(x + h, y) - f(x, y) ] / h
= lim h → 0 [ (x + h)y - xy ] / h
= lim h → 0 [xy + hy - xy] / h
= lim h → 0 [hy]/h
= lim h → 0 y
= y
Therefore, ∂f / ∂x = y.
Partial Derivative Symbol
We know that the ordinary derivative of a function y = f(x) is denoted by one of the notations dy/dx, d/dx (y), d/dx (f(x)), f '(x), etc. For representing a partial derivative we use the symbol "∂" instead of "d". We pronounce "∂" to be "doh" but it has some other names like "partial", "del", "partial dee", "dee", "Jacobi's delta", etc. If z = f(x, y) is a function in two variables then
- ∂f / ∂x is the partial derivative of f with respect to x
- ∂f / ∂y is the partial derivative of f with respect to y
Just like how we have different symbols of ordinary derivatives, we have different notations for partial derivatives as well. For example, ∂f / ∂x can be written as fx, fx', Dxf, ∂ / ∂x (f), ∂x f, ∂ / ∂x [f(x, y)], ∂z / ∂x, etc.
Calculate Partial Derivatives
We have already seen that the limit definitions are used to find the partial derivatives. But using the limit formula and computing the limit is not always easy. Thus, we have another method to calculate partial derivatives that follow right from its definition. In this method, if z = f(x, y) is the function, then we can compute the partial derivatives using the following steps:
- Step 1: Identify the variable with respect to which we have to find the partial derivative.
- Step 2: Except for the variable found in Step 1, treat all the other variables as constants.
- Step 3: Differentiate the function just using the rules of ordinary differentiation.
Wait! Read Step 3 again. Yes, the rules of ordinary differentiation are as same as that of partial differentiation. In partial differentiation, just treating variables is different, that's it!
Example: Let us solve the same above example (If f (x, y) = xy, then find the partial derivative ∂f / ∂x) using the above steps.
Solution:
We have to find ∂f / ∂x. It means, we have to find the partial derivative of f with respect to x. So we treat y as constant. Thus, we can write 'y' outside the derivative (as in ordinary differentiation, we have a rule that says d/dx (c y) = c dy/dx, where 'c' is a constant). Thus,
∂f / ∂x = ∂ / ∂x (xy)
= y ∂ / ∂x (x)
= y (1) (Using power rule, d/dx (x) = 1)
= y
We have got the same answer as we got using the limit definition.
Partial Derivatives of Different Orders
We have derivatives like first-order derivatives (like dy/dx), second-order derivatives (like d2y/dx2), etc in ordinary derivatives. Likewise, we have first-order, second-order, and higher-order derivatives in partial derivatives also.
First Order Partial Derivatives
If z = f(x, y) is a function in two variables, then it can have two first-order partial derivatives, namely ∂f / ∂x and ∂f / ∂y.
Example: If z = x2 + y2, find all the first order partial derivatives.
Solution:
fx = ∂f / ∂x = ∂ / ∂x (x2 + y2)
= ∂ / ∂x (x2) + ∂ / ∂x (y2)
= 2x + 0 (as y is a constant)
= 2x
fy = ∂f / ∂y = ∂ / ∂y (x2 + y2)
= ∂ / ∂y (x2) + ∂ / ∂y (y2)
= 0 + 2y (as x is a constant)
= 2y
Second Order Partial Derivatives
The second-order partial derivative is obtained by differentiating the function with respect to the indicated variables successively one after the other. If z = f(x, y) is a function in two variables, then it can have four second-order partial derivatives, namely ∂2f / ∂x2, ∂2f / ∂y2, ∂2f / ∂x ∂y and ∂2f / ∂y ∂x. To find them, we can first differentiate the function partially with the latter variable, and then partially differentiate the result with respect to the former variable. i.e.,
- fxx = ∂2f / ∂x2 = ∂ / ∂x (∂f / ∂x) = ∂ / ∂x (fx)
- fyy = ∂2f / ∂y2 = ∂ / ∂y (∂f / ∂y) = ∂ / ∂x (fy)
- fyx = ∂2f / ∂x ∂y = ∂ / ∂x (∂f / ∂y) = ∂ / ∂x (fy)
- fxy = ∂2f / ∂y ∂x = ∂ / ∂y (∂f / ∂x) = ∂ / ∂y (fx)
Observe the notations fyx and fxy. The order of variables in each subscript indicate the order of partial differentiation. For example, fyx means to partially differentiate with respect to y first and then with respect to x, and this is same as ∂2f / ∂x ∂y.
Example: If z = x2 + y2, find all the second order partial derivatives.
Solution:
In the above example, we have already found that fx = 2x and fy = 2y.
Now, fxx = ∂ / ∂x (fx) = ∂ / ∂x (2x) = 2
fyy = ∂ / ∂y (fy) = ∂ / ∂y (2y) = 2
fyx = ∂ / ∂x (fy) = ∂ / ∂x (2y) = 0
fxy = ∂ / ∂y (fx) = ∂ / ∂y (2x) = 0
Now that fyx = fxy. Thus, the order of partial differentiation doesn't matter.
Partial Differentiation Formulas
The process of finding partial derivatives is known as Partial Differentiation. To find the first-order partial derivatives (as discussed earlier) of a function z = f(x, y) we use the following limit formulas:
- ∂f / ∂x = lim h → 0 [ f(x + h, y) - f(x, y) ] / h
- ∂f / ∂y = lim h → 0 [ f(x, y + h) - f(x, y) ] / h
But instead of using these formulas, just treating all the other variables than the variable with respect to which we are partially differentiating as constants would make the process of partial differentiation very easier. In this process, we just use the same rules as ordinary differentiation and among them, the important rules are as follows:
Power Rule
The power rule of differentiation says d/dx (xn) = n xn-1. The same rule can be applied in partial derivatives also.
Example: ∂ / ∂x (x2y) = y ∂ / ∂x (x2) = y (2x) = 2xy.
Product Rule
The product rule of ordinary differentiation says d/dx (uv) = u dv/dx + v du/dx. We can apply the same rule in partial differentiation as well when there are two functions of the same variable.
Example: ∂ / ∂x (xy sin x) = y ∂ / ∂x (x sin x)
= y [ x ∂ / ∂x (sin x) + sin x ∂ / ∂x (x) ]
= y [ x cos x + sin x]
Quotient Rule
The quotient rule of ordinary differentiation says d/dx (u/v) = [ v du/dx - u dv/dx ] / v2. As other rules, this rule can be applied for finding partial derivatives also.
Example: ∂ / ∂x ( xy / sin x)
= y ∂ / ∂x (x / sin x)
= y [ ( sin x ∂ / ∂x (x) - x ∂ / ∂x (sin x) ) / sin2x ]
= y [ sin x - x cos x] / sin2x
Chain Rule of Partial Differentiation
The chain rule is used when we have to differentiate an implicit function. The chain rule of partial derivatives works a little differently when compared to ordinary derivatives. Sometimes, the rule involves both partial derivatives and ordinary derivatives. There are various forms of this rule and the application of one of them depends upon how each variable of the function is defined.
- If y = f(x) is a function where x is again a function of two variables u and v (i.e., x = x (u, v)) then
∂f/∂u = ∂f/∂x · ∂x/∂u;
∂f/∂v = ∂f/∂x · ∂x/∂v -
If z = f(x, y), where each of x and y are again functions of a variable t (i.e., x = x(t) and y = y(t)) then
df/dt = (∂f/∂x · dx/dt) + (∂f/∂y · dy/dt) -
If z = f(x, y) is a function and each of x and y are again functions of two variables u and v (i.e., x = x(u, v) and y = y(u, v)) then
∂f/∂u = ∂f/∂x · ∂x/∂u + ∂f/∂y · ∂y/∂u;
∂f/∂v = ∂f/∂x · ∂x/∂v + ∂f/∂y · ∂y/∂v
Example: If z = exy, where x = uv and y = u + v then find the partial derivative ∂f/∂u.
Solution:
By the chain rule of partial derivatives:
∂f/∂u = ∂f/∂x · ∂x/∂u + ∂f/∂y · ∂y/∂u
= ∂ / ∂x (exy) · ∂ / ∂u (uv) + ∂ / ∂y (exy) · ∂ / ∂u (u + v)
= (exy · y) (v) + (exy · x) (1)
= exy (x + vy)
Other Rules of Partial Differentiation
- If f(x, y) = a constant, then the following formula gives the relation between the ordinary derivative and the partial derivatives which follows from implicit differentiation.
dy/dx = -fx/fy. - For any two functions u(x, y) and v(x, y), the determinant \(\left|\begin{array}{ll}
\partial u / \partial x & \partial u / \partial y \\
\partial v / \partial x & \partial v / \partial y
\end{array}\right|\) is known as Jacobian of u and v. - The Laplace equation of partial derivatives is ∂2f / ∂x2 + ∂2f / ∂y2 + ∂2f / ∂z2 = 0 where f(x, y, z) is a function in three variables. Any function f that satisfies the Laplace equation is known as the harmonic function.
Important Notes on Partial Derivatives:
- While finding the partial derivative with respect to a variable, all the other variables should be considered as constants.
- The order of taking derivatives doesn't matter in partial derivatives. i.e., ∂2f / ∂x ∂y = ∂2f / ∂y ∂x.
- The rules of derivatives apply for partial differentiation as well.
- Instead of using the limit definition, applying derivative formulas make the process of finding the partial derivatives easier.
☛ Related Topics:
Partial Derivative Examples
-
Example 1: Find all the first order partial derivatives of the function f(x, y) = ax2 + 2hxy + by2.
Solution:
The first-order partial derivatives are:
fx = ∂f / ∂x = ∂ / ∂x (ax2 + 2hxy + by2)
= ∂ / ∂x (ax2) + ∂ / ∂x (2hxy) + ∂ / ∂x (by2)
= 2ax + 2hy (1) + 0 (as y is a constant)
= 2ax + 2hyfx = ∂f / ∂x = ∂ / ∂x (ax2 + 2hxy + by2)
= ∂ / ∂y (ax2) + ∂ / ∂y (2hxy) + ∂ / ∂y (by2)
= 0 + 2hx (1) + 2by (as x is a constant)
= 2hx + 2byAnswer: fx = 2ax + 2hy and fy = 2hx + 2by.
-
Example 2: Find all the second-order partial derivatives of the function given in Example 1.
Solution:
We found in Example 1 that fx = 2ax + 2hy and fy = 2hx + 2by. Now, we will find the second-order partial derivatives.
fxx = ∂ / ∂x (fx) = ∂ / ∂x (2ax + 2hy) = 2a
fyy = ∂ / ∂y (fy) = ∂ / ∂y (2hx + 2by) = 2b
fyx = ∂ / ∂x (fy) = ∂ / ∂x (2hx + 2by) = 2h
fxy = ∂ / ∂y (fx) = ∂ / ∂y (2ax + 2hy) = 2h
Answer: We found that fxx = 2a, fyy = 2b, fyx = 2h, and fxy = 2h.
-
Example 3: Does the order of differentiation matter while finding the partial derivatives? Justify your answer using Example 2.
Solution:
From Example 2, fyx = 2h and fxy = 2h.
Thus, fxy = fxy.
Thus, the order of partial differentiation doesn't matter.
Answer: The order doesn't matter as fyx = fxy.
FAQs on Partial Derivative
How to Calculate Partial Derivatives?
We use partial derivatives when the function has more than one variable. If a function f is in terms of two variables x and y, then we can calculate the partial derivatives as follows.
- the partial derivative of f = ∂f/∂x and y has to be treated as constant here.
- the partial derivative of f = ∂f/∂y and x has to be treated as constant here.
What is the Symbol of Partial Derivatives?
We use the symbol ∂ to represent a partial derivative. For example, the partial derivative of a function f(x, y) with respect to x is written as ∂f/∂x.
What is the Difference Between Differentiation and Partial Differentiation?
We talk about the derivative of a function if a function has only one variable in it. For example, the derivative of a function y = f(x) is denoted by df/dx. We talk about partial derivatives when a function z = f(x, y) has more than one variable. The partial derivative of f with respect to x is denoted by ∂f/∂x and while finding this, we treat y as constant.
What is the Formula Used to Find the Partial Derivative?
The partial derivatives of a function z = f(x, y) can be found using the limit formulas:
- ∂f / ∂x = lim h → 0 [ f(x + h, y) - f(x, y) ] / h
- ∂f / ∂y = lim h → 0 [ f(x, y + h) - f(x, y) ] / h
What Does Partial Derivative Tell Us?
Partial derivative tells us to differentiate a function partially. It means if we are differentiating partially with respect to one variable, then the remaining variables of the function must be treated as constants.
What is the Chain Rule of Partial Derivatives?
The chain rule of partial derivative is mentioned below: If z = f(x, y) is a function where x and y are functions of two variables u and v (i.e., x = x(u, v) and y = y(u, v)) then by the chain rule of partial derivatives,
- ∂f/∂u = ∂f/∂x · ∂x/∂u + ∂f/∂y · ∂y/∂u
- ∂f/∂v = ∂f/∂x · ∂x/∂v + ∂f/∂y · ∂y/∂v
What is the Formula that Connects Normal Derivatives with Partial Derivatives?
When f(x, y) = c, where 'c' is a constant, then dy/dx = -fx/fy, where
- fx is the partial derivative of f with respect to x
- fy is the partial derivative of f with respect to y
visual curriculum