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

Slow-increasing function between 0 and 1

I'm looking for a function that increases slowly at first and then moderately so, between 0 and 1, for x starting from 1 with no fixed upper limit. Something like the chart below. It would be great to be able to control the slope.
2
votes
3 answers

Check if two functions are identical

I am studying the so called Max Min Plus Scaling (MMPS) systems that are defined as functions containg max, min, sum and multiplication by a scalar operation. An example is the function $f(x) = \max(5x+3,3x-8)-\min(-x,4x-2)+5x-7$. I want to find out…
cholo14
  • 451
2
votes
1 answer

Continuous Functions Problems

I'm not sure how to solve continuous functions problems. So, could someone please explain these three problems with a solution? Find all continuous functions $f$ for $x>0$ such that $f(xy)=xf(y)+yf(x)$. Find all continuous functions $f$ for $x>0$…
user406996
  • 663
  • 1
  • 5
  • 14
2
votes
1 answer

detect the monoton decreasing or increasing behavior

I have the amount of earnings over a period of time (per day one value of how much a company earned for specific projects). The normal behaviors is that the earnings from day to day are approximately around the same value, let say 20K (small…
Anni
  • 123
2
votes
1 answer

Find the complete solution set of the equation $2|x-1|=\frac{[x]([x]-1)(2[x]-1)}{6}+[x]^2\{x\}$

Find the complete solution set of the equation $2|x-1|=\frac{[x]([x]-1)(2[x]-1)}{6}+[x]^2\{x\}$ This is a part of a longer question and I am stuck at this step. I'm not able to figure out how to solve this equation. It would be great if I…
oshhh
  • 2,632
2
votes
3 answers

Why do you have to define that a specific value in a function is undefined?

While teaching us about limits, my math teacher showed us how to define a function with a "hole" in it: $$f(x)=\begin{cases}x^2, & x \neq 2 \\ \text{undefined}, & x=2\end{cases}$$ This is really confusing me, why do I have to define that a value is…
2
votes
1 answer

Does the following function on $ \mathbb{R}^{4} $ iterate to $ (0,0,0,0) $ after infinitely many steps?

Define $ f: \mathbb{R}^{4} \rightarrow \mathbb{R}^{4} $ by \begin{equation} \forall (a,b,c,d) \in \mathbb{R}^{4}: \quad f(a,b,c,d) \stackrel{\text{def}}{=} (|a - b|,|b - c|,|c - d|,|d - a|). \end{equation} For many of the 'obvious' $ (a,b,c,d) \in…
Haskell Curry
  • 19,524
2
votes
1 answer

definition of derivative on finding limits

For the absolute value function: $y = |x|$, how does the definition of limit apply: The derivative of the function doesn't exist because the right hand derivative and the left hand derivative are not equal: Right-hand derivative of $|x|$ at zero…
bzal
  • 560
2
votes
0 answers

Proof : Given that function $f(x)$ vanishes at 0, can we rewrite $f(x) = x_1b_1(x_1)+x_2 b_2(\overline { x_2})+\cdots+x_nb_n( x)$?

Let $f(x):\mathbb R^n \to \mathbb R$ be a smooth function, and let $f(0)=0$. I alway see that someone rewrite the function in the form $f(x)=x_1b_1(x_1)+x_2b_2(\overline {x_2})+...+x_nb_n(\overline x)$, where the $\overline {x_i}=[x_1\ \ x_2\ \ ...\…
Mroei
  • 21
2
votes
1 answer

Curve that looks like arctan(x) but is asymmetric

I am working with some dataset which looks very similar to the negative of $\tan^{-1}(x)$ to me: The only thing is that this curve need not be "anti-symmetric" around zero. I have tried fitting functions of the form $-a\tan^{-1}(bx) + c$ but it…
Peaceful
  • 521
2
votes
1 answer

The function $f$ and the composite function $fg$ are defined as $f:x→x+2$ , $fg:x→3x-2$. Find the function g.

The function $f$ and the composite function $fg$ are defined as $f:x\mapsto x+2$ , $fg:x\mapsto 3x-2$. Find the function $g$. I just started learning functions and need help with it. Please provide workings so that I understand better, thank you.
user407406
  • 43
  • 3
2
votes
0 answers

Can we find a function $f$ that satisfies...?

Let $n$ be a positive integer and $W$ be the set $W=\{w_1,\ldots,w_n\}$ for positive $w_i$. I am looking for a function $f:W\mapsto V$ (may be a bijection?) where $V=\{v_1,\ldots,v_n\}$ that satisfies the following two conditions…
Zir
  • 527
  • 7
  • 12
2
votes
1 answer

Separation of inverse function

Let's consider $$z=\frac{f(x)+f(y)}{K-f(x)+f(y)}$$ where $K$ is a constant. Is there any formal method to approximate $z$ as $(g(x)+h(y))$ ?
marcella
  • 298
2
votes
1 answer

Find the normal to the function

Good day everyone, I think my teacher had made a mistake in a answer. She claims that this function cannot have normal that is parallel to $y=2x+7$ $f(x)=\ln(x+1)$ In my calculations it has : $y=-\frac{1}{2}x -\frac{1}{4} + \ln\frac{1}{2} $ Can you…
Mikkey
  • 95
2
votes
3 answers

Continuous function from $[0,1]$ to $[0,1]$ whose fibers are infinite

Show that there exists a continuous function $f:[0,1]\rightarrow [0,1]$ such that $\forall y\in[0,1]$, all the fibers $f^{-1}(\{y\})$ have infinite cardinality.
Tomás
  • 22,559