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 $(1+a)^{\frac{1+a}{a+x}}(1+x)^{\frac{1+x}{a+x}}$ concave in $x$ in the support $[0,a]$?

I am studying the following function, defined in the support $[0,a]$: $f(x)=(1+a)^{\frac{1+a}{a+x}}(1+x)^{\frac{1+x}{a+x}}$ In particular I would like to prove that the function $f(x)$ is concave in $x$, so I just need to prove that the function has…
2
votes
2 answers

Find the natural number "a".

Find the natural number "a" for which:- $$\sum_{k=0}^n f(a+k)=16(2^n-1)$$ where the function $f$ satisfies the relation $$f(x+y)=f(x)*f(y)$$ for all natural numbers $x,y$ and $f(1)=2$. I can't figure out how to go about this problem.Any…
Omkar
  • 59
2
votes
3 answers

Does dividing a common factor out from numerator and denominator of a rational function create a new function with different domain?

Suppose a function is defined as $ f(x) =\frac{x^2 - 9}{x-3}. $ If we divide the common factor $ x-3 $ from both the numerator and denominator :- $$ \frac{x^2 - 9}{x - 3} \\ = \frac{(x+3)(x-3)}{x-3} \\ = x+3 $$ 1) Is $ x+3 $ a different function…
anonymous
  • 601
2
votes
0 answers

Notation for composition of functions of several variables

The following is the standard notation for function composition of a single variable: $(f\circ g)(x)=f(g(x))$. But is there common notation for the following: $f_1(f_2(x,y_1),y_2)$ when I have $N$ such functions? Here, $f_n: \mathbf{R}^3 \times…
ToniAz
  • 415
2
votes
2 answers

If $\space$ $\forall$ $x \in \Bbb R$, $\space$ $f(f(x))=x^2-x+1$. Find the value of $f(0)$.

If $\space$ $\forall$ $x \in \Bbb R$, $\space$ $f(f(x))=x^2-x+1$. Find the value of $f(0)$. I thought that making $f(x)=0$ implies that $f(0)= 0^2 - 0 + 1 = 1$, but i think that this isn't correct, because the $x$ in $f(f(x))$ isn't equal to $f(x)$…
Trobeli
  • 3,242
2
votes
5 answers

is $y=e^{\ln(x)}$ a function???

Is $y=e^{\ln(x)}$ a function? I am not sure whether this is a function because it should be equal to $y=x$ but $x$ cannot be zero so I am confused as to wether this is a function or not
user604253
2
votes
3 answers

How to create a function that returns original inputs from generated output, with no prior knowledge of inputs?

I'm looking for a way to convert 4 numbers into 1 number, then convert that 1 number back into the original inputs with no knowledge of said inputs. 4 Numbers Convert into 1 number (summing/multiplying/anything) Use the result to generate the…
2
votes
0 answers

Proving $f(x) = x^3 + x - \sin(x)$ is bijective from $\mathbb{R}$ to $\mathbb{R}$.

How can I show $f(x) = x^3 - 3x + 1$ is bijective from $\mathbb{R}$ to $\mathbb{R}$? I have an attempt to show it's injective, but I don't really know how to show it's surjective: Lemma 1: Every strictly increasing function $g : \mathbb{R}…
user663014
2
votes
2 answers

Find a pattern/function between p and m

I have this set of values and I am trying to find a pattern or function that links p and m. If I'm given the value of p, is there a formula that can generate m? p m 1 1 2 1 3 1 4 2 5 2 6 2 7 2 8 2 9 2 10 3 11 3 12 3 13 3 14 …
Kaylo
  • 123
2
votes
0 answers

Cosecant and Cotangent Lines on a Function

In elementary Calculus, when the concept of derivative is being taught, the secant line and the tangent line are demonstrated for better visualization on a function. I was wondering if we can draw other lines, such as cosecant line, cotangent line…
Rob
  • 622
2
votes
1 answer

Finding real functions satisfying $f(x,z)^2=\int_\Bbb R f(x,y)f(y,z)dy$?

I'm trying to find nonzero functions $f:\Bbb R^2\to\Bbb R$ such that the following holds: $$f(x,z)^2=\int_\Bbb R f(x,y)f(y,z)dy$$ but couldn't find any. Any help on methods of finding solutions, or even finding one solution would be of great help.…
Garmekain
  • 3,124
  • 13
  • 26
2
votes
0 answers

There are circular and hyperbolic trigonometric functions; what about parabolic and elliptical?

Given the fact that we could derive trigonometric functions from a unit circle and on the other hand hyperbolic functions from the unit hyperbola. Could we derive similar functions from example the unit parabola or the unit ellipse or any given…
2
votes
1 answer

Convert a number to $1$ or $-1$

Is there a way to convert any number to either $1$ or $-1$ depending on its sign? For example: 13 = 1 -13 = -1 -670.2 = -1 8.22 = 1 Lets say X is the number, i could do X / X and i would always get $1$ but the minus would get lost.
Alexanus
  • 123
  • 3
2
votes
1 answer

Name for pair of functions

If $f \circ g \circ f = f$ and $g \circ f \circ g = g$, $f$ and $g$ are functions, is there a name for $(f, g)$?
stralep
  • 143
2
votes
2 answers

Find closed form of $f(x)=x^2 \cdot \lfloor {\frac{1}{x^2}}\rfloor$

Yesterday I asked a question about the continuity of $f(x)=x^2 \cdot \lfloor {\frac{1}{x^2}}\rfloor$ and we found out that $f(x)=0$, $\forall x>1$. Now I want to find its closed form over the reals. Now, since $f$ is even, suffice it to find its…