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
1 answer

Power functions question and solving the equation.

I'm translating this from my mother tongue so bear with me - I have a question in relation to power functions but I think the problem I am dealing with is my seemingly lack of other mathematical rules that I need! The equation I want to solve…
1
vote
4 answers

Proving the function c : N → N defined by c(n) = the number of digits of $n^2$ is surjective

I have an idea on how to implement this in proof talk but I'm not quite there. If $n = 10^x$, then $n^2= 10^{2x}$ which has $2x+1$ digits but I don't know where to go from there. Any help?
1
vote
1 answer

Let $f : \mathbb Z\to\mathbb Z$ be $f(n) = 3n + 2.$ Find $g : \mathbb Z \to \mathbb Z$ with $g \circ f$ is the identity function on $\mathbb Z.$

I'm aware that f isn't bijective so it cannot have an inverse function. So g cannot be an inverse function to f. Knowing this, I know some people express such undefined inverses in terms of a piecewise function but I'm not too sure. Can someone help…
1
vote
0 answers

Find the period

I was solving the following question: Find the period of $\min\{\sin x, |x|\}$. My solution is: $\min\{\sin x, |x|\}=\sin x$. Hence period is $2\pi$. Is my solution correct?
Learning
  • 719
1
vote
1 answer

What function does replicate this signal?

For a signal processing analysis, I need a function that behaves like the image below, but I cannot figure out which formula replicates this dynamics. Features: $y(x) = xk$ for some constant $k$ at each point $x\in\mathbb{Z}^{+}$ at each…
user240612
1
vote
1 answer

Transforming derivative function bounds

Suppose that $f(x)$ is a real continuous function defined in $0 \leq x \leq 1$ and bounded such that $a \leq f(x) \leq b$ where $a
Benny K
  • 173
1
vote
1 answer

What is the set of all of the graphs of a function called?

Imagine, for instance, we have a set that has all of the possible domains and ranges of every possible combination of inputs of a function. Here's an example: The equation for Polytropes in astrophysics: Here's the, what I like to call, the…
1
vote
2 answers

Customize scoring function

Say, my friend and I are looking for an apartment based on the travel time to our workplace. The time I spend is x minutes and my friend spend is y minutes. Is there any equation that can help me to determine the best apartment? I don't like x+y as…
user
  • 19
1
vote
3 answers

If $b>a>0$ show that $f(b)>f(a)$

You have a function $f(a)=1+a^2$ where $f: \mathbb{R} \to \mathbb{R}$ If $b>a>0$ how would I show that $f(b)>f(a)?$
1
vote
1 answer

Determining whether a function is injective or surjective in a certain range

I ran into this question while preparing for an exam: Let f : [1, 3] → [0, 2] be the function defined by f(x) = ln x for all x ∈ [1, 3]. Determine whether or not this function is injective and whether or not it is surjective I understand what…
1
vote
2 answers

Simple question but seemingly complicated functions

I am trying to show that if $f, g :[0,1] \rightarrow \mathbb{R} $ then $f(x)+g(x) < t$ if and only if there is a rational number $r $ such that $f(x)
Anonmath101
  • 1,818
  • 2
  • 15
  • 30
1
vote
0 answers

Simple monotonically decreasing function that meets certain constraints

I'm looking for a function that: is monotonically decreasing over the range {$x = 1, x = 50$} where $x$ can only take integer values Decreases gently at first, then steeply as $x$ gets closer to $50$. What's a simple function that meets these…
Allure
  • 616
1
vote
0 answers

More abstract mathematical operator than PI and SIGMA

I have been going down the YouTube mathematics rabbit hole. I learned about something called Willans' (horribly inefficient) formula for calculating the nth prime, which made use of the Sigma (summation) operator, as well as some other axioms, and…
1
vote
0 answers

Given a function $f○g○h(x)$, where $f,g,h$ are bijective functions and $○$ is used to denote composition of functions . Then prove that $(f○g)○h(x)$

Given a function $f○g○h(x)$, where $f,g,h$ are bijective functions and $○$ is used to denote composition of functions . Then prove that $(f○g)○h(x)=f○(g○h)(x)$. I am not been able to quite solve it . My approach goes like this : First of all, we…
Arthur
  • 2,614
1
vote
2 answers

Range of $f(x) = \frac{1+e^x}{1-e^x}$

Range of $f(x) = \frac{1+e^x}{1-e^x}$ To understand more about the range, I calculated the domain of $f(x)$ which is all real numbers except $x=0$ From the domain, I understand that there is no values of $f(x)$ when $x=0$ I had a hint from someone…
user307640
  • 2,632
  • 2
  • 17
  • 27