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

Is $\mathbb{N}\rightarrow \mathbb{N\times N},f(x)=(x,x)$ onto?

Is $\mathbb{N}\rightarrow \mathbb{N\times N},f(x)=(x,x)$ onto? I am not sure how to tell. Say $b\in N\times N$ this means the codomain is all the different combinations of the natural numbers. But the domain is only the natural numbers multiplied,…
Fernando Martinez
  • 6,698
  • 19
  • 74
  • 108
2
votes
3 answers

How to find know if function is onto?

How do you figue out whether this function is onto? $\mathbb{Z}_3\rightarrow \mathbb{Z}_6:f(x)=2x$ Onto is of course is for all the element b in the codomain there exist an element a in the domain such that $f(a)=b$ Here the co domain is mod 6 So…
Fernando Martinez
  • 6,698
  • 19
  • 74
  • 108
2
votes
1 answer

What is the property of the function corresponds to this definition?

$\exists \epsilon>0$ $\forall\delta>0: |x-x_0|> \delta \to $ $|f(x) - f(x_0)| < \epsilon$ It is very similar to the continuity of the function at a point, but it is not it. I hope for your help! P.S. Sorry for my bad English.
Dima
  • 33
2
votes
3 answers

How find this P(x) if $ (x^3 - mx^2 +1 ) P(x+1) + (x^3+mx^2+1) P(x-1) =2(x^3 - mx +1 ) P(x) $

Let $m \neq 0 $ be an integer. Find all polynomials $P(x) $ with real coefficients such that $$ (x^3 - mx^2 +1 ) P(x+1) + (x^3+mx^2+1) P(x-1) =2(x^3 - mx +1 ) P(x) $$ This problem is IMO Shortlist 2013 let $$P(x)=\sum_{i=0}^{n}a_{i}x^i,a_{i}\in…
math110
  • 93,304
2
votes
4 answers

Example of a bijection from the set of real numbers to a subset of irrationals

I need an example of a bijection from the set of real numbers to a subset of the irrationals. I tried something like $f(x)=x+\sqrt{2}$, but where should I map $-\sqrt{2}$?
2
votes
1 answer

How find all $f(x+y,y-x)=f(x,y)$

let the $f(x,y)$ be Polynomial, such $$f(x+y,y-x)=f(x,y)$$ Find all $f(x,y)$ My idea: let $x+y=u, y-x=v$ then $$y=\dfrac{u+v}{2},x=\dfrac{u-v}{2}$$
math110
  • 93,304
2
votes
1 answer

What's the largest domain needed for $ f(x)=(x-1)^2$ to be injective?

Given $f(x)=(x-1)^2$, to make it injective and to obtain $f^{-1}(x)$, we need to restrict the domain, either from $(-\infty, 1]$ or $[1,\infty)$. Which is the larger domain? I'm thinking that it's $(-\infty, 1]$ since $0$ is the midpoint of…
Alfred
  • 23
2
votes
2 answers

Difference between operators and functions

Binary operators are maps on a set into itself, for example $* : R \rightarrow R$. There are also unary and trinary operators. What is the difference between, say a trinary operator of three arguments, and a function of three arguments?
user154230
2
votes
1 answer

How to argue this Range

Function: $$f(x)= \frac{x-3}{x^2+2x-8} $$ In terms of y: $$y= \frac{x-3}{x^2+2x-8} $$ Then x isolated: $$x= \frac{\sqrt{36y^2-16y+1}-2y+1}{2y} $$ To find the Range we need to find the Domain of this 'new' Function. 1.- We must look if $\…
nEAnnam
  • 197
2
votes
1 answer

Why do we have this relation between $\frac{\sin \left(\pi x\right)}{\pi }$ and $x!$?

https://www.desmos.com/calculator/jpbffl8fhe Why do we have $\frac{x}{(x!(-x)!)}$ = $\frac{\sin \left(\pi x\right)}{\pi }$ ? With gamma functions that gives us : $\frac{x}{(\Gamma(x+1)\Gamma(-x+1))}$ = $\frac{\sin \left(\pi x\right)}{\pi }$ Prove…
2
votes
3 answers

How to represent logical operators as functions?

I'm looking for a function that will replicate logical operators. In particular consider the AND operator. Then I am looking for a function z = f(x,y) such that $$x,y,z \in \{0,1\}$$ f(0,0)=0 f(1,0)=0 f(0,1)=0 f(1,1)=1 More importantly I need to…
2
votes
2 answers

Functional equations problem 3

Find the functions that satisfy the relation $$f(x)f\left(\frac{1}{x}\right)=f(x)+f\left(\frac{1}{x}\right).$$ Did not get any idea how to do this.
2
votes
3 answers

Name of function

I am sorry if this is a stupid question, but I am struggling to give the proper name to the following function: $$\ f(r) = \exp(f_1+f_2r+f_3r^2+f_4r^3+f_5r^4+f_6r^5)$$ I ask as it will be in a presentation I am giving next week! Thanks
2
votes
1 answer

$f(x) = e^{-{1\over x^2}}+\int_0^{\pi x\over2}(1+\sin t)^{1\over2}dt$ for $x\in(0,\infty)$

Let $$f(x) = e^{-{1\over x^2}}+\int_0^{\pi x\over2}(1+\sin t)^{1\over2}dt$$ for $x\in(0,\infty)$ Then which of the following are true? (A) $f′$ exists and is continuous. (B) $f′′$ exists for all x. (C) $f′$ is bounded. (D) there exists $α > 0$…
Rudstar
  • 1,173
2
votes
1 answer

Describe a one-to-one and onto function from the real numbers in (-1,1) to R?

I have an exam tomorrow in Discrete Math. One of the questions on the review sheet was this: Describe a one-to-one and onto function from the real numbers in (-1,-1) to ℝ? I am currently try to think of a function that satisfies this condition,…
Grant
  • 51