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
2
votes
3 answers

Let $A=\{1,2,3,...,9\}$ and $f:A \rightarrow A$ is a bijection such that $(fofofo\cdots n$ times) $=f$ but others are not identical to $f$

Let $\mathrm{A}=\{1,2,3,...,9\}$ and $f:\mathrm{A \rightarrow A}$ is a bijection such that $(fofofo\cdots n$ times) $=f$ but $(fof),(fofof), \cdots, (fofofo\cdots (n-1)$ times) are not identical to $f$. Then largest value of $n$ is? Answer…
Zenix
  • 1,157
2
votes
0 answers

Linear Variables

I am looking for the right name of a function of "linear variables". I define function $f(x_1,x_2,x_3...)$ has "linear variables", if and only if here exists functions $f_1, f_2, f_3...$ such that…
2
votes
3 answers

If $f:X\to X$, $f(f(x))=x$, is $f$ onto?

I have been trying following question and was unable to solve. Let $f: X \to X$ such that $f(f(x)) = x$ for all $x\in X. \space$ Then: Is $f$ 1-1? Is $f$ onto? Clearly $f$ is 1-1 . But I am unable to deduce why $f$ must be onto or not.
user775699
2
votes
1 answer

How to solve and draw the graph of this function equation

I see a graph of a function equation in the title page of this book, but the specific drawing method is not given in the book. I want to know how to solve this function equation and draw its image: $$f(x)+f(2x)+f(3x)=0$$
2
votes
1 answer

A question about the projection function

Let $p:A\times B\to. A$ $p(x,y)=x$ The projection function $p$ is clearly subjective. I want to know if it is bijective? The projective function suspiciously looks like $1_A(x)=x$
user798589
2
votes
0 answers

Functions, prove surjective/injective

For two sets $A,B$ there are functions - $f: A\rightarrow B$ and $g: P(B) \rightarrow P(A)$ such that $D$ belongs to $P(B)$ and $g(D)=f^{-1}[D]$. I need to prove that $f$ is surjective if and only if $g$ is injective. It is my first ever semester so…
Dan
  • 21
2
votes
0 answers

Invertible function mapping inputs to (0,1) with sum to 1 constraint

I would like to map inputs to $(0, 1)$ with sum to one constraint. At first, I came up with softmax function, but it's not invertible. Is there any function that map inputs to (0, 1) with sum to one constraint? For example, Let $x_i,y_i \in…
alryosha
  • 563
2
votes
1 answer

Function with a parameter controlling its growth

I am looking for a mathematical function with growth controlled by a parameter. It would have two inputs: A growth scale, further called $w$ An input ranging from $0$ to $1$, further called $x$ The function $f(x, w)$ should behave according to the…
narranoid
  • 25
  • 5
2
votes
1 answer

Expression for function's period

Is there expression for an operator that gives for any analytic periodic function its period? P.S. In my view this probably means solving the following system of equations: $$f^{(n)}(0)=f^{(n)}(T)$$ against $T$. I just wonder whether the solution to…
Anixx
  • 9,119
2
votes
3 answers

Deriving a function based on its properties

Suppose I have a function $\Lambda(t)$ for any $t>0$. This function has the following three properties: $\Lambda(t)$ is differentiable. $\Lambda(t)$ is strictly increasing. $\Lambda(T) = \Lambda(T+S) - \Lambda(S)$ for any $T,S>0$. It is stated…
2
votes
1 answer

Prove that for every bijection $f : S \to S$, there exists a function $g : S \to S$ such that $f \circ g = i$ and $g \circ f = i$

I'd like to know if the following proof is correct. Prove that for every bijection $f : S \to S$, there exists a function $g : S \to S$ such that $f \circ g = i$ and $g \circ f = i$ proof: Let $f$ be a bijection from $S$ onto $S$, and let $i:S \to…
Skm
  • 2,296
2
votes
2 answers

domain and range problems for a function

While finding domain and range of function f(x) = (4-x)/(x-4), domain should be not equal to 4, but this function can also be written as f(x) = -1, if considering this, there should not be any limitation of not having domain should also include 4.…
Maninder
  • 31
  • 4
2
votes
2 answers

Plot-intuition, remarkable or just an algorithm

I find it rather amazing that by plotting the points (0,0),(0.5,0.25),(1,1),(2,4), one can "predict" what the graph will look like. In certain cases, a person may even be able to "sketch"(freehand) the in between values by "connecting the dots",…
picakhu
  • 4,906
2
votes
1 answer

Functions: Detirmining values a & b

The problem $f(x)$ and $g(x)$ are defined over the real number set $\mathbb{R}$ as follows: $$ \begin{split} g(x) &= 1-x+x^2\\ f(x) &= ax+b \end{split} $$ If $g(f(x)) = 9x^2 - 9x + 3$, determine all the possible values of $a$ and $b$. Basically i'm…
2
votes
1 answer

Reading an Expression $K : \mathcal{Q} → \mathbb{R}^m_+$

I am confused with the following expression of a function: $$K : \mathcal{Q} → \mathbb{R}^m_+$$ Here, it says that $K$ operates on $\mathcal{Q}$ and returns a vector of size $m$. But shouldn't a function return a single unique real number as per the…