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

Compound functions question

Can someone help me understand the answer? The mark scheme says $g(x)=0$ or $3$ $x=-1$ or $4$ or $1$ or $2$ From my understanding, $y=g(x)=3$ when $g(x)$ is $1$ or $2$. Is that where the 1 and 2 in the x= line comes from? The 0 and 3 in the first…
Jim
  • 1,210
1
vote
1 answer

Calculating the range of a function

How would one calculate the range of $f(x) = \frac{1}{x-1}$, with $x > 3$? And how would you generally calculate the range of any asymptotic graph in the form $1/x$?
Yusuf
  • 121
1
vote
1 answer

Show $2 \lt f(x) \lt 2.8$?

I have a question about a function $f(x)$: $$f(x) = -x + \frac{x^2}{x-2} - \frac{20}{x^2 + x - 6},\qquad x>2$$ simplifies to $$f(x) = 2x + \frac{10}{x + 3},\qquad x>2$$ How would you show the range of $f(x)$ is $2 < f(x) < 2.8?$ Thank you.
Yusuf
  • 121
1
vote
2 answers

Find the set $f[f^{-1}[\{A\}]]$

let $f: P(\Bbb Z) \to P(\Bbb N)$ definined as $f(X)= \{2x^2+5:x \in X\}$. What is the set $f[f^{-1}[\{A\}]]$, where $A=\{3,4,5\}$? My thoughts: $f^{-1}(Y)= \left\{ \pm\sqrt{\frac{y-5}2} :y\in \Bbb Y \right\} $, so $f^{-1}(A)= \{ 0\}$. Thus, $\…
1
vote
1 answer

Piecewise bijection $f: \Bbb R \to (\Bbb R$ \ $ \{1\})$

I want to define a piecewise-defined bijection $f: \Bbb R \to (\Bbb R$ \ $ \{1\})$ but I'm stuck. This means that I must define $f(x)$ by cases: $f(x) = g_1(x)$ if $x \in J_1$, $f(x) = g_2(x)$ if $x \in J_2$,... where $J_1,J_2,...$ are…
Amanjo
  • 117
1
vote
2 answers

drawing the graph and finding intercepts from equation not in y=mx+c form

I have the equation: $x+4y = 0$. Its not in the form of $y=mx+c$ so I am unsure of how to find the intercepts and draw the graph. I know that generally when $x+4y=12$ then you just make one variable $= 0$ and find the other variable but since the…
jn025
  • 989
1
vote
2 answers

Prove $|(A^C) × (B^C)| = |(A×B)^C| $

I need to prove that $|(A^C) × (B^C)| = |(A×B)^C| $ . I've tried to find a bijection but I'm stuck: we need $f: A^C × B^C \to (A×B)^C$. Let $l:C \to A$ and $k: C \to B$. $f$ inputs a pair of functions $(l,k)$ and outputs a function $f(l,k): C \to…
Lstoi
  • 199
1
vote
1 answer

Find equation of a circle given a sector

A sector of a semi-circle which is $60^\circ$ has an area of $\frac{3\pi}{2}$ units squared. Show that the curved section is a function of the form $f(x)= \sqrt{9-x^2}$ with domain $[0,\frac{3\sqrt{3}}{2}]$
hiii
  • 15
1
vote
2 answers

finding a differentiable function

$f(x,y)$ is a differentiable function satisfying the following properties: $f(x+t, y)= f(x,y) + ty$ and $f(x, y+t)= f(x,y) + tx$, $\forall x, y, t \in\mathbb{R}$ and $f(z, 0) = k$ for any $z\in\mathbb{R}$ and $k$ is an arbitrary constant. Find…
rajib
  • 81
1
vote
3 answers

Equation $2f(x+2)+3f(x-2)=x+5$ Find $f(1)$

Here is equation : $$2f(x+2)+3f(x-2)=x+5$$ How to find $f(1)$ ?
qwr
  • 123
1
vote
1 answer

Setting a function in function of another one

So I have H(E,X)=0.01EX and g(x)=0.02[x-0.001x^2) where G=H , so I want to redo the whole thing so everything is function of E, the result should be something like that Y(E)= 10E-0.4E^2 soo..how do I do that? how do I proceed? Thanks in advance
1
vote
1 answer

Prove there exists an element in the function...Beginning function proof

Having trouble with the last part of my proof: Let f: $\mathbb{Z}\rightarrow \mathbb{Z}$ be a function with $f(x+y)=f(x)+f(y)$ for all $x,y \in \mathbb{Z}$. Prove there exists an element $a\in \mathbb{Z}$ such that $f(n)=na$ for all $n \in…
1
vote
2 answers

Find the angle between two tangent lines...

I have such an exercise: Find the measure of angle formed by the tangent lines drawn through $A(2,-1)$ to the following function: $$f:R\to R, f(x)=x^2$$ My solving was going well till I got stuck at the point when I found that we have two…
wonderingdev
  • 1,761
1
vote
1 answer

Find the real parameter $\color{maroon}{a}$ such that the following functions...

How would you solve this exercise? Determine the values of $\color{teal}a$ for which the following functions: $$\color{maroon}{f:(0,\infty)\to \mathbb{R}},\quad \color{violet} {f(x)=\ln x}$$ and $$\color{maroon}{g:\mathbb{R}\setminus \{0\}\to…
wonderingdev
  • 1,761
1
vote
0 answers

How do I find the polynomial degree of f?

Suppose $f$ is an entire function such that $$\dfrac{| f(z) |}{|z|^4} \leq 100|z|^{11}$$ for $z > 120$. Is $f$ a polynomial of degree $\leq15$?
ilah14
  • 31