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
5
votes
2 answers

The inverse of a certain tricky function

What is the explicit form of the inverse of the function $f:\mathbb{Z}^+\times\mathbb{Z}^+\rightarrow\mathbb{Z}^+$ where $$f(i,j)=\frac{(i+j-2)(i+j-1)}{2}+i?$$
Henry B.
  • 2,028
5
votes
1 answer

Find monotonically increasing function $f$ on $[ 1,+\infty )$ such that $ x ( f ( x^{2} ) + 1 ) = f ( x ) ( x^{2}+1 ) $?

Find all monotonically increasing functions $f$ on $\left[1,+\infty\right)$ such that $$x\left( f \left( x^{2} \right) + 1 \right) = f \left( x \right) \left( x^{2}+1 \right) $$ Does there only exist the unique solution $f(x)=x$? At first time, I…
Blanco
  • 656
5
votes
3 answers

Characteristics of parallel parabola (offset curve) and the formula to find the equation

What are the characteristics of parallel parabola? And is there any formula to find the equation of parallel parabola if we know the equation of one parabola?
Rosie
  • 53
5
votes
1 answer

Bizarre and Mysterious Result from $x^2 + y^2 = r^2$

I was graphing a simple equation - $x^2 + y^2 = r^2$ (where $r$ represents the radius of the circle) on the native OSX Grapher application, and viewed a rather bizarre result - a collection of random and seemingly infinitely zoomable graph of…
js-anon
  • 193
5
votes
2 answers

Is $f(x)=x^2$ from $\mathbb{R} \to \mathbb{R}$ surjective?

A surjective function $f$ is one such that for all $y$ in the codomain of $f$, there exists an $x$ in domain of $f$ such that $f(x) = y$. Mathematically, we can show that for $f(x) = x^2$ where $f: \mathbb{R} \to \mathbb{R}$, this statement is true.…
5
votes
1 answer

Given a continuous function $f:\Bbb Q \to\Bbb Q$ . Does there exist a continuous function $g:\Bbb R\to \Bbb R$, such that restriction of $g$ is $f$?

Let $f$ be a continuous function $f:\Bbb Q\to \Bbb Q$. Does there exist a continuous function $g:\Bbb R\to \Bbb R$, such that restriction of $g$ to $\Bbb Q$ is $f$?
5
votes
4 answers

Well defined function meaning

A function is said to be well defined if x=y implies f(x)=f(y). If x=y then surely wont f(x)=f(y). I cant get this through my head. Plz explain what a well defined function is n what is an ill defined one. It puzzles me a lot to think of an ill…
5
votes
3 answers

Prove that the equation $x^{15} + 7x^{3} - 5 = 0$ has exactly one real solution

Prove that the equation $x^{15} + 7x^{3} - 5 = 0$ has exactly one real solution. A hint that has been given by the teacher is to analyze the function $f(x) = x^{15} + 7x^{3} - 5$.
5
votes
3 answers

Proving an unspecified function is invertible

Given $g: \mathbb{R} \rightarrow \mathbb{R}$ is a differentiable function with bounded derivative i.e. satisfying $|g'(x)|\leq K>0 , \forall x \in \mathbb{R}$, I am trying to show that for some constant $\epsilon>0$ small enough, the function $f:…
Jay
  • 268
5
votes
2 answers

If domain of $f(x)$ is $[-1,2]$ then what will be the domain of $f([x]-x^2+4)$ $?$

If domain of $f(x)$ is $[-1,2]$ then what will be the domain of $f([x]-x^2+4)$ $?$ Here $[.]$ is for greatest integer function. Attempt: since domain of $f(x)$ is $[-1,2]$ therefore for $f([x]-x^2+4)$ $-1\le[x]-x^2+4\le2$ $\Rightarrow x^2\le[x]+5$…
nikola
  • 119
5
votes
1 answer

Range of function $f(x) = \sqrt{x+27}+\sqrt{13-x}+\sqrt{x}$

Range of function $f(x) = \sqrt{x+27}+\sqrt{13-x}+\sqrt{x}$ $\bf{My\; Try::}$ For $\min$ of $f(x)$ $$\left(\sqrt{13-x}+\sqrt{x}\right)^2=13-x+x+2\sqrt{x}\sqrt{13-x}= 13+2\sqrt{x}\sqrt{13-x}\geq 13$$ Now $$\sqrt{x+27} + \sqrt{13-x}+\sqrt{x} \geq…
juantheron
  • 53,015
5
votes
2 answers

Conjecture function $g(x)$ is even function?

Let $f,g:R\to R\setminus\{0\}$ and $\forall x,y\in R$,such $$\color{crimson}{f(x-y)=f(x)g(y)-f(y)g(x)}$$ I have prove the function $\color{crimson}f$ odd function. because let $y=0$ we have $$f(x)=f(x)g(0)-f(0)g(x)\tag{1}$$ Let $x=0,y=x$ we…
math110
  • 93,304
5
votes
1 answer

Prove that $f$ is a constant function if $f(x)-f(y) \leq (x-y)^2$

Assume $f$ is a function defined over real numbers for which $f(x)-f(y) \leq (x-y)^2$ for all $x,y \in R$. Prove that $f$ is a constant function. Attempt We have that $f(x)-f(0) \leq x^2$ and $f(0)-f(y) \leq y^2$ and thus $f(x)-f(y) \leq…
user19405892
  • 15,592
5
votes
3 answers

How to write a function from graph?

How to represent a graph in a function? For example, I used 3 functions : $$f(x)=x^2$$ $$g(x)=x$$ $$h(x)=3$$ These 3 functions were plotted on the same graph and the result (after edit) is as given below How would you represent the below graph in a…
Siddharth Thevaril
  • 875
  • 4
  • 15
  • 27
5
votes
3 answers

Is it wrong to call all math operators, functionals and other things that take input and provide output just "functions"?

I am more of a programmer than a mathematician, so in my mind a functions can take any type of input and can produce any kind of output. For example I see the derivative operator $\frac{d}{dx}$ as a function that takes a function as its argument and…
CrabMan
  • 1,123
  • 7
  • 16