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

How to create a function $f$ such that $f(x,y)$ is high when either $x$ or $y$ is?

There are two variables, let's say $x$ and $y$. I want to come up with a function $f:[0,5]\times[0,5]\longrightarrow[0,5]$ that respects the following rules: If $x$ is high (close to the maximum value of 5) and $y$ is low (close to $0$), $f(x,y)$…
2
votes
1 answer

Well defined, continuous and singular

Can you explain what they mean when a function is well defined, continuous and singular? I know a function is continuous when you look at the right and left hand limits and both conclude to the same number. Am I right when I say option 5 is false?…
Dee
  • 47
2
votes
2 answers

Need an example of inverse of a bijective function of 2 parameters

It seems that i've forgotten my highschool math. Think the case that I have a bijective function, so the inverse is a function and i'm trying to find this inverse function as an Expression. The problem is, this function has two parameters. i.e: $z =…
2
votes
1 answer

Logarithmic Equation(s)

I have two equations. I wasn't sure how to properly proceed with them. $ x(\log_8x - 1) = 64 $ $ u(u-1) = \ln(u)$ I don't think I can set each argument to the right side like: $u = \ln(u)$ $u-1 = \ln(u)$ The top equation is easy to approximate…
Frederick
  • 119
2
votes
2 answers

Power or polynomial function?

According to the definition, $f(x) = a·x^n$ is a power function. If we shift it to $f(x) = a·(x - c)^n$ or, more general, to $f(x) = a·(x - c)^n + d$, it becomes a polynomial function (not a power function anymore). Is this just a matter of mere…
2
votes
3 answers

Find domain of $ \sin ^ {-1} [\log_2(\frac{x}{2})]$

Problem: Find domain of $ \sin ^ {-1} [\log_2(\frac{x}{2})]$ Solution: $\log_2(\frac{x}{2})$ is defined for $\frac{x}{2} > 0$ $\log_2(\frac{x}{2})$ is defined for $x > 0$ Also domain of $\sin ^ {-1}x$ is $[-1,1]$ When $x=1$ ,then…
rst
  • 2,031
2
votes
0 answers

Composite function bijectivity

The problem requires me to show that the following statement is true or false. Let $A,B$ be sets, and $f:A\to B$, $g:B\to A$ be functions. Suppose $g\circ f\circ g$ is surjective, and $f\circ g\circ f$ is injective. Then $f\circ g$ is bijective. So…
鈴木悠真
  • 387
  • 1
  • 8
2
votes
0 answers

The “parentheses” of the composite functions

The question requires me to show that the following statement is true or false. Let $A,B$ be sets, and $f:A\to B$, $g:B\to A$ be functions. Suppose $g\circ f\circ g$ is surjective, and $f\circ g\circ f$ is injective. Then $f\circ g$ is bijective. So…
鈴木悠真
  • 387
  • 1
  • 8
2
votes
1 answer

Can a relation that doesn't pass the vertical line test be considered a function from R to a subset of R?

I understand that a function $f: \mathbb{R}\to \mathbb{R}$ cannot provide more than one value per input without failing to be a function, but what about $g: \mathbb{R} \to X$ or $h: X \to X$ where $X$ is the set of subsets of $\mathbb{R}$. Can…
wollw
  • 123
2
votes
1 answer

I need an equation for some data points.

My data points are (97.57,6.14), (90.54,7.03), (81.99,8.55), (71.47,10.52), (56.5,14.97) and (31.88,24.62). I'm trying to find the nonlinear equation that describes these points, but I'm having trouble. Can anyone come up with it.
2
votes
2 answers

Proving a function is a bijection

Let $f : \mathbb{C} \to \mathbb{C}$ $$f(x)=x^2 + 2x + 1$$ Prove whether f is a bijection or not. This is what I have so far Let $x_1,x_2 \in \mathbb{C}$. suppose $f(x_1)=f(x_2)$. $$x_1^2 + 2x_1 +1 = x_2^2 + 2x_2 + 1$$
2
votes
2 answers

Why co-domain of a function needs to be defined beyond the function's range?

I've recently watched this video and struggle to wrap my mind around difference between codomain and range of a function. I understand that range is a subset of the codomain, but at the same time if there is no any restrictions on how the codomain…
2
votes
0 answers

Is there a bijection from $[1, \infty)$ to half a unit sphere?

So I'm trying to find a bijection from $[1, \infty)$ to the surface of the unit hemisphere $U$ (without a flat bottom) in spherical coordinates. I define this below: $$U = \{(\theta, \psi).\, \theta \in [0,2\pi) \wedge \psi \in [0,\pi/2)\} -…
Kookie
  • 500
2
votes
1 answer

Find some function $f$ such that $ f(2,3) < f(3,2) < f(2,4) < f(4,2) < f(3,4) < f(4,3) < ... < f(13,14) < f(14,13) $

For context, what this question is essentially asking is if there is some simple function by which the following properties emerge: $$ 1. - \forall a,b\in\mathbb{Z},\; (a > b) \iff (f(a,b) > f(b,a)) $$ $$ 2. - \forall a,b,c\in\mathbb{Z},\; (a > c)…
2
votes
1 answer

If I have two periodic functions so that $X = X(t)$ and $Y = X(t+\alpha)$, with $\alpha$ unknown is there a way to extract from $X-Y$?

If I have two periodic functions so that $X = X(t)$ and $Y = X(t+\alpha)$, with $\alpha$ unknown is there a way to extract the value of $\alpha$ just from the difference of the two functions $X-Y$? $X$ and $Y$ are not necessarily sine or cosine, but…