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
4
votes
2 answers

How to find the function for six step operation

I am trying to find a function for the following scenario: Rotating the red arrow will produce a nice sine wave as illustrated to the right of the hexagon. But I need to rotate the blue arrow, and at the same time limit the magnitude according to…
fluxmodel
  • 141
4
votes
1 answer

Curious formula for minimum?

A few years ago I derived the following formula which I just came across in my notes: $$\min(x,y)=\log\left(\frac{e^x+e^y}{1+e^{|x-y|}}\right)=y+\log\left(\frac{1+e^{x-y}}{1+e^{|x-y|}}\right).$$ Has anyone seen this before, and if so is there a…
pshmath0
  • 10,565
4
votes
1 answer

Is this is the right way to do these one-to-one functions, finding their inverse, if not, how to do it?

Question 1) $f(x) = 1-x$ My answer (1): $f(x) = 1-x$, $y = 1 - x$, $y + 1 = x$, $x = y + 1$, $f$ of inverse $f(y) = y + 1$ Question 2) : $f(x) = \dfrac{2x}{x-1}$ My answer 2) : $f(x) = \frac{2x}{x-1} = y$, $\frac{2x}{x-1}$, $y+1=2x$,…
4
votes
2 answers

$f\left( x-1 \right) +f\left( x+1 \right) =\sqrt { 3 } f\left( x \right)$

Let f be defined from real to real $f\left( x-1 \right) +f\left( x+1 \right) =\sqrt { 3 } f\left( x \right)$ Now how to find the period of this function f(x)? Can someone provide me a purely algebraic method to solve this problem please? Update:My…
user220382
4
votes
2 answers

Domain of the given function

A function $y(x)$ is defined as $$ 2^y+2^x=2 $$ The question is about finding it's domain. Pretty simple. By observing the function I could say all the negative numbers are in the domain. But, I think $0$ is included in the domain because the…
4
votes
6 answers

Is the greatest integer function periodic?

Can we call the greatest integer function as a periodic function with no fundamental period or is it just non-periodic. Please explain your answer. To my understanding, if we consider $f(x) = [x]$ now, $f(3) = [3] = 3$ and $f(3+0.5) = [3.5] = 3$…
Quixotic
  • 22,431
4
votes
1 answer

Prove that $f(x_1,x_2,x_3,....,x_n)$ is not symmetric function for $n>4$

$\alpha _n ^n-1=0$ $\alpha _n=e^{2 \pi i/n}$ $$f(x_1,x_2,x_3,\ldots,x_n)=(x_1+\alpha _n x_2+ \alpha _n ^2 x_3+\cdots+\alpha _n ^{n-1} x_n)^n$$ Prove that $f(x_1,x_2,x_3,\ldots,x_n)$ is not symmetric function for $n>4$ for example $n=2$ $\alpha…
Mathlover
  • 10,058
4
votes
2 answers

Determine whether F is injective and surjective

Let $f:\mathbb{R} \to \mathbb{R}$ be a function. Determine whether or not f is injective and surjective where $f(x)=|x|$ So if i'm right, it is not injective and it is not surjective. For a proof, i'll do a counter example: injective counter…
Justin
  • 1,225
4
votes
2 answers

Prove: If $g\circ f$ is onto and $g$ is 1-1, then $f$ is onto

Let $f\colon A\to B$, and $g\colon B\to C$. Prove: If $g\circ f$ is onto and $g$ is 1-1, then $f$ is onto. Here is all I can think of: $g\circ f\colon A\to C$, and for all $x\in B$ there is a unique $y\in C$.
4
votes
1 answer

Will this equation have real solutions?

Consider the following equation: $$ax^2 + bx + c = f(x)$$ $a$, $b$, and $c$ are arbitrary real constants. $f(x)$ is not a polynomial. Does there exist a condition on $f(x)$ such that the solutions are guaranteed to be real? Update: A fixed, more…
4
votes
1 answer

What is the purpose of removable discontinuity?

I've just learned about removable discontinuities. So, when we have such a function we redefine it, making a new function that is defined at the point the first isn't. What is the point of this? What advantages do we get? Wouldn't making it…
LearningMath
  • 1,201
4
votes
1 answer

Domain with $\cosh(x)$

Take the function $$y=\frac{\sqrt{\cosh\left(\frac{1+x}{x^2}\right) - 1}}{e^{\frac{2}{x-1}\log\left|x-1\right|}+1}$$ I have to find the domain of this function. These are the condition that I set…
Overflowh
  • 483
4
votes
4 answers

Show bijection from (0,1) to R

I have to show that the following function $f: (0,1) \rightarrow \mathbb{R}$. I will use this function: $f(x)=\frac{1}{x}+\frac{1}{x-1}$. To show 1-1, I am using $f(x_1)=f(x_2) \Rightarrow x_1=x_2$, where $x_1,x_2 \in (0,1)$. To start…
H Cruz
  • 115
3
votes
1 answer

Looking for a function looking similar to quadratic function but skewed to left

I am looking for a function looking similar to quadratic function but skewed to left; something like this: Just ignore numbers and variables in the figure. I am interested only in the shape of the curve. The top does not have to be flat as in the…
ppp
  • 147
  • 1
  • 9
3
votes
2 answers

How to calculate minimum value of a function?

How to calculate minimum value of a function? $min $ $f(x)=(x_{1}-2)^2 + (x_{2}-1)^2 $