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
1
vote
3 answers

Algebra 2 Bonus Question

This was a bonus question on a test I just took: Write a function with a domain of all real numbers and a range of only $2$ numbers. The closest I got to an answer was $f(x)=\frac{x}{|x|}$, which has a range of $\{-1,1\}$, but it fails the part…
Annie
  • 13
1
vote
1 answer

Spinning wheel question

If a wheel is being recorded in 24 frames per second and has 6 evenly spaced spokes with 13 inches in radius. What is the slowest possible speed it mi/hr that the wheels appear to spin backwards. I tried to use the equation v = rw but am having…
1
vote
1 answer

Zero function question

"The function $ g : \mathbb{R}$ $\rightarrow$ $\mathbb{R}$ satisfies $ g(ab) = ag(b) + bg(a)$" For this equation, am I right in assuming that the function , $g$ , is a zero function? I'm trying to prove that any input of g would equal zero, say…
1
vote
1 answer

Limit function not lipschitz.

Is there a sequence of functions that are all lipschitz and uniformly continuous that converge uniformly to f and f need not be lipschitz?
1
vote
2 answers

How to isolate X in this eqquation?

How to isolate $x$ in this equation: $px+(\frac{b}{a})px=m$ Blockquote And get $\frac{a}{a+b}*\frac{m}{p}$
Martin
  • 21
1
vote
3 answers

Why isn't what I have written a bijection?

I received an F on this assignment and was told that this was not a bijection. The counterexample my professor wrote on my paper was, "$\frac{x}{x^2 + 1} = 1$ has no real roots, so it's not onto the natural numbers." I'm either incorrect, or he…
Joseph DiNatale
  • 2,845
  • 22
  • 36
1
vote
2 answers

Discrete Mathematics - One to One

I'm new to discrete mathematics and was wondering whether the following functions are one to one: $$f(x) = x - 1$$ $$f(x) = x^2 + 1$$ The reason I stand by this is because for the first equation: $$x - 1 = y - 1\\x = y$$ and for the second…
Sentrl
  • 311
1
vote
3 answers

General approach to find continuous functions?

I have two functions: $f: \mathbb{R} \to \mathbb{R}: x \mapsto |x|$ $f: \mathbb{R} \to \mathbb{R}: x \mapsto 3x^2-7x^2+11x-1$ I´m not really sure how to approach the question whether these functions are continuous or not. For the 1. because it is…
Jacky
  • 87
1
vote
4 answers

Is there such a function: $f = \{0 \text{ when } x=0, 1 \text{ when } x ≠0 \}$?

I'm looking for a simple function defined as: $$ f(x) = \begin{cases} 0, & \text{ when } x = 0, \\ C, & \text{ when }x \neq 0. \end{cases} $$ Basically, I only want the constant to matter if $x \neq 0$.
moevi
  • 11
1
vote
1 answer

What does this mean in (what I think) is a function?

This image. The curly bracket (some form of matrix)? What is it? How would I use it? I would find the meaning some other way, but I don't even know what to look up.
Trace
  • 11
1
vote
3 answers

How can I map this range to that?

Input values I have (4 values) are: 0.00 0.25 0.50 0.75 and for each, respectively, I want this output: 0.50 0.54 0.58 0.62 what's the function for this? I don't know how to pull out the ratio: a => a * ratio
markzzz
  • 61
1
vote
2 answers

Proving statements with the definition of functions.

I'm a bit stuck proving questions such as "$S\circ R$ is a function if $R$ and $S$ are both functions." Is this a case of stating the definition of a composite function? Thanks. Would the following proof be correct? $$ \forall x \in X. \exists y…
1
vote
0 answers

function with two parameters

We have function $f(x)=x^{2014}-ax^2-bx$ determine how many roots have this function. We have for sure one root $x=0$ becouse we can rewrite $f(x)=x(x^{2013}-ax-b)$ but how I can determine the number of roots in bracket?
Mark
  • 403
  • 5
  • 13
1
vote
1 answer

domain of composite function (is there a set rule)

In the function topic of "function combinations" or "function algebra", for the basic arithmetic operations of the following: 1) f + g 2) f - g 3) f * g 4) f / g To find the domain of these, one needs to find the domains of each f, g and find the…
Palu
  • 841
1
vote
2 answers

Problem in understanding composite functions

I was reading a theorem about functions: Let $f:A\to B$ be any function. Then $\hskip0.3in$(a) $1_B\circ f=f$. $\hskip0.3in$(b) $f\circ 1_A=f$. If $f$ is a one-to-one correspondence between $A$ and $B$, then $\hskip0.3in$(c) $f^{-1}\circ…
user2857