partial derivatives-2
partial derivatives-2
partial derivatives-2
LECTURE-2
Partial Derivatives
What is the difference between
Ordinary differentiation & Partial Differentiation?
If y f ( x) If z f ( x, y )
z f ( x x , y ) f ( x, y )
lim
x x 0 x
Ordinary Differentiation Similarly, Partial derivative of z w. r. t. y (when x is treated as
constant)
z f ( x, y y ) f ( x, y )
lim
y y 0 y
Partial Differentiation
Partial Derivatives
Definition of Partial Derivatives of a Function of Two Variables
f x x, y f ( x, y )
f x x, y x lim 0
x
f x, y y f ( x, y )
f y x, y y lim 0
y
Provided the limits exist.
Higher Order Partial Derivatives
Partial derivatives of higher order can be found by process of successive
differentiation.
f f
fx p fy q
x y
f 2 f
f xx r Differentiate twice with respect to x
x x x 2
f 2 f Differentiate first with respect to x and
f xy then with respect to y
y x yx
s
f f
f yx
2
w f x x, y, z f ( x, y, z )
f x x, y , z x lim 0
x x
w f x, y y, z f ( x, y, z )
f y x, y , z y lim 0
y y
w f x, y, z z f ( x, y, z )
f z x, y , z z lim 0
z z
In general, if
w f ( x1 , x2 ,...xn ) there are n partial derivatives
w
f xk x1 , x2 ,...xn , k 1, 2,...n where all but the kth variable is
xk held constant
Applications in Real World
Simple Interest:
A P(1 rt )
where A=Amount, P=Principal, r=Annual rate, t=time in years
Intelligence Quotient
M
Q 100
C
where M=MA= Mental Age,
C=CA= Chronological Age
Resistance for blood flow in a vessel (Poiseuille’s Law)
L
Rk
r4
where R= Resistance, L= length of vessel,
r= Radius of vessel, k=constant
Applications in Real World
Most Important application of Partial derivatives is Maximum and minimum.
We use the derivative to determine the maximum and minimum values of
particular functions.
(e.g. cost, strength, amount of material used in a building, profit, loss, etc.).
Ex. Find the dimensions of the rectangular box of volume 256 cubic cm so
that least material is used for its construction.
Applications in Engineering and Real World
Another Important application of Partial derivatives is
Partial Differential Equations
Image resizing:
Partial derivatives are key to target-aware image
resizing algorithms. Widely known as seam carving,
these algorithms require each pixel in an image to be
assigned a numerical 'energy‘ .
The formula established to determine a pixel's energy
(magnitude of gradient at a pixel) depends heavily on the
constructs of partial derivatives.
Examples on Partial Derivatives
EXAMPLE:
To find the partial derivatives, hold one variable constant and
differentiate with respect to the other.
f ( x, y) 5x4 x2 y2 2x3 y
To find the partial derivatives, hold one variable constant and
differentiate with respect to the other.
f ( x, y) 5x4 x2 y2 2x3 y
Solution:
f ( x, y ) 5 x 4 x 2 y 2 2 x 3 y
f x ( x, y ) 20 x3 2 y 2 x 6 yx 2
f y ( x, y ) 2 x 2 y 2 x3
Notation for First Partial Derivative
For z = f(x,y), the partial derivatives fx and fy are denoted
by
z
f ( x, y ) f x x, y z x
x x
and
z
f ( x , y ) f y x, y z y
y y
z z
( a ,b ) f x a, b and ( a ,b ) f y a, b
x y
Example : Find the partials fx and fy and evaluate them at the
indicated point for the function
xy
f ( x, y ) at (2, 2)
x y
Example : Find the partials fx and fy and evaluate them at the
indicated point for the function
xy
f ( x, y ) at (2, 2)
Solution: x y
xy
f ( x, y ) at (2, 2)
x y
f x x, y
x y y xy xy y 2 xy
y2
( x y )2 ( x y )2 ( x y )2
2
2
4 1
f x 2, 2
(2 2 ) 2 16 4
x y x xy x 2 xy xy x2
f y x, y
( x y) 2
( x y) 2
( x y )2
x2 4 1
f y 2, 2
( x y)2 16 4
More Examples
Example 3:
Find all of the second partial derivatives of f ( x, y) 3xy2 2 y 5 x2 y
f ( x, y) 3 xy2 2 y 5 x2 y
f x ( x, y) 3 y 2 10 xy
f xx ( x, y) 10 y
f ( x, y) 3 xy2 2 y 5 x2 y
f y ( x, y) 6 xy 2 5 x2
f yy ( x, y) 6 x
f ( x, y) 3 xy2 2 y 5 x2 y
f x ( x, y) 3 y 2 10 xy
f xy ( x, y) 6 y 10 x
Notice that fxy = fyx
f ( x, y) 3 xy2 2 y 5 x2 y
f y ( x, y) 6 xy 2 5 x2
f yx ( x, y) 6 y 10 x
Example 4: Find the following partial derivatives for the
function
f ( x, y, z) ye x ln z
x
a. f xz
b. f zx
c. f xzz
d. f zxz
e. f zzx
a. f xz f ( x, y, z) ye x x ln z
f x ( x, y, z) ye x ln z
1
f xz ( x, y, z) Again, notice that the 2nd
z partials fxz = fzx
b. f zx f ( x, y, z ) ye x x ln z
x
f z ( x, y, z )
z
1
f zx ( x, y, z )
z
c. f xzz f ( x, y, z ) ye x x ln z
f x ( x, y, z ) ye x ln z
1 f ( x, y, z ) ye x x ln z
f xz ( x, y, z ) e. f zzx
z
x
1 f z ( x, y, z )
f xzz ( x, y, z ) 2 z
z
x
f zz ( x, y, z ) 2
z
Notice 1
All f zzx ( x, y, z ) 2
z
Are Equal
d. f zxz f ( x, y, z ) ye x x ln z
x
f z ( x, y, z )
z
1
f zx ( x, y, z )
z
1
f zxz ( x, y, z ) 2
z
Geometrical Meaning of Partial Derivatives
Let APB be the curve which a plane through any point P on the surface
parallel to the xz-plane, cuts. As point P moves along this curve APB, its
coordinates x and z vary, while y remains constant.
z
Thus tan
x
slope of the curve APB at the point P
Similarly
z
tan
y
slope of the curve APB at the point P
Surface f(x,y)
Curve cut by a plane y=y0
f(x, y0) here x is variable y=y0
Curve cut by a plane x=x0