Lecture 1
Lecture 1
Partial Derivatives
7
If we will now hold x fixed, at x = a, 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,
h(y) = f (a,y) = 2a2y3⇒ h′(b) = 6a2b2
In this case we call h′(b) the partial derivative of f(x, y)
with respect to y at (a,b) and we denote it as follows,
fy (a,b) = 6a2b2
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.
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,
fx (x, y) = 4xy3 and fy (x, y) = 6x2y2
To compute fx(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 compute fy(x,y) we will treat all the
x’s as constants and then differentiate the y’s as we are used to
doing.
Here are the formal definitions of the two partial derivatives
we looked at above.
8
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,
Solution
9
The partial derivative with respect to x is,
Notice that the second and the third term differentiate to zero
in this case, because the terms that only involve y’s will be
treated as constants and hence will differentiate to zero.
10
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 s and t here instead of the
“standard” x and y shouldn’t be a problem. It will work the
same way. Here are the two derivatives for this function.
Remember that:
11
one variable. Here is the derivative with respect to x.
Example 2 Find all of the first order partial derivatives for the following
functions.
12
Solution
In the case of the derivative with respect to v recall that u’s are constant
and so when we differentiate the numerator we will get zero!
Let’s do the derivatives with respect to x and y first. In both these cases
the z’s are constants and so the denominator in this is a constant and so we
don’t really need to worry too much about it. Here are the derivatives for
these two cases.
13
In this last part we are just going to do a somewhat messy chain rule
problem. Here are the two derivatives,
Solution
14
Remember that the key to this is to always think of y as a function of x, or
y = y( x) and so whenever we differentiate a term involving y’s with
respect to x we will really need to use the chain rule which will mean that
we will add on a (dy/dx) to that term.
The first step is to differentiate both sides with respect to x.
Solution
15
z
Let’s start with finding . We first will differentiate both sides with
x
z
respect to x and remember to add on a whenever we differentiate a z.
x
Remember that since we are assuming z = z(x,y) then any product of x’s
and z’s will be a product and so will need the product rule!
z
Now, solve for .
x
z
Now we’ll do the same thing for except this time we’ll need to
y
z
remember to add on a whenever we differentiate a z.
y
16
We’ll do the same thing for this function as we did in the previous part.
z
First let’s find .
x
Don’t forget to do the chain rule on each of the trig functions and when
we are differentiating the inside function on the cosine we will need to
z
also use the product rule. Now let’s solve for .
x
z
Now let’s take care of . This one will be slightly easier than the first
y
one.
17
Higher Order Partial Derivatives
Note as well that the order that we take the derivatives in is given by the
notation for each these. If we are using the subscripting notation, e.g. fx y,
then we will differentiate first with respect to x and then with respect to
2 f
y. With the fractional notation, e.g. , it is the opposite. In this case
xy
we differentiate with respect to y first and then x.
Example 1 Find all the second order derivatives for
f (x, y )= cos (2 x ) − x 2e5 y + 3 y 2 .
18
Solution
We’ll first need the first order derivatives so here they are.
5y
fx(x, y)= −2 sin (2x ) − 2xe
x
f (x, y )= xe− x y .
Solution
We’ll first need the two first order derivatives.
19
Now, compute the two fixed second order partial derivatives.
20
In general, we can extend Clairaut’s theorem to any function
and mixed partial derivatives. The only requirement is that in
each derivative we differentiate with respect to each variable
the same number of times. In other words, provided we meet
the continuity condition, the following will be equal
Solution
In this case remember that we differentiate from left to right. Here are the
derivatives for this part.
21
Here we differentiate from right to left. Here are the
derivatives for this function.
Exercises
1- Find all the first partial derivatives for the following functions:
a) 5
f ( x , y) x 3 y 2 b) f (r, s) r 2 S2
t s
c) f (s, t ) d) f ( x, y) x 2 y3 xy 2 e xy
s t
x
e) f ( x, y) x 2 y sin xy f) f ( x, y) x 2 y sin xy x cos
y
xyt tan xy
g) f ( x, y) ln xyz h) f ( x, y, t )
1 sin 3t
i) f ( x, y, z) x 2 z 4 yexyz j) W (sin xy )sin z
1 x 3xy 4 y
2 2
5xy
k) u cos l) Z sin ( )
3x 2 y x 6y
2- a) Calculate f xxyz if f (x, y, z) sin( 3x yz)
b) If f ( x, y) xy 4 2x 2 y3 4x 2 3y 8 find f xxy and f xyxy
c)
If f y ln x 2 z 2 find f zy , f zzy , f xzy and f zyxz
22
d) If f u 2 v3 v 4 2 lnu v verify that: f uvv f vvu
e) If f r 4s3t 3s 2ert verify that: f rrs f rsr fsrr
f) Find all first and second partial derivatives for
z x 2 sin y ye x
z x z y y
3- a)- If x 3 y3 z 3 6xyz 1, find , , , , and . Is
x z y z x
y y z
*
x z x
dy
b) - If 3x 2 2xy y 2 4x 2 y 0 , find . using 2 different
dx
methods.
2 dy
c) If xye x y 2 x y y x , find .
dx
d) If f ( x, y, z) x 3e x z y sin( x z) 0 , defines z implicitly as a
z z
function of x, y. Find , .
x y
e) If f y 2x 3 y 2x show that: f xx 4f yy
4- "A function F(x,y) is called 'harmonic' if Fxx Fyy 0 "
Prove that each of the following functions is harmonic:-
a) F( x, y) ln x 2 y 2
b) F(x, y) cos x shy sin x chy
y
c) F( x, y) tan 1
x
d) F( x, y) e cos y e y cos x
x
23
5- In physics, the wave function is Ftt c 2 Fxx and the heat
equation is Ft c 2 Fxx . In each of the following cases, determine
whether F satisfies the wave equation, the heat equation, or neither.
a) F( x, t ) sin 3ct sin 3x b) F(x, t ) sin 5ct cos 5x
d) F x ct 4 cosx ct
2
c) F e c t sin cx
6- If F( x , y) cosx y ln x y , show that: Fxx Fyy 0
24