Questions tagged [functions]

For elementary questions about functions, notation, properties, and operations such as function composition. Consider also using the (graphing-functions) tag.

A function $f$ defined on a set $X$ is an assignment of an element in some set $Y$ to each element of $X$. The set $X$ is called the domain of the function and $Y$ is called the codomain. The elements of $X$ are the inputs to the function and the elements of $Y$ are the potential outputs. For some input $x \in X$, its corresponding output in $Y$ is denoted $f(x)$. Not every element of $Y$ needs to be the output corresponding to some input though: the subset of $Y$ containing the elements that are an output of the function is called the range of $f$. When a function $f$ has domain $X$ and codomain $Y$, this is signified by writing $f \colon X \to Y$, and the assignments of inputs to outputs is signified by writing $f\colon x \mapsto f(x)$.

If you have a function whose codomain is the domain of another function, you can compose those two functions. In symbols if you have a function $f\colon X \to Y$ and a function $g \colon Y \to Z$, their composite is a function $g\circ f\colon X\to Z$ defined by the assignment $g\circ f\colon x \mapsto g(f(x))$.

For many examples of functions, the domain and range of the function are topological spaces, meaning that they are equipped with some notion of geometry. In this case we like to think of the function $f\colon X\to Y$ geometrically as the subset of the points $(x,f(x))$ in the topological space $X \times Y$. This subset of all the input-output pairs is called the graph of $f$.

Often mathematics textbooks will define a function slightly more rigorously than this though. They'll say that a function $f \colon X \to Y$ is a relation $R$ on the set $X \times Y$ such that

  1. For each $x \in X$ there is some $y \in Y$ such that $xRy$. Each input needs an output.
  2. If $xRy$ and $xRz$, then $y=z$. Each input needs exactly one output.

Here are a bunch of examples of functions:

  • Many examples of functions covered in elementary and high school have as their domain and codomain the real numbers $\mathbf{R}$. A basic example is the function $f \colon \mathbf{R} \to \mathbf{R}$ defined by the rule $f(x) = x^2$. Thinking geometrically, the graph of $f$ is the set of all points $(x,x^2)$ in the plane $\mathbf{R}^2$, and this forms a parabola. Note that while the codomain of this function is $\mathbf{R}$, the range consists of only the non-negative real numbers.

  • Here's a silly example. For any set $X$ we can define an identity function $\mathbf{1}_X$ with domain and codomain $X$ such that $\mathbf{1}_X \colon x \mapsto x$.

  • Let $W$ denote the set of all strings of letters of the alphabet, so like $\text{npr}$ or $\text{asdfasdf}$ or $\text{butt}$ for example. And let $\mathbf{N}$ denote the set of natural numbers. We can define a function $\ell\colon W \to \mathbf{N}$ such that $\ell$ assigns to each word it's length. So $\ell(\text{defenestration}) = 14$. Also $\ell(\text{butt})=4$.

  • Using the same set $W$ in the last example, let's define another function $\tau\colon W \to W$ such that $\tau$ "reverses" a word. So $\tau(\text{defenestration}) = \text{noitartsenefed}$, and $\tau(\text{butt}) = \text{ttub}$. A few neat properties of $\tau$ that deserve to be pointed out, $\tau \circ \tau = \mathbf{1}_W$, and also $\ell\circ\tau = \ell$.

33723 questions
3
votes
1 answer

Grade 11 Functions - Would you please check my answers to a couple questions?

My teacher didn't put up the answers anywhere but I'm still paranoid about getting the questions wrong. I guess my teacher's not worried about it because the questions are fairly easy? The original graph is $y=f(x)$. "Shift left 3 units" has the…
Hamze
  • 39
3
votes
2 answers

Can a function have multiple domains?

Suppose $f:A\to Z$. In addition to this mapping, can I simultaneously define $f$ separately such that $f:B\to W$ where $A\cap B=\emptyset$ ? This polymorphism of function domains makes sense to me, but would this be accepted mathematically? So when…
pshmath0
  • 10,565
3
votes
2 answers

Prove that $(x+3)^2$ is not one-to-one

So the domain given is $f\colon\mathbb{R}\to\mathbb{R}^+\cup\{0\}$. Does this mean the set of all negative numbers and $0$ but no positive numbers? I am asking because if it does include positive and negative numbers I believe I can prove this by…
3
votes
2 answers

Can we find out vertical asymptotes by finding the limit of a function y=f(x)/g(x) when y approaches infinity?

A vertical asymptotes occurs when y approaches infinity (like a horizontal asymptote occur when x approaches infinity). So, can you apply a limit as y approaches infinity, on any function, especially rational functions, to find the vertical…
Person
  • 33
3
votes
2 answers

When do we apply functions in our daily life?

When do we apply functions in our daily life? When do we use discrete functions and when do we use continuous function? Any links, perhaps? Thank you.
3
votes
1 answer

Let $S=\{0,2,4,6,8\}$, $T=\{1,3,5,7\}$. Determine whether each of the following sets of ordered pairs is a function with domain $S$ and co-domain $T$.

Let $S=\{0,2,4,6,8\}$ and $T=\{1,3,5,7\}$. Determine whether each of the following sets of ordered pairs is a function with domain $S$ and co-domain $T$. $\{(6,3),(2,1),(0,3),(8,7),(4,5)\}$ TRUE This is a…
3
votes
2 answers

what is the graph of $y = x^x$?

Obviously on the RHS this graph is just a really steep exponential graph however problems arise on the LHS and I cannot find any graph sketching programs that can do. Some will give a graph but then simply say that the LHS is undefined which must be…
3
votes
1 answer

What might this function be?

The problem: I'm looking for a particular function $f(x, y)$—this isn't "homework" in the sense that I have no idea if such a function exists. It has a continuous domain $-1 \lt x \lt 1$ and $-1 \lt y \lt 1$, and a continuous range $-1 \le f(x, y)…
user321514
3
votes
1 answer

fundamental period of function $f(x)$ is

If $f:\mathbb{R}\rightarrow \mathbb{R}$ and $f(2+x) = f(2-x)$ and $f(20-x) = f(x)\;\forall x\in \mathbb{R}$ and $f(2)\neq f(6)$ Then fundamental period of function $f(x)$ is $\bf{My\; Try::}$ Given $f(2+x) = f(2-x)\;,$ Now replace $x\rightarrow…
juantheron
  • 53,015
3
votes
2 answers

is $y = \sqrt{x^2 + 1}− x$ a injective (one-to-one) function?

I have a function $y = \sqrt{x^2 + 1}− x$ and I need to prove if it's a Injective function (one-to-one). The function f is injective if and only if for all a and b in A, if f(a) = f(b), then a = b $\sqrt{a^2 + 1} − a = \sqrt{b^2 + 1} −…
Gianni
  • 219
3
votes
1 answer

What do you call a function $f$ such that $f(f(x))=x$?

What is the name of the property of a function that yields the original result when done twice in a row: $$f(f(x)) = x?$$ I'm pretty sure there is a word for these functions, but I haven't been able to find it.
3
votes
2 answers

What's the point of an inclusion function defined $\to X$?

The inclusion function is defined in my notes as follows Let $A \subseteq X$ for any set $X$. The inclusion function $i:A \to X$ is defined by $i(a)=a$ $\forall a \in A$. Well, what I don't get is, isn't this essentially $A \to A$ and not $A \to…
John Trail
  • 3,279
3
votes
3 answers

Let $f(x) = x^{2}$ for all $x \in \Bbb R$. Show that $f[\Bbb Q] \subset \Bbb Q$

Let $f(x) = x^{2}$ for all $x \in \Bbb R$. Show that $f[\Bbb Q] \subset \Bbb Q$ We know that $f[\Bbb Q]$ is the set of all values that $f$ takes on given points in $\Bbb Q$, i.e. $f[\Bbb Q] = \{f(x):x\in \Bbb Q\}$. But how do I show that every…
kanker7
  • 275
3
votes
2 answers

Can a increasing function from $\mathbb{R} \to \mathbb{R}$ be bounded?

A function $$f: \mathbb{R} \to \mathbb{R}$$ be increasing and yet be bounded?
brainst
  • 269
  • 2
  • 11
3
votes
2 answers

Proving equipotency between sets.

Prove that the set $[2,5[$ is equipotent with the set $[3,4[$ According to my book, I have to find the linear function that passes by the points $(2,4)$ and $(5,3)$. How do you do that? This is a particular case that doesn't seem to be explained in…
Saturn
  • 7,191