## Partial Derivatives

### Introduction

Now that we have the brief discussion on limits out of the way we can proceed into taking derivatives of functions of more than one variable. Before we actually start taking derivatives of functions of more than one variable let's recall an important interpretation of derivatives of functions of one variable.

Recall that given a function of one variable, *f(x)*, the derivative, *f'(x)*, represents the rate of change of the function as x changes. This is an important interpretation of derivatives and we are not going to want to lose it with functions of more than one variable. The problem with functions of more than one variable is that there is more than one variable. In other words, what do we do if we only want one of the variables to change, or if we want more than one of them to change? In fact, if we're going to allow more than one of the variables to change there are then going to be an infinite amount of ways for them to change. For instance, one variable could be changing faster than the other variable(s) in the function. Notice as well that it will be completely possible for the function to be changing differently depending on how we allow one or more of the variables to change.

We will need to develop ways, and notations, for dealing with all of these cases. In this section we are going to concentrate exclusively on only changing one of the variables at a time, while the remaining variable(s) are held fixed. We will deal with allowing multiple variables to change in later.

Let's start with the function and let's determine the rate at which the function is changing at a point, , if we hold y fixed and allow x to vary and if we hold x fixed and allow y to vary.

We'll start by looking at the case of holding y fixed and allowing x to vary. Since we are interested in the rate of change of the function at and are holding y fixed this means that we are going to always have y=b (if we didn't have this then eventually y would have to change in order to get to the point ...). Doing this will give us a function involving only x's and we can define a new function as follows:

Now, this is a function of a single variable and at this point all that we are asking is to determine the rate of change of g(x) at x=a. In other words, we want to comput g'(a) and since this is a function of a single variable we already know how to do that. Here is the rate of change of the function at (a, b) if we hold y fixed and allow x to vary.

We will call g'(a) the **partial derivative** of f(x, y) with respect to x at (a, b) and we will denote it in the following way,

Now, let's do it the other way. We will now hold x fixed and allow y to vary. We can do this in a similar way. Since we are holding x fixed it must be fixed at x=a and so we can define a new function of y and then differentiate this as we've always done with functions of one variable.

Here is the work for this,

In this case we call h'(b) the partial derivative of f(x, y) with respect to y at (a, b) and we denote is as follows:

Note that these two partial derivatives are sometimes called the first order partial derivatives. Just as with functions of one variable we can have derivatives of all orders. We will be looking at higher order derivatives in a later.

Note that the notation for partial derivatives is different than that for derivatives of functions of a single variable. With functions of a single variable we could denote the derivative with a single prime. However, with partial derivatives we will always need to remember the variable that we are differentiating with respect to and so we will subscript the variable that we differentiated with respect to. We will shortly be seeing some alternate notation for partial derivatives as well.

Note as well that we usually don't use the (a, b) notation for partial derivatives. The more standard notation is to just continue to use (x, y). So, the partial derivatives from above will more commonly be written as:

Now, as this quick example has shown taking derivatives of functions of more than one variable is done in pretty much the same manner as taking derivatives of a single variable. To compute *f _{x}(x, y)* all we need to do is treat all the y's as constants (or numbers) and then differentiate the x's as we've always done. Likewise, to comput

*f*we will treat all the x's as constants and then differentiate the y's as we are used to doing.

_{y}(x, y)Before we work any examples let's get the formal definition of the partial derivative out of the way as well as some alternate notation.

Since we can think of the two partial derivatives above as derivatives of single variable functions it shouldn't be too surprising that the definition of each is very similar to the definition of the derivative for single variable functions. Here are the formal definitions of the two partial derivatives we looked at above.

Now let's take a quick look at some of the possible alternate notations for partial derivatives. Given the function z=f(x, y) the following are all equivalent notations.

For the fractional notation for the partial derivative notice the difference between the partial derivative and the ordinary derivative from single variable calculus.

Okay, now let's work some examples. When working these examples always keep in mind that we need to pay very close attention to which variable we are differentiating with respect to. This is important because we are going to treat all other variables as constants and then proceed with the derivative as if it was a function of a single variable. If you can remember this you'll find that doing partial derivatives are not much more difficult that doing derivatives of functions of a single variable as we did in here.

Solution 1. Let's first take the derivative with respect to x and remember that as we do so all the y's will be treated as constants. The partial derivative with respect to x is: Notice that the second and the third term differentiate to zero in this case. It should be clear why the third term differentiated to zero. It's a constant and we know that constants always differentiate to zero. This is also the reason that the second term differentiated to zero. Remember that since we are differentiating with respect to x here we are going to treat all y's as constants. That means that terms that only involve y's will be treated as constants and hence will differentiate to zero. Now, let's take the derivative with respect to y. In this case we treat all x's as constants and so the first term involves only x's and so will differentiate to zero, just as the third term will. Here is the partial derivative with respect to y: 2. With this function we’ve got three first order derivatives to compute. Let’s do the partial derivative with respect to This first term contains both Here is the partial derivative with respect to Let’s now differentiate with respect to Finally, let’s get the derivative with respect to 3. With this one we’ll not put in the detail of the first two. Before taking the derivative let’s rewrite the function a little to help us with the differentiation process. Now, the fact that we’re using Remember how to differentiate natural logarithms. 4. Now, we can’t forget the product rule with derivatives. The product rule will work the same way here as it does with functions of one variable. We will just need to be careful to remember which variable we are differentiating with respect to. Let’s start out by differentiating with respect to Do not forget the chain rule for functions of one variable. We will be looking at the chain rule for some more complicated expressions for multivariable functions in a later section. However, at this point we’re treating all the Also, don’t forget how to differentiate exponential functions, Now, let’s differentiate with respect to |

Example 2 |

### References & Resources

- http://tutorial.math.lamar.edu/Classes/CalcIII/PartialDerivatives.aspx

#### Latest Post

- Dependency injection
- Directives and Pipes
- Data binding
- HTTP Get vs. Post
- Node.js is everywhere
- MongoDB root user
- Combine JavaScript and CSS
- Inline Small JavaScript and CSS
- Minify JavaScript and CSS
- Defer Parsing of JavaScript
- Prefer Async Script Loading
- Components, Bootstrap and DOM
- What is HEAD in git?
- Show the changes in Git.
- What is AngularJS 2?
- Confidence Interval for a Population Mean
- Accuracy vs. Precision
- Sampling Distribution
- Working with the Normal Distribution
- Standardized score - Z score
- Percentile
- Evaluating the Normal Distribution
- What is Nodejs? Advantages and disadvantage?
- How do I debug Nodejs applications?
- Sync directory search using fs.readdirSync