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

Absolute max and min, inverse of function $f(x) = \sin x − x \cos x$

Let $f(x) = \sin x − x \cos x$, $0 \le x \le \pi$. Find the absolute maximum and the absolute minimum of f. Hence, or otherwise, determine the range of f. Finally, determine whether f has an inverse or not. You need not find the formula of the…
2
votes
1 answer

If $(f \circ g)(x) = x$, and $(g \circ f)(x) = x$, then $g$ is the inverse of $f$.

If $f: A\to B$ is bijective, then it has an inverse $g: B \to A$ defined as \begin{equation} g = \left \{ \big( f(a), a \big) : a \in A \right \} \end{equation} If $g: B \to A$ is any function for which, \begin{equation} \begin{aligned} (f \circ…
2
votes
1 answer

Question I stuck with, is it open or close?

I came across this question in my test, let $f:R->R$ be defined by $f(t)=t^2$ and let $U$ be any non-empty open subset of $R$, Then 1. f(U) is open 2. f^-1(U) is open 3. f(U) is closed 4. f^-1(U) is closed The option I thought was correct…
Onix
  • 637
2
votes
1 answer

Finding the range of a function method?

Here is the question: (i) State the range of this function:$$(x+2)/(2x+1)$$ Edit: domain $x>0$ (ii) Find the inverse function of $f^-1$ I initially attempted to find the range by calculating the domain of the inverse function:$$x=(y+2)/(2y+1)$$…
2
votes
1 answer

Constructing a function with desired properties

I need to construct a function $f(x,y)$ taking on continuous values between $0$ and $1$. $x$ and $y$ can take on any values (but their ranges may be restricted for convenience). This function should have the following properties: When $x$ large…
2
votes
1 answer

MACM Combinatorics

If $f\circ g$ is onto, does it follow that $f$ is onto? I know what onto means: for every b, there is an a such that f(a) = b. I have no idea how to apply that to this question. Pls help!!
satjav
  • 77
2
votes
0 answers

How does one plot $2^{x^{2}}$?

I need to plot $2^{x^{2}}$ without using calculus. I would like to know how to explain why that function is smooth at $x=0.$
user23505
2
votes
1 answer

Optimization problem

Suppose that I have a big pipe and I want to put n small pipes in it, say 8 pipes 1 inch each. What is the smallest radius for the biggest pipe to contain all of the small ones? Constraint minimization, they must not be inside one another. How will…
2
votes
1 answer

Study the monotonicity of this function

The function is $$y=x^2-5x+6$$ I have made $$[f(x_2)-f(x_1)]/(x_2-x_1)$$ It results in $$x_1+x_2-5.$$ What should I do next?
prishila
  • 163
2
votes
1 answer

How can I find the inverse of $h(x)=-x(x^3 +1)$

How can I find the inverse of $h(x)=-x(x^3+1)$? it's asked also to find $h^{-1}(2)$ and $h^{-1}(-2)$. I think it's easy to find a domain where this function is bijective. I've already find $h^{-1}(-2)=1$. My problem is to find $h^{-1}(2)$ and the…
user42912
  • 23,582
2
votes
2 answers

If $ f(3x-1)= 12x+5$, what is $\ x \circ f(x)$?

Here, I am sharing just an example problem which is given in one of my textbooks: $$ \ \large{ f(3x-1)=12x+5 \ , \\ x \circ f(x)= \, ? \ } \ $$ And, on below of the question, the book has shown an example solution for that: $$ \text{Instead of } \…
2
votes
2 answers

functions that map to sets?

It it well-defined to map to a set? That is, $$f(x):= \{x,x+1\}$$ for example? If so, how would one define it? $f: \mathbb{R} \rightarrow ...$ what? What does one need to be wary of in order to ensure well-definedness? What about…
Adaman
  • 21
2
votes
1 answer

Determine conditions on $a$ and $b$ such that $f \circ g$ = $g \circ f$.

I have this problem: Let $f$ and $g$ be the following straight line functions: $f(x) = ax + b$, $g(x) = cx + d$. Determine conditions on $a$ and $b$ such that $f \circ g$ = $g \circ f$. This is what I got: $$ad-d=cb-b$$ and then $$a(d - d/a) =…
zeeks
  • 241
2
votes
2 answers

Is this equation a function?

I was having trouble algebraically verifying that this equation was a function. $$x^2y - x^2 + 4y = 0.$$ I tried simplifying it like this: $$x^2y - x^2 + 4y = 0.$$ $$x^2(y-1) = -4y.$$ $$x^2= \frac{-4y}{y-1}.$$ I don't think thats the best way of…