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
3
votes
3 answers

Why $f(x) = (-x)^x$ is not defined for positive values?

All the graph plotting tools do not display values for positive $x$ - why? It seems valid for me, for example when $x = 2$, $y = (-2)^2 = 4$
3
votes
2 answers

Proof of $(a+b)^x=a^x+b^x$ implies $x=1$

I'd like to prove that for $a,b>0$, $$(a+b)^x=a^x+b^x \implies x=1.$$ I tried to study the variation of the map $f:x\mapsto (a+b)^x-a^x-b^x$ but unfortunatly it's not monotone since $$f'(x)= (\ln (a+b)-\ln (a))a^x + (\ln (a+b)-\ln (b))b^x…
Zanzi
  • 952
3
votes
2 answers

Show that $x^{12}-x^9+x^4-x+1\geq0$ for all $x$

Show that $x^{12}-x^9+x^4-x+1\geq0$ for all $x$. When $x\leq0$ , this is easy. When $x\geq1$, then also this is easy. I need help with the case when $0\leq x\leq 1$
idpd15
  • 1,994
  • 1
  • 17
  • 38
3
votes
1 answer

Is f continuous?

Suppose $f:\mathbb{R^n} \to \mathbb{R^m}$ satisfies the following: Given any convergent sequence $x^{(i)} \to x$ in $\mathbb{R^n}$ then the sequence $f(x^{(i)})$ in $\mathbb{R^m}$ contains a subsequence which converges to $f(x)$. Must f be…
Dave
  • 145
3
votes
4 answers

Creating a function F(x) such that all outputs exist between -5 and 5

Take this sample graph illustration: As $X$ approaches negative infinity the output approaches $-5$ As $X$ approaches positive infinity the output approaches $5$ From what I recall this would be leveraging $\log, \ln$ or $e$ but I'm failing to…
3
votes
2 answers

Finding the value of $f(1)$ from a given functional equation

A function $f: \mathbb{Q}^+ \cup \{0\} \to \mathbb{Q}^+ \cup \{0\}$ is defined such that $$ f(x) + f(y) + 2xyf(xy) = \frac{f(xy)}{f(x+y)}$$ Then what is the value of $\left[f(1)\right]$ (where $[.]$ denotes the greatest integer function)? I…
3
votes
1 answer

Solutions of an equation

Problem: Find all real solutions for $x$ in $$ 2(2^x- 1) x^2 + (2^{x^2}-2)x = 2^{x+1} -2 . $$ I know that you can move all the terms to one side, then divide by $2$ and factor, but what next?
JenkinsMa
  • 415
3
votes
2 answers

If $f(x)\cdot f(f(x)) = 1$ for all $x \in \mathbb{R},$ and if $f(10) = 9$ then find the value of $f(5)$

If $f\colon\mathbb{R}\rightarrow \mathbb{R}$ is a continuous function satisfying $f(x)\cdot f(f(x)) = 1$ for all $x \in \mathbb{R},$ and if $f(10) = 9$ then find the value of $f(5).$ Attempt: Put $x=10,$ we have $f(10)\cdot f(f(10)) = 1.$ So,…
DXT
  • 11,241
3
votes
1 answer

What is the range of the function $f:[-1,1] \rightarrow \mathbb{R}$ defined by $f(x) = 12x^2 + 5x\sqrt{1-x^2} - 10$?

I was navigating through math exercises about functions and I got with this question If $f:[-1,1] \rightarrow \mathbb{R}$ defined by $f(x) = 12x^2 + 5x\sqrt{1-x^2} - 10$. Give the range of $f(x)$ in the reals. Any help will be appreciated
chubakueno
  • 5,623
3
votes
2 answers

How could an injective function have multiple left-inverses?

Maybe I'm a bit tired, but I can't seem to imagine two different left-inverses for an injective function. This was brought up in Aluffi's book. To quote it nearly verbatim, if $f$ is a function going $A \to B$ and $A$ has at least two elements, then…
3
votes
3 answers

Numerical coefficient of a quintic function

Let $P( x )$ be a polynomial of degree $5$. If $P(1)=0$ , $ \ $ $P(3)=1$, $ \ $ $P(9)=2$, $ \ $ $P(27)=3$, $ \ $$P(81)=4$, $ \ $$P(243)=5$, what is the numerical coefficient of $x$ in $P( x )$? I tried Lagrange interpolation as method and got…
Jerwin
  • 31
3
votes
1 answer

Benefits of function space

What are the benefits of having the concept of function space? I'm not sure if I understand the concept itself but is it that you can write a graph of some set of functions? If so, is one of the benefits to have functional space that you can find…
stacko
  • 259
3
votes
2 answers

How to find the left inverse of a piece wise defined function

$F(x)=\begin{cases} x-1 & \text{if } x \text{ is even}\\ 2x &\text{if } x \text{ is odd}\end{cases}$ I need to exhibit the left inverse of this function. I know it exists because the function is one-to-one. Now, it's easy for me to switch the $x$'s…
3
votes
0 answers

If a smooth $f$ vanishes at infinite order at x=0, is $\sqrt{f}$ smooth?

We have an additional condition that $f(x)>0$ except at $x=0$. $f$ vanishes at infinite order at x=0 means $f$ and its derivatives of any order equal 0 at x=0. Can you get $\sqrt{f}$ is smooth or not? Need a proof or counterexample.
user409572
  • 31
  • 1
3
votes
3 answers

Proving or giving a counterexample for $f^{-1}(A) \subseteq f^{-1}(B) \Rightarrow A \subseteq B$

Let $X,Y$ be sets and $f: X \to Y$. If $A,B \subseteq Y$, is it true that $$f^{-1}(A) \subseteq f^{-1}(B) \qquad \Rightarrow \qquad A \subseteq B$$ I know this is a stupid question, but at the moment I cannot come up with either a…
TheGeekGreek
  • 7,869