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

Inverse of $f(x)=x^3$ function

please help me :can we inverse this function: $f(x)=x^3$? I know that if a function is a bijective function only then it can be inversed. Is this a bijective function?
2
votes
2 answers

Value of $ f(2012)$

$f(x) $ is an injective function . The definition of $f(x)$ is like following: $$ f:[0, \infty[\to \Bbb R-\{0\}, f\left(x + \frac{1}{f(y)}\right) = \frac{f(x)f(y)}{f(x) + f(y)} $$ If $f(0) = 1$ then what is the value of $ f(2012)$? Can you help me…
2
votes
1 answer

Finding an equation to a function

I can think of a visual example s.t. f in $\mathbf C^2$ ($\mathbf R^2$) has a single local minimum stationary point that is not a global minimum but I can't give it a concrete equation... If anyone can think of a better example (i.e. one with a…
2
votes
2 answers

Generalizations of pairing function

A pairing function is a one-to-one mapping from $N^2$ into $N$; for example the Cantor pairing function is given by: $$J(x,y) = \frac{(x+y)(x+y+1)}{2} + 1$$ Another one is: $f(x,y)=2^x(2y+1)$. They can be easily generalized to encode $n$-tuples…
Vor
  • 690
2
votes
1 answer

How does a special case prove a surjection?

I have a problem understanding the following proof that claims a surjection. The text is translated from a german university textbook by Luise Unger (pardon any translation errors by me, please). Given $$f: \mathbb{R} \times \mathbb{R}…
phresnel
  • 143
2
votes
4 answers

Is one form of a function more 'true' than another?

Here's a function: $f(x) = \frac{x^2}{x}$ Now, if we were to look for the $0$ value, we would end up with a division by zero situation. By simplifying it to an equivalent function: $f(x) = x$, this is no longer a problem. Does this mean that the…
user93603
2
votes
2 answers

Basic Game Theory

let $x$ be a generic act in a given set $F$ of feasible acts and let $f(x)$ be an index associated to (or appraising) $x$; then find those $x^{0}$ in F which yield the maximum (or minimum) index, i.e., $f(x^{0})$ greater than or equal to $f(x)$ for…
Derek
  • 41
2
votes
1 answer

Composition of functions help (Injection and Surjection)

I can't seem to wrap my head around writing a function as the composition of two other functions under the constraint that one of the functions must be injective and the other must be surjective. $ f:\mathbb{R} \to \mathbb{R}$ I am trying to write:…
Display Name
  • 1,443
  • 1
  • 20
  • 45
2
votes
2 answers

Find the values of $a,b,c,d$ for the equation $f(x)=ax^3+bx^2+cx+d$

How can I find the values of $a,b,c,d$ for the equation $f(x)=ax^3+bx^2+cx+d$ ? There are $4$ points given: $(-1,0)$, $(0,1)$, $(2,0)$, $(1,2)$. Thanks!
tiff
  • 29
2
votes
1 answer

Which of the following are correct definitions of functions?

I don't understand this question at all. For (a) and (b), the two equations are on separate lines in a curly bracket - I wasn't sure how to format this so I just separated them using a semi-colon instead. I know what all of these look like graphed,…
Adam Rainey
  • 115
  • 1
  • 5
2
votes
1 answer

Why does the domain of a function such as sqrt(x-5) /sqrt(x+2) change when rationalizing the denominator?

I was tutoring a student the other day and the above function in the title came up. I initially showed her how to get rid of the radical, and then we proceeded to find the domain of the rationalized function, which came out to (-inf, -2) U [5,…
2
votes
7 answers

Real world use of even and odd functions

What is the real world use of knowing whether a function is odd or even? Any practical examples? For example, quadratic equations, differential equations and calculus in General is used for, among other things, determining motion of bodies. Just…
2
votes
2 answers

Finding the range of values that a function $f(x,t)$ can take without tedious calculations

A few days ago, I found the following question in a book only with the answer: Question : Letting $x, t$ be real numbers, then a function $f(x,t)$ is defined as $$f(x,t)=\frac{(2-2\cos x)t^2+4-2\cos x}{(1-2\sin x)t^2+2t+1-2\sin x}.$$ Then, find the…
mathlove
  • 139,939
2
votes
3 answers

Range and domain of $x\mapsto 1-f(x+1)$, knowing those of $f$

Problem: Let $f$ be a function which has domain $D_f=[-1,2]$ and range $=[0,1]$. What are the domain and range of the function $g$ defined by $g(x) = 1-f(x+1)$? My thinking: If the domain of $f$ is $[-1,2]$, then the domain of $x\mapsto f(x+1)$ is…
Haider
  • 47
2
votes
2 answers

If $B$ is a subset $A$, and if an injection $f: A \rightarrow B$ exists, then there is a bijection...

Prove the following: LEMMA If $B$ is a subset $A$, and if an injection (one-to-one) $f: A \rightarrow B$ exists, then there is a bijection (one-to-one and onto) $g: A \rightarrow B$. Since $f$ is a function, every $a \in A$ is sent to exactly one…
user58289