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

Decay function with accelerated decay

I need to design a function with an specific shape. I cannot come up with some equation that fits the kind of function that I am looking for. My requirements are: The function is defined from 0 to N, where N is a natural number (it is a…
GGChe
  • 111
1
vote
1 answer

Is the domain of the function $f(x)=1/x$ restricted or not?

The domain of a function is the set of values that we are allowed to plug into our function so this means inputs over which our function is defined. So when it comes to the function $f(x)=1/x$, I thought that the domain would be all real numbers…
1
vote
0 answers

Injective functions from n-dimension to 2-dimension

Does exists injective functions $f$ such that $f: \Bbb Q^n \rightarrow \Bbb R^2$ or at least $f: \Bbb Z^n \rightarrow \Bbb R^2$ for $n > 2$? (for big values of $n$ more exactly, e.g n = 100) Sorry if this is a dumb or too simple question, but I m…
dacian
  • 25
  • 6
1
vote
1 answer

a question about bijectivity

i have a question let $E,F$ and $G$ three sets. $f:E\rightarrow F$ $g:F\rightarrow G$ $h:G\rightarrow E$ prove that if : $f \circ h\circ g$ and $h \circ g\circ f$ are injectives and $g \circ f\circ h$ is surjective. then $f,g,h$ are bijectives. i…
1
vote
1 answer

Proving multivalued functions are well defined

I believe that to prove a function f is well defined you need to prove that for any two inputs a and b, a = b → f(a) = f(b). But what if we have a function where it makes sense to have different outputs assigned to the same input? For example, an…
Joa
  • 405
1
vote
0 answers

Find function satisfying asymptote criteria

Given a function $a(x)$ is there a general method to writing a function $f(x)$ so that is has the asymptote $a(x)$? As far as I can tell from here you can sort of do this as long as $a(x)$ is a polynomial and you don't mind vertical asymptotes. Then…
1
vote
1 answer

Find values such that a function allows an axis of symmetry

Let $a$ be a real number. Consider the function $f:\mathbb{R}\rightarrow \mathbb{R}$, where $f(x)=|x|+|ax+1|\,.\;$ For how many values $a$, does $f$ have a vertical axis of symmetry? I tried doing some suppositions and try to use the…
1
vote
1 answer

What "type" of thing are injective, surjective, bijective?

This is more a vocab question than anything else but what "type" of thing are injective, surjective, bijective. I fully understand what these words mean but I'm looking for a word to describe the type of properties these might be. Basically "odd and…
August
  • 134
1
vote
4 answers

$f(2x)$ confusion

I know that if we have some function $f(x)$ we can transform it like doing, say, $f(x) + a$ to shift it $a$ units up/down or even $f(x-a)$ which shifts the graph $a$ units left or right. The confusion starts when you squash the graph, say I found…
Nav Bhatthal
  • 1,057
1
vote
0 answers

Compact way to show function of $n$ variables

Consider the following simple function: $$f(x_1,x_2,...,x_n)=\sum_{i=1}^{n}g(x_i)$$ What is the compact way to show $f(x_1,x_2,...,x_n)$? Can I use vector notation? something like $f(X)=f(x_1,x_2,...,x_n)$? Here $X=[x_1,x_2,...,x_n]$ is a vector of…
1
vote
0 answers

Is there a straight forward simple mathematical function that can detect piecewise constant lengths?

Given an integer monotone sequence that only changes by 1, is there a "simple" mathematical function that returns the lengths of the constant subsequences? E.g., [1,1,1,2,2,3,3,3,3,3,...] -> [3,2,5,...] By "simple" I sort of mean something that can…
1
vote
1 answer

How to do these type of questions without graphs

The function $f:[0,3]\to[1,29]$ is defined by $$f(x)=2x^3-15x^2+36x+1$$ Then the function is $1.$ one one and onto $2.$ onto but not one one $3.$ one one but not onto $4.$ neither one one nor onto The way I know to approach these type of…
1
vote
2 answers

How to increase or decrease a number based on an upper and lower bound.

I have an upper and lower bound number: upper: 21 lower: 3 I then have a second number that can be anywhere between this range, I would like the second number to increment faster when it is closer to the lower bound and slower when it is closer to…
S-K'
  • 115
1
vote
2 answers

Is $ f(x) = {x \over x} $ well-defined at $x = 0$?

Suppose that f is a function which domain and range are real numbers. Then, If $ f(x) = {x \over x} $ then Is f well-defined at $x = 0$? In other words, does ${x \over x} = 1$ equal on $ \mathbb{R}$?
1
vote
2 answers

Injection, Surjection, Bijection (Have I done enough?)

I was wondering if my proof sufficiently answers this question. A function $f: \mathbb{R} \rightarrow \mathbb{R}$ is defined by $f(x) = 2x^3+3x^2-4.$ Find the range of $f$. Is $f$ one-to-one (injective)? Is $f$ onto (surjective)? Is $f$ a bijection?…
Bobby
  • 775