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

How prove exist continous g(x) such f(g(x))=x for $f(x)=\frac{2x^3-3}{3(x^2-1)}$?

Let $f(x)=\frac{2x^3-3}{3(x^2-1)}$ for $x\neq {1,-1}$. Prove exist continous g(x) satisfy f(g(x))=x and g(x)>x with every x is belong to R. $\frac{2g(x)^3-3}{3(g(x)^2-1)}=x$ but how solve? Maybe another way?
piteer
  • 6,310
1
vote
2 answers

Show that $f(x)=x^4$ is convex

for $x\in (0,\infty)$ show $f(x)=x^4$ is convex. I know it is convex since $f''(x)>0$ . How can we show by using definition? do we have to use Let L be linear space. $t\in[0,1],y\in…
lyme
  • 1,351
  • 1
  • 13
  • 30
1
vote
1 answer

Find $f(x^2)$ of $f(x)$

How can I find $f(x^2)$ of $f(x)$? For example: I take the function $f(x)=a$ where a is an algebraic expression like $\sin x$, $3x^3$, etc. Now, is it possible to find $f(x^2)$ of $f(x)=a$? If it is possible how do you do that? My try: If I assume…
user50224
  • 966
1
vote
0 answers

How do I normalize a von Neumann-Morgenstern utility function?

For example, the function is given by $-a(y_0)^{-b} - cy_1^{-d}$. What restrictions on the parameters are needed to normalize this? To my knowledge, the von Neumann-Morgernstern function is the summation of the probabilities and the felicity…
1
vote
1 answer

Function that has potential to increase current value, based on current value

Math is not my strong suit, let's start there. (Be gentle.) I have a game engine that is "ticking" every 1 second. I would like for a number, A, to increase at an exponential decaying rate based on a function of its current value. (Up to a maximum…
1
vote
1 answer

Divisibilty of a functional equation

I found this question in a mathematical problems book: Let $f(x)$ is a polynomial such that $f(x^n)$ is divisible by $x-1$. Prove that $f(x^n)$ is divisible by $x^n-1.$ Can anybody help me?
hola
  • 1,339
1
vote
3 answers

Is $f:\mathbb{Q}\to\mathbb{Q}$ defined by $f(x)=\frac{x}{x^2+1}$ one-to-one? Onto?

I've been having trouble with determining if a function is one-to-one or onto. I found an example and would like to see how to go about this problem. If we have $f(x)=\frac{x}{x^2+1}$ where $f:\mathbb{Q}\rightarrow\mathbb{Q}$, is $f$ one-to-one?…
1
vote
1 answer

Solving an equation involving the ceiling function

I am trying to solve the following equation for $m$ in terms of $k$ and $n$: $k + m = \left\lceil{\frac{n + m}{4}}\right\rceil$ ($n$ and $k$ are integers, and $m$ must be one too) Seems like it should be simple but I can't figure it out... What is…
1
vote
0 answers

What can you say about the continuity of functions at the point?

What can you say about the continuity of functions at the point $x_0$? a) $\varphi(x) = f(x)+ g(x)$ if $f(x)$ is continuous at $x_0$ and $g(x)$ is is discontinuous at $x_0$ b) $\varphi(x) = f(x)g(x)$ if functions $f(x), g(x)$ are discontinuous at…
Dima
  • 33
1
vote
1 answer

help with funky function definition

I've never encountered a function definition like this before and am wondering how you would go from this definition to finding out what features it has (y-intercept, even/oddness, min/max value, periodicity). Definition for $f$ If the remainder of…
maogenc
  • 1,165
1
vote
3 answers

Is $4x^2-4x+2$ surjective?

Determine whether the function $f_4:\mathbb{R^+}\rightarrow \{x \in \mathbb{R^+} x \ge 1\}$ given by $f_4(x)=4x^2-4x+2$ is injective, surjective or bijective. I will just show parts of the solution I don't understand. The formula for the preimage…
mauna
  • 3,540
1
vote
0 answers

A continuous differentiable map of R to (0;1)

Is there a single, continuously differentiable function $g(x,k)$ that approximates the following: $f(x)= \begin{cases} 0 & x<0 \\ x & 0 \le x \le 1 \\ 1 & x>1\end{cases}$ $k$ is a real parameter such that $g \rightarrow f$ as $k \gg 1$ Edit: 1. I…
CjS
  • 111
1
vote
2 answers

Proving the uniqueness of an inverse function

We have this question for homework: Let $h: B\to A$ be the left inverse of $f$, and $g:B\to A$ the right inverse of $f$. Prove that that $h$ and $g$ are the same function. To prove this I stated "Let $a\in A$ and $b\in B$ such that $f(a)=b$ and…
yotamoo
  • 2,753
1
vote
2 answers

A proof of constancy

$f:\mathbb{N}\to \mathbb{R}$ is bounded above and satisfies $$f(n)\le \frac{f(n+1)+f(n-1)}{2}$$ Does it follow $f$ is constant ? I assumed $f$ achieves a maximum $M$ , suppose $n_0$ is the smallest solution of $f(x)=M$ then applying the conditions…
shadow10
  • 5,616
1
vote
2 answers

Why is this inequation correct?

$$\sup |f(x)| -\inf |f(x)| \ge \sup f(x) -\inf f(x).$$ How can you show that it is indeed true?Sup is the lowest upper bound and inf is the greatest. lower bound