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

Find the range of function $f(x) = \frac{4-x}{x-4}$

We have to find the range of the function, $y = \dfrac{4-x}{x-4}$ My approach:- I know the first method to find the range of a function by finding the domain of inverse function. $y = \dfrac{4-x}{x-4}$ $\implies y(x-4) = 4-x$ $\implies xy - 4y =…
user947346
3
votes
2 answers

Find a bijection between $[1,2)$ and $(1,2)$

I want to find a bijection between $[1,2)$ and $(1,2)$ and prove it. My attempt: $[1,2) = \{x \in \mathbb R | 1 \leq x <2\}$ $(1,2) = \{x \in \mathbb R | 1 < x < 2\}$ $f(x) = x$ if $x \ne 1\frac{1}{n}$ for $n = 1,2,3,...$ and $f(x) =…
Moz
  • 103
3
votes
1 answer

Continuous Function that satisfies the following criteria

I want to find a function that satisfy the following criteria. $f(x)$ is continuous and strictly positive ($ f(x) > 0 \ \forall \ x \in \mathbb{R}$) $f'(x) < 0 \ \forall \ x \in [-\infty, -2] \cup …
3
votes
1 answer

Integration using inverse function

If $3f\left( x \right) = 3 {x^4} + {x^3} + 3{x^2}$ and $\mathop {\lim }\limits_{a \to \infty } \int\limits_{2a}^{8a} {\frac{1}{{{{\left( {{f^{ - 1}}\left( x \right)} \right)}^2} + {{\left( {{f^{ - 1}}\left( x \right)} \right)}^4}}}dx} = \ln(n)$,…
3
votes
1 answer

If $f:R\to R$ satisfies $f(x+2xy)=f(x)+2f(xy)\forall x,y\in R$ and $f(10)=11$ then prove the following

If $f:R\to R$ satisfies $f(x+2xy)=f(x)+2f(xy)\forall x,y\in R$ and $f(10)=11$ then show that A) $f$ is odd B) $f(x)=2f(\frac x2)$ C) $f(x+y)=f(x)+f(y)$ D) $f(11)=12.1$ Putting $y=-1$, I get $f(-x)=-f(x)$ Putting $y=\frac12$, I get…
aarbee
  • 8,246
3
votes
0 answers

Proving the non-existence of a polynomial function

Prove: There is no such polynomial function in $\mathbb{Z}[x]$ s.t. $f(7)=5$ and $f(15)=10$. My first idea was to think $f(7)=5$ and $f(15)=10$ as points $(7,5)$ and $(15,10)$, but later on I couldn't go further. The next idea is to construct two…
E. Huang
  • 611
3
votes
1 answer

A functional equation problem that is related to tetrahedral numbers

Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ s.t. $f(x+1)-2f(x)+f(x-1)=x+1$, $f(0)=0$, and $f(1)=1$. The problem is stated above. My attempt to solve this question is to plug in $x=0$, and $x=1$. That gives us $f(-1)=0$ and $f(2)=4$.…
E. Huang
  • 611
3
votes
2 answers

Can a self-inverse function $y=f(x)$ always be expressed as an equation that is symmetric in $x$ and $y$?

For example, the simple self-inverse function $y = 6 - x$ can be written as $x+y=6$, which is symmetric in $x$ and $y$. Less apparent (to me at least), $y = (x+1)/(1-x)$ can be expanded and written as $x + y = xy - 1$, which is also symmetric in…
user1153980
  • 1,121
3
votes
1 answer

Is max the only binary function that is idempotent, commutative, associative and satisfies $f(x,y)\geq x$?

Is $f(x,y)=\max(x,y)$ with $x,y\in\mathbb{Z}$ the only binary operation on the set of integers that satisfies following properties? $f(x,f(y,z))=f(f(x,y),z)$ (associativity) $f(x,y)=f(y,x)$ (commutativity) $f(x,x)=x$ (idempotency) $f(x,y)\geq…
otmar
  • 344
3
votes
2 answers

Representing a real valued function as a sum of odd and even functions

With $f(x)$ being a real valued function we can write it as a sum of an odd function $m(x)$ and an even function $n(x)$: $f(x)=m(x)+n(x)$ Write an equation for $f(-x)$ in terms of $m(x)$ and $n(x)$: My attempt using the properties - even…
xiA
  • 436
3
votes
2 answers

What is the sum of the coefficients?

If $h(x) = x^4+ax^3+bx^2+cx+d$ then what is $a+b+c+d$? I try: \begin{align} x=2: 2^4+2^3a+2^2b+2c+d = 3 &\implies 8a+4b+2c+d = -13 \label{I} \tag{I}\\ x=-2:-2^4-2^3a-2^2b-2c+d=3 &\implies -8a+4b-2c+d = -13 \label{II} \tag{II}\\ \eqref{I} +…
peta arantes
  • 6,211
3
votes
1 answer

What is the record for Collatz Conjecture Steps

Does anyone know the record for the number of steps a Collatz Conjecture run has taken to get to 1? I have written a small program in Python to do the Collatz Conjecture on the Mersenne prime where n=5000 and produced a text file of ~88MB with a…
3
votes
1 answer

Find all functions such that $f(xf(y)+y)=f(xy)+f(y)$

Find all functions, $f:\mathbb{R}\to \mathbb{R}$ such that $$f(xf(y)+y)=f(xy)+f(y)$$ What i have got till now is Let $$P(x,y): f(xf(y)+y)=f(xy)+f(y)$$Then \begin{align*} &P(0,0): f(0)=f(0)+f(0)\implies f(0)=0\\ &P\Bigg(\frac{y}{y-f(y)},y\Bigg):…
3
votes
2 answers

find $f$ such $f(f(x)+y)=2x+f(f(f(y))-x)$

Find all function $f:R\to R$,such for any real number $x,y$ have $$f(f(x)+y)=2x+f(f(f(y))-x)$$ I have prove this one result: $$f(f(0))=f(0)$$ proof:let $x=y=0$,then we have $$f(f(0))=f(f(f(0)))$$ and take $x=f(f(0)),y=0$,we…
math110
  • 93,304
3
votes
2 answers

Analytically determine that $\arctan x$ is an odd function

Without producing the maclaurin series for $\arctan x$, how would determine whether it was odd or even?