Introduction to partial derivatives
Ordinary derivatives in one-variable calculus
Your heating bill depends on the average temperature outside. If all other factors remain constant, then the heating bill will increase when temperatures drop. Let’s denote average temperature by , and define a function so that gives the heating bill as a function of .
We can then interpret the ordinary derivative (i.e., the derivative you learned about in first semester calculus) as indicating how much the heating bill will change as you change the temperature:
If we graph as a function of , then gives the slope of the graph at the point where . We say that is the derivative of with respect to . If is given in degrees Celsius, then is change in heating cost per degree Celsius of temperature increase when the temperature is . Since decreases as increases, we expect to be negative. (The rate of change in heating cost per degree of Celsius of temperature decrease is positive. But this positive rate is equal to .)
Although I don’t know what should really look like, pretend it looks like thick green curve graphed in the below CVT. The point is shown in red, which you can change by dragging with your mouse. We can visualize the derivative by drawing a (thin blue) line tangent to the curve at the point . The slope of the line is equal to the slope of the graph when ; hence, the slope of the line is equal to the derivative .
Partial derivatives are analogous to ordinary derivatives
Clearly, writing the heating bill as a function of temperature is a gross oversimplification. The heating bill will depend on other factors, not least of which is the amount of insulation in your house, which we’ll denote by . We can define a new function so that gives the heating bill as function of both temperature and insulation .
Who knows, maybe this function would look something like the below graph.
Suppose you aren’t changing the amount of insulation in your house, so that we view as a fixed number. Then, if we look at how the heating bill changes as temperature changes, we’re back to our first case above. The only difference is that we now view as a function of both and , and we are explicitly leaving one of the variables () constant. In this case, we call the change in the partial derivative of with respect to , a term that reflects the fact some variables remain constant. We also change our notation by writing the as a , so that
If is given in degrees Celsius, then is change in heating cost per degree Celsius of temperature increase when the outside temperature is and the amount of insulation is .
Now, imagine you are considering the possibility of lowering your heating bill by installing additional insulation. To help you decide if it will be worth your money, you may want to know how much adding insulation will decrease the heating bill, assuming the temperature remains constant. In other words, you want to know the partial derivative of with respect to :
If is given in centimeters of insulation, then is change in heating cost per added centimeter of insulation when the outside temperature is and the amount of insulation is .
The partial derivative indicates how much effect additional insulation will have on the heating bill. Since additional insulation will presumably lower the heating bill, will be negative. If additional insulation will have a large effect, then will be a large, negative number. If, for your house, is large and negative, you may be inclined to add insulation to save money.
In the graph of , the partial derivatives can be viewed as the slopes of the graphs in the direction and in the direction. In the below CVT, the partial derivative corresponds to the slope of the dark blue line, and the partial derivative corresponds to the slope of the light green line. (The numerical values of these partial derivatives are also displayed. However, I wrote them like because I couldn’t get a character to display in the graph.)
You can drag the red point around to change the values of and see how, for example, the partial derivative depends on both temperature and insulation. Consequently, your decision to add insulation will be affected by what temperatures you expect and how much insulation your home has already. You might expect that additional insulation will have a larger effect (i.e., will be larger negative number) for lower temperatures and smaller amounts of insulation. So if you live in Minnesota and have an old, poorly insulated house, it’s likely that will be a very large, negative number so that adding a moderate amount of insulation could dramatically decrease your heating bill.
As mentioned above, a heating bill depends on many more factors than temperature and insulation. We could define a function of many variables to give a more accurate estimate of heating costs. However, the math is the same no matter how many variables depends on, as long as it depends on two or more. So, if you want to include the effect of the size of a house, you can define to be the heating bill as a function of temperature, insulation, and size. Then would tell you how much the heating costs change as you change the size, leaving temperature and insulation constant. (Even though I cannot plot a graph of , I hope that the concept of the partial derivatives of still makes sense.) I imagine the value of would be useful only if you are planning to move since you probably don’t plan to cut a room off your house to save heating costs (though I suppose you could just not heat a room and effectively reduce the size).
I hope you stay warm this winter.
You can find examples of calculating partial derivatives by following this link.