skip to contentstylized crane logoWhite Crane Education
Video Lectures>Practice Problems

Exercises

Icon Legend

Exercises

Determine if the following proposed functions are well-defined.

  1. $f:\mathbb{Z} \to \mathbb{Z}$ by $f(x) = 2x$.
  1. $f:\mathbb{N} \to \mathbb{N}$ by $f(x) = x - 1$
  1. $f:\mathbb{R} \to \mathbb{R} \text{ by } f(x) = e^x$
  1. $f:\mathbb{Q} \to \mathbb{Z}$ where $f(x)$ is defined to be the number's numerator
  1. $f:\mathbb{R} \to \mathbb{N}$ where $f(x)$ is defined to be the number of digits in the decimal version of x
  1. $f:\mathbb{Z} \to \mathbb{R} \text{ by } (x) = \frac{1}{x}$

Determine which of the following functions are one-to-one and/or onto.

  1. $f:\mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^2$green check mark - show solution
  1. $f:[0, \pi] \to [-1, 1]$ defined by $f(x) = \cos(\theta)$green check mark - show solution
  1. $f:[0, \pi] \to [-1, 1]$ defined by $f(\theta) = \sin(\theta)$green check mark - show solution
  1. $f:\mathbb{R} \to \mathbb{R}$ defined by $f(x) = \lceil x \rceil $green check mark - show solution
  1. $f:\mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^3$green check mark - show solution
  1. $g:\mathbb{R} \to \mathbb{R}$ defined by $ g(x) = \begin{cases} 1, & x = 0 \\ 0, & x \ne 0 \end{cases}$
  1. $g:\mathbb{Z} \to [0,1]$ defined by $ g(x) = \begin{cases} 1, & x \text{ is even} \\ 0, & x \text{ is odd} \end{cases}$green check mark - show solution
  1. $f:\mathbb{R} - \{-1\} \to \mathbb{R}$ defined by $f(x) = \frac{x}{x + 1}$
  1. $\pi:\mathbb{N} \to \mathbb{N}$ where $\pi(n)$ is the number of prime numbers less than or equal to $n$green check mark - show solution

For the functions in the previous section that weren't one-to-one or onto suggest a restriction on the domain or range that would make them onto, if possible. Your modified function should still be equal to the original ones at all points where the original one is defined. The complete list is duplicated below including the ones that were one-to-one and/or onto.

  1. $f:\mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^2$green A - final answer
  1. $f:[0, \pi] \to [-1, 1]$ defined by $f(x) = \cos(\theta)$green A - final answer
  1. $f:[0, \pi] \to [-1, 1]$ defined by $f(x) = \sin(\theta)$green A - final answer
  1. $f:\mathbb{R} \to \mathbb{R}$ defined by $f(x) = \lceil x \rceil $
  1. $f:\mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^3$green A - final answer
  1. $g:\mathbb{R} \to \mathbb{R}$ defined by $ g(x) = \begin{cases} 1, & x = 0 \\ 0, & x \ne 0 \end{cases}$
  1. $g:\mathbb{Z} \to [0,1]$ defined by $ g(x) = \begin{cases} 1, & x \text{ is even} \\ 0, & x \text{ is odd} \end{cases}$
  1. $f:\mathbb{R} - \{-1\} \to \mathbb{R}$ defined by $f(x) = \frac{x}{x + 1}$
  1. $\pi:\mathbb{N} \to \mathbb{N}$ where $\pi(n)$ is the number of prime numbers less than or equal to $n$
  1. In the previous section, notice that I didn't ask for a way you could restrict the function that made it one-to-one while still being equal to the original function. Why wouldn't it be possible to do that?green check mark - show solution

Explorations

For the sets $A=\{1, 2, 3, 4\}$, $B = \{a, b, c, d\}$ and $C = \{m, n, p\}$, given an example of a function that has the following properties if possible and explain why it isn't possible if not.

  1. $f:A \to B$ where $f$ is not ontogreen question mark - hintgreen check mark - show solution
  1. green star - important content $f:A \to C$ where $f$ is ontogreen check mark - show solution
  1. $f:C \to B$ where $f$ is one-to-one
  1. $f:C \to B$ where $f$ is onto
  1. $f:A \to B$ and $g:B \to C$ where $f$ is onto but the composition $f \circ g$ isn't.green check mark - show solution
  1. green star - important content $f:A \to B$ and $g:B \to C$ where $f$ is not one-to-one but the composition $f \circ g$ is.green question mark - hintgreen check mark - show solution
  1. green star - important content $f:A \to B$ and $g:B \to C$ where $f$ is not one-to-one but the composition $g \circ f$ is.green check mark - show solution
  1. If $f:A \to B$ and $g:A \to B$ are both one-to-one, does $(f + g):A \to B$ have to be one-to-one?green check mark - show solution
  2. If $f:A \to B$ and $g:A \to B$ are both onto, does $(f + g):A \to B$ have to be onto?green check mark - show solution

Icons courtesy of icons8.com


link to Facebook