A standard technique in mathematics courses is to try to break a complicated problem into smaller and easier problems. For functions of several variables this can be done by looking at the variables one at a time, and treating the other variables as constants. Then we are back to considering functions of a single variable.
Subsection6.2.1Wire frames
We start by returning to Example 6.1.12 from Section 6.1, and seeing what information can be obtained by looking at one variable at a time.
Example6.2.1.Optimizing Revenue with Two Products.
I have a company that produces two products, widgets and gizmos. The two demand functions are:
In terms of the last example, we want to start with a table and a wire frame chart.
The wires are obtained by intersecting the graph of the function with a plane where QW or QG is held constant.
Thus, when we treat either QW or QG as a constant we effectively are looking at one of the wires of the wire frame. To illustrate this, we will look at the wires corresponding to \(\QW=400\) and \(\QG=300\text{.}\) When \(\QG=300\text{,}\) our revenue function simplifies to
This derivative is zero when \(\QG=250\text{.}\) That is the only possible place on this wire where we can have a maximum.
Putting the information together, the maximum must occur at \((250,400)\text{.}\) Putting these values back in the original equation gives a maximum of $5250 for the revenue function.
Subsection6.2.2Partial Derivatives
The procedure we used in the first example of replacing one variable with a constant and then taking the derivative of the resulting single variable function is a bit cumbersome. We can simplify the process by taking the derivative of the original function with respect to one variable while treating the other variables as constants. This is referred to as taking a partial derivative. There is also a change in notation. The familiar derivative of \(f\) with respect to \(x\) uses the symbol \(\frac{d}{dx} f\text{,}\) while the partial derivative with respect to \(x\) uses the symbol \(\frac{\partial }{\partial x} f\text{,}\) or \(f_x\text{.}\) Similarly, the partial derivative with respect to \(y\) uses the symbol\(\frac{\partial }{\partial y} f\text{,}\) or \(f_y\text{.}\)
Example6.2.4.Finding and Interpreting Partial Derivatives.
Find the partial derivatives of \(f(x,y)=x^2+ 2xy+3y^2-4x-3y\) at \((x,y)=(3.5,-0.5)\text{.}\) Explain what the partial derivatives mean in terms of the graph.
It is useful to look at a picture with the graph, the two curves obtained by keeping \(x=3.5\) and \(y=1.5\text{,}\) and the tangent lines to those curves.
We also want to look at the slices corresponding keeping \(x=-3.5\) and \(y=.5\text{.}\)
The yellow curve is obtained by fixing \(y\) and letting \(x\) vary. The blue curve is obtained by fixing \(y\) and letting \(x\) vary. We now take the partial derivatives with respect to both variables.
The partial derivatives give the slopes of the purple and red lines above. At the point \((3.5,-0.5)\text{,}\) the (yellow) curves obtained by treating y as a constant and letting \(x\) vary has a (magenta) tangent line with a slope of \(2\text{,}\) the value \(\frac{\partial }{\partial x} f(3.5,-0.5)\text{.}\) At the point \((3.5,-0.5)\text{,}\) the (blue) curves obtained by treating \(x\) as a constant and letting \(y\) vary has a (red) tangent line with a slope of 1, the value \(\frac{\partial }{\partial y} f(3.5,-0.5)\text{.}\)
Subsection6.2.3Tangent Planes and Linear Approximation
For functions of one variable, we had two main uses of the derivative. One was to identify candidate points for maxima and minima. We will look at critical points and extrema in the next section. The other use of the derivative was to produce a linear approximation or tangent line. We can generalize the tangent line for one variable to a tangent plane for two variables. For a function \(f(x)\text{,}\) we used the value of the point, \((x_0,f(x_0))\) and the slope \(f(x_0)\) to get the equation of the tangent line approximation near \(x_0\text{.}\)
In the case of the last example, evaluating the linear approximation was nicer than evaluating the function directly because the 4th roots of 16 and 81 are whole numbers, while the 4th roots of 85 and 14 are harder to compute. For real world functions, evaluating functions may involve a substantial investment of time and money, depending on the nature of the function.
Linear Approximations of Functions of More than Two Variables.
In this section we have focused on functions of 2 variables since their graphs are surfaces in 3 dimensions, which is a familiar concept. For real world functions, we are often concerned with functions of many variables. The concept of partial derivative easily extends, with one variable and multiple parameters. Finding the linear approximation also extends without difficulty. We simply have a linear term for each variable.
Exercises6.2.4Exercises: Wire Frames, Partial Derivatives, and Tangent Planes Problems
Exercise Group.
For the given functions and points \(P_1\) and \(P_2\text{:}\)
Give the 2 functions of one variable through \(P_1\) obtained by holding each variable constant.
Find the partial derivatives of the original function.
Evaluate the partial derivatives at \(P_1\text{.}\)
Give the equation of the tangent plane through \(P_1\text{.}\)
The approximation at \(P_2\) obtained from the tangent plane.
1.
The function is \(f(x,y)=x^2+3xy+4y^2\text{,}\)\(P_1=(4,2)\text{,}\) and \(P_2=(3,2.5)\text{.}\)
This function gives us information about the revenue in terns of Widgets near a production level of 400 widgets and 800 gizmos. We can use Wolfram Alpha to graph this. Assuming there are 800 gizmos the widget influence on the revenue looks like this:
The revenue generated by the gizmos assuming the number of widgets equals 400 and the number of gizmos is near 800 gives the following picture:
The slope is about \(m=8\text{.}\)
Find the partial derivatives of the original function.
In part a we saw that the revenue function seems to be growing faster for the gizmo variable, then for the widget variable. To get more information we can compute the partial derivatives (b) and then evaluate them at \(P_1\) (c).
where labor is in workers, capital equipment is in units of $20,000, and production is in units of 200 widgets produced per month. In the \((\Labor,\Capital)\) plane, let \(P_1=(100,30)\text{,}\) and \(P_2=(110,25)\text{.}\)
7.
The function is the Cobb-Douglas production function in a country,
where labor is in millions of workers, capital equipment is in units of billions of dollars, and production is in units of billions of dollars per year. In the \((\Labor,\Capital)\) plane, let \(P_1=(300,30)\text{,}\) and \(P_2=(310,32)\text{.}\)
So as both \(L\) and \(C\) increase, so does the production. Specifically increasing \(L\) by 10 million workers and \(C\) by 2 billion dollars would give an estimated increase in production of \(1717.9-1648.62=69.28\) billions of dollars worth of units.
Exercise Group.
For the given functions and points \(P_1\) and \(P_2\text{:}\)
Give the 3 functions of one variable through \(P_1\) obtained by holding each variable constant.
Find the partial derivatives of the original function.
Evaluate the partial derivatives at \(P_1\text{.}\)
Give the equation of the linear approximating function through \(P_1\text{.}\)
The approximation at \(P_2\) obtained from the function in d.
8.
The function is \(f(x,y,z)=x^2+3xy+4y^2+2z^2+5xz\text{,}\)\(P_1=(4,2,1)\text{,}\) and \(P_2=(3,2.5,2)\text{.}\)
9.
The function is \(f(x,y,z)=(x+3y-2z)/(x^2+y^2+z^2 )\text{,}\)\(P_1=(2,3,-1)\text{,}\) and \(P_2=(3,2.5,0)\text{.}\)
so the cross sectional function are all quadratic (parabolas) that open downwards.
Find the partial derivatives of the original function.
Finding the partial derivatives when dealing with three variables is very similar to the procedure we use when we have two variables. We treat the other variables as constants.