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
5 answers

If $f(g(x)) = 4x^2-8x$ and $f(x)=x^2-4$, then what's the value of $g(x)$?

I'm a little stuck with this simple function: If ${f(g(x)) = 4x^2-8x}$ and ${f(x)=x^2-4}$, then what's the value of ${g(x)?}$ Any tips?
Kevin
  • 568
3
votes
1 answer

Integral One-to-one functions in 3 dimensions

I am looking for a integer-valued one-to-one function that maps coordinates $(x,y,z)$ in space $\mathbb{Z^+}$ to intergers in $\mathbb{Z^+}$?
adi
  • 133
3
votes
1 answer

What does the following statement in the definition of right inverse mean? ("For $b\in B$, $b\neq a\alpha$ for any $a$, define $b \beta=a_{1}\in A$")

Question: Let $A$ and $B$ be arbitrary sets, with $\alpha:A\rightarrow B$ an injection. Show how to define $\beta:B\rightarrow A$ such that $\alpha \beta$ is the identity function on $A$. Solution: For $a\in A$ define $(a\alpha)\beta=a$. For $b\in…
3
votes
1 answer

Is there a name for a function which produces the same result when reapplied?

Is there a name for a function which, when applied to its own result, will always return that same result? e.g. for a function $f(x) = ||x||$ $f(2.5) = 2$ and $f(f(2.5)) = 2$
3
votes
1 answer

Well Ordering and Isomorphism: Possible Error in Textbook Proof?

My textbook claims to prove the statement that for $2$ well-ordered sets, $X$ and $Y$, either $X$ and $Y$ are isomorphic or one of the sets is isomorphic to an initial segment of the other set (i.e. an upper bounded subset of the other set). The…
3
votes
2 answers

Function that returns 1 given any positive number

What would be a way to write a function that given any positive number the function would return one, but for a negative number or zero it would return zero. Also what mental process should I go through to approach such a problem? For example: f(45)…
3
votes
3 answers

Injective, surjective or bijective?: $f: \mathbb{R}^{2} \rightarrow \mathbb{R}^{2}, (x,y) \mapsto (x+y,x+y^{2})$

Is the following mapping injective, surjectiv or bijective? Say why and if necessary, calculate the inverses. $f: \mathbb{R}^{2} \rightarrow \mathbb{R}^{2}, (x,y) \mapsto (x+y,x+y^{2})$ I have looked for some tasks I don't understand in old exams…
cnmesr
  • 4,720
  • 7
  • 44
  • 83
3
votes
3 answers

How to find composite functions upto infinity for a given function?

Consider the following function: $$ f(x) = x + \frac18 \sin (2πx) \\ x \in [0,1]$$ Define $f_1(x) = f(x)$ , $f_{n+1}(x) = f(f_n(x))$, for $n \geq 1$. Which of following statements are true ? There are infinitely many $x \in [0,1]$ for which…
Matt
  • 1,150
3
votes
1 answer

Some exercises about functions

I need some exercises about functions in general to make sure that I understand it, in a book or a material book. Concepts like function in general (the definition of function), concepts like one-to-one, onto and closure.
Gigili
  • 5,503
  • 8
  • 41
  • 62
3
votes
2 answers

Set theory and injectivity

So right now I'm working through Topology by Munkres and reviewing some basic set theory. I came across the following problem: Show $f(A-B) \supset f(A)-f(B)$ with equality iff $f$ is injective. The problem I'm having here is that I feel I can show…
Mike P.
  • 31
3
votes
2 answers

How to determine if a function is increasing.

How would I determine whether a function is increasing, decreasing or neither without using calculus? Like whether x^0.5 is increasing in interval [0, infinity) Just curious Thanks
Thomas
  • 621
3
votes
5 answers

What are the conditions on $a, b, c$ so that $x^3+ax^2+bx+c$ is bijective?

I would like to find the conditions on $a$, $b$, $c$ so that function $$f(x)=x^3+ax^2+bx+c$$ is bijective. I thought about resolving the equation $$x^3+ax^2+bx+c=y$$ but I didn't succeed. And our math teacher told us that we cannot prove that a…
Marie
  • 31
3
votes
2 answers

What shall we call a "function" or relation if it fails passing either vertical or horizontal line test?

I found this extremely confusing because there is so called "rose pedal function"..and circle standard form... Does it mean that if a relation failed either vertical or horizontal test, then we have to use its shape to identify it? Is there really…
3
votes
1 answer

What is an example for a strictly increasing strictly concave differentiable function with no lower or upper bound on $\Bbb R$?

I am looking for an example of a function on $\Bbb R$ that is strictly increasing, strictly concave, differentiable and has no lower or upper bound.
Daniel
  • 155
3
votes
1 answer

Show $f\colon\{\,x+iy \mid x,y\in\mathbb{Q}\,\}\rightarrow\mathbb{Q}\times\mathbb{Q}$, $f(x+iy)=(x,y)$ is well defined

My original assignment was to prove that the set $\{\,x+iy \mid x,y\in\mathbb{Q}\,\}$ is countable. Since I now that $\mathbb{Q}\times\mathbb{Q}$ is countable, I immediately thought of the injection $f\colon \{\,x+iy \mid…
njlieta
  • 411