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
1 answer

Function resulting from taking a function from histogram data input.

I was working with histograms and I have a histogram which has a shape that is well approximated by $a(\cos(x)+1)$. I was wondering if I took a function on the data, say $\cos(x)$ and plotted the resulting data in a histogram, what function would…
Tom
  • 21
2
votes
1 answer

Properties of this family of function

Consider the family $F$ of all $f$ differentiable functions $f: \mathbb R\to\mathbb R$, that satisfy, for any pair of real numbers $x$ and $y$, the condition: $$\frac{f(x)-f(y)}{x-y} = f'\left(\frac{x+y}{2}\right)$$ Now there is a lot of…
2
votes
1 answer

Finding equation for $g^{-1}$ by $f^{-1}$

There are two function $f:\mathbb{Q} \rightarrow \mathbb{Q}\setminus \{-1\}, g:\mathbb{Q}\rightarrow\mathbb{Q}\setminus \{1\}$ such that for every $x\in\mathbb{Q}$, $g(x)=\frac{f(x)}{f(x)+1}$. Show that if $f$ is invertible, $g$ is invertible, and…
2
votes
1 answer

$f(f(x))=x \,\forall x\in [0,1], f(0)=1$and $f$ is differentiable.Find $f$.

$f(f(x))=x \,\forall x\in [0,1], f(0)=1$and $f$ is differentiable.Find $f$. I can guess two such $f(x)=1-x, f(x)=\frac {1-x}{ax+1}$ where $a > -1$ is some real. I got one general solution for $f(f(x))=x$. Suppose $h(x)$ is one such function and g be…
Makar
  • 2,267
2
votes
1 answer

How many functions are possible?

I would appreciable any insight you give to solve this type of question: How many $f: \{1,2,3\}\to \{1,2,3\}$ satisfy $f(f(x))=f(f(f(x)))$ for all $x$? Normally questions of this type I used try by guessing, until I can't see any more…
2
votes
4 answers

Is it possible to define a bijection from nonnegative to positive numbers?

Let $\mathbb{R}_{\geq 0}$ be the set of nonnegative numbers and $\mathbb{R}_{>0}$ the set of positive numbers, that is $$ \mathbb{R}_{\geq 0} = \{\,x \geq 0 \mid x \in \mathbb{R} \,\} $$ and $$ \mathbb{R}_{> 0} = \{\,x > 0 \mid x \in \mathbb{R}…
user238415
2
votes
2 answers

Why is it not sufficient to only check the third condition when verifying equality of functions?

I have been told that two functions $f$ and $g$ are equal if and only if the domain and the subset of the cartesian product of the two functions is the same. My question is, given that a function is a special case of a relation, both $f$ and $g$ are…
2
votes
1 answer

Prove that $\bigcap f(A_{\alpha}) \subseteq f(\bigcap A_{\alpha} ) $

Let $\ f: X \rightarrow Y $ an injective function and $\ \{A_{\alpha}\}_{\alpha \in I} $ a group of subgroups of $\ X $ prove: $$\ \bigcap_{\alpha \in I} f \bigl( A_{\alpha} \bigl)\subseteq f \Bigl( \bigcap_{\alpha \in I} A_{\alpha} \Bigl) $$ my…
bm1125
  • 1,427
2
votes
0 answers

Inverse of a function equal to its derivative

I have found that the function $$f(x) = \left(\frac{1}{2} \left(\sqrt{5}+1\right)\right)^{\frac{1-\sqrt{5}}{2}} x^{\frac{\sqrt{5}+1}{2} }$$ satisfies the relation $$f^{-1}(x)=f'(x)$$ Is this solution unique? If so, how to prove it?
Raffaele
  • 26,371
2
votes
2 answers

Bijection proof.

Let $A$ and $B$ be finite sets, prove that $|A\times B|=|A||B|$. Since $A$ and $B$ are finite sets, then it can be represented as follows, $$A=\{a_1,\ldots,a_m\}\quad \text{and}\quad B=\{b_1,\ldots, b_n\}$$ Then i defined a function…
James A.
  • 824
2
votes
1 answer

Construct a function with pre-specified behaviour

Could you suggest a function $f:\mathbb{N}^+\setminus\{1\}\rightarrow \mathbb{N}^+$ such that $\lim_{x\rightarrow \infty}\frac{f(x)}{x}=0$ $\lim_{x\rightarrow \infty}f(x)=\infty$ $f(x)
Star
  • 222
2
votes
2 answers

How to find the range or domain of a function?

This is a general question I'm asking, I really need it explained. Here's an example of what I mean: The functions $f$ and $g$ are defined by $f( x)= x^3 + 1$, $0 ≤ x ≤ 3$ $g(x)= x + 5$, $x \in \mathbb R$. And I was asked to find the…
Crookz
  • 29
2
votes
3 answers

Need explanation on a problem involving natural function

Consider a positive integer $n$ and the function $f:\mathbb{N}\to \mathbb{N}$ ($\mathbb N$ includes $0$) by $$f(x) = \begin{cases} \frac{x}{2} & \text{if } x \text{ is even} \\ \frac{x-1}{2} + 2^{n-1} & \text{if } x \text{ is odd} \end{cases}…
furfur
  • 598
2
votes
2 answers

Dummit and Foote: "extensions" of a function

Dummit and Foote define an extension of a function as follows. If $A \subseteq B$ and $g: A \to C$ and there is a function $f: B \to C$ such that $f \mid _A = g$, we shall say that $f$ is an extension of $g$ to $B$ (such a map $f$ need not exist…
John P.
  • 2,136
2
votes
5 answers

Looking for a function with $f(0) = 0$, $f'(0) = 1$ and $\lim\limits_{x\to\infty}f(x)=1$

I'm looking for a monotonic, continuous function function with these properties: $$f(0) = 0$$ $$f'(0) = 1$$ $$\lim\limits_{x\to\infty}f(x)=1$$ I also need a coefficient that allows me to configure the speed at which it reaches 1. I've got the…