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

Is there a proof (apart from contradiction) to show that identity does not exist.

I have example in which there is only option of contradiction to prove that identity does not exist. Consider the binary operation : $a*b= 2a +b, \forall a,b \in \mathbb{Z}$. Suppose that $\mathbb{Z}$ has an identity $e$ w.r.t. $*$. Then, $e*1 = 2e…
jiten
  • 4,524
2
votes
2 answers

Behavior of the derivative of a function

I am a physics student and would apologize if in advance if you find my way of asking the question inapproperiate. I have the following function $F(x)=2f(x) - f(2x).$ Given that $\frac{d}{dx}f(x) > 1$, what can one say about $\frac{d}{dx}F(x)$ ?…
2
votes
2 answers

Checking if a function is injective and surjective

I am doing past paper question and came across the following question: For each of the following functions, decide whether it is injective and surjective. Justify your answer. $f: $ {$-1, 0, 1$} $\to$ {$-1, 0, 1$} $f(x) = x^3$ $g: $ {$0, 1$}…
Shannon
  • 111
2
votes
1 answer

What does it mean for a composite function to be defined?

I am trying to answer the following question from a past exam paper: Let $A = $ {$1,2,3$}, $B = $ {$2,3,4$}, and $C = $ {$1,2,3,4$}, consider the following functions: $f: A \to B$ $f(x) = x + 1$ $g: A \to C$ $g(x) = x$ $h: C \to A$ $h(1) = 2$,…
Shannon
  • 111
2
votes
1 answer

Are these two bounds close to each other?

Recently I proved a some bound about something. The bound is (details : come soon) Upper bound $f(k)< k^{k^{O(k)}}$. Lower bound $f(k)< k^{k^2-o(k)}$ My question is Are these two bounds close? For general meaning. What should I call the lower…
Yao Wang
  • 311
  • 2
  • 6
2
votes
1 answer

Co-Domain of composite function

Let's say I have $f: X \to Y$ where $f(x) = x^2$ $g: Y \to Z$ where $ g(y) = \cos(y)$ and $h: Z \to X$ where $h(z) = 2x-1$ If I take $ f \circ (g \circ h)$ I get $\cos^2(2x-1)$ What is the co-domain of this function? Is there some sort of rule for…
mh234
  • 171
2
votes
1 answer

Function with linearly decreasing difference between subsequent outputs

How can we find a function for a conversion table with the following properties? The range of both inputs and outputs is $[0..100]$; inputs are integers. $$f(0) = 0$$ $$f(100) = 100$$ $$f(1) - f(0) = 2(f(100) - f(99))$$ So, $f(1)$ should be…
2
votes
2 answers

Function Transformation Graph

Consider a real function $g(t)$. Now consider another real function $f(t) = -t +3$ that transforms the domain of $g(t)$. Suppose I have the graph of $g(t)$ and I'm trying to plot the $g(f(t))$ graph by drawing. In order to get the correct graph, I…
user1843665
  • 163
  • 7
2
votes
1 answer

Determine injective or surjective of these functions

I have the following functions: $$ \begin{align} f&: \mathbb{N} \times \mathbb{N} \to \mathbb{N} \times \mathbb{N} \\ g&: \mathbb{N} \times \mathbb{N} \to \mathbb{N} \times \mathbb{N} \end{align} $$ defined by $f(x, y) = (x + y, x)$ and $g(x, y) =…
2
votes
3 answers

How to construct a bijection between $\{0,1,\dots,2017\}×\Bbb N$ and $\Bbb N$?

How to construct a bijection between $\{0,1,\dots,2017\}×\Bbb N$ and $\Bbb N$? I've tried to come up with different combinations, but no luck. Any ideas how to solve this problem?
MathBear
  • 246
2
votes
2 answers

For all values of 'a' of element x , there exists a function g such that g: x -> x such that g(a) = a. Is this true?

Let $X$ be a non-empty set. $ \forall a \in X, \exists \, g : X \rightarrow X$ such that $g(a) = a$. Is this statement: a) always true b) always false c) the answers depend on the number of elements in $X$?
user506529
2
votes
2 answers

Multiple soft step function

I want to create a function that have multiple (infinite) steps like this one: $x+\sin x$ But i want to have control of two things: how quickly it increases and when the (soft) steps occur. For example: for the function $\frac{1}{(1+e^{-x})}$ which…
MasterID
  • 145
2
votes
1 answer

The Internal Rate of Return

The internal rate of return is the rate of return "r" for which future cash flows of an investment equals the price of an investment. As a formula, this would be: 100 = 10/(1+r)+10/(1+r)^2+100/(1+r)^3 Assuming this was an investment which paid $10…
John
  • 31
2
votes
1 answer

Find the domain of: $f(x)= \sqrt[e^{\frac{1}{x^2-1}}] {\arccos \frac{x-1}{x+2}}$

Find the domain of: $$ f(x)= \sqrt[e^{\frac{1}{x^2-1}}] {\arccos \frac{x-1}{x+2}}$$ (it's not really visible but it's the $e^{\frac{1}{x^2+1}}$-th root) I started solving this problem like this: condition #1 $$-1\le \frac{x-1}{x+2} \le…
2
votes
2 answers

Find the domain and range of $y=-x^2+4x-3$

Find the domain and range of $y=-x^2+4x-3$ My Attempt: $$y=f(x)=-x^2+4x-3$$ The given function is a polynomial of degree $2$ in $x$. $f(x)$ is defined for all $x\in R$, so the domain of…
pi-π
  • 7,416