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

Create a bijective map from $\mathbb R^2 \rightarrow \mathbb R^2$ between one quadrant and two other quadrants?

I'm trying to create a function from $\mathbb R^2 \rightarrow \mathbb R^2$ such that the image of quadrant 1 $(+x, +y)$ is precisely quadrants 1 and 3 or the pre-image of quadrants 1 and 3 is precisely quadrant 1. I don't really have any idea how to…
Vibbz
  • 89
1
vote
1 answer

Is this piecewise function a valid function?

I think it isn't because for x = 2 and x = 4, h(x) is not defined. Is that right?
1
vote
3 answers

Reversed graph plotting algorithm

Consider a real-valued polynomial function of one variable. Knowing the "rules" function dictates we can plot the graph of that function with a given accuracy. Question: is the reversed process possible?
Constantine
  • 1,429
1
vote
1 answer

Weird property of the functions $f(x)=x^e, g(x)=x^\pi$ and $h(x)=x^\sqrt{2}$

I was messing around on desmos and all of these functions seem to be only defined for $x=0$ and $x>0$. Is this an error on desmos' part or are they really only defined for $x=0$ and $x>0$ and if so, why? Does it have something to do with the…
1
vote
2 answers

Maximum and Minimum value of an implicit function

For the real value of $x$, $f\left( x \right)$ satisfies $f{\left( x \right)^3} - f{\left( x \right)^2} - {x^2}f\left( x \right) + {x^2} = 0$. When the maximum value of $f(x)$ is $1$ and the minimum value of $f(x)$ is $0$, what is the value of…
1
vote
0 answers

Korean CSAT killer problem

A function ${\displaystyle f(x)})$ defined for ${\displaystyle x>a}$, where ${\displaystyle a}$ is a constant, and a quartic function ${\displaystyle g(x)}$ whose leading coefficient is ${\displaystyle -1}$ satisfy the three conditions below: A) For…
1
vote
1 answer

Function with X and a %

I'm looking for a function that depends on B, C values. B is a real value, C is a % from 0 to 100. I need the C value to apply a % if B is positive so A= $ B . \frac{C}{100}$ . If B=100 and C=99% -> A = 99 ... If B=100 and C=0% -> A = 0 The thing…
1
vote
0 answers

Divide X by Y, Z times to achieve an answer of <1; What is Y?

Apologies, complete math novice here I have a number, x. I want to divide this by another number, y (to be determined), such that when you repeatedly divide this and add the value to x, eventually you'll reach <1 after z times. E.g. if we consider x…
JamShady
  • 119
1
vote
2 answers

Can anyone provide me a step-by-step proof for proving a function IS onto/surjective?

I've seen the definition, I've seen several examples and anti-examples (e.g. the typical x squared example). I get the idea, but I can't seem to find a proof for proving that a function IS onto, with proper explanation start to finish. Given: $f:…
CptSupermrkt
  • 1,031
1
vote
1 answer

Find two non-constant functions that the composition is constant-

Find two functions $f,g:\Bbb R\to \Bbb R$ that are not constant such that their composition is constant? Any help, please. Can these functions be found? EDIT: I try next, let $f:\Bbb R\to\Bbb R$ define $f(x)=1$ if $x\in\Bbb Q$ and $f(x)=-1$ if…
1
vote
0 answers

Why doesn't Square root function give range as Real?

When we write $x^2=4$. It means $x=+2$ or $x=-2$. So then why is the range of the function $f(x) = \sqrt{x^2+4} \quad$ $[2,\infty)$ and not $(-\infty, - 2] \cup [2,\infty)$? Please give me a hint, where am I going wrong?
1
vote
2 answers

Prove that $f$ is one-one if $g\circ f$ is one-one.

Given $X,Y,Z\neq \emptyset$ Let $f:X \rightarrow Y$ and let $g:Y \rightarrow Z$ I know that since $g\circ f$ is one-one therefore $g\circ f(x_1)=g\circ f(x_2)$ when $x_1=x_2$ In other words, $g(f(x_1))=g(f(x_2))$ when $x_1=x_2$ I don't know how…
1
vote
1 answer

rewriting a piecewise equation as a non-piecewsie equation: odd and even

I would like to write the equation, $$I=\begin{cases} k & N \text{ even} \\ 0 & N \text{ odd} \end{cases}$$ as a function of $N$ in a non-piecewise format. Any guidance/suggestions would be appreciated.
HVW
  • 87
1
vote
0 answers

Kernel of Function

I am a little bit confused about this question. Suppose we have function $f: \mathbb R \to \mathbb R$ by $ x \to x^2$.This is homomorphism because $\mathbb R$ is abelian. I know that if $kerf=\{0\} \iff$ $f$ is $1-1$ Now, $kerf=\{ x \in \mathbb R :…
Elise9
  • 105
  • 7
1
vote
2 answers

Prove property of surjective functions

I need to prove the following claim: Suppose $f:A\to B$ is function. Prove: $f$ is surjective iff for all sets $C$ and all functions $h:B\to C$ and $g:B\to C$, $h\circ f = g\circ f$ implies $h = g$. Step 1: Assume $f$ is surjective and $h \circ f…
emre
  • 35