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

Find all functions $f \colon \mathbb R \to \mathbb R$ such that $f(f(x) - y) = f(f(x)) - 2f(x)y + f(y), \forall x, y \in \mathbb R$.

Find all functions $f \colon \mathbb R \to \mathbb R$ such that $$\large f(f(x) - y) = f(f(x)) - 2f(x)y + f(y), \forall x, y \in \mathbb R$$ It can be deduced that the solutions are $f(x) = 0, \forall x \in \mathbb R$ and $f(x) = x^2, \forall x…
5
votes
2 answers

A bijection $\phi:\mathbb R \to \mathbb R$ that must be an identity

A bijection $\phi:\mathbb R \to \mathbb R$ that satisfies: $$\phi(a+b)=\phi(a) +\phi(b)\text{, }$$ $$\phi(ab)=\phi(a)\phi(b)$$ $$\forall a,b\in \mathbb R$$ must be the identiy function. What I've done is to show the obvious $\phi(0)=0$ and that the…
5
votes
0 answers

Extremely hard function problem

This problem was a question on a math test I took, and I didn't know how to solve it. How would you solve this? Let $$f(x)=e^{-xe^{-\sqrt{x}}+e^{\sqrt{x}}}+2e^{xe^{-\sqrt{x}}+e^{\sqrt{x}}}.$$ Find $$f(f(f(f(f(f(f(f(f(f(x)))))))))).$$ EDIT For more…
Math
  • 425
5
votes
2 answers

What's the difference between $f(x)=\sqrt{x^2+9}$ and $k(x^2+9)=\sqrt{x^2+9}$?

Let's say we 've got a function $f(x)=\sqrt{x^2+9}$, which is a composite function. $f(x)=\sqrt{g(x)}$ and $g(x)=x^2+9$. When we have a function like $h(x)=x$, we are allowed to set $x$ to $x+9$ and have $h(x+9)=x+9$. So why do we need $g(x)$ and…
yot
  • 53
5
votes
4 answers

If a function is uniformly continuous in $(a,b)$ can I say that its image is bounded?

If a function is uniformly continuous in $(a,b)$ can I say that its image is bounded? ($a$ and $b$ being finite numbers). I tried proving and disproving it. Couldn't find an example for a non-bounded image. Is there any basic proof or counter…
NBP
  • 489
5
votes
2 answers

For which $a$ is this function increasing? $ f(x) = \left( \frac {a-2}{a-4}\right) ^{-x} $

For which $a$ is this function increasing? $$ f(x) = \left( \frac {a-2}{a-4}\right) ^{-x} $$ So first I would rewrite this as: $$ f(x) = \left( \frac {a-4}{a-2}\right) ^{x} $$ I was thinking that in order for the function to be increasing the…
5
votes
2 answers

$f(A\cap B) = f(A)\cap f(B)$ if $f$ is surjective

If $f$ is injective, then the statement $f(A\cap B) = f(A)\cap f(B)$ holds, but what if $f$ is surjective (and not injective)? Is the statement true as well? I think that it is not true, but I am not sure whether my counterexample works: Assume $f:…
5
votes
3 answers

If f is surjective and g is injective, what is $f\circ g$ and $g\circ f$?

Say I have $f=x^2$ (surjective) and $g=e^x$ (injective), what would $f\circ g$ and $g\circ f$ be? (injective or surjective?) Both $f$ and $g : \mathbb{R} \to \mathbb{R}$. I've graphed these out using Maple but I don't know how to write the proof,…
meiryo
  • 875
5
votes
2 answers

What's an Extension of a Function?

Wikipedia says: An extension of a function $f$ is a function $g$, such that $f$ is a restriction of $g$. That's about it. Doing some searches doesn't provide much. I'm not quite seeing the implications or meaning of this. This came up in a…
Lance
  • 3,698
5
votes
4 answers

What distinguishes 'family' vs. 'set' of functions?

Source: Stewart, James. Calculus: Early Transcendentals (6 edn 2007). [p. 50 Top:]   To understand how the expression for a function relates to its graph, it’s helpful to graph a family of functions, that is, a collection of functions whose…
user53259
5
votes
2 answers

If two functions are defined by the same formula, but have different codomains, are they equal?

It is said for two functions $f,g$ to be equal they must have same domain and codomain and for each $x\in X$, $f(x)=g(x)$. But shouldn't functions such as $f:\Bbb R \to \Bbb C$ where $f(x)=x^2$ and $g:\Bbb R \to \Bbb R$ where $g(x)=x^2$ still be…
Rivaldo
  • 378
5
votes
4 answers

Prove the function is constant on $(0, \infty)$

Let $a, b \in \mathbb{R}, 0 \lt a \lt b$ and $f:\mathbb{R} \rightarrow \mathbb{R}$ such that: $$f(x^2 +ay) \ge f(x^2 +by), \forall x,y \in \mathbb{R} \tag1$$ Prove $f$ is constant on $(0, \infty)$ I don't know how to start, any idea is…
user261263
5
votes
3 answers

Finding function $f(x)$ which satisfy given functional equation

Find all function $f:\mathbb{R}-\{0,1\}$ in $$f(x)+2f\left(\frac{1}{x}\right)+3f\left(\frac{x}{x-1}\right)=x$$ Attempt: put $\displaystyle x = \frac{1}{x}$, then $$f\left(\frac{1}{x}\right)+2f(x)+3f\left(\frac{1}{1-x}\right) = \frac{1}{x}$$ could…
DXT
  • 11,241
5
votes
2 answers

How can I guarantee that $f$ applied to the mean of all $x$'s is equal to the mean of $f$ applied to all $x$'s?

I would like to know which properties a function $f:\mathbb{R}\rightarrow\mathbb{R}$ must have so that I can say: $$f(\overline{x}) = \overline{f(x)}$$ with $\overline{x}$ being the mean of the $x$'s. Or, more explicitly written: $$f \left(\frac{x_1…
braunmagrin
  • 173
  • 5
5
votes
2 answers

Intuitive definition of injective, surjective and bijective

I tried to find a more intuitive way of explaining to myself how injective and surjective functions work. Does the following make sense? I'm assuming you have a function defined in the form $f(x)=y$. Injective functions, for every unique $y$-value,…
Jack Pan
  • 1,704