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

If possible, infer that: $f(x+y)\leq f(x)+f(y)$ and $f(\alpha x)\leq \alpha f(x)$.

Let $x,y\in \mathbb R^{+}$. I have some doubts about a question on the functions thery, in general. If $f$ is a concave (and continue) function and $$\lim_{x\rightarrow +\infty}\frac{f(x)}{x}=0$$ can I infer that there exist $M>0$ such that $\forall…
Mark
  • 7,841
  • 6
  • 38
  • 72
2
votes
1 answer

Domain and Range of functions

What is the best way to find the range of a function? For example if we have a function given: $$y = \frac{\sqrt{x+3}}{x^3 - 2x^2 - 8x}$$ The domain is easy enough to find: Ensure that the term inside the square root is positive and that the…
Gummy bears
  • 3,408
2
votes
4 answers

Find, without graphing, the range of the function.

$$y=x^2-5, x∈[-2,0]$$ Here's what I did: $$-2≤x≤0$$ $$x^2≤4 ∧ x^2≤0$$ $$x^2≤0$$ $$x^2-5≤0-5$$ $$y≤-5$$ Is it correct?
2
votes
2 answers

Functions and Algebraic Operations

I just need some help on these equations: $f: A \to B$ and $y=f(x)=2x^{3}+1\implies f^{-1}(x)=$ ? THANK YOU very much for reading this and please, pardon me that I'm STILL not skilled enough to use proper or universal mathematical symbols on the Web…
2
votes
1 answer

$f(x)$ is onto?

A function $f:R-{a_1,a_2}$ to $R$ is defined by $$f(x)=\frac{ Ax^2+6x-8}{A+6x-8x^2}$$ How many integral values of $A$ exist for which $f(x)$ is onto. I tried finding the range of this function, but I did not find things working out. Please see-…
user167045
2
votes
4 answers

$A$ and $B$ are finite sets. How many Partial Functions exist between them?

so I have following question $A$ and $B$ are finite sets How many Partial Functions exist between them ? $f:A\to B$ Can someone give me a solution/hint/website where they may explain me a solution. Since unfortunately I can't think of a good…
Sai
  • 73
2
votes
1 answer

Find the domain of this function

how do i find the domain of this function? I keep ending up with $0 \leq x^2 + 18$, $-18 \leq x^2$, and this give me a non-real answer $\sqrt{-18}\leq x \leq \sqrt{18}$? i set the function <= 0 so their is no more square root on the numerators,…
2
votes
1 answer

return a lower number based on a higher base number and vice versa.

So I am making an attack timeout based on a speed rating for a program that I am writing, but I am no genius when it comes to math. As it is i have a formula like so speed(x) = x/50 the base speed rating defaults at 100, so the attack would occur…
riyoken
  • 123
  • 3
2
votes
3 answers

Is there a function that can reproduce this simple pattern?

input: 0, 1, 2, 3, 0, 1, 2, 3... output: 0, 1, 1, 0, 0, 1, 1, 0... I'm trying to resolve a function that takes the input and produces the corresponding output but despite how simple it looks, i can't quite seem to figure it out. Any suggestions?
Nataly
  • 23
2
votes
1 answer

What does Overlap two functions mean

What does overlap mean in the case of two functions. Or atleast, what does overlap mean in the case of 2 lines or 2 curves. Thanks in advance. The complete sentence to clarify the context: Convolution is a mathematical operation that takes two…
user907629
  • 123
  • 1
  • 4
2
votes
3 answers

Finding the formula of a function based on output

This is probably something super simple, but I can't find it in my book, and I don't even know what to search for because I don't know what to call it. I'm not looking for this specific answer, but how would I approach a problem like this. $$…
Robert
  • 123
2
votes
1 answer

Are minimax and maximin condition interchangable?

I've came across a classic problem in my field where $$\min_h \max_{\delta,\omega} |h^TP{(\delta,\omega)}-R_d(\delta,\omega)|$$ where $h$ ( a set of coefficients), $\omega$, and $\delta$ are independent variables. My question here is that whether or…
2
votes
2 answers

Find out if $\log(3x + \sqrt{9x^2 + 1})$ is even or odd

I'm trying to find if this function is odd or even : $f(x) = \log(3x + \sqrt{9x^2 + 1})$ I know that it's an odd one because if I try $f(x) + f(-x) = 0$ it shows that it's odd. But I want to know how to figure problems like this? I used this method…
2
votes
2 answers

Number of one -to-one functions

Let $A = \{1, 2, 3, 4\}$ and $B = \{a, b, c, d, e\}$. what is the number of functions from $A$ to $B$ are either one-to-one or map the element $1$ to $c$? My answer is $166$, but I'm not really sure of my approach . To calculate $A \cup B = 5! +…
2
votes
2 answers

Associativity of pointwise addition of functions

A quick check: Is it safe to claim that pointwise addition of functions (in general) is associative? where pointwise addition of functions is defined by $(f+g)(x)=f(x)+g(x)$. If not, I guess it is at least true for continuous functions on a closed…
luis
  • 23
  • 2