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
1
vote
1 answer

How to calculate amount of boxes needed for X amount of items

I'm looking for a function that can give me the amount of boxes needed for a given amount of items. And if possible, that it gives me an equal, or close to equal, distribution of items in each box. For example, let's say I have 300 items and I know…
1
vote
4 answers

Write an equation as a single power(Grade 11 Math, Function)

$$\frac{10^{-4/5} \cdot 10^{1/15}}{10^{2/3}}$$ The answer is $10^{-7/5}$, which seems impossible to me. I get: $10^{-4/5} \cdot 10^{-11/15}$. I see where the numerator $7$ comes from but the denominator is being a pest, and won't let me do anything…
1
vote
3 answers

How to prove properly that $\mathbb{N \times N}$ $\rightarrow$ $\mathbb{N}$ : $(p,q) \rightarrow \frac{(p+q)(p+q+1)}{2} +q$ is a bijection?

I tried to show that for : $\frac{(p_1+q_1)(p_1+q_1+1)}{2} +q_1$=$\frac{(p_2+q_2)(p_2+q_2+1)}{2} +q_2$ we have $(p_1,q_1)=(p_2,q_2)$ to prove that it's an injection. But I obtain : $p_{1}^{2}+2p_{1}q_{1}+q_{1}^{2}+p_1+3q_1$ =…
Maman
  • 3,300
1
vote
2 answers

Range of a composite function

How to find the range of functions like $f(x)=\sin (x) ^{sin(x)}$ on $(0,\Pi)$? Usually, I find the inverse and then find the domain of the inverse function for the range of the original function, How do I find the inverse for this or is there any…
1
vote
1 answer

Find the number of functions.

Let $A = \{1,2,3,4\}$ and $B = \{a,b,c,d,e\}$. How many functions from $A$ to $B$ are either one-to-one or map the element $1$ to $c$? (you need not simplify your answer) First. the number of functions which are one-to-one :…
Q123
  • 251
1
vote
1 answer

Minor questions about definition of algebraic and transcendental functions

I have some minor questions about definition of algebraic and transcendental functions: An algebraic function is informally a function that satisfies a polynomial equation whose coefficients are themselves polynomials with rational…
Tim
  • 47,382
1
vote
1 answer

Lyapunov exponent for simple functions

Context: We know that $\cos(x)$ if taken recursively on itself, converges to the Dottie number, which is the function's stable fixed point then. On the other hand, for a function like $f(x)=3x$, keeps diverging if taken on itself. On the other…
user186225
1
vote
1 answer

Inequality from a property of convexity

Let $f:\mathbb{R}\to\mathbb{R}$ be a convex function. How can I prove that for each $x$, there is $c$ such that $f(x)+c(y-x)\leq f(y)$ for all $y$? One of the difficulties to solve is $f$ does not need to be differentiable. It makes me feel hard. So…
Analysis
  • 877
1
vote
1 answer

Empty function, what is it?

I meet with term 'empty function' from time to time. It's high time to understand its nature. What is field( set of arguments) and what is image? ( set of value)?
user180834
  • 1,453
1
vote
1 answer

How would I determine a single equation for a set of points

Four different functions are bounded by certain values along the $x$-axis. What I want to know is if there is one function that can describe all points in the set. To be more specific, I have four bounds: $[1, 50]$, $[51, 68]$, $[69, 98]$, $[99,…
user185205
1
vote
2 answers

Inverse of a function from $\mathbb{Z}^+ \times \mathbb{Z}^+ \to \mathbb{Z}^+$

Given the function $f: \mathbb{Z}^+ \times \mathbb{Z}^+ \to \mathbb{Z}^+$ $f(a,b) = b^2 +a$, if $b>a$ or $a^2 +a + b$, if $b
1
vote
1 answer

How to show logistic function is monotonic increasing?

How to show logistic function is continuous monotonic increasing? $$\frac{1}{1+e^{-ax}}$$ Thanks in advanced..
valerie
  • 250
1
vote
1 answer

Example of an infinitely differentiable function f : R → R with f(x) = 0 iff x = 0 and f intersects origin with infinite multiplicity

Is there an infinitely differentiable function f : R → R with f(x) = 0 iff x = 0 for which it is reasonable to say the graph of f intersects the x-axis at the origin with infinite multiplicity. So y=x, y=x^2 does not count.
1
vote
2 answers

Finding $f(36)$ given $\frac{f(x)f(y)-f(xy)}{3} = x+y+2$ on $\mathbb R$

Let $f:\mathbb R \to \mathbb R$ be a function with $$\frac{f(x)f(y)-f(xy)}{3} = x+y+2$$ for all real numbers $x,y$. List all possible values for $f(36)$. So far I have just been plugging in possible $x$ and…
user182231
  • 11
  • 1
1
vote
1 answer

How can I write a formula so that an addition of +1 or -1 changes a number's value less and less, never reaching +10 or -10?

I want to write a formula where 1 or -1 may be added to a starting variable of zero, any number of times, but I want to make it so that the rate of increase / decrease decreases infinitely before reaching +10 or -10. The farther the number moves…
J.Todd
  • 253