Y, Z AB Is Perpendicular
Y, Z AB Is Perpendicular
What does a consistent equation in one variable represent in the number line? ... a point!
What does a consistent equation in two variables represent in the xy-plane? ... a curve!
What does a consistent equation in three variables represent in the xyz-space? ... a surface!
What does a consistent equation in n variables represent in n-dimensional space? ... some-
thing (n − 1)-dimensional!
A plane in R3 can be determined by a point in the plane and a direction normal (perpendic-
ular) to the plane.
Suppose A(x0 , y0 , z0 ) is a point in the plane P . Suppose n =< a, b, c > is a non-zero normal
vector to the plane. [DRAW IT!]
−→
Let B(x, y, z) represent a variable point in the plane. Then the vector AB is perpendicular
to n.
Thus:
ax + by + cz + d = 0,
where d = −ax0 − by0 − cz0 .
(Every such equation is called linear. Just like how a linear equation in two variables gives
you a line in the plane, a linear equation in three variables gives a plane in space.)
Conversely, given a plane’s equation, one can pick out the variable coefficients to determine
a normal (not unique) and plug-in for two free-variables to solve for a point in the plane.
Examples:
(1) Find an equation of the plane passing through (1, 2, 3) and normal to < 1, 0, 1 >.
(2) Find an equation of the plane passing through (2, 0, −5), (0, 1, 3) and (−3, −1, 7).
(3) Find an equation of the line which is the intersection of the planes 4x − z = 8 and
x + 3y − 2z = 6.
(4) Find an equation of the plane that contains (0, 1, −1) and the line (1+2t, −t, 4(1+t)).
(ELFY - ”Exercise Left For You”) Derive a formula for the distance from a plane to a point
not in the plane. Hint: Find a vector from a point in the plane to the point not in the plane
and project it onto a normal vector. The length of this vector will be the distance formula!
Two planes are parallel if their respective normal vectors are parallel. Two planes are
orthogonal if their respective normal vectors are orthogonal.
Indeed, one can calculate the angle between planes by calculating the angle between two
normals (and taking the complement if that angle is more than π).
A coordinate plane goes through the origin and is normal to i (yz-plane), j (xz-plane), or j
(xy-plane).
Given a curve C in a plane P and a line ` passing through C, but not in P , a cylinder
consists of all lines passing through C that parallel to `.
The classic (right, circular) cylinder radius R is the collection of all lines passing through
x2 + y 2 = R2 parallel to k̂
For example, the equation z = y 2 + 1 describes the cylinder given by the standard upward
parabola in the yz-plane (x = 0) moved along the x-axis.
Quadratic equations in three variables describe quadratic surfaces. We study a few types
and their standard equations:
(1) Ellipsoid:
x2 y 2 z 2
+ 2 + 2 = 1.
a2 b c
All traces are either empty, points, or ellipses. The extreme points that are furthest
from the origin are (±a, 0, 0), (0, ±b, 0), and (0, 0, ±c).
4 y
2
0
-2
-4
0 z
-2
-4 -2 0 2 4
x
(2) Elliptic paraboloid:
x2 y 2
z= + 2 or any permutation of x, y, z.
a2 b
Traces with z set to a number are either empty, a point, or ellipses. Traces with
either x or y set to a number are always parabolas.
z 4
2
0
-2
0
y
0
x -2
2
(3) Hyperbolic paraboloid:
x2 y 2
z= − 2 or any permutation of x, y, z.
a2 b
Traces with z set to a number are either hyperbolas or a pair of lines. Traces with
either x or y set to a number are always parabolas (but open in opposite z-directions.
z
0
-2
-4
x
-2
(4) Elliptic Cone:
z2 x2 y 2
= + 2 or any permutation of x, y, z.
c2 a2 b
Traces with z set to a number are ellipses or a point. Traces with x or y set to a
number are hyperbolas or a pair of lines.
-10
z 0
10
0 x
-10
-5
0 -5
5
y
10
(5) Hyperboloid of one sheet:
x2 y 2 z 2
+ 2 − 2 = 1 or any permutation of x, y, z.
a2 b c
Traces with z set to a number are ellipses. Traces with x or y set to a number are
hyperbolas or a pair of lines. The surface is made of one connected piece.
10
z 0
10
0 y
-10
-5
-5
0 -10
5
x
(6) Hyperboloid of two sheets:
x2 y 2 z 2
− − 2 + 2 = 1 or any permutation of x, y, z.
a2 b c
Traces with z set to a number are empty, points or ellipses. Traces with x or y set
to a number are hyperbolas or a pair of lines. The surface is made of two disconnected
pieces.
10
z 0
10
0 y
-10
-5
-5
0 -10
5
x
Of course replacing any variable by that variable plus/minus a positive constant shifts the
graph in the variable’s positive/negative direction by the constant. For example, replacement
of x by x − 2 moves the graph by 2î (2 units in the pos. x direction).
(1)
x2 + 4x2 = 64 − 16z 2 .
(2)
9z 2 + 4x2 = 36y 2 .
(3)
−x2 = y 2 − z 2 + 4.
(4)
z + x2 = 2y 2 .
(5)
z 2 + 4 + 100x2 = y 2 .
12.2 - Graphs and Level Curves
A function f of two variables x and y often expressed with z set to the output.
z = f (x, y).
The graph of z = f (x, y) is the set of points {(x, y, f (x, y))|(x, y) ∈ D}.
A surface represents a function whenever it passes the vertical line test: Any line parallel
to the z-axis intersects the surface at most once. So, z = 16 − x2 − y 2 (downward circular
2
paraboloid) is a function, but x2 + y 2 + z4 = 4 (ellipsoid) is not.
p
Graph the function f (x, y) = 1 + x2 + y 2 . Note the domain is all of R2 (xy-plane) and
the range is [1, ∞). How does it relate to a standard quadratic surface? It’s the top sheet of
a hyperboloid of two sheets...
6 -5
0
-5 0 5
Consider a surface defined by z = f (x, y). Imagine the intersection of the surface with a
plane parallel to the xy-plane. Algebraically this is done by setting z to a constant. This
curve in xyz-space is called a contour. Projected into the xy-plane, these curves are graphed
together and are called level curves.
Note that two level curves cannot intersect. If they do, then there is a point in the domain
D of the function f which corresponds to more than one z-value, which contradicts that f
is a function.
2 −y 2
Graph the level curves of f (x, y) = −x2 − y. Graph the level curves of g(x, y) = e−x
noting that the range of g is (0, 1].
Of course, one can talk about functions of n-variables. Consider y = f (x1 , x2 , ..., xn ). Then
the domain is in n-dimensional space, with a graph in n + 1 dimensional space.
“Level curves” would become level (n − 1)-dimensional subsets of n-dimensional space. For
example, describe the level curves of the function f (x, y, z) = x2 + y 2 − z.
12.3 - Limits and Continuity
A function f of two variables has a limit L as (x, y) approaches (x0 , y0 ) if |f (x, y) − L| can
be made arbitrarily small for all points sufficiently close to (x0 , y0 ).
More precisely: f (x, y) has a limit L as (x, y) approaches (x0 , y0 ) if for every ² > 0, there
exists δ > 0 such that 0 < | < x − x0 , y − y0 > | < δ implies |f (x, y) − L| < ².
Notation:
lim f (x, y) = L.
(x,y)→(0,0)
All the standard limit laws apply. The limit of a constant is the constant, the limit of a
sum/diff is the sum/diff of limits, the limit of a product is the product of the limits, etc...
If a limit L does exist then approaching the point on any path (curve) in the domain will
yield the same limit. So, a common way to show a limit does not exist (dne) is to show that
different paths give different limits:
x2 y
lim .
(x,y)→(0,0) x4 + y 2
Let’s show that the following limit does not exist:
y2
lim .
(x,y)→(1,0) (x − 1)3 + y 2
Let’s show that the following limit does exist by using polar coordinates, where x = r cos θ,
y = r sin θ, and r → 0:
x2 y 2
lim .
(x,y)→(0,0) x2 + y 2
So for f to be continuous at a point, f is defined at the point, the limit of f exists at the
point, and that limit equals the value of f at the point.
The Partial derivative of a function f (x1 , x2 , ..., xn ) with respect to xm is given by:
The above partial derivative is also given the subscript notation fxm .
It is the derivative of f where all variables except xm are held fixed during the differentiation.
Consequently, all the rules of differential calculus apply with all other variables treated as
constants.
Higher-order partial derivatives can also be taken with respect to multiple variables. The
order corresponds to how many derivatives have been taken.
For example:
µ ¶
∂ ∂f ∂ 2f
= = fxx ,
∂x ∂x ∂x2
and
µ ¶
∂ ∂f ∂2f
= = fyx ,
∂x ∂y ∂x∂y
µ µ ¶¶
∂ ∂ ∂f ∂ 3f
= = fyxx ,
∂x ∂x ∂y ∂x2 ∂y
is third-order.
Higher-order partial derivatives involving more than one variable are called mixed partial derivatives.
Careful: The existence of partial derivatives are not sufficient to declare that a function is
differentiable!
The function z = f (x, y) is differentiable at (x0 , y0 ) provided fx (x0 , y0 ) and fy (x0 , y0 ) exist
and that
∆z = fx (x0 , y0 )∆x + fy (x0 , y0 )∆y + ²1 ∆x + ²2 ∆y,
where ²1 and ²2 both approach 0 as ∆x and ∆y approach 0.
Theorem: If a function f (x, y) has partial derivatives defined on an open region containing
(x0 , y0 ) with both fx and fy continuous at (x0 , y0 ), then f is differentiable at (x0 , y0 ).
We do not devote the time to prove it, but the proof is given in Appendix B of the textbook.
Proof: Assume f is differentiable at (x0 , y0 ). Then fx (x0 , y0 ) and fy (x0 , y0 ) exist, and
∆z = fx (x0 , y0 )∆x + fy (x0 , y0 )∆y + ²1 ∆x + ²2 ∆y,
where ²1 and ²2 both approach 0 as ∆x and ∆y approach 0.
On one hand,
½ 2xy
x2 +y 2
if (x, y) 6= (0, 0)
f (x, y) =
0 if (x, y) = (0, 0)
However, this function is not differentiable at (0, 0) as it isn’t even continuous at (0, 0). Just
consider the limit as (x, y) → (0, 0).
If the path (x, x) is taken, the function approaches 1 as x → 0. However, if the path (x, 0)
is taken, the function approaches 0 as x → 0.
Hence the limit doesn’t exists and the function is not continuous at (0, 0).
12.5 Chain Rule
One can draw a tree diagram: z is at the top, two edges go down to x and y, from each an
additional edge goes down for t.
One can also apply this to functions of 3 (or more) intermediate variables that are all
functions of a single common variable. For example, suppose w is a function of x, y and z,
which are each functions of t. Then we have
dw ∂w dx ∂w dy ∂w dz
= + + .
dt ∂x dt ∂y dt ∂z dt
First use the chain rule (by substitution express everything in terms of t at the end).
Second use direct substitution to determine w as a function of t explicitly. Then find the
derivative of w with respect to t directly.
Case 2: z is a function of x and y, which are each functions of s and t. Then we have
∂z ∂z ∂x ∂z ∂y ∂z ∂z ∂x ∂z ∂y
= + and = + .
∂s ∂x ∂s ∂y ∂s ∂t ∂x ∂t ∂y ∂t
One can draw a tree diagram: z is at the top, two edges go down to x and y, from each an
additional two edges go down for s and t.
One can also apply this to functions of 3 (or more) intermediate variables that are all
functions of two variables. For example, suppose w is a function of x, y and z, which are
each functions of s and t. Then we have
∂w ∂w ∂x ∂w ∂y ∂w ∂z ∂w ∂w ∂x ∂w ∂y ∂w ∂z
= + + and = + + .
∂s ∂x ∂s ∂y ∂s ∂z ∂s ∂t ∂x ∂t ∂y ∂t ∂z ∂t
p
Example: Let z = x x2 + y 2 , x = st, y = s + t. Using the chain rule (two intermediate
variables), find zs and zt .
One can of course generalize. By using a tree diagram, a chain rule can be figured out for
any situation!
Implicit differentiation: Consider the situation, when a function y = f (x) is implicitly defined
by F (x, y) = C, where C is a constant.
dy
Consider the equation x2 sin y = y. Find dx
. Hint: Set F (x, y) = x2 sin y − y and use the
formula!
What if F (x, y, z) = k implicitly defines z = f (x, y)? In that case, fx = − FFxz and fy = − FFyz .
Suppose z = f (x, y) and you want to know how z changes at the point (x0 , y0 ) with respect
to a direction (within the domain) given by a unit vector û = (a, b) (so a2 + b2 = 1). Then
the derivative of f with respect to the direction given by û is given by
So the directional derivative is just the dot product of the gradient and a unit vector!
All of this generalizes. The directional derivative of f (x1 , x2 , ..., xn ) at (a1 , a2 , ..., an ) in the
direction of the n-dimensional unit vector û is given by
Dû f = ∇f (a1 , a2 , ..., an ) · û.
Let f (x, y) = x3 y 2 + tan−1 (xy). Find the directional derivative of f (x, y) at the point (1, 3)
in the direction of the vector < 3, −4 >.
For what direction is Dû f (x0 , y0 ) at a maximum? By the dot product identity,
Dû f (x0 , y0 ) = |∇f (x0 , y0 )||û| cos θ = |∇f (x0 , y0 )| cos θ.
So the gradient points in the direction of maximum increase (negative gradient points in the
direction of maximum decrease) and its length is that rate of increase (or decrease).
Find the direction of maximum increase for the function f (x, y, z) = xy 2 z 3 at the point
(2, −2, 1). What is the maximum rate of increase?
Also important: In a direction orthogonal to the gradient, the directional derivative is zero.
Such a direction is parallel to a level set of the function (because the function does not
change in that direction).
Find a direction from the point (1, 2) in which the function f (x, y) = 4x2 − 9y 2 does not
change.
12.7 Tangent Planes and Linear Approximation
Note an explicit function z = f (x, y) can always be defined implicitly by having F (x, y, z) =
z − f (x, y).
Since the gradient is orthogonal to the level set, it can be used as a normal vector to give
the tangent plane to the surface at the point.
The equation of tangent plane to the surface F (x, y, z) = C at the point (x0 , y0 , z0 ) is given
by
This last form also gives what’s called the linear approximation to z = f (x, y) at (x0 , y0 ).
-5
y 0
5
100
z 50
0
10 5 0 -5 -10
x
EXAMPLES:
(1) Find an equation for the tangent plane to graph of the function f (x, y) = x2 y when
x = −2 and y = 3.
(2) Find an equation for the tangent line to the surface given by x2 + y 2 + 1 = z 2 at the
point (2, −2, 3).
p
(3) Let fp(x, y) = x x2 + y 2 . Use the linear approximation of f at (5, 12) to estimate
(5.1) (5.1)2 + (11.9)2 .
0
(4) Recall: ff represents the percent rate of change in f . Use differentials to find a
formula the percent rate of change in the area of an ellipse with major and minor
axis of lengths 2a and 2b respectively. Note: A = πab.
dA πbda + πadb da db
= = + .
A πab a b
If a increases by 5 percent and b decreases by 2 percent, by what percent does the
area increase or decrease?
12.8 Max/Min Problems
(x0 , y0 ) is a saddle point of f (x, y) if every disk about (x0 , y0 ) contains values smaller and
larger than f (x0 , y0 ).
Suppose the second partial derivatives of f (x, y) are continuous throughout an open disk
about a critical point (x0 , y0 ). Let D(x, y) = fxx fyy − (fxy )2 . Then
(1) If D(x0 , y0 ) > 0 and fxx (x0 , y0 ) > 0, then f has a local minimum at (x0 , y0 ).
(2) If D(x0 , y0 ) > 0 and fxx (x0 , y0 ) < 0, then f has a local maximum at (x0 , y0 ).
(3) If D(x0 , y0 ) < 0, then f has a saddle at (x0 , y0 ).
(4) If D(x0 , y0 ) = 0, then the test is inconclusive.
Note: D above is sometimes called the discriminant, and can also be defined as the deter-
minant of the second derivative matrix.
x
Classify all the critical points of f (x, y) = x2 +y 2 +1
.
f (x, y) has an absolute maximum/minimum at (x0 , y0 ) if f (x0 , y0 ) is the largest/smallest
value in the range.
Find the values of f at all critical points in the interior. Find the maximum and mini-
mum value of f on the boundary. The largest/smallest values correspond to the absolute
maximum/minimum.
2 −y 2
Find the absolute extremes of f (x, y) = e−x on {(x, y)|x2 + y 2 ≤ 1}. What if the
inequality was strict?
A lidless box is to be made out of 4 square meters of cardboard. Find the dimensions of the
box with the largest possible volume.
Let’s try to derive a method to find the local extremes values of f restricted to C, called
a constraint. Let C be parameterized by r(t) =< x(t), y(t) > where x(t) and y(t) are
differentiable. Then let h(t) = f (x(t), y(t)), which is differentiable. We want the extreme
values of h. By the chain rule:
So the extreme values of f restricted to C occur where the gradient of f is orthogonal to the
curve C (as r0 (t) is parallel to C).
• Find the dimensions (radius, height) of a right circular cylinder of max. volume that can be
inscribed in a sphere of radius 4. Hint: The radius of the sphere, the radius of the cylinder,
and half the height of the cylinder form a right triangle...
• Find the point(s) on the cone z 2 = x2 +y 2 that are closest to (1, 2, 0). What is that minimum
distance? Hint: Minimize the square distance subject to the cone as the constraint.
Use the method of Lagrange multipliers to find the point closest to the origin that lies on L,
the line of intersection of the planes x + 2z = 12 and x + y = 6. Can you verify the result
using methods described in chapter 11?