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
3
votes
0 answers

bijective function between $(0,1)$ and $(0,1)\times(0,1)$

I know there exists one, but I want to find the explicit form of some bijective function between $(0,1)$ and $(0,1)\times(0,1)$.
3
votes
0 answers

A possible f(x) and g(x) having these characteristics?

Do you think that it is possible to find a $f$ and a $g$ such that $\forall x \gt 1, \forall y \gt 1$ then $$f(x) \gt 0,$$ $$g(x) \gt 0,$$ $$f(x) \neq x,$$ $$g(x) \neq x,$$ and $$f\left({1\over 1-{1\over x}-{1\over y}}\right) = {1\over 1-{1\over…
3
votes
3 answers

Taylor expansion of $\cos{x}$

I found a pdf file on the internet which gives you known expansions of Taylor's. There is something I cant understand : Why is the remainder of $\cos x$ is written like this? $$\frac{\cos ^{(2n+2)}(c)x^{2n+2}}{(2n+2)!}$$ And not like…
Sijaan Hallak
  • 359
  • 1
  • 14
3
votes
3 answers

Determine whether $e^x(1-e^x)\leqslant (1/4)$ for $x\lt 0$ is true or false?

The statement is $e^x(1-e^x)\leqslant (1/4)$ for $x\lt 0$ I think the above statement is true by calculating approximate value at some points. But how to prove it properly?
PAMG
  • 4,440
3
votes
2 answers

Comparing and contrasting equations and functions

I have several related questions, so I'm going to label them to make sure I understand what questions that answers are referring to. I understand that a function is an expression that produces one output for each set of inputs, but also, a) could…
ChrisC70
  • 143
3
votes
1 answer

Create parameterizable map between $\mathbb{Z}$ and $\mathbb{Z}^2$

I would like to create a parameterizable map between $\mathbb{Z}$ and $\mathbb{Z}^2$. This map I'll call $M$ and the parameter I'll call $k$. $k \in \mathbb{Z}$ (but if there is a better space for $k$, I'm open to suggestions) $M(z, k)…
Frank Bryce
  • 249
  • 1
  • 6
3
votes
1 answer

Set of Discontinuities for a function $f$

Take $f$ to be a function over the reals. I want to show that a set of discontinuities of the first kind for $f$ are countable. This is the discontinuity type at point $P \in \mathbb{R}$ where $lim_{x \rightarrow P^{-}} f(x)$ and $\lim_{x…
3
votes
5 answers

Considering a combination of functions

I am sorry for the vague title - its because I don't know what I am talking about. I have a function whose value is determined by considering the outputs of some other functions. For example, F(x) = G(a,b) and H(x) and T(y) As you can see, I am not…
varuman
  • 33
3
votes
2 answers

Sufficient conditions for bounded function?

Consider a function $f:[a,b]\subset\mathbb{R}\rightarrow\mathbb{R}$. Does the fact that the domain of $f$ is a compact set of the real line imply that $f$ is bounded on $[a,b]$? In the negative case, could you give a counterexample of a function…
Star
  • 222
3
votes
4 answers

Is $x^2$ $+$ $y^2$ = $25$ a function?

General Question: Is $x^2$ $+$ $y^2$ = $25$ a function? If I input 2 different x's and it resulted in only 1 y value for each. This is definitely a function right?
3
votes
2 answers

Can finite(or infinite) number of values of a function uniquely specify it?

Suppose we have a function $f(x,y)$. Let it be a continuous one-to-one function. If this function was evaluated at finite number of points $n$, $f(x_1,y_1),f(x_2,y_2),...f(x_n,y_n)$. Can we conclude from the arguments and the value of the function…
Omar Nagib
  • 1,258
3
votes
3 answers

Solve the equation $8x^3-6x+\sqrt2=0$

The solutions of this equation are given. They are $\frac{\sqrt2}{2}$, $\frac{\sqrt6 -\sqrt2}{4}$ and $-\frac{\sqrt6 +\sqrt2}{4}$. However i'm unable to find them on my own. I believe i must make some form of substitution, but i can't find out what…
KeyC0de
  • 1,232
3
votes
0 answers

Sum of periodic functions

Let $f,g :\Bbb{R}\to\Bbb{R}$ be two periodic functions with periods $T$ and $T'$. What can be said, in general about the periodic behaviour of their sum $f+g$? If $T/T'$ is rational then a common multiple of $T$ and $T'$ should be a period for…
3
votes
2 answers

If $f$ is a one-one mapping from set $A$ to set $A$,then $f$ is onto.

State true or false $(1)$If $f$ is a one-one mapping from set $A$ to set $A$,then $f$ is onto. $(2)$If $f$ is an onto mapping from set $A$ to set $A$,then $f$ is one-one. I do not understand whether it is true or false.If true,why true.If false,why…
Vinod Kumar Punia
  • 5,648
  • 2
  • 41
  • 96
3
votes
3 answers

Invertible function $\mathbb{N} \times \mathbb{N} \to \mathbb{N}$

I am trying to find out if it is possible to create an invertible function from $\mathbb{N} \times \mathbb{N} \to \mathbb{N}$? Can you help me? Where should I start? Is it related with the Cantor pairing function?