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

(Computationally) Simple sigmoid with specific slopes at specific points

This is a refinement of this question: (Computationally) Simple sigmoid. Ideally, I would like to have relatively simple sigmoid function with the following properties: derivatives at -1 and 1 are zero derivative is not zero between -1 and…
Mars
  • 1,338
2
votes
1 answer

Existence and uniqueness proof check/critique

Problem statement, as written: Let $f\colon A \rightarrow C$ and $g\colon A \rightarrow B$ be functions. Prove that there exists a function $h\colon B \rightarrow C$ such that $f = h \circ g$ if and only if $\forall x,y \in A$, $g(x) = g(y)…
Cyrus
  • 368
2
votes
5 answers

Determine if $x(t)$ is periodic. If periodic calculate its period.

Determine if $$x(t) = \cos(8t) + 4 \sin(8t)$$ is periodic. If so, calculate its period.
carlos
  • 85
  • 1
  • 1
  • 7
2
votes
1 answer

Distance between two points on a function

My question concerns simple functions e.g. exponential or trigonometrical curves. Suppose you are given two points, and are asked to find the distance between those two points which also lie on the curve, how would this be calculated? In case the…
2
votes
2 answers

What is the domain and range of $x^{\cos(x)}$?

By all accounts (Wolfram, Desmos and my TI-nspire CAS calculator) the domain is apparently all $x>0$, but subbing in things like $\frac{-\pi}{2}$ or $-\pi$ yields a real answer, despite their being negative and thus ostensibly outside the domain.…
2
votes
2 answers

Suppose you have functions $f$ and $g$ such that $f: Y \rightarrow T$ and $g: X \rightarrow Y$.

I having a tough time understanding this? I've learned about onto and 1 to 1 functions from a basic perspective, but I'm having a hart time understanding where to even start with this. (a) Suppose (f o g) is onto. Claim g is onto. Prove or…
2
votes
2 answers

Prove that f(X) is constant.

Now I have seen a lot of answers around here which seem to be good enough. Problem is, our teacher asked us to prove it his way. Suppose we know that $$|u(x)−u(y)|≤(x−y)^2$$ Prove, by adding and subtracting $$u((y+x)/2)$$ that u is a constant…
Danny
  • 189
  • 2
  • 10
2
votes
2 answers

Prove if an injective map $f:A\longrightarrow B$ exists there is also a surjective map from $A$ to a subset of $B$.

Prove if an injective map $f:A\longrightarrow B$ exists there is also a surjective map from $A$ to a subset of $B$. Say we are given an injective map $f: S \longrightarrow N$. It is easy to see that $f$ is surjective to some subset of $N$. Does it…
2
votes
3 answers

Determining whether or not $f$ is one to one

I am not sure where to start or how to find a solution. How can I determine this is a one to one function: $f(x) = x + \frac1{x - 1}$, for all real numbers $x \ne 1$.
Math_Ed_Student
  • 153
  • 1
  • 7
2
votes
2 answers

Is $(f+g)x=f(x)+g(x)$ always true?

My Attempt: If Variable is same then $$(f+g)x=f(x)+g(x)$$ it's always true. Thanks in Advance..
2
votes
1 answer

Let $f(x)=ax^2+bx+c$, $a, b, c \in I$. Let $f(1)=0$, $f(7)\in (50,60)$ and $f(8)\in (70,80)$, then find the range of $f(2)$

OPTIONS A) $(-2,0)$ B) $(0,10)$ C) $(1,12)$ D) $(20,30)$ From the first part, it is clear that $$a+b+c=0$$ And $$49a+7b+c\in (50,60)$$ $$64a+8b+c\in (70,80)$$ Subtracting them $$15a+b\in (10,30)$$ While adding them gives $$113a+15b+2c\in…
Aditya
  • 6,191
2
votes
0 answers

Find monotone functions $f:\Bbb{R}^*\to\Bbb{R}^*$ such that $f\left (\frac{1}{f\left(\frac{1}{f(x)}\right)}\right)=x,\forall x\in\Bbb R^*$

Find all monotone functions $f: \mathbb{R^{*}} \rightarrow \mathbb{R^{*}}$ with this propriety $$f\left ( \frac{1}{f\left ( \frac{1}{f(x)} \right )} \right )=x,\forall x\in \mathbb R^{*}$$ Any help would be appreciated. I don't really know how to…
omega123
  • 301
2
votes
2 answers

Functions $f(x,y)$ such that $\left[f\left(x^{\frac{1}{t}},y^{\frac{1}{t}} \right)\right]^t$ does not depend on $t$?

Function $f(x,y)$ is defined for $x>0$ and $y>0$. It satisfies the following property: $\left[f\left(x^{\frac{1}{t}},y^{\frac{1}{t}} \right)\right]^t$ does not depend on $t$ $\forall t\ne0,x>0,y>0$. Obviously, $f(x,y)=x^{a_x}y^{a_y}$ satisfies this…
alexk
  • 33
2
votes
4 answers

A question on continuous functions

How can we can we(or can we?) construct two continuous real valued functions defined over the whole real line that agree at integers only?
AgnostMystic
  • 1,654
2
votes
0 answers

Show that $f:\{1,2,...,n\}\times\{1,2,...,m\} \rightarrow \{1,2,...,nm\}$ given by $f(p,q)=(p-1)m+q$ is biyective.

Show that $f:\{1,2,...,n\}\times\{1,2,...,m\} \rightarrow \{1,2,...,nm\}$ given by $f(p,q)=(p-1)m+q$ is biyective. My try: Inyectivite: Let $$f(p,q) = f(p´,q´)$$ $$(p-1)m + q = (p'-1)m+q'$$ $$mp+q=mp'+q'$$ Now let $p=0$, then $\quad q=q'$ Now…