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

Is it possible to get the function's expression through its graph/curve?

We all know how to draw the curve of a function through its expression but is it possible to reverse this process?, e.g. I will give you a detailed curve (of a non-linear a function) and you find the expression related to this function, since each…
Mehdi
  • 39
2
votes
1 answer

Constant Function Question

Problem: Let $f:\mathbb R \to \mathbb R$ be a function such that for any irrational number $r$, and any real number $x$ we have $f(x)=f(x+r)$. Show that $f$ is a constant function. I have seen the other posts where the answers say that…
JenkinsMa
  • 415
2
votes
2 answers

proving a simple function is bijective

This is more of a "How to write" question than a "help me solve" one, sorry if these are unaccepted/closed, let me know and I won't open anymore like this. I need to prove that $A:=\{x\in \mathbb{N}|$ exists $n\in\mathbb{N}$ such that $x=n^2 \}$ is…
Nescio
  • 2,426
2
votes
2 answers

Writing a function as a sum of its odd and even parts

I have the following question and the solution along with it but I can't get my head around what's been done. The aim is to write the following function as a sum of even and odd functions: $h(x) = \begin{cases} 1, & \text{if $x<0$} \\ e^x, &…
Evan
  • 663
2
votes
1 answer

Construct a real function with is exactly $C^2$ such that its first derivative does not vanish everywhere

I need to construct a real function with is exactly $C^2$ (that is, it is continuous and two times differentiable but it is not three times differentiable) such that its first derivative never vanishes. I tried $x^5 \sin(\frac{1}{x}) +…
JI-br
  • 63
2
votes
4 answers

Greatest integer value of $[2.999...]$

What happens to the greatest integer value in case of such non-terminating decimals ?What is $[2.999...]$ ? Is it $2$ or $3$ ? Does it have connection with limit ?
2
votes
2 answers

Question on invertibe function

In this I could not understand how they have written th first equation in the solution.
search
  • 563
2
votes
1 answer

Comparing two functions.

I've received this task from my professor to solve for an assignment, but I do not know how to prove it. Asume the functions f and g are so that f' and g' are continuous on the interval [a,b] and f'' and g'' exist on (a, b). Asume further that…
Deniz
  • 23
  • 3
2
votes
1 answer

Graph should move down not right.

I am not yet sure how to paste graph here in this site. so am just using equations to explain the question I have . The graph $f(t) = 2t+1$ has a positive slope , and the initial value starts from constant $1$. In one of text book example it…
cyne
  • 21
  • 1
2
votes
2 answers

Additively separable functions

Consider the map $f:\mathbb{R}^n \times \mathbb{R}^n \rightarrow \mathbb{R}^n$. When is it the case that there exist functions $g:\mathbb{R}^n \rightarrow \mathbb{R}^n$ and $h:\mathbb{R}^n \rightarrow \mathbb{R}^n$ such that $\forall…
user46234
2
votes
1 answer

Page ranking function

I am working on my bachelor thesis where I attemp to create a focused web crawler. My program is finished and now I am a bit stuck with computing ranking (or rating) of single pages. I am not trying to build an index of pages or anything. All I want…
Smajl
  • 686
2
votes
2 answers

Show that the function $g(x)=x^4+x^3+1$ is one-to-one on $[0,2]$

Show that the function $g(x)=x^4+x^3+1$ is one-to-one on $[0,2]$. My attempt To prove one-to-oneness, we shall use the definition, that is, if $f(x_1)=f(x_2)$ , then $x_1=x_2$ for all $x_1,x_2\in[0,2]$ Suppose $f(x_1)=f(x_2)$, then…
Yellow Skies
  • 1,710
2
votes
3 answers

Preimage of a singleton set.

My question is aroused by this article; "By definition of a function, the image of an element x of the domain is always a single element y of the codomain. Conversely, though, the preimage of a singleton set (a set with exactly one element) may in…
Grazel
  • 501
  • 5
  • 17
2
votes
2 answers

Working with functions

Suppose $f(3-x)=2x^2-5x+4$ and $f(x)=ax^2+bx+c$. What is $a+b+c$? I don't know how to approach this. I thought of maybe doing $a(3-x)^2+b(3-x)+c=2x^2-5x+4$ and solving for $a+b+c$ but it got messy.
gommb
  • 203
2
votes
2 answers

How to calculate $f(x)$ in this question?

I have a quation regarding composite functions. if $f\left( \dfrac{x^2+1} x \right)=\dfrac{x^4+1}{x^2}$, then what is $f(x)$?
Masan
  • 161