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

Range of $x \mapsto \frac{x+5}{\sqrt{x^2+1}}$

Find the range of the following function $$\begin{aligned} f : \Bbb R &\to \Bbb R\\ x &\mapsto \frac{x+5}{\sqrt{x^2+1}}\end{aligned}$$ I tried squaring both sides and got a quadratic equation in $x$. Then I applied $D\geq0$ as the domain of given…
1
vote
2 answers

Translating a function vertically

I apologize if this is obvious. I'm trying to gain an intuition on plotting functions. The example I have to work with is comparing the graph of $f(x) = \sqrt{x}$ and $g(x) = 1 + \sqrt{x-1}$. I know what $\sqrt{x}$ looks like. The graph of…
Brad G.
  • 2,238
1
vote
1 answer

If $f,g: \mathbb{N}\rightarrow\mathbb{N}$ and $f\circ g=id_\mathbb{N}$, $f$ is invertible?

If $f,g: \mathbb{N}\rightarrow\mathbb{N}$ and $f\circ g=\operatorname{id}_\mathbb{N}$ Is $f$ necessarily invertible? I can't prove it formally, but also can't come up with two functions that contradict it.
fisoo
  • 11
1
vote
0 answers

creating a function of compound return accounting for monthly payments

I am trying to make a function that calculates a compound return on an investment, but monthly payments are made. I am making it in desmos, but have realized that simply subtracting the payment amount each month is inaccurate. The rate of increase…
Austin
  • 11
1
vote
1 answer

Function to map a range of $[-1,1]$ to a range of $[0,1]$

I'm not capable of 'rigorously' defining the problem I have but this is the best I can do. If I have a set of points that range from $-1$ to $1$ inclusive and I have to transform the data so that it fits onto a range of $0$ to $1$. What's the simple…
1
vote
1 answer

$g\circ f=id_X$ implies $f$ is one-to-one and $g$ is onto

I have $2$ functions, $f:X\to Y$ and $g:Y\to X$. If $g\circ f=id_X$, where $id_X$ is the identity function on $X$, that is $id_X(x)=x$ for any $x\in X$, then I have to prove that $f$ is one-to-one and $g$ is onto. The first part is simple. Let $x_1,…
Wolfuryo
  • 577
  • 5
  • 13
1
vote
3 answers

Is $f(x) = \frac{x}{x-1}, x \gt 1$ invertible?

I think since the function is not defined for $x \lt 1$ so this function is not invertible. I had also proved that this is an one to one function but is this an onto function too?
1
vote
2 answers

If $f(x) = x^2 - 2x + 5$ what is $f^{-1}(x)$?

If $f(x) = x^2 - 2x + 5$ what is $f^{-1}(x)$? with the condition : $x > 1$ I solved this problem in this way: $f(x) = x^2 - 2x + 5 -1 +1 \longrightarrow (x-2)^2 + 1 = f(x) $ $f^{-1}(x) = \sqrt{x-1} + 2$ But I saw someone else solved it in this…
user949739
1
vote
3 answers

The domain of $f(x)=x^{1/x}$

I've been taught that the domain of the function $f(x) = x^{1/x}$ is $x > 0$ assuming the function to be from $\mathbb{R} \to \mathbb{R}$. But $f(-1) = (-1)^{(-1)} = -1$, so why does the domain not include $x = -1$?
user947772
1
vote
1 answer

How do I solve a pair of simultaneous equations where one is a modulus function?

The question is as follows: $y=x+4, y=|x^2 - 16|$ Currently, I understand how to solve basic modulus functions (as per IGCSE Additional Mathematics). However, I'm stumped on this question because I do not know how to solve simultaneous equations of…
Mutsuki
  • 59
1
vote
3 answers

I'm unable to understand why option c is correct.Even though option a seems correct

If A and B are the points of intersection of $y=f(x)$ and $y=f^{-1}(x)$ then (a) A and B necessarily lie on the line $y=x$ (b) A and B must be coincident (C)Slope of line AB may be $-1$ I approached by considering two point $P(x,y)$ and $Q(y,x)$ on…
1
vote
1 answer

Solving system of equations for rational numbers

Question: How many rational number ordered triples $(x, y, z)$ satisfying the equation system $x + y + z = 0, xyz + z = 0$ and $xy + yz + zx + y = 0$? My partial solution: First simplify the $2$nd equation to be $xyz = -z$ and the $3$rd equation…
1
vote
1 answer

Summation of the function

If $f(x)=e^{x+1}-1$. Find the sum of all of the values of 'n' that makes $g(x)$ differentiable over $\mathbb{R}$. $g(x)=100|f(x)|-\sum_{k=1}^n|f(x^k)|$ such that $n \in N$. I have no idea of how to procced but I can figure out from desmos.com that…
1
vote
2 answers

Strictly increasing function value

Question: Let $f(x): N → N$ be a strictly increasing function, where $N$ is denoted as the set of all positive integers. If $f(f(n)) = 3n$, what is a possible value of $f(1)$? My approach (Cases) : $f(1) = 1$: Starting to eliminate some possible…
1
vote
2 answers

Help finding math function for adding number if x is greater than zero

I am helping a friend of mine make of game of his design as a mobile app. Doing this process I have found pure mathematical functions to be helpful rather than just use if statements in all scenarios. I haven't studied math beyond high school level…
Doro-HD
  • 31
1 2 3
99
100