f:A→B is a function where each a∈A has a unique f(a)∈B
called the image of a under f.
The set A is called the domain denoted by D(f)
The set B is called the codomain of f
The subset of B which consists of all f(a) is called the range of f
Definition - Scalar Function:f(x1,⋯,xn) of n variables whose domain is
a subset of Rn and whose range is a subset of R
Sometimes we use x to represent points in Rn
Finding domain / range
It is sometimes easier to visualize using a picture, example: f(x,y)=xy, knowing that xy>0 we can see that the domain is the top right
and bottom left quadrants of a cartesian plane
1.2 - Geometric Interpretation of z=f(x,y)
In real to real functions we think of the y axis as the height at x,
we extend this thinking to now think of z as the height at (x,y) creating a 3 dimensional surface
In general f(x,y)=c1x+c2y+c3, where c1,c2,c3∈R represents a plane
Definition - Level Curves: are the curves f(x,y)=k where the values of k come from the range of f
Set the function z=f(x,y) equal to a constant and increment through the constants (heights)
to visualize the height map (if the different heights are parallel lines it forms a plane)
Definition - Cross Section: The intersection of a surface, z=f(x,y), with a vertical plane
set x or y to a constant to find the cross section of the plane at going through that point
Generalization
Definition - Level Surfaces: A level surface of a scalar function f(x,y,z)isdefinedby,f(x, y, z) = k, k \in R(f)$
Definition - Level Sets: A level set of a scalar function f(x),x∈Rn is defined by, {x∈Rn∣f(x)=k, for k∈R(f)}
Chapter 2
2.1 - Definition of a limit
definition for a function of two variables: ∣f(x)−L∣<ϵ∣ whenever 0<∣x−a∣<δ
Before we define a limit we need to generalize the concept of an interval (−r,r)=x:∣x∣<r where r∈R
Definition - neighbourhood: an r-neighbourhood of a point (a,b)∈R2 is a set
Nr(a,b)={(x,y)∈R2∣∣∣(x,y)−(a,b)∣∣<r,r∈R}
∣∣(x,y)−(a,b)∣∣ is the euclidean distance in R2$
Definition - limit: Assume f(X,y) is defined in a neighbourhood of (a,b), except possibly at (a,b). If for every ϵ>0 there exists a δ>0 such that
0<∣∣(x,y)−(a,b)∣∣<δ⇒∣f(x,y)−L∣<ϵ
then
lim(x,y)→(a,b)f(x,y)=L.
Note that using this definition of limit is very difficult for showing limits exist, so we will develop theorems which make it easier.
2.2 - Limit theorems
Theorem - Limit Theorem 1: if lim(x,y)→(a,b)f(x,y) and lim(x,y)→(a,b)g(x,y) both exist then,
Theorem - Limit Theorem 2: If lim(x,y)→(a,b)f(x,y), exists, then the limit is unique.
exercise prove the theorem above.
2.3 - Proving a limit does not exist
With functions of one variable we should the left and right limit do not equal and thus it does not exist.
Now we can use any line.
Technique 1: we if we are approaching (x,y)→(0,0)$ first we use the line y = 0, and shoe that f(x,y) = a, then we use the line x = 0 and show f(x, y) = b and if a=b then the limit does not exist
Technique 2: we can approach the limit using y=mx then if we simplify to an expression which depends on the value of m then the limit is not unique and hence does not exist
Caution: make sure lines used to approach the limit actually approach the limit, (if ur approaching (0,0) the line you use must be a function which actually does approach (0,0))
2.4 - Proving a limit exists
Theorem - Squeeze theorem: if there exists a function $B(x,y) such that,
∣f(x,y)−L∣≤B(x,y)
for all (x,y)=(a,b)
in some neighbourhood of (a,b) and lim(x,y)→(a,b)B(x,y)=0 then
lim(x,y)→(a,b)f(x,y)=L
Chapter 3
3.1 - Definition of a continuous function
A single variable function is continuous iff:
f is defined at x=a
limx→af(x) exists, which means the left and right limits exist and are equal
limx→af(x)=f(a)
For a function f(x,y) to be continuous we can intuively see that this means there are no "breaks" or "holes" in the surface
Definition - Continuous: A function f(x,y) is continuous at (a,b) if and only if
lim(x,y)→(a,b)f(x,y)=f(a,b)
Additionally, if f is continuous at every point in a set D1⊂R2
Remark just like single variable calculus there are three requirements in this definition:
the limit exists
f is defined at (a, b)
the limit as (x,y) -> (a, b) f(x, y) = f(a, b)
3.2 - The continuity theorems
We will defined basic functions which can be understood as continuous on their domain without further explanation.
Using these functions we will view other functions as compositions of simpler functions to make proving continuity easier.
List of continuous functions:
the constant function f(x,y)=k
the power functions f(x,y)=xn, f(x,y)=yn
the logarithm function ln(⋅)
the exponential fucntion e(⋅)
the trigonometric functions, sin(⋅),cos(⋅), etc.
the inverse trigonometric functions, arcsin(⋅), etc.
the absolute value function ∣⋅∣
Definition - Operations on functions: if f(x,y) and g(x,y) are scalar functions and (x, y) is in the domain of both functions then:
the sum is f+g is defined by (f+g)(x,y)=f(x,y)+g(x,y)
the **product fg is defined by (fg)(x,y)=f(x,y)g(x,y)
the quotientgf is defined by (gf)(x,y)=g(x,yf(x,y) if g(x,y)=0
3.2 - The continuity theorems
Theorem: Continuity theorem 1: if f and g are continuous at (a,b) then f+g and fg are continuous at (a,b)
Theorem: Continuity theorem 2: if f and g are continuous at (a,b) and g(a,b)=0 then gf is continuous at (a,b)
Theorem: Continuity theorem 3: if f and g are continous at (a,b) then their composition is continuous
Chapter 4
Chapter 4.1 - Partial Derivatives
Definition - Partial Derivatives: The partial derivatives of f(x,y) are defined by
δxδf(x,y)=fx(x,y)=limh→0hf(x+h,y)−f(x,y)
δyδf(x,y)=fy(x,y)=limh→0hf(x,y+h)−f(x,y)
provided that these limits exist
Remark: sometimes it's convenient to use operator notation, if f has variables x and y
D1f=δxδf=fx
D2f=δyδf=fy
sometimes we abbreviate and only write δyδf
note that the conept of partial derivatives does not match our definition of derivative for single variable functions, where differentiability imples continuity (this is not the case for partial derivatives).
We can generalize this concept to a scalar function of n variables f(x),x∈Rn, where we find the partial derivative of f with respect to its i-th variable, we hold all the other variables constant.
Chapter 4.2 - Higher-Order Partial Derivatives
Since we have two first order partial derivatives (1 for each variables) then we have 4 total combinations for second order partial derivitaves.
it is often convenient to use subscript or operator notation
Theorem 1 - Clairaut's Theorem: If fxy and fyx are defined in some neighbourhood of (a,b) and are both continuous at (a,b), then
fxy(a,b)=fyx(a,b)
the proof of this theorem is beyond the scope of this course
Higher-order partial derivatives
observe that f(x,y) has eight third partial derivatives
Clairaut's theorem holds ofr higher-order partial derivatives (the partial derivative is equal to another when they contain the same partial derivatives in a different arrangements)
Terminology: if the k-th partial derivatives of f(x1,⋯,xn) are continuous then we write,
f∈Ck
and say "f is in class Ck."
Chapter 4.3 - Tangent Plane
Definition - Tangent Plane: The tangent plane to z=f(x,y) at the point (a,b,f(a,b)) is
z=f(a,b)+δxδf(a,b)(x−a)+δyδf(a,b)(y−b)
Chapter 4.4 - Linear Approximation for z=f(x,y)
Review of the 1D case
La(X)=f(a)+f′(a)(x−a) and is called the linearization of f at a since it approximates f(x) for x sufficiently close to a
Chapter 5 - Differentiable Functions
Chapter 5.1 - Definition of Differentiability
Theorem 1 - differentiability of single variable: if g′(a) exists then limx→a∣x−a∣∣R1,a(x)∣=0 where
R1,a(x)=g(x)−La(x)=g(x)−g(a)−g′(a)(x−a)
Definition - Dirrefentiable: a function f(x,y) is differentiable at (a,b) if
lim(x,y)→(a,b)∣∣(x,y)−(a,b)∣∣∣R1,(a,b)(x,y)∣=0
where
R1,(a,b)(x,y)=f(x,y)−L(a,b)(x,y)
as with the one dimensional case there is only one plane which satisfies this result
for some constants c and d then c=fx(a,b) and d=fy(a,b)
A function which is not differentiable at a point a1 has the property that the linear approximation doesn't get any better at approximating the function as we get closer to the point
this is equivalent to saying there is no good plane to represent the tangent plane at that point
Definition - Tangent Plane: if f is differentiable at (a,b) then the tangent plane of the surfance is,
z=f(a,b)+δxδf(a,b)(x−a)+δyδf(a,b)(y−b)
Chapter 5.2 - Differentiability and Continuity
Theorem 1: if f(x,y) is differentiable at (a,b) then f is continuous at (a,b)
Chapter 5.3 - Continuous Partial Derivatives and Differentiability
Theorem 1 - The mean value theorem: If f(x) is continuous on the closed interval [x1,x2] and f is differentiable on the open interval (x1,x2), then there exists x0∈(x1,x2) such that
f(x2)−f(x1)=f′(x0)(x2−x1)
**Theorem 2:$$ if the partial derivatives fx and fy are both continuous at (a,b) then f(x,y) is differentiable at (a,b)
GeneralizationDefinition - Differentiability for f:Rn→R
A function f:Rn→R is differentiable at point a if
limx→a∣∣x−a∣∣∣f(x)−f(a)−La(x−a)∣=0
where L:Rn→R is a linear transformation
Theorem 1 for functions of n variables if f(x1,⋯,xn) is differentiable at a then f is continuous at a
Theorem 2 for functions of n variables if f1,⋯fn are continuous at a then f is differentiable at a
Theorem - Chain Rule: Let G(t)=f(x(t),y(t)), and let a=x(t0) and b=y(t0). If f is differentiable at (a,b) and x′(t0) and y′(t0) exist, then G′(t0) exists and is given by
G′(t0)=fx(a,b)x′(t0)+fy(a,b)y′(t0)
Vector form:
dtdf(x(t))=Δf(x(t))⋅dtdx(t)
6.2 - Extension of basic chain rule
Use a tree to apply the following algorithm:
Identify all of the variables
Take all possible paths from the differentiated variable to the differentiating variable
For each lik in a given path, differentiate the upper variable with respect to the lower variable being carefule to consider if thsi is a derivative or a partial derivative. Multiply all such derivatives in that path.
Add the products from step 3 together to complete the Chain Rule
Chapter 7 - Directional Derivatives and the Gradient Vector
Chapter 7.1 - Directional Derivative
The directional derivative of f(x,y) at a point (a,b) in the direction vector of a unit vectoru=(u1,u2) where ∣∣u∣∣=1 is defined by
Duf(a,b)=dsdf(a+su1,b+su2)∣s=0
Theorem 1 - Directional Derivative (DD) Theorem: If f(x,y) si differentiable at (a,b) and u=(u1,u2) where ∣∣u∣∣=1 is a unit vector, then