2.101 Introduction to functions
See references 1, 2
Definition:
A function is a relation between a set of inputs A and a set of outputs B.
Each input maps to exactly one output.
Multiple items in A can map to a single item in B.
Example of a function:
- each item A has an output in B
- 65 has no output
- 62 has 2 outputs
We write:
We write:
y is called the image of x,
whereas x is called the pre-image of y.
We write:
$$ f(x) = y $$
Example:
A = {0, 1, 2, 3, 4, ...}
B = {0, 1, 2, 3, 4, ...}
$ x \rightarrow 2x+1 $- any number squared is positive
- +1 makes for bigger than 1
Plotting Functions
Linear Functions
- straight line function
- passes through the point (0, b)
- a is the gradient
- if gradient a > 0 then the function is increasing
- $ x_1 < x_2 $ then $ f(x_1) < f(x_2) $
Quadratic Functions
$$ f(x) = ax^2 + bx = c $$
- where a, b, and c are the numbers and a $ \neq $ 0
Exponential Function
$$ f(x) = b^x \ where \ b > 0 \ and \ b \neq 1 $$
- variable b is called the base of the function
- Domain $ ]-\infty, \infty[ $
- Range $ ]0, \infty[ $
- Horizontal asymptote y= 0
Laws of Exponents
$ b^x \cdot b^y = b^{x+y} $
$ \frac{b^x}{b^y} = b^{x-y} $
$ (b^x)^y = b^{xy} $
$ (ab)^x = a^x \cdot b^x $
$ (\frac{a}{b})^x = \frac{a^x}{b^x} $Natural Logarithm function
see reference 4
2.106 Injective and surjective functions
see reference 5
Injective (one-to-one) Functions
- one-to-one function
- Let $ f: A \rightarrow B $ be a function
- Definition: f is said to be an injective (one-to-one) function if and only if:
- for all $ a,b \in A $, if $ a \neq b $ then $ f(a) \neq f(b) $
Surjective (onto) functions
Resources
- https://www.coursera.org/learn/uol-discrete-mathematics/lecture/dEASs/2-101-introduction
- https://www.coursera.org/learn/uol-discrete-mathematics/lecture/dEASs/2-101-introduction
- https://www.coursera.org/learn/uol-discrete-mathematics/lecture/LJ9wV/2-104-plotting-functions
- https://www.youtube.com/watch?v=8qs6QxGCIQU
- https://www.coursera.org/learn/uol-discrete-mathematics/lecture/XyWA9/2-106-injective-and-surjective-functions