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

How do I find x as a function of x?

Sorry for the title, I don't know how else to put this into words. Basically I wanted to know how to get the result below: I have no idea about why the graph is showing X as a diagonal line. How can X by itself be a line which is not constant?
Delta
  • 323
  • 2
  • 10
4
votes
4 answers

How to calculate the range of $f(x) = x^2 - 2 | x |$?

So if I do this : $$ \left|x\right|^2 - 2 \left|x \right|+1-1 = \left( \left|x\right|-1 \right) ^2-1 $$ I get the range to be $[-1,\infty)$ and I also get this answer from GeoGebra. But I don't think this as the correct process. Because for $f(x) =…
Tawseef
  • 85
4
votes
2 answers

Finding extreme values, intervals of increasing / decreasing.

So, we got a function for example, $y=\dfrac{2x^2}{x+2}$. I have to find extreme values and intervals of increasing (decreasing). So... we start off by finding $f'(x)$. Right.. once we find it, we have to equal it to $0$. So, $f'(x)=0$. Once we find…
4
votes
1 answer

Generalizing monotonicity to 2D

Monotone functions of a single variable are well defined, they just keep increasing when the variable increases (or decreases). I wonder if this concept has a standard generalization to two dimensions. Obviously, if any function is observed by…
user65203
4
votes
2 answers

Order between one to one functions and their inverses

Let $f,g :R \to R $ one to one functions such that $f(x)< g(x), \forall x \in R $ Is it true that $f^{-1}(x)>g^{-1}(x), \forall x \in R$?? I'd say yes, thinking at their graphs: if the graph of f is below the graph of g, when we take the symmetry…
4
votes
3 answers

a problem on composition of functions

Let $f \colon A \to A$ be a function such that $f \circ f=f$. If $f$ is one-to-one then prove that $f$ is also onto. I know in my head that the func. $f$ is $f(x)=x$, but I can't develop a proof for the above statement.
4
votes
2 answers

Applying a function a non-integer amount of times

Taking the principal log of a real or complex number an infinite number of times converges one of two particular values in the complex plane. These values are $-W(-1)^*$ given a seed value with $\Im(z) \ge 0$, and $-W(-1)$ otherwise (with $W$ being…
OmnipotentEntity
  • 1,252
  • 9
  • 25
4
votes
1 answer

Find a function which when applied to the inverse of an argument, only changes sign

So basically, a function $f$ with $f(\frac{1}{x}) = - f(x)$. Additionally, it should also be strictly increasing. I know that the logarithm has this property, but I'm looking for a function with different boundary conditions. Namely: f(0) = -1 (and…
user633084
4
votes
2 answers

If $f(4xy)=2y[f(x+y)+f(x-y)]$ and $f(5)=3$, find $f(2015)$

Suppose the function $f:\Bbb R\to\Bbb R$ satisfies the following conditions: $$\begin{align} f(4xy)&=2y[f(x+y)+f(x-y)] \\[4pt] f(5)&=3 \end{align}$$ Find the value of $f(2015)$. I have tried to find some other hiding condition, like $f(0)=0,$ but…
yuanming luo
  • 651
  • 3
  • 15
4
votes
1 answer

Considering the function $g(x) = 2 + e^x$.

Considering the function $g(x) = 2 + e^x$. a) Find $g’(x)$. So, this is simply derivative of the function. This would be $g’(x) = e^x$, right? b) Explain how this shows that $g(x)$ is an increasing function for all values of $x$. In this…
Ella
  • 530
  • 4
  • 21
4
votes
1 answer

Codomain and range of onto Functions

Is the codomain and range of an onto function the same? As far as I understand, if $f:A\to B$, range is all possible values in B. So if it's an onto function, then all values in B must be mapped to something in A right? Am I correct?
Anna
  • 69
4
votes
2 answers

Identical Function Query

If $f(x)=\frac{x}{\ln x}$ & $g(x)=\frac{\ln x}{x}$. Then identify the correct statement. A) $\frac{1}{g(x)}$ and $f(x)$ are identical functions B) $\frac{1}{f(x)}$ and $g(x)$ are identical functions C) $f(x)\cdot g(x)=1 \forall x>0$ D)…
4
votes
1 answer

Find the domain of x $\left \lfloor x \right \rfloor + \left \lfloor x+\frac{1}{2} \right \rfloor + \left \lfloor x-\frac{1}{3} \right \rfloor =8$

Find the domain of x $$\left \lfloor x \right \rfloor + \left \lfloor x+\frac{1}{2} \right \rfloor + \left \lfloor x-\frac{1}{3} \right \rfloor =8$$ My approach When x is an integer $x+x+x-1=8$ or x=3 But for case when x is not an integer…
4
votes
2 answers

show that $\ \sum^{n}_{k=1}|f(2^n)-f(2^k)|\leq \frac{n(n-1)}{2}$

If $\displaystyle \bigg|f(a+b)-f(b)\bigg|\leq \frac{a}{b}\; \forall\; a,b\in \mathbb{Q},b\neq 0.$ Then show that $\displaystyle \sum^{n}_{k=1}\bigg|f(2^n)-f(2^k)\bigg|\leq \frac{n(n-1)}{2}$ Try: put $\displaystyle a=h>0$ Then $\displaystyle…
DXT
  • 11,241
4
votes
5 answers

What does $f(x,y)$ mean?

I know from the chapter "functions" that $f(x)$ is a function of $x$ and to roughly put it, it maps $x$ values to another set called co-domain where all the $y$ values are. But I also sometimes see $f(x,y)$ on internet. I can guess that it means…
William
  • 4,893