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

How to find the range of a composite function?

I have been stuck at this question: I have $$f(x)=\cos(\pi \cdot x)$$$$g(x)=\frac{7\cdot x}{6}$$ and $$h(x)=f(g(x))$$ and i am asked to compute the range for $h(x)$. My solution: $$h(x)=\cos(\pi \cdot \frac{7x}{6})$$ so the highest value the…
Reddevil
  • 231
2
votes
1 answer

Difference between normal functions and discontinuous functions?

For the function, $$y=\frac{x^2-1}{x-1}$$ The denominator cannot be zero. So $$\lim_{x\to1}\frac{x^2-1}{x-1}=\lim_{x\to1}(x+1)=2$$ "$y=\frac{x^2-1}{x-1}$ is discontinuous at $x=1$ since $y$ is undefined at that point. This leaves a gap in the curve.…
Ehab
  • 23
2
votes
4 answers

How do I "convert" a hyperbolic function into a parabolic function?

How can I find a parabolic function that mimics a hyperbolic one? How would I find the parabolic function for the hyperbolic function $y=5\cosh(\frac x5)$?
Karen
  • 21
2
votes
2 answers

Determining range of a function

I was trying to determine the domain and range of a function. The function is: $$y = \frac{x}{x^2 + 1}$$ I determined the domain which is $\mathbb{R}$. In this equation, when the value of $x$ is 0, the value of $y$ is $0$. Then, I tried to…
user634326
2
votes
2 answers

Another about limits, vertical asymptote

I am asked to find the vertical asymptotes if any of the following rational function: $$\begin{align} y= (x^2-1)/(x^2-x)\end{align}$$ so what I do is first of all is to find the domain of the function, so $$\begin{align}x^2-x=0\end{align}$$ to find…
2
votes
3 answers

Use limits and calculus to show that $f$ is a bijection

I have the following exercise for discrete mathematics: Show that $f(x)=x^3$ (real-valued) is a bijection. So I have to show that the function is both surjective and injective. So, I know how to do this but I was thinking about an alternative way to…
2
votes
1 answer

Does a function with these properties exist?

For $x_1, x_2, x_3 \in \mathbb{Z}^+$, does there exist a function $f(\cdot)$ defined on $\mathbb{Z}^+$, not necessarily continuous or differentiable, such that: $$f(x_1) > f(x_2) \\ f(x_2) > f(x_3) \\ f(x_3) > f(x_1) $$ My immediate thought is that…
Thev
  • 391
2
votes
1 answer

Evaluating a function with a negative number

Given the function $h(x)=3 x^2 + 5$, evaluate $h(-4)$. My friend's tutor says its $h(-4)=149$ but isn't it $h(-4)=53$
kero
  • 1,814
2
votes
2 answers

Function composition - getting different outputs for the same input.

Given: $$ f(x) = 3x-1 $$ $$ g(x) = x^3+2 $$ If you evaluate $g(f(1))$ by doing $f(1)$ first and inputting its value into $g(1)$, you get: $$ f(1) = 3(1) - 1 = 2 $$ $$ g(f(1)) = 2^3+2 = 10 $$ But if you try to substitute $x$ with $f(x)$ in $g(x)$,…
2
votes
1 answer

Upper bound for Hypergeometric Function

We would like to find an upper bound on the following function: $\left(\frac{\omega_1}{\omega_2}\right)^{(\alpha_1-1)} \frac{\Gamma(\alpha_1+\alpha_2-1)}{\Gamma(\alpha_1)\Gamma(\alpha_2)}…
2
votes
1 answer

What functions have the following property?

I'm looking for differentiable functions $f:\Bbb R\to\Bbb R$ such that $$\left(\int_0^1 |f(t)|dt\right)^2> \frac{f(0)^2+f(1)^2}2$$ I found $f(x)=k$, for some constant $k$, $f(x)=x$, $f(x)=x^2$ and $f(x)=e^x$ that hold the opposite, but I couldn't…
Garmekain
  • 3,124
  • 13
  • 26
2
votes
1 answer

Choosing a sequence of elements of sets such that $f_n(a_{n+1})=a_n$.

Let $\forall n \in \mathbb{N} : A_n$ be a non empty finite set and $ \forall n\in \mathbb{N} : f_n : A_{n+1} \rightarrow A_n$. Prove you can choose a sequence of elements $a_0 \in A_0, a_1 \in A_1, ...$ such that $\forall n \in \mathbb{N} :…
Student
  • 83
  • 4
2
votes
0 answers

Is sigmoid function distributive

Sigmoid function is defined as $\frac{1}{1+e^{-(x+y)}}$. Is there a property for sigmoid such that $\frac{1}{1+e^{-(x+y)}}=$ sigmoid$(x)$ {some operation} sigmoid$(y)$ ? Edit: According to this link it is not. However, is there any way that I can…
puffles
  • 273
2
votes
1 answer

Why is $x^2 = f(a) => x = \sqrt{f(a)}$ AND$ -\sqrt{f(a)}$

I don't understand why it also can be negative Why is $x^2 = f(a) => x = \sqrt{f(a)}$ AND $-\sqrt{f(a)}$
ScoobyDuh
  • 113
  • 6