Partial Derivatives – Definition, Properties, and Example

Knowing how to calculate partial derivatives allows one to study and understand the behavior of multivariable functions.   This opens a wide range of applications in Calculus such as the tangent planes, Lagrange multipliers, and more. For now, it’s important that we have a strong understanding of partial differentiation.The partial derivatives allow us to understand how a multivariable function changes with respect to a specific variable.  Partial differentiation works by treating the rest of the variables as constant.In this article, we’ll cover the fundamentals of partial derivatives. This includes the partial derivative’s formal definition, common notations, and the techniques we can apply to calculate first-order, second-order, and even higher-order partial derivatives of different functions!

What Is a Partial Derivative?

The partial derivative of a function represents the derivative of the function with respect to one of the function’s variables. There are instances when functions are defined by more than one independent variable. For multivariable functions, their values will change when one or more of the input values change.f(x,y)=x2y+2xyy2g(x,y)=sinxycosxyh(x,y,z)=x22xyz+yz+z2For us to calculate the rate of change of these functions with respect to one variable, we’ll have to hold the remaining variables constant. We call this process partial differentiation and the rate of change to be the partial derivative of the function with respect to the variable we’re studying.graph of multivariable functionsHere’s an example of the curve formed by a function with two variables: f(x,y)=x2+y2. If we set y to be equal to 1, we’ll be focusing on the plane that contains all values of f(x,y) where y=1. When this happens, we’re working with f(x,1)=x2+1,  and it’ll be easier for us to measure the rate of change of f(x,y) with respect to x.We’ll be using a similar process to calculate the partial derivatives of multivariable functions. To establish the partial derivative’s formal definition, we need to better understand how variables affect multivariable functions such as f(x,y)=x2y+2xyy2. So, why don’t we construct a table of values highlighting key values of x and y?
xy21012
241014
120026
041014
1104022
22090712
We’ve highlighted one column and one row to focus our understanding on what happens when we set either x or y as a constant variable. Let’s say we want to observe a focus on the behavior of f(x,y) when y=1. We can estimate f(x) when x=1 by the formal definition of rates of change as shown below.f(1)=limh0f(1+h)f(1)h=limh0f(1+h,1)f(1,1)hWe can approximate the rate of change with respect to x by using h=1 and h=1.
h=1h=1
f(1)=f(1+1)f(1)1=f(1+1,1)f(1,1)1=f(0,1)f(1,1)1=141=5f(1)=f(1+1)f(1)1=f(1+1,1)f(1,1)1=f(2,1)f(1,1)1=941=5
From this, we can see that the derivative of f(1) is approximately equal to 5.  What does this mean? When x=1 and y=1, the average value of f(x,y) decreases by 5 for every value of x and y increases.Now, let’s expand our understanding of partial derivatives by formally defining them in terms of limits then eventually set up a simpler process to represent partial derivatives.

Partial Derivative Definition

To understand the underlying principles behind partial derivatives, let’s first understand the formal definition of partial derivatives through limits. Let’s say we have a continuous function, z=f(x,y), we can define the following:i. The partial derivative of f(x,y) with respect to x can be defined as:fx(x,y)=limh0f(x+h,y)f(x,y)hii. The partial derivative of f(x,y) with respect to y can be defined as:fy(x,y)=limh0f(x,y+h)f(x,y)hFor example, we can show that when f(x,y)=x2+y2, fx(x,y)=2x by using the limit-based definition of f(x,y) as shown below.fx(x,y)=limh0f(x+h,y)f(x,y)h=limh0(x+h)2+y2(x2+y2)h=limh0x2+2xh+h2+y2x2y2h=limh02xh+h2h=limh0h(2x+h)h=limh0(2x+h)=2xThis confirms that the partial derivative of f(x,y) with respect to x is equal to 2x. As with our derivative lessons in the past, calculating the derivative of a function is tedious if we use the limit-based definition. This is why it’s important that we establish easier notations and processes for partial differentiation.

Partial Derivative Notation

There are different notations we can use to represent partial derivatives. One of the most common notations is fx or fy. We call the symbol , “del”, and this is one of the surest ways to know that we’re evaluating the partial derivative of the function.Let’s say we have f(x,y)=2x24xy+y2, we can represent the partial derivatives:
  • with respect to x as fx
  • with respect to y as fy
fxfy
fx=x(2x24xy+y2)Take the derivative of xxxxTreaty as a constant=2(2x)4(1)y+0=4x4yfy=y(2x24xy+y2)Take the derivative of yxxxTreatx as a constant=04x(1)+2y=4x+2y=2y4x
 There are other ways for us to represent partial derivatives such as fx or f1. For f1, the number represents the order of the variable, so for this case, we want to take the partial derivative of f with respect to the first variable.
Suppose that z=f(x,y) is a continuous function, we can write their partial derivatives using any of the following notations:fx(x,y)=fx=xf(x,y)=zx=f1=D1f=Dxffy(x,y)=fy=yf(x,y)=zy=f2=D2f=Dyf
Here are some common phrases you’ll hear when working with fx:
  • “Del f over del x.”
  • “Partial of f with respect to x.”
  • “The partial derivative of f with respect to x.”
  • “Partial derivative of f with respect to the first variable.”
In the past, we’ve learned about second derivatives and higher order derivatives. The concept can be extended to partial derivatives, but this time, we can have mixed partial derivatives such as fxy or fyx. Let us summarize the notations for second partial derivatives:i. The second partial derivative of f(x,y) with respect to x then x can be represented as:x(fx)=2fx2=fxxii. The second partial derivative of f(x,y) with respect to y then y can be represented as:y(fy)=2fy2=fyyiii. The second partial derivative of f(x,y) with respect to x then y can be represented as:y(fx)=2fyx=fxyiv. The second partial derivative of f(x,y) with respect to y then x can be represented as:x(fy)=2fxy=fyxKeep in mind that these notations will only be valid when the limit exists for each condition. We can also apply a similar process to represent higher-order partial derivatives, but for now, let’s understand how we can calculate partial derivatives and second partial derivatives.

How To Do Partial Derivatives?

We can calculate partial derivatives by applying the definition of partial differentiation. Keep in mind that we only need to find the derivative of functions with respect to one variable by keeping the rest of the variables constant.Here are some pointers to remember when calculating first-order partial derivatives:
  • Identify the variable we’re differentiating. For example, when working with fx, we different f(x) with respect to x.
  • Treat the rest of the variables as constants.
  • Apply fundamental derivative rules to different f(x) with respect to our variable.
This means that when we’re given f(x,y)=2x2y4xy, we can calculate their partial derivatives with respect to x by treating x as the sole variable and y as a constant. Apply the appropriate derivative rules we need to simplify the expression.fx=x(2x2y4xy)=2(2x21)y4(1)y=4xy4yWe can use a similar process to evaluate fy – differentiate f(x,y) with respect to y and by treating x as a constant.fy=y(2x2y4xy)=2x2(1)4x(1)=2x24xHence, the partial derivatives of f(x,y) are:
  1. fx=fx=4xy4
  2. fy=fy=2x24x
Now, let’s break down the steps of taking second order partial derivatives such as fv2v1=(fv1)v2.
  • Start differentiating f(x) with respect to the first variable, v1.
  • Differentiate the resulting expression with respect to v2 and treating v1 as constant.
Let us show you two examples on how we can evaluate second order partial derivatives: finding 1) 2fx2 and 2) 2fxy of the function, f(x,y)=12x2y3xy2.For the first problem, 2fx2, we need to take the derivative of f(x,y) with respect to x twice. For two consecutive partial derivatives, we’ll consider y as a constant and only work on differentiating terms with respect to x.2fx2=2x2(12x2y3xy2)=x[x(12x2y3xy2)]=x[12(2x)y3(1)y2]=x(24xy3y2)Now, differentiate the resulting expression with respect to x once more.x(24xy3y2)=24(1)y0=24yThis means that 2x2f(x,y) is equal to 24y. When asked to determine 2fy2, apply a similar process but this time, we’ll consider x as the constant.Let’s now move on to 2fxy – it helps to rewrite 2fxy as x(fy) to guide you in determining the order of the operation.fxy=x(fy)=x[y(12x2y3xy2)]=x[12x2(1)3x(2y)]=x(12x26xy)After differentiating f(x,y) with respect to y, differentiate the resulting expression with respect to x.x(12x26xy)=12(2x)6y(1)=24x6yThis example shows how we can apply the partial derivatives twice in a row to evaluate second-order partial derivatives. We can apply a similar process when evaluating multiple order partial derivatives, but we’ll leave that for you to work on in the section below!Example 1Use the formal definition of partial derivative to find fx(x,y) when we have the function, f(x,y)=xy2+x2y. SolutionAs we have discussed earlier, we can define the partial derivative of a function in terms of limits as shown below.fx(x,y)=limh0f(x+h,y)f(x,y)hUse this definition then simplify the numerator as shown below.fx(x,y)=limh0f(x+h,y)f(x,y)h=limh0(x+h)y2+(x+h)2y(xy2+x2y)h=limh0(xy2+y2h)+(x2+2xh+h2)yxy2x2yh=limh0xy2+y2h+x2y+2xhy+h2yxy2x2yhCancel the common factor, h, shared by the numerator and denominator then evaluate the limit of the resulting expression as h0.fx(x,y)=limh0y2+2xy+hy=y2+2xyThis means that the partial derivative of f(x,y) with respect to x is equal to y2+2xy.Example 2Determine all of the first-order partial derivatives of the following functions.a. f(x,y)=x32y+5x6 b. f(x,y,z)=x2y+6yz26sinxcosy+8xzSolutionWe’re being asked to write down all of the first-order partial derivatives of each of the functions, so for our first function, we need to determine fx and fy.
  • To calculate fx or fx(x,y), we’ll take the derivative of the function with respect to x by treating y as a constant.
  • Similarly, we can calculate fy or fy(x,y) by treating x as a constant.
We’ll summarize the calculations for the two partial derivatives of f(x,y) in this table. Apply the derivative rules we’ve learned in the past.
fx=fx(x,y)xf(x,y)=fx(x32y+5x6)=(3x2)0+(5x11)0=3x25x2=3x25x2
fy=fy(x,y)xf(x,y)=fy(02y+5x6)=x3(212y121)+0+(0)=y12=1y
a. This means that the partial derivatives of f(x,y) are: fx=3x25x2 and fy=1y.For the second item, we’re now working with three components, so we’re expecting three partial derivatives. Apply the same process – taking the derivative with respect to x, y, or z then treating the rest of the variables constant.Here’s a summary of our calculation for all three partial derivatives:
fx=fx(x,y,z)xf(x,y,z)=fx(x2y+6yz26sinxcosy+8xz)=(2x)y+06(cosx)cosy+(81)z=2xy6cosxcosy+8z
fy=fy(x,y,z)xf(x,y,z)=fy(x2y+6yz26sinxcosy+8xz)=x2(1)+6(1)z26sinxsiny+0=x2+6z2+6sinxsiny
fy=fz(x,y,z)xf(x,y,z)=fz(x2y+6yz26sinxcosy+8xz)=0+6y(2z)0+8x(1)=12yz+8x
b. Hence, f(x,y,z)=x2y+6yz26sinxcosy+8xz has the following partial derivatives: fx=2xy6cosxcosy+8z, fy=x2+6z2+6sinxsiny, and 12yz+8x.Example 3Suppose that we have f(x,y,z)=x2y4z2x2y+12xy2z2, determine the following higher order partial derivatives:a. 2fy2 b. 2fxz c. 3fyxzSolutionTo evaluate 2fy2, we’ll need to differentiate f(x,y,z) with respect to y twice in a row. Treat both x and z as constant values as shown below.2fy2=y(fy)=y[y(x2y4z2x2y+12xy2z2)]=y[x2(4y3)z2x2(1)+12xz2(2y)]=y(4x2y3z2x2+24xyz2)Repeat the process to find the expression for 2fy2.2fy2=y(4x2y3z2x2+24xyz2)=4x2(3y2)z0+24xz2(1)=12x2y2z+24xz2a. This means that 2fy2 is equal to 12x2y2z+24xz2.For the next time, we’ll take the partial derivative of f(x,y,z) with respect to z first.2fxz=x[z(x2y4z2x2y+12xy2z2)]=x[x2y4(1)0+12xy2(2z)]=x(x2y4+24xy2z)Now, differentiate the resulting expression with respect to x.2fxz=x(x2y4+24xy2z)=y4(2x)+24yz(1)=2y4x+24y2zb. Hence, 2fxz is equivalent to 2y4x+24y2z.We can rewrite 3fyxz as y(2fxz), so let’s use our result from the Q3b then differentiate it with respect to y.3fyxz=y(2fxz)=y(2y4x+24y2z)=2x(4y3)+24z(2y)=8xy3+48yzc. This means that 3fyxz is equal to 8xy3+48yz.

Practice Question

1. Use the formal definition of partial derivative to find fy(x,y) when we have the function, f(x,y)=x22xy+y2.2. Determine all of the first-order partial derivatives of the following functions. a. f(x,y)=2y23x+4xy2xy b. f(x,y,z)=x6xyz+ysinxcoszyz c. f(x,y,z)=sin(x3y+z)cos(y2xz)3. Suppose that we have f(x,y,z)=3x2y+3xyz4y2z2+6sinxcosz, determine the following higher order partial derivatives: a. 2fx2 b. 2fyz c. 3fxyz

Answer Key

1. fy(x,y)=limh0[x22x(y+h)+(y+h)2](x22xy+y2)h=limh0(x22xy2hx+y2+2yh+h2x2+2xyy2)h=limh0(2hx+2yh+h2)h=limh02x+2y+h=2x+2y 2. a. fx=4y21y32x, fy=y+8yx+xy2 b. fx=ycosxcosz6yz+1, fy=6xz+sinxcoszz2y, fz=6xyysinxsinzy2z c. fx=cos(x3y+z)3yx2zsin(y2zx), fy=x3cos(x3y+z)+2ysin(y2xz), fz=cos(x3y+z)xsin(y2xz) 3. a. 2fx2=6y6sinxcosz b. 2fyz=3x16yz c. 3fxyz=33D images/mathematical drawings are created with GeoGebra.