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

Proof with function composition

Prove or disprove the following statement: Function $f: S \rightarrow S$, where $S$ is non-empty, is bijective if and only if there exist unique functions $g, h : S \rightarrow S$ such that $$ f \circ g = f ~~~~ \text{and} ~~~~ h \circ f =…
user48724
4
votes
4 answers

Property of inverse function

If a function $f$ from $\mathbb{R}$ to $\mathbb{R}$ is one-to-one and bounded is it true that $f^{-1}$ is also one-to-one and bounded? I believe the answer is no but I'm not sure.
covertbob
  • 433
4
votes
1 answer

A function in terms of another function

I have two functions that are polynomials. For example: $$F=x^2+2x+1 \hspace{5mm} \text{ and } \hspace{5mm} G=2x^2-x+2$$ I need to write one of these two functions in terms of the other one. For the example above the answer would be: $G$ as a…
4
votes
2 answers

Derivative n times of $\sqrt x$

Find a 'formula' (bad translation?) of the $n$-timed ($n\in \mathbb N$) derivative of $\sqrt x$, and prove it's correct for all $n$ with induction. What I found: $$({1\over2})^{n-1}|{3\over2}-n|(-1)^{n+1}\over{x^{n-1/2}}$$ Is it correct? If so, how…
Harold
  • 711
4
votes
1 answer

Is there a formal concept for "locality of a function"?

Say we have a function that maps a string of size $n$ of some finite alphabet to another such string of size $n$. Or alternatively, a function that maps an $n$ dimensional real vector to another one. I am looking for a term/concept that captures the…
user56834
  • 12,925
4
votes
2 answers

Functional equation: $f(x)+ 2f \left(\dfrac{2002}{x}\right) =3x$

Let $f$ be a real valued function such that$f(x)$+ $2f \left(\dfrac{2002}{x}\right) =3x$, find $f(x)$ Attempt: Substituting $x=1$ and $x=2002$ and solving the simultaneous equations obtained, I got: $f(2002)= -2000$ and $f(1)= 4003$ Now,…
Archer
  • 6,051
4
votes
2 answers

Why can't we simply substitute the input variable into the output of a function?

Sorry if this question has been asked before. I'm not sure how to phrase this question properly (hence I couldn't find any fruitful results on Google). We know that the following holds true for $|x| < 1$, $$ \frac{1}{1-x} = \sum_{i=0}^\infty x^i = 1…
Donald
  • 831
4
votes
2 answers

if $f\circ g= f\circ h$ so $g=h$

While I was studying from my Set Theory book, I can across with a theorem that says: let $f:A\to B$ be a function. We'll say that $f$ is reduced from left if for every $g,h$ from set $X$ to $A$ if $f\circ g= f\circ h$ so $g=h$. Also from the right…
TTaJTa4
  • 198
4
votes
2 answers

What does it mean to be a function of something?

There is a sentence in Sokal and Rohlf's classic text [R.R.Sokal F.J.Rohlf; Biometry, 3rd ed., 1994: p.132, chapter 7 Estimation and Hypothesis Testing]: The variance of means is therefore partly a function of the sample size on which the means…
abc
  • 141
4
votes
2 answers

Find the domain and range of $y=\sqrt {x-2}$

Find the domain and range of $y=\sqrt {x-2}$ My Attempt: $$y=\sqrt {x-2}$$ For $y$ to be defined, $$(x-2)\geq 0$$ $$x\geq 2$$ So $dom(f)=[2,\infty)$.
pi-π
  • 7,416
4
votes
3 answers

Is a bijective function always invertible?

I know that in order for a function to be invertible, it must be bijective, but does that mean that all bijective functions are invertible?
4
votes
1 answer

Is $\sqrt{f(x) \cdot g(x)} = \sqrt{ f(x) }\cdot \sqrt{g(x)}$?

Simple Question: If two functions $f(x)$ and $g(x)$ are provided, Wolfram Alpha suggests that $\sqrt{f(x)\cdot g(x)}$ is only equal to $\sqrt{f(x)}\cdot\sqrt{g(x)}$ when $x > 0$. I searched "Is (f(x)^(1/2*g(x)^(1/2)) = ((f(x)*g(x))^(1/2)) ?" May you…
user213745
4
votes
2 answers

Sigmoid shaped function with fixed start of ascent, and tunable slope

I am looking for the simplest sigmoid function that goes from 0 to 1 and has a fixed starting point and tunable slope. As I am not a mathematician, I am sure I already used a lot of improper terms, but I hope it will be…
4
votes
3 answers

Does a function change when you multiply both the denominator and numerator by the same function?

For example: $ 1) \, f(x): 3x+3$ $2) \, f(x)= \frac{(3x^2-3)}{(x-1)}$ If you simplify the second function it becomes the first, but isn't the function, in its present form, undefined for $x = 1$?
4
votes
2 answers

Finding all possible functions from a multi-function equality

Find all functions $f,g,h$ $\mathbb{R} \rightarrow \mathbb{R}$ satisfying $f(x) - g(y) = (x-y)h(x+y)$ $(\forall x,y \in \mathbb{R})$ Setting $y = x$ gives $f(x) - g(x) = 0$ for all $x$. Therefore, $f(x) = g(x)$. $f(x) - f(y) = (x - y)h(x+y)$. From…
dcxt
  • 614