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
1
vote
2 answers

Determining if $Z$ is injective or surjective. Help starting a proof

I have $\mathfrak P(\mathbb{R})$ being the set of all subsets of $\mathbb{R}$, meaning $\mathfrak P(\mathbb{R}) = \{X|X\subseteq \mathbb{R}\}$. I then have $F$ being the set of all functions $\mathbb{R} \rightarrow \mathbb{R}$. Define $Z:F…
Katie
  • 826
1
vote
1 answer

Prove that $f$ is a bijection

$f : \mathbb{N} \cup \{0{}\} \to \mathbb{Z}$ $f({}n) = \frac{n{}}{2}$ if $n$ is even $f(n) = -\frac{n{}+1}{2}$ if $n{}$ is odd I want to prove that $f$ is a bijection, and find $f^{-1}$. Now I can see that $f$ is a bijection because $n = 2k,k \in…
Katie
  • 826
1
vote
2 answers

Inverse Function: unique?

Is it true in general that the inverse of a function is unique if it exists? Why is this so? Clearly inverses in groups are unique. However, that seems not directly applicable in this case...
C-star-W-star
  • 16,275
1
vote
2 answers

Proof $f(f^{-1}(x))=x$

Ok, given $f: A\rightarrow B$ is bijective. How can I prove now that $f(f^{-1}(x))=x$? It must be injective and surjective, but how is it possible to pick an element from $A$ and show after applying $f(f^{-1}(\cdot))$ that is must be the same…
Kevin
  • 21
1
vote
4 answers

Proving that a function is bijective

I have trouble figuring out this problem: Prove that the function $f: [0,\infty)\rightarrow[0,\infty)$ defined by $f(x)=\frac{x^2}{2x+1}$ is a bijection. Work: First, I tried to show that $f$ is injective. $\frac{a^2}{2a+1}=\frac{b^2}{2b+1}$ I got…
mrQWERTY
  • 595
1
vote
3 answers

Is there an "is positive" function/equation?

Is there an equation, that will return either 1 if a variable is positive, or 0 if the variable is negative. For example, to see if an integer is odd or even you can use: $$r=\frac{(-1)^n+1}{2}$$ where $r$ will be $1$ if $n$ is even, and $r$ will be…
Jonathan.
  • 1,495
1
vote
2 answers

The Definition of a Function; Is a Function a Set of Ordered Pairs or a Dependent Variable?

A real function may be defined thus: A real function of one variable is a set $f$ of ordered pairs of real numbers such that for every real number $a$ (from the domain of $f$) there is exactly one real number $b$ for which the ordered pair $(a,b)$…
Samama Fahim
  • 1,459
  • 4
  • 24
  • 39
1
vote
2 answers

Showing function is injective?

I want to show that this function is injective - $f(x) = \frac{x}{1 - x^2}$ So when $f(x) = f(y)$ I should have $x = y$ $\frac{y}{1 - y^2} = \frac{x}{1 - x^2}$ $x - xy^2 = y - x^2y$ $x - y = xy^2 - x^2y$ $x - y = xy(y - x)$ $\frac{x-y}{y-x} =…
sonicboom
  • 9,921
  • 13
  • 50
  • 84
1
vote
1 answer

What's the name for a curve that takes the same amount of time to roll down no matter where you start on it?

In university I remember learning about a particular curve function with the unusual property that if you were to make a physical curved ramp out of it and roll a ball down it starting from rest, the ball would take the same amount of time to reach…
1
vote
0 answers

Pair correlation - basics

I'm not sure whether this is the right forum for this question, but I was wondering how the pair correlation function works in very basic terms (just for one dimension for now). Say I had a list of data such as $$\{1,2,3,4,5,6,7,8,9,10\}$$ how…
martin
  • 8,998
1
vote
3 answers

Very simple function question

Formally speaking, can $\frac{x}{x}$ be defined for $x=0$? Normally this division turns to be 1 but we also know that we can only divide it when the denominator is different from zero. In this case, the numerator will also be zero but still the…
FELIPE_RIBAS
  • 195
  • 3
1
vote
2 answers

Is it always possible to transform one function into another?

Suppose f(x) = g(x) for all real x, and both f and g are sufficiently nice (perhaps we might limit them to be polynomials or analytic functions). Can we always manipulate one (with algebraic transformations) into the other? Is the same true for…
NPS
  • 111
1
vote
1 answer

Implied proportionality

I was reading a text that seemed to say: If $nf(x)=f(nx)$ for all n in $\mathbb{N}$, then $f(x)$ is proportional to $x$ (or $f(x)=kx$ for $k$ in $\mathbb{R}$). I feel like this is probably the case, but I can't think of a good reason why it has to…
1
vote
0 answers

Urgent assistance in determining the function for a set of data?

I apologize if I cannot help anybody with my question right now. It's simply that I don't know what type of function represents the data I have plotted in excel, and therefore I cannot specify so in my question. The problem is that I have a set of…
Micrified
  • 159
1
vote
2 answers

Limit as $x$ approaches 2 is undefined?

Does following function have a limit if x approaches 2. Calculate what the limit is and motivate why if it is missing. $$ \frac{(x-2)^2}{(x-2)^3} =\frac{ 1 }{ x-2}. $$ I answered $\frac{1 }{ 0 }= 0 $ undefined is that correct?