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 approximate $y=\frac{W(e^{cx+d})}{W(e^{ax+b})}$?

How to approximate $$y=\frac{W(e^{cx+d})}{W(e^{ax+b})}$$ with (a) simple function(s)? given $a=-1/\lambda_0$, $b=(\mu_0+\lambda_0)/\lambda_0$, $c=1/\lambda_1$, $d=(\mu_1+\lambda_1-1)/\lambda_1$ for positive $\mu_0,\lambda_0,\mu_1,\lambda_1$ where…
2
votes
2 answers

Monotonicity of quadratic function at its vertex?

In my school text book, It say that the quadratic function is increasing and decreasing at some intervals based on the function, however both intervals didn't include the vertex and it was't discussed at all. Should the vertex be constant because…
2
votes
2 answers

Which of these functions are one-to-one and why?

Where x and y are in the set of all integers: 1. f(x,y) = 2x − y 2. f(x,y) = x^2 − y^2 3. f(x,y) = x^2 − 4 Here are my answers: 1. True 2. False (counterexample would be (-2,-2) and (2,2) which result in same value 3. False (counterexample would…
2
votes
3 answers

Find all functions $f:R \to R$, that for each $x, y ∈ R$ satisfy $f(x\cdot f(y)) = x \cdot y$

Two such functions would be $f(x) = x$ and $f(x) = -x$, but how would I know I've found all satisfactory functions?
Torn
  • 235
2
votes
3 answers

Surjective function from $\mathbb{N}$ to $\mathbb{Q}$

I want to find some simple surjective function from $\mathbb{N}$ to $\mathbb{Q}$. Since $\mathbb{Q}$ is countable, it should be possible. Can someone find such function?
Mykybo
  • 1,027
2
votes
2 answers

Explicit expression for a meromorphic function

What is an explicit expression for the meromorphic function $$ \sum_{n\ge 1}\frac{(-1)^n}{z+n} ? $$
Bazin
  • 709
  • 1
  • 4
  • 10
2
votes
1 answer

How do I prove that $f(n) = 0$ for all $n$ where $n$ is a positive integer?

In particular, $f$ is defined such that $f(mn)=f(m)+f(n)$, where $m$ and $n$ are positive integers. Also $f(n)\ge 0$ for all $n$, $f(10)=0$, and $f(n)=0$ if $n$ ends in a $3$. Thank you.
2
votes
0 answers

Graphing Piecewise Functions

We learned about graphing Piecewise functions in math class today. And to be honest with you, I found it incredibly confusing. I find the most trouble in finding a place to start and knowing whether or not the circles should be open circles or…
Frank
  • 5,984
2
votes
3 answers

difference between function and relation?

What is the difference between function and relations ? What are the characteristics of function and relations? What are the similarities and contrasts between relations and functions ? Examples will be much appreciated , thanks !
warman
  • 99
2
votes
4 answers

Determine if $y = x^2$ is injective

I realize that $y=x^2$ is not injective. It is not one-to-one ($1$ and $-1$ both map to 1, for example). However, in class it was stated that a function is injective if $f(x) = f(y)$ implies $x = y$. Or if $x$ doesn't equal $y$, then this implies…
Ham Sandwich
  • 366
  • 2
  • 5
  • 20
2
votes
1 answer

Can I make any injective function bijective by patching the codomain?

I have a function $f$ that is injective from $\mathbb R \to \mathbb R$ but not surjective, i.e., the image $f$ is not all of $\mathbb R$. Can I make $f$ bijective by patching the codomain and removing any parts that are not in the image?
2
votes
2 answers

Remainder Theorem when Divisor not linear $x-a$

Upon receiving a question, it seemed to have needed me to use the remainder theorem however for a divisor that was not linear. Now while I could long divide it (or synthetically), I was wondering how $x-a$ would apply to something like $x^2-a$ or in…
John Hon
  • 473
2
votes
1 answer

Generate function from lookup table?

I feel like this question must have been asked before, but I'm just not able to find it. Probably because I just don't know the terminology of my issue... My question is really simple. I have the following lookup table (is that what it's…
Forivin
  • 187
2
votes
3 answers

given a concave function $f(x)$, why $f(x)- xf'(x)>0$?

Given a concave function $f(x)$ defined for $x \ge 0$, I am trying to understand whether $g(x) = f(x)- x f'(x)$ should be positive or not. From what I am reading it seems that it should be positive, but I cannot understand why. Any help?
2
votes
1 answer

strictly concave function whose third derivative is negative?

Consider a continuous function $u(q)\geq 0$ whose domain is $[0,\infty)$ that satisfies the following conditions: $u^{\prime }>0$ for all $q \in [0,\infty)$, $u^{\prime \prime }<0$ for all $q \in [0,\infty)$, $u(0)=0$, $u^{\prime }(0)<\infty…