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

Injectivity of a complex function

How come that $f(z)=z^3$ for $z\in \mathbb{C}$ is not injective on an open set $U$ with the origin deleted?
2
votes
1 answer

How find the range of the $t_{1}-t_{2}$?

let $$f(x)=\begin{cases} \dfrac{1}{a-1}(x-1)&x\ge a\\ \dfrac{1}{a-2}(x-2)& x
math110
  • 93,304
2
votes
4 answers

What actually is a function?

I've got confused about the definition of a function. As what the German mathematician Peter Dirichlet said is: If a variable y is so related to a variable x that whenever a numerical value is assigned to x, there is a rule according to which a…
AAAAAA
  • 39
2
votes
0 answers

Find the satisfying functions such that $f(x^5)=5f(x)$

Question is same as above. Let me write again. Find the satisfying functions such that $f(x^5)=5f(x)$ Clearly seen that $c\ln x$ satisfy the condition. Question is what else?
Fuat Ray
  • 746
  • 2
  • 11
2
votes
5 answers

Examining the injectivity and surjectivity of $f(x) = x/(x^2+1)$

I'm beginning with my self study in math from the $11$th grade, so bear with the simplicity. I've got to test the objectivity of $x/(x^2+1)$, function is from $\Bbb R$ to $\Bbb R$. First issue is, I think it is injective, because my algebra after…
Aniruddh
  • 333
2
votes
1 answer

I got stuck on a system of three equations

I have this homework problem about functions. The goal is to find a function of form $$ f(x)=a+bc^{x}, c > 0 $$ $$ and $$ $$ f(0) = 15, f(2)=30, f(4)=90 $$ and then to find the domain of a another function called g(x) where $$ g(x) = ln(x), x =…
2
votes
0 answers

Functions that satisfy $f(f(f(x))) = x$ for $f : \mathbb{R} \to \mathbb{R}$

This is my first post on Math SE soo... I was reading over a thread a while ago that claims the only solution to $f(f(f(x))) = x$ for $f : \mathbb{R} \to \mathbb{R}$ is $f(x) = x$, but.. I seemed to have found a counterexample: $$f(x) =…
Arkyter
  • 85
2
votes
0 answers

Would this order of operations proposal be effective?

Let ~ be a function from R2 to R. Let x (~) y = ~(x,y). Let priority(P) be a function that maps functions (R2 to R) to integers. Set P(+) = 1, P(*) = 2, P(^)=3 An expression that follows the order of operations is an expression that evaluates…
Michael
  • 105
2
votes
1 answer

Confused about the domain of this function

The textbook seeks the domain of $f/g$, where $ f(x)= \sqrt {x }$ and $g(x) = |x-3|$. The answer stated is $(0,\infty]$. I have two questions here: Shouldn't $3$ be excluded from the domain as one can't divide by zero? Is it okay to use square…
2
votes
2 answers

Find the tangent line to the curve

I have a task that is described like this: Find the tangent line to the curve in the point (1,1) I am also provided with the quation $x\sin(xy−y^2) = x^2−1$ I have followed some steps and ended up with $\sin(xy-y^2) + xy\cos(xy-y^2) = 2x$ Now i have…
2
votes
1 answer

Stack of Dices - Number of "visible" sides

i came across a "math-problem" for students in middleschool: A stack of dices is placed on top of each other and the task is to find a term that describes the number of sides that are not covered by the table or a subsequent dice. I am not satisfied…
choXer
  • 123
2
votes
2 answers

How is "$f(x)$ is the set of all children of $x$" a function?

How is this a function? $f(x)$ is the set of all children of $x$ On my slides it says that: Though this f is a function, it is NOT a $H \to H$ function, because each person is associated with a set of people rather than one person. (This $f$ is a…
2
votes
1 answer

Study , according to the values of x , the relative position of line & Curve

We have $F(x) = x + \ln \left(\frac{1+2e^{-2x}}{1+e^{-x}}\right)$ represents curve $C$ and a line $d: y=x$ In an exercise it is required to study the relative position of these two functions, I know we have to subtract them from each other but I…
A.Jouni
  • 329
2
votes
2 answers

Is this function of partitions one-to-one?

Suppose we have a set of integers $H=\{1,2, ...n\}$. Let $A$ a set of partitions of H into $n/2$ pairs $\{\{x_1,y_1\},\{x_2,y_2\}, ...,\{x_{n/2},y_{n/2}\}\}$ and function $f:A \rightarrow Z^n$ where $f(\{\{x_1,y_1\},\{x_2,y_2\},…
2
votes
1 answer

find all functions satisfying $f(x+y)-f(x-y)=f(x)f(y)$ for $f: \Bbb R \to \Bbb R$

I need some help to find all of the functions which satisfy the equation: $$f(x+y)-f(x-y)=f(x)f(y)$$ Actually I have no idea how to start to solve this problem.
MTMH
  • 31