MAT102 Lecture 17
Functions in Math
These are diff functions:
f : R → R , f ( x ) = x 2
g : R → [ 0 , ∞ ) , g ( x ) = x 2
g has a right inverse but f doesn't have an inverse.
Even though the graphs are the same, the 'function' is different.
f : { 0 , 1 } → R , f ( x ) = x 2
g : { 0 , 1 } → R , g ( x ) = x
These are the same function, why? Because the input is the same, the outputs are also the same.
f ( 0 ) = 0 2 = 0
f ( 1 ) = 1 2 = 1
g ( 0 ) = 0
g ( 1 ) = 1
So you can change the definition of how to compute the outputs - in certain cases you can have the exact same function then.
The average function from R → R is not continuous: probability is 0.
The average function from R → R if it's continuous, is not differentiable everywhere: probability is 0.
The Weierstrass Function is basically a triangle wave distorted with some white noise. It's also one of the only always continuous and differentiable function.
A lambda is like a mini function:
In python, you can do f=lambda x: x*x
In math it's in functions, when you see x ↦ x 2 it means g ( x ) = x 2
Invertible Functions in Math
f : R → R , f ( x ) = x 2
The preimage of this:
f − 1 ( R ) = [ 0 , ∞ )
Preimage of the Codomain
This is the domain, everything in the Domain maps to the Codomain
f ( f − 1 ( R ) ) = f ( R ) = [ 0 , ∞ )
1 Suppose that f : A → B is a function
a
if U 1 , U 2 ⊆ B then f − 1 ( U 1 ∩ U 2 ) = f − 1 ( U 1 ) ∩ f − 1 ( U 2 )
Double Subset Inclusion
⟹
If x ∈ f − 1 ( U 1 ∩ U 2 )
This means f ( x ) ∈ U 1 and f ( x ) ∈ U 2
x ∈ f − 1 ( U 1 ) and x ∈ f − 1 ( U 2 )
So this means x ∈ f − 1 ( U 1 ) ∩ f − 1 ( U 2 )
⟸
If x ∈ f − 1 ( U 1 ) ∩ f − 1 ( U 2 )
This means x ∈ f − 1 ( U 1 ) and x ∈ f − 1 ( U 2 )
So f ( x ) ∈ U 1 and f ( x ) ∈ U 2
So f ( x ) ∈ U 1 ∩ U 2
So x ∈ f − 1 ( U 1 ∩ U 2 )
b
Show that if U 1 , U 2 , … , U n ⊆ B
Then f − 1 ( ⋂ i = 1 n U i ) = ⋂ i = 1 n f − 1 ( U i )
Base case: N = 2
This is true theoretically because the image is the range. The range will be in the Codomain .
f − 1 ( U 1 ∩ U 1 ) = f − 1 ( U 1 ) ∩ f − 1 ( U 1 )
This was proven in 1)a)
Induction Hypothesis:
For k ≥ 2
f − 1 ( ⋂ i = 1 k U i ) = ⋂ i = 1 k f − 1 ( U i )
Induction Step:
Show that this is true for n = k + 1
f − 1 ( ⋂ i = 1 k + 1 U i ) = ⋂ i = 1 k + 1 f − 1 ( U i )
f − 1 ( ⋂ i = 1 k U i ∩ U k + 1 ) = ⋂ i = 1 k + 1 f − 1 ( U i )
f − 1 ( ⋂ i = 1 k U i ∩ U k + 1 ) = ⋂ i = 1 k f − 1 ( U i ) ∩ f − 1 ( U k + 1 )
We see the induction hypothesis on the right side
f − 1 ( U 1 ∩ U 2 ∩ ⋯ ∩ U k + 1 ) = ⋂ i = 1 k f − 1 ( U i ) ∩ f − 1 ( U k + 1 )
Solutions
a
⊆
Let x ∈ f − 1 ( U 1 ∩ U 2 )
So f ( x ) ∈ U 1 ∩ U 2
So f ( x ) ∈ U 1 and f ( x ) ∈ U 2
So x ∈ f − 1 ( U 1 ) and x ∈ f − 1 ( U 2 )
So x ∈ f − 1 ( U 1 ) ∩ f − 1 ( U 2 )
This is simple
⊇
b
Base Case: n = 2
f − 1 ( U 1 ∩ U 2 ) = f − 1 ( U 1 ) ∩ f − 1 ( U 2 )
Part 1)a)
Assume for some n , f − 1 ( ⋂ i = 1 n U i ) = ⋂ i = 1 n f − 1 ( U i )
f − 1 ( ⋂ i = 1 n + 1 U i ) = f − 1 ( ⋂ i = 1 n U i ∩ U n + 1 ) = f − 1 ( ⋂ i = 1 n U i ) ∩ f − 1 ( U n + 1 ) We have part 1)a)
⋂ i = 1 n f − 1 ( U i ) ∩ f − 1 ( U n + 1 ) Induction hypothesis
⋂ i = 1 n + 1 f − 1 ( U i )
c
1
Let I k = [ − 1 k , 1 k ] ⊆ R for k a positive integer
Determine ⋂ k = 1 ∞ I k
Claim: The ⋂ k = 1 ∞ [ − 1 k , 1 k ] = { 0 }
Double Subset
⊇
Note that 0 ∈ [ − 1 k , 1 k ] for all k , so
0 ∈ ⋂ k = 1 ∞ I k
⊆
Let x ∈ ⋂ k = 1 ∞ I k
Contradiction, suppose it's not
x > 0
Thus there is some k ∈ N such that 1 k < x
Therefore x ∉ [ − 1 k , 1 k ] so
x ∉ ⋂ k = 1 ∞ [ − 1 k , 1 k ] , a contradiction.
2