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
1 answer

Proofs related to $ (p(x))^3-(q(x))^3=p(x^3)-q(x^3)$

Let $p(x),q(x)$ be distinct polynomials with real coefficients such that the sum of the coefficients of both polynomials equals $S$. If $ (p(x))^3-(q(x))^3=p(x^3)-q(x^3)$, then prove the following: (a) $p(x)-q(x)=(x-1)^ar(x)$ for some integer $a ≥…
Rudstar
  • 1,173
2
votes
1 answer

Finding the equation of a polynomial

A quadratic function with a minimum of 5 has zeros at -4 and 2, find the equation of this function. This is impossible, correct?
2
votes
1 answer

How many functions from A to A are there such that the range of f has exactly 5 elements?

Let A be the set {1,2,3,4,5,6}. How many functions from A to A are there such that the range of f has exactly 5 elements?
Ruddie
  • 436
2
votes
4 answers

$f(x) = \frac {ax+b}{cx+d}$ , bijection $f: \Bbb R \to\Bbb R$?

For which $a,b,c,d \in \Bbb R$ does $f(x) = \frac {ax+b}{cx+d}$ define a bijection $f: \Bbb R \to \Bbb R$? I'm guessing I need a system of equations and I know that $cx + d \ne 0$. Thanks!
Amanjo
  • 117
2
votes
2 answers

Prove that $|A^{B×C}| = |(A^B)^C|$

I'm having trouble proving that $|A^{B×C}| = |(A^B)^C|$ , where $M^N$ is the set of all the functions $f:N \to M$. My thoughts: to prove this, I need to find a bijection between $|A^{B×C}|$ and $|(A^B)^C|$, so I need a bijection between the set…
Lstoi
  • 199
2
votes
1 answer

What is the range of that function?

What is the range of the function $$f(x,y,z):=\left \{\frac{xyz}{xy+xz+yz} \right \}$$ over all the natural numbers $x,\,y,\,z$ (Zero does not belong to the naturals.), where $\{x\}$ stands for the fractional part of a real number $x$?
user64494
  • 5,811
2
votes
0 answers

Finding expression that runs through zeros of a function

A list plot of the zeros of the imaginary part of $2^s\pi^{s-1}\sin\bigg(\frac{\pi s}{2}\bigg)\Gamma(1-s)$ for $s=\frac{1}{2}+it$ looks like this: How would I find the expression for the line that runs through these points?
martin
  • 8,998
2
votes
1 answer

what are all the functions that satisfying $f(\frac{x+a}{b})=f(\frac{f(x)+a}{b})$

Given $f(\frac{x+a}{b})=f(\frac{f(x)+a}{b})$, $x$ is a real number, $a$ is an integer number and $b$ is a natural number. What are all the functions that satisfying this restriction? I tried to put some numbers for $a,b$ but can't see how it helps…
debi
  • 43
2
votes
1 answer

Roots of Taylor's series.

Show that there is exactly one value of x which satisfies the equation $$2\cos^2 (x^3+x)=2^x+2^{-x} $$ I solved this using Taylor's series: $$2^x+2^{-x}=2\{1+\frac {x^2 \{\ln2\}^2}{2!}+\frac {x^4 \{\ln2\}^4}{4!}....\} $$ $$\cos^2 (x^3+x)=1+\cos…
user99403
2
votes
1 answer

What is the use of iterating over a function?

If we have a function, say: $$ f(x) = 3x $$ We can get output values based on linearly increasing input: $$ f(1) = 3(1) = 3 $$ $$ f(2) = 3(2) = 6 $$ $$ f(3) = 3(3) = 9 $$ $$ ... $$ Or, we can "iteratate" over the function, by taking the last output…
kukac67
  • 303
2
votes
2 answers

Prove that if $f(x) = Ax^2 + Bx + C$ is an integer whenever $x$ is an integer, then $2A$, $A+B$ and $C$ are also integers.

Prove that if $f(x) = Ax^2 + Bx + C$ is an integer whenever $x$ is an integer, then $2A$, $A+B$ and $C$ are also integers. I've tried a lot to do it, but can't get it exactly right.
2
votes
2 answers

A concave function of a linear function is concave

I was hoping someone could help me prove the statement that a concave function of a linear function is concave. Thank you in advance.
2
votes
1 answer

Converting a function of $t$ into a function of $y$

I have an equation that looks like this: $$ y = \sqrt{ ((at^3+bt^2+ct+d) - (et+f))^2 + ((gt^3+ht^2+it+j) - (kt+l))^2 } $$ [original image: https://i.stack.imgur.com/oSw67.png] But I have to make this a function of $y$ instead of a function of…
2
votes
2 answers

How can I solve this equation $3x^5-x^2/2+x+1=0$

Maybe I am just too tired, but I dont know how to solve this?? Can you point me in right direction. Thanks!!!
depecheSoul
  • 913
  • 7
  • 13
2
votes
2 answers

proving adding even functions gets you even functions

Part 1 Let $f(x) = ax^n$, where $a$ is any real number. Prove that $f$ is even if $n$ is an even integer. (Integers can be negative too) Part 2 Prove that if you add any two even functions, you get an even function I'm confused as to how you would…
user112533
  • 155
  • 2
  • 3
  • 10