We sometimes come across quantities that are functions of more than one independent variable. Thus, we may find a case where depends on two other variable quantities, one of which we will call and the other . In symbols Take the simplest concrete case.
Let What are we to do? If we were to treat as a constant, and differentiate with respect to , we should get or if we treat as a constant, and differentiate with respect to , we should have:
The little letters here put as subscripts are to show which quantity has been taken as constant in the operation.
Another way of indicating that the differentiation has been performed only partially, that is, has been performed only with respect to one of the independent variables, is to write the derivatives with a “curved dee” , instead of the regular letter . In this way \begin{align} \strut \frac{\partial y}{\partial u} &= v, \\ \frac{\partial y}{\partial v} &= u. \end{align}
If we put in these values for and respectively, we shall have \left. \begin{align} \strut dy_v &= \frac{\partial y}{\partial u}\, du, \\ dy_u &= \frac{\partial y}{\partial v}\, dv, \end{align} \right\} \quad\text{which are }\textbf{partial differentials}.
But, if you think of it, you will observe that the total variation of depends on both these things at the same time. That is to say, if both are varying, the real ought to be written and this is called a total differential.
Example 16.1. Find the partial derivatives of the expression .
Solution. The answers are: \left. \begin{align} \frac{\partial w}{\partial x} &= 4ax + 3by. \\ \frac{\partial w}{\partial y} &= 3bx + 12cy^2. \end{align} \right\}
The first is obtained by supposing constant, the second is obtained by supposing constant; then
Example 16.2. Let . Then, treating first and then as constant, we get in the usual way \left. \begin{align} \dfrac{\partial z}{\partial x} &= yx^{y-1}, \\ \dfrac{\partial z}{\partial y} &= x^y \times \ln x, \end{align}\right\} so that .
Example 16.3. A cone having height and radius of base has volume . If its height remains constant, while changes, the ratio of change of volume, with respect to radius, is different from ratio of change of volume with respect to height which would occur if the height were varied and the radius kept constant, for \left. \begin{align} \frac{\partial V}{\partial r} &= \dfrac{2\pi}{3} rh, \\ \frac{\partial V}{\partial h} &= \dfrac{\pi}{3} r^2. \end{align}\right\}
The variation when both the radius and the height change is given by .
Example 16.4. In the following example and denote two arbitrary functions of any form whatsoever. For example, they may be sine-functions, or exponentials, or mere algebraic functions of the two independent variables, and . This being understood, let us take the expression or where , and .
Then \begin{align} \frac{\partial y}{\partial x} &= \frac{d F(w)}{d w}\cdot\frac{\partial w}{\partial x} + \frac{d f(v)}{d v}\cdot\frac{\partial v}{\partial x} \\ &= F^\prime(w)\cdot1 + f^\prime(v)\cdot1 \end{align} (where the figure is simply the coefficient of in and );
and \begin{align} \frac{\partial^2 y}{\partial x^2}= F^{\prime\prime}(w) + f^{\prime\prime}(v). \end{align} Also \begin{align} \frac{\partial y}{\partial t} &= \frac{d F(w)}{d w}\cdot\frac{\partial w}{\partial t} + \frac{d f(v)}{d v}\cdot\frac{\partial v}{\partial t} \\ &= F^\prime(w)\cdot a - f^\prime(v) a; \end{align} and \begin{align} \frac{\partial^2 y}{\partial t^2} &= F''(w)a^2 + f''(v)a^2; \end{align} whence \begin{align} \frac{\partial^2 y}{\partial t^2} &= a^2\, \frac{\partial^2 y}{\partial x^2}. \end{align}
This differential equation is of immense importance in mathematical physics.
Maxima and Minima of Functions of two Independent Variables
Let us take up again the following exercise from the chapter on Maxima and Minima:
Example 16.5. A piece of string inches long has its two ends joined together and is stretched by pegs so as to form a triangle. What is the largest triangular area that can be enclosed by the string?
Solution. Let and be the length of two of the portions of the string. The third is , and the area of the triangle is , where is the half perimeter, , so that , where \begin{align} P &= (15-x)(15-y)(x+y-15) \\ &= xy^2 + x^2y - 15x^2 - 15y^2 - 45xy + 450x + 450y - 3375. \end{align}
Clearly is maximum when is maximum. For a maximum (clearly it will not be a minimum in this case), one must have simultaneously
that is, \begin{align} 2xy - 30x + y^2 - 45y + 450 &= 0, \\ 2xy - 30y + x^2 - 45x + 450 &= 0. \end{align}
An immediate solution is .
If we now introduce this condition in the value of , we find Now is a function of alone. For maximum or minimum, , which gives or .
Clearly gives minimum area; gives the maximum, for , which is for and for (see the Second Derivative Test).
Example 16.6. Find the dimensions of an ordinary railway coal truck with rectangular ends, so that, for a given volume the area of sides and floor together is as small as possible.
Solution. The truck is a rectangular box open at the top. Let be the length and be the width; then the depth is . The surface area is . \begin{align} dS &= \frac{\partial S}{\partial x}\, dx + \frac{\partial S}{\partial y}\, dy\\ &= \left(y - \frac{2V}{x^2}\right) dx + \left(x - \frac{2V}{y^2}\right) dy. \end{align} For minimum (clearly it won’t be a maximum here),
Here also, an immediate solution is , so that , for minimum, and
Exercises
Exercise 16.1. Differentiate the expression with respect to alone, and with respect to alone.
Answer
.
Solution
\begin{align} & z=\frac{x^{3}}{3}-2 x^{3} y-2 y^{2} x+\frac{y}{3} \\ & \frac{\partial z}{\partial x}=x^{2}-6 x^{2} y-2 y^{2} \\ & \frac{\partial z}{\partial y}=-2 x^{3}-4 y x+\frac{1}{3} \end{align}
Exercise 16.2. Find the partial derivatives with respect to , and , of the expression
Answer
;
;
.
Solution
Let Then \begin{align} \frac{\partial u}{\partial x}= & 2 x y z+y^{2} z+y z^{2}+2 x y^{2} z^{2} \\ \frac{\partial u}{\partial y}= & x^{2} z+2 x y z+x z^{2}+2 x^{2} y z \\ \frac{\partial u}{\partial z}= & x^{2} y+x y^{2}+2 x y z+2 x^{2} y^{2} z \end{align}
Exercise 16.3. Let .
Find the value of . Also find the value of .
Answer
; .
Solution
\begin{align} & r^{2}=(x-a)^{2}+(y-b)^{2}+(z-c)^{2} \\ & \frac{\partial\left(r^{2}\right)}{\partial x}=2 r \frac{\partial r}{\partial x}=2(x-a) \\ \Rightarrow\qquad & \frac{\partial r}{\partial x}=\frac{x-a}{r} \end{align} Similarly
Therefore, \begin{align} \frac{\partial r}{\partial x}+\frac{\partial r}{\partial y}+\frac{\partial r}{\partial z} & =\frac{x-a+y-b+z-c}{r} \\ & =\frac{x+y+z}{r}-\frac{a+b+c}{r} \end{align}
Using the Quotient Rule
\begin{align} \frac{\partial^{2} r}{\partial x^{2}} &= \frac{\partial\left(\dfrac{\partial r}{\partial x}\right)}{\partial x}\\ &=\frac{\partial\left(\dfrac{x-a}{r}\right)}{\partial x}\\ &=\frac{r-\dfrac{\partial r}{\partial x}(x-a)}{r^{2}} &&\text{(Quotient Rule)}\\ & =\frac{r-\frac{(x-a)^{2}}{r}}{r^{2}} \\ & =\frac{r^{2}-(x-a)^{2}}{r^{3}} \end{align} Similarly and
Hence
\begin{align} \frac{\partial^{2} r}{\partial x^{2}}+\frac{\partial^{2} r}{\partial y^{2}}+\frac{\partial^{2} r}{\partial z^{2}} & =\frac{r^{2}-(x-a)^{2}}{r^{3}}+\frac{r^{2}-(y-b)^{2}}{r^{3}}+\frac{r^{2}-(z-c)^{2}}{r^{3}} \\ & =\frac{3 r^{2}-\left\{(x-a)^{2}+(y-b)^{2}+(z-c)^{2}\right\}}{r^{3}} \\ & =\frac{3 r^{2}-r^{2}}{r^{3}} \\ & =\frac{2}{r} . \end{align}
Exercise 16.4. Find the total differential of .
Answer
.
Solution
The total differential of is \begin{align} & d y=\frac{\partial y}{\partial u} d u+\frac{\partial y}{\partial v} d v \\ & =v u^{v-1} d u+u^{v} \cdot \ln u d v \end{align}
Exercise 16.5. Find the total differential of ; of ; and of .
Answer
,
,
.
Solution
(a)
\begin{align} & \frac{\partial y}{\partial u}=3 u^{2} \sin v \quad \frac{\partial y}{\partial v}=u^{3} \cos v \\ & d y=\frac{\partial y}{\partial u} d u+\frac{\partial y}{\partial v} d v \end{align}
(b)
\begin{align} & \frac{\partial y}{\partial x}=u \cos x(\sin x)^{u-1} \\ & \frac{\partial y}{\partial u}=(\sin x)^{u} \cdot \ln (\sin x) \\ & d y=\frac{\partial y}{\partial x} d x+\frac{\partial y}{\partial u} d u \\ & d y=u \cos x(\sin x)^{u-1} d x+(\sin x)^{u} \cdot \ln (\sin x) d u \end{align}
(c)
\begin{align} y & =\frac{\ln u}{v} \\ \frac{\partial y}{\partial u} & =\frac{1}{v} \frac{1}{u} \\ \frac{\partial y}{\partial v} & =\frac{\partial\left(\ln u \cdot v^{-1}\right)}{\partial v} \\ & =-\ln u \cdot v^{-2} \\ & =-\frac{\ln u}{v^{2}} \\ d y & =\frac{\partial y}{\partial u} d u+\frac{\partial y}{\partial v} d v \\ & =\frac{1}{u v} d u-\frac{\ln u}{v^{2}} d v \end{align}
Exercise 16.6. Verify that the sum of three quantities , , , whose product is a constant , is maximum when these three quantities are equal.
Solution
We want to maximize
provided that .
We find from the constraint and then substitute it in :
The maximum occurs when \left\{ \begin{aligned} \frac { \partial S } { \partial x } &= 1 - \frac { k } { x ^ { 2 } y } = 0 \\ \frac { \partial S } { \partial y } &= 1 - \frac { k } { x y ^ { 2 } } = 0 \end{aligned} \right. \Rightarrow \left\{ \begin{aligned} &x^{2} y=k \\ &x y^{2}=k \end{aligned}\right. If we divide by , we get Simplifying the left side, we get: Therefore and
Exercise 16.7. Find the maximum or minimum of the function
Answer
Minimum for .
Solution
\begin{align} &\frac{\partial u}{\partial x}=1+2 y\\ &\frac{\partial u}{\partial y}=1+2 x \end{align}
has a maximum or minimum where :
\begin{align} & \frac{\partial u}{\partial x}=1+2 y=0 \Rightarrow y=-\frac{1}{2} \\ & \frac{\partial u}{\partial y}=1+2 x=0 \Rightarrow x=-\frac{1}{2} \end{align}
By examining nearby points (such as ), we can say that is a minimum when .
Exercise 16.8. The post-office regulations state that no parcel is to be of such a size that its length plus its girth exceeds feet. What is the greatest volume that can be sent by post (a) in the case of a package of rectangular cross section; (b) in the case of a package of circular cross section?
Answer
(a) Length feet, width = depth = foot, vol. = cubic feet.
(b) Radius = feet = in., length = feet, vol. = .
Solution
(a) Let \begin{align} & L=\text { length of parcel } \\ & W=\text { Width } \\ & H=\text { Height } \end{align} Then
We want to maximize provided that or
Using this constraint, we can write as \begin{align} V & =(6-2 W-2 H) W H \\ & =6 W H-2 W^{2} H-2 \end{align}
The maximum occurs where and : \left\{\begin{align} & \frac{\partial V}{\partial W}=6 H-4 W H-2 H^{2}=0 \\ & \frac{\partial V}{\partial H}=6 W-W^{2}-4 W H=0 \end{align}\right. Subtracting the second equation from the first one or \begin{align} & 6(H-W)-2(H-W)(H+W)=0 \\ & (H-W)[6-2 H-2 W]=0 \end{align}
The expression between brackets is and since , the only solution is or .
Substituting in yields or Since Therefore, \begin{align} & L=6-2 H-2 W \\ & L=2 \end{align} [Alternatively we could substitute in .]
In this case and .
(b) radius of the cross section
We want to maximize
Since : \begin{align} V& =\pi r^{2}(6-2 \pi r) \\ & =6 \pi r^{2}-2 \pi^{2} r^{3} \end{align}
Now is a function of alone:
\begin{align} \frac{d V}{d r} & =12 \pi r-6 \pi^{2} r^{2} \\ & =6 \pi r(2-\pi r) \end{align}
Since , the only solution is .
When :
and the maximum volume is obtained when and
Exercise 16.9. Divide into parts such that the continued product of their sines may be a maximum or minimum.
Answer
All three parts equal; the product is maximum.
Solution
We want to maximize
provided that . Also none of them can be zero because will be zero if or or of occurs if . By symmetry we can imagine the maximum of occurs if
But here we want to use the calculus: and thus Recall that . Hence
To maximize :
\left\{ \begin{align} \frac{\partial u}{\partial x}&=\cos x \sin y \sin (x+y)+\sin x \sin y \cos (x+y)=0 &&\text{(A)} \\ \frac{\partial u}{\partial y}&=\sin x\cos y\sin(x+y)+\sin x\sin y \cos(x+y)=0 &&\text{(B)} \end{align} \right. Subtracting (A) from (B), we obtain Since , we can write the expression between brackets as . Hence
since , only is acceptable:
Using in (A), we get
Note :
Since ; therefore
or
This means is a maximum when and the maximum value of is
Exercise 16.10. Find the maximum or minimum of .
Answer
Minimum for .
Solution
\begin{align} \frac{\partial u}{\partial x}&=-\frac{e^{x}}{x^{2}} \cdot \frac{e^{y}}{y}+\frac{e^{x}}{x} \cdot \frac{e^{y}}{y}\\ &=\frac{e^{x}}{x} \cdot \frac{e^{y}}{y}\left(-\frac{1}{x}+1\right)=0 \\ \frac{\partial u}{\partial y}&=\frac{e^{x}}{x}\left(-\frac{e^{y}}{y^{2}}\right)+\frac{e^{x}}{x} \cdot \frac{e^{y}}{y}\\ &=\frac{e^{x}}{x} \cdot \frac{e^{y}}{y}\left(-\frac{1}{y}+1\right)=0 \end{align}
Since , we must have
or
When .
Let’s examine some nearby points:
\begin{align} & x=y=1.1, \quad u=\frac{e^{2.2}}{1.1^{2}} \approx 7.46 \\ & x=y=0.9, \quad u=\frac{e^{1.8}}{0.9^{2}} \approx 7.47 \\ & x=1.1, \quad y=0.9, \quad u=\frac{e^{2}}{1.1 \times 0.9} \approx 7.46 \end{align}
Therefore, has a minimum of .
Exercise 16.11. Find maximum and minimum of
Answer
Min.: and .
Solution
\begin{align} & \frac{\partial u}{\partial x}=2-\frac{1}{x}=0 \Rightarrow x=\frac{1}{2} \\ & \frac{\partial u}{\partial y}=1-\frac{2}{y}=0 \Rightarrow y=2 \end{align}
When and ,
We can examine a couple of points near
When
When
When
When
Hence, is a minimum when and .
Exercise 16.12. A telpherage bucket of given capacity has the shape of a horizontal isosceles triangular prism with the apex underneath, and the opposite face open. Find its dimensions in order that the least amount of iron sheet may be used in its construction.
Answer
Angle at apex ; equal sides = length = .
Solution
\begin{align} \text{Area of the bucket } =A&=2 A_{1}+2 x L\\ &=x^{2} \sin \theta+2 x L \end{align}
To minimize, we set and
\left\{\begin{align} &\frac{\partial A}{\partial x}=2 x \sin \theta-\frac{4 V}{x^{2} \sin \theta}=0 \\[9pt] &\frac{\partial A}{\partial y}=x^{2} \cos \theta-\frac{4 V}{x \sin ^{2} \theta} \cos \theta=0 \end{align}\right.
or
\left\{\begin{align} &x \sin \theta-\frac{2 v}{x^{2} \sin \theta}=0 \\[9pt] &\cos \theta\left[x^{2}-\frac{4 V}{x \sin ^{2} \theta}\right]=0 \end{align}\right.
Since and , we multiply both sides of the first equation by and divide them by :
\left\{\begin{align} &x^{2}-\frac{2 V}{x \sin ^{2} \theta}=0 \\ &\cos \theta\left[x^{2}-\frac{4 V}{x \sin ^{2} \theta}\right]=\cos \theta\left[\underbrace{x^{2}-\frac{2 V}{x \sin ^{2} \theta}}_{0}-\frac{2 V}{x \sin ^{2} \theta}\right]=0 \end{align}\right.
So the second equation can be written as
Since , we must have or
Since , from the first equation we obtain and because