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

A basic question about concave function.

Question: Let $f: \mathbb{R}_{+}^{n} \rightarrow \mathbb{R}$ be a concave function satisfying $f(0)=0 $. Show that for all $k \geq 1 $ we have $k f(x) \geq f(k x) $. What happens if $ k \in[0,1) ?$ I know that when $ k \in [0,1)$, by the…
3
votes
3 answers

What values of $a$ make $x=a^x$ solvable?

I was wondering what the solution to $x=e^x$ was, but then I graphed $y=x$ and $y=e^x$ and saw that they didn't intersect. I assume they wouldn't intersect for a base greater than $e$ either. So, I wanted to know what values of $a$ would give the…
3
votes
2 answers

Get length of decimal digit function

I expect I can get length of decimal digit from function with given number input. For example: $f(9)=1$ $f(95)=2$ $f(529)=3$ And so on... What is the general form of $f(x)$?
3
votes
0 answers

Find the minimum of $\\ f(x)=\frac{5\cos(x)-2\sin²(x)+4\sin(x)-3}{6|\cos(x)|+1}$

Question: Find the minimum of $\\ f(x)=\frac{5\cos(x)-2\sin²(x)+4\sin(x)-3}{6|\cos(x)|+1}$ Attempt. So of course I tried calculus by differentiating but the derivative was overly complicated and couldn't manage to solve it, also I'm wondering if…
3
votes
1 answer

Designing very simple function

I don't have much mathematical background except for highschool and I'm struggling to design a very simple function. I need a function f(x, y) that for the absolute difference of x and y would return a number between 0 and 4. If x, y are equal, it…
ddinchev
  • 133
3
votes
0 answers

Is there a simpler proof for this basic fact about concave functions?

Consider a function $f \colon[0, 1] \rightarrow [0, 1]$. Suppose that $f$ is continuous, strictly increasing, strictly concave on $[0, c]$ where $c \in (0, 1)$, strictly convex on $[c, 1]$, and has three fixed points: $x = 0$, $x = \hat{x} \in (0,…
3
votes
4 answers

Give an example of three functions $f,g,h$ such that $h \circ g\circ f$ is a bijection, but $g$ is neither injective or surjective.

Give an example of three functions $f:A\rightarrow B, g:B\rightarrow C, h:C\rightarrow D$ such that $h \circ g\circ f$ is a bijection, but $g$ is neither injective or surjective. I know that in order for the composition to be bijective, this means…
mmmmmm
  • 141
3
votes
1 answer

"range of function" vs "target of function"?

Page 14 of Fundamentals of Computer Graphics states that if we have a function like this: ...the set that comes before the arrow is called the domain of the function, and the set on the right-hand side is called the target. ...The point f(a) is…
Pacerier
  • 3,369
3
votes
3 answers

If the range of $y = f(x)$ is $-1\leq y\leq 2$, what is the range of $y = 1/f(x)$

If the range of $y = f(x)$ is $-1\leq y\leq 2$, what is the range of $y = 1/f(x)$ Could someone explain why is it not $-1\leq y\leq 1/2$?
3
votes
1 answer

Can two distinct elementary functions be equal over an interval of nonzero width?

The wikipedia entry on elementary functions describes them to be "of a single variable (typically real or complex) that [are] defined as taking sums, products, and compositions of finitely many polynomial, rational, trigonometric, hyperbolic, and…
3
votes
3 answers

how to prove that this function is not injective

I'm very new to proving that a function is injective, surjective, bijective, invertible etc. So I'm supposed to prove that the function below is not injective. $$f(x) = \frac{(-1)^x (2x-1) +1}{4}$$ Where $f:\Bbb N\to\Bbb Z$. Well, I tried to…
3
votes
1 answer

What does + in exponent mean?

I am trying to solve a problem that at some point gives me this: $$ f=C\cdot g^{+} $$ I am confused at to what that $+$ means. Does it indicate that g must be positive? Because that's the only time my calculations work.
Tita
  • 345
  • 1
  • 10
3
votes
0 answers

Express This function as a piecewise function

I need to express this function as a piecewise function. Now, it is not discontinuous so I'm lost. But my attempted solution is to break this into parts, first part is $f(t)=0, -\infty
Foai
  • 87
3
votes
2 answers

Find number of solutions of $|2x^2-5x+3|+x-1=0$

Problem: Find number of solutions of $|2x^2-5x+3|+x-1=0$ Solution: Case 1: When $2x^2-5x+3 \geq 0$ Then we get, $2x^2-5x+3+x-1=0$ x=1,1 Case 2: When $2x^2-5x+3 < 0$ Then we get, $-2x^2+5x-3+x-1=0$ x=1,2 In both cases, common value of x is 1 Hence…
rst
  • 2,031
3
votes
2 answers

Tangentially touching functions {y=ln(f(x)) and y=f(x)/e}

I found some really interesting graphs like these: So basically through these graphs I want to ask that if we take 2 functions in the format of $$f_1 = ln(f(x))$$ and $$f_2 = \frac{f(x)}{e}$$ do they always intersect tangentially?
user884300