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

Injection function proof

Suppose $f$ is an injection. Show that $f^{-1}\circ f(x)=x$ for all $x\in D(f)$ and $f\circ f^{-1}(y)=y$ for all $y$ in $R(f)$. In $f^{-1}$ it is defined as "Let $f$ be a one-one function with domain $D(f)$ in $A$ and range $R(f)$ in $B$. If…
Q.matin
  • 2,835
3
votes
2 answers

Convert $x^2 + y^2 = xy$ into the form $f(x) = y$ OR $f(y) = x$?

How should I take all the "x" elements free from y , in order to form a "function of x" or a " function of y " ? Is this even possible ?
3
votes
2 answers

Find the domain of the following function

The given function is: $f(x)=\sqrt{\log_{|x|-1}(x^2 + 4x +4)}$ My approach: The argument $x^2+4x+4>0$ for all $x\neq-2$ Also, the base $|x|-1$ should be greater than 0 and not equal to 1. $\therefore |x|-1>0$ $\implies |x|>1$ $\implies x>1$ or…
Vaibhav
  • 126
3
votes
3 answers

Find the coefficient of $x^{10}$

We have been given the following function. $f(x)$= $x$ +$x^2$ + $x^4$ + $x^8$ + $x^{16}$ + $x^{32}$ + ...upto infinite terms The question is as follows: What is the coefficient of $x^{10}$ in $f(f(x))$? I tried solving it myself and I found the…
Vaibhav
  • 126
3
votes
2 answers

How can I determine the similarity of these graphs/curves?

I have 3 visually similar graphs pictured below. They have similar peak patterns that are visible to the naked eye, but I want to compare their similarity mathematically. I can sum each column to flatten the intensity present, giving you a line…
Grant H.
  • 131
3
votes
3 answers

$f(x)-2f(\frac{x}{2})+f(\frac{x}{4})=x^2$ , find $f(x)$

Find $f(x)$ if $f(x)-2f(\frac{x}{2})+f(\frac{x}{4})=x^2$, where $x, f(x)\in (-\infty , \infty)$ and $f(x)$ is continuous.
3
votes
2 answers

Why is the "greater than" or "less than" symbol referred to as operators?

My understanding of operators is it works on elements of a set and produces another element of the same set. I don't see how or why the "$>,≥,<,≤$" would be referred to as "operators" on some pages as it doesn't map to another element. (I think I've…
William
  • 4,893
3
votes
4 answers

$F(x)$ is a periodic function with petiod $k$

If $f$ be a periodic function with period $k$ and $f(-x)=-f(x)$ in $\bigg[-\frac{k}{2}\;,\frac{k}{2}\bigg]$. Then prove that $\displaystyle \int^{x}_{a}f(t)dt$ is a periodic function with period $k$ Solution i tried Let $\displaystyle…
jacky
  • 5,194
3
votes
3 answers

Surjective and Unbounded functions

Every surjective function from $\mathbb{R}$ to $\mathbb{R}$ is unbounded. Every unbounded function from $\mathbb{R}$ to $\mathbb{R}$ is surjective. Is it possible for either of these statements to be false? I have a feeling there is some…
3
votes
3 answers

Why is it incorrect to define an "impure" function?

While doing a math question on piecewise functions, I came across an answer which seemed wrong to me but I could not explain it mathematically. The question states (summarised): A lottery dealer makes 6 cents on each ticket sold. If the lottery…
3
votes
2 answers

if $u=x^2$ can you say $x^2$ is a function of $u$

If $$u=x^2$$ then obviously $u$ is a function of $x$ and $x$ is not a function of $u$. But can we say that $x^2$ is a function of $u$? Thanks
3
votes
1 answer

Is $f(\sqrt{x})=x$ a function?

I encountered the following question in an exam: If $\mathbb{R}$ is the set of real numbers and $f: \mathbb{R} →\mathbb{R}$ is defined by $f(\sqrt{x})=x$, the '$f$' is: a) Injective but not surjective b) Surjective but not injective c) Bijective d)…
3
votes
2 answers

Preimage of two-dimensional function

We have the function $f:(\mathbb{R}^2,\|\cdot\|_2)\rightarrow (\mathbb{R},|\cdot |)$ with \begin{equation*}f(x,y)=\begin{cases}y-x & y\geq x^2 \\ 0 & y
Mary Star
  • 13,956
3
votes
2 answers

Function that is not differentiable at a point

I am looking for a continuous function to be used in fourier series graph that have the same value at both $-\pi$ and $\pi$ but has a very poor differentiability at a point. I have one: $\sqrt{(\pi\vert x\vert) - x^{2}}$ through trial and error…
Sandra
  • 563
3
votes
2 answers

How to prove the inequality $|x|^{r-1} \leq |x|^r + 1$

$|x|^{r-1} \leq |x|^r + 1$ of a convex function? Thanks.
RHS
  • 413