Source: https://sites.millersville.edu/bikenaga/math-proof/functions/functions.pdf