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

If $f \circ g$ is surjective, $g$ is surjective

If $f \circ g$ is surjective, $f$ is surjective. If $f \circ g$ is surjective, $g$ is surjective. $\textbf{Part 1:}$ Let $f:B \to A$ and $g:C \to B$. Assume $f \circ g$ is surjective. Since $f(g(x))$ is surjective, for all $a \in A$ there is a $c…
2
votes
2 answers

Functions - Bijection

Quiz** Determine whether f is a bijection from Z to Z if f(x) = $x^{5}$ + 1? Also determine if it is invertible or not. I gave an answer of " f is not a bijection and is invertible" It was wrong. Please explain
Shalvin
  • 21
2
votes
0 answers

Finding the range of solutions

Say I have the following equations (I am given n, c, and d): $$\frac{1}{n} \sum _{i=1}^{n}f(x_{i} ,y_{i} ) =c$$ $$\frac{1}{n} \sum _{i=1}^{n}g(x_{i} ,y_{i} ) =d$$ $$0
Omri
  • 699
2
votes
1 answer

Are these functions identical?

Suppose we have an identity of the form $$x e^{f(x,y)}+y e^{g(x,y)} \equiv (x+y)e^{h(x,y)},$$ for all $x,y\in D$ where $D$ is some domain. Does this imply that $f(x,y)\equiv g(x,y)\equiv h(x,y)$ in general?
pshmath0
  • 10,565
2
votes
1 answer

Vertical asymptote (or any?) at removable discontinuity

If I have a removable discontinuity, do i have any kind of asymptote? I originally thought no, but this confused me a bit: http://www.purplemath.com/modules/asymtote4.htm Close to the bottom, it says that the function (with a removable…
Jon
  • 31
2
votes
1 answer

Vertical asymptote, yes or no?

I am working on a problem that will highlight the importance of accuracy and the flaw in approximating certain numbers (very basic stuff). Say you have the following function $$f(x)=\frac{x^2 - b^2}{x + b}$$ If I were to draw this graph, I would…
Daniel
  • 151
2
votes
1 answer

fundamental period of sum of two periodic functions

Is there some formula to find fundamental period of sum of two periodic functions both of whose fundamental period is known. If yes what is the proof and the formula
humble
  • 430
2
votes
1 answer

Let functions $ f: A \to B$ and $g: B \to A$, suppose that $ g \circ f = i_A$. Prove that if $f$ is onto, then $g$ is one-to-one

For nonempty sets $A$ and $B$ and functions $ f: A \to B$ and $g: B \to A$, suppose that $ g \circ f = i_A$. Prove that if $f$ is onto, then $g$ is $1-1$. Here is what I started, I don't think it's correct. Suppose $f$ is onto i.e for each…
2
votes
3 answers

$f(a)=b$ where $a$ and $b$ are algebraic expressions of $x$

Is it possible to write functions in the form $$f(a)=b$$ where $a$ and $b$ are algebraic expressions of $x$ (e.g $a=3x^2$ , $b=4x^5$)? The example function would be: $$f(3x^2)=4x^5$$ Do these functions exist? Is it possible to rewrite them in a…
user50224
  • 966
2
votes
1 answer

Find the all function if $2f(mn)\ge f(m^2+n^2)-(f(m))^2-(f(n))^2\ge 2f(m)f(n)$

QUestion: Find all the function $f:N\to N$, such for any $m,n\in N$, have $$2f(mn)\ge f(m^2+n^2)-(f(m))^2-(f(n))^2\ge 2f(m)f(n)$$ This problem is from Mathematical olympiad 2014(chongqing provinces) My try: let $m=n=0$,then we have $$2f(0)\ge…
math110
  • 93,304
2
votes
4 answers

$f(x^2)$ even or odd

I've been working on the following example: Is the following even, odd or neither: $f_{0}(x^2)$, where $f_{0}(x)$ can be any unknown function I've tried the following: 1) for example I assume $$f_{0}(x^2)=x^3$$ Then: $$f_{0}(x^2)=x^2 \cdot x$$…
user50224
  • 966
2
votes
1 answer

Given that $f(x) = x + \frac{1}{x}$ where $x>1$, find $f^{-1}(x)$

Given that $f(x) = x + \frac{1}{x}$ where $x>1$, find $f^{-1}(x)$. I don't understand and how to start. Please help.
noobie
  • 69
2
votes
4 answers

Heaviside Unit Step Function

Convert to heaviside function: $$f(t) = \begin{cases}e^t ,& 0 \leq t \leq 1 \\0 ,& t > 1\end{cases}$$ My attempt: $f(t) = U(t) e^t - U(t-1) e^t $ I think my solution is not right because at f(t=1), it doesn't give the right value. How would I go…
2
votes
4 answers

Composition of Even and Odd Functions and their Outcome

Give an example of an even function. Give an example of an odd function. If f(x) is odd and g(x) is even, must f(g(x)) be even? Must g(f(x)) be even? I've tried generic functions like f(x) = x^3 and g(x) = x^2 Both compositions (going f(g(x)) and…
2
votes
1 answer

I don't understand the mathematical definition of an inverse function

A function $f:X\rightarrow Y$ is called invertible if there exists a function $g:Y \rightarrow X$ such that: $y=f(x)\Leftrightarrow x = g(y)$ for all $x\in X $ and for all $y \in Y$ In this case we call $g$ an inverse(function) of $f$ and write…
mauna
  • 3,540