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

Proving that $f(n,m) = 3^n5^m$ is injective.

The function $f:\mathbb{N}\times \mathbb{N}$ is defined by $$f(n,m) = 3^n5^m$$ Determine if it is surjective and/or injective. It isn't surjective, because $2$ in the codomain has no preimage. As for injective... I could not think of a…
Saturn
  • 7,191
1
vote
2 answers

If $f$ is injective, demonstrate that $f \circ g = f \circ h \implies g = h$

I'm trying to do this exercise: With functions: $$f : A \rightarrow B$$ $$g : C \rightarrow A$$ $$h : C \rightarrow A$$ Demonstrate that if $f$ is injective, then $f \circ g = f \circ h \implies g = h$ So we have two premises: $f$ is…
Saturn
  • 7,191
1
vote
2 answers

Graphing of Ceiling Functions

How do I graph the function $\lceil x^2\rceil$ (this is ceiling not just brackets). Any explanation is appreciated so I can understand how to!
tony
  • 31
1
vote
1 answer

How to do multi-line equations grouped beside one brace

I am not an engineer nor a mathematician. I am stuck as i need to write this equation in a linear method so that i can put it into a VBA program i am working on. I do not understand the order of operations or what it means to have multiple lines…
Allan
  • 11
1
vote
1 answer

Algebraic methods in determining ONTO and ONE-TO-ONE

I've been looking at ways of determining if a functions is one-to-one or onto. I have a clear sense of this when looking at functions in $\mathbb Z \rightarrow \mathbb Z$ or any other one-dimensional explicit function. However, I'm having a hard…
Dimitri
  • 1,287
1
vote
2 answers

Trying to figure out how to find the zeros of a function where x is the exponent -- functions review

I'm reviewing what I already learned in functions through my textbook except I can't get this question : The question asks how to find the zeroes of $h(x) = 2^x -1$. Also, I am wondering what type of function is that where $x$ is a exponent
1
vote
3 answers

Defining real powor of linear operator

Let $T$ be invertible linear operator in finite-dimensional vector spaces $V$. How to define $T^a$ for real $a$ such that $T^a T^b = T^{a+b}$ for every $a, b \in \mathbb{R}$?
math123
  • 379
  • 1
  • 10
1
vote
2 answers

Funtions between sets

If $A$ is a set with $m$ elements and $B$ a set with $n$ elements, how many functions are there from $A$ to $B$. If $m=n$ how many of them are bijections? I got $n^m$ for my first answer. I wasn't sure for the bijection bit is it just $n$?
TimmyK
  • 111
1
vote
1 answer

Find all functions over naturals that they hold an equality

The task itself is not that hard i'd say. I have to find all functions $f: \mathbb N\rightarrow \mathbb N$ that equality $f(\pi(n)) = \pi(f(n))$ is true. Where $\pi(n)$ stands for ANY permutation over the naturals. My idea is that, if $f(\pi(n))$…
1
vote
2 answers

Compute integral on the interval 0,1

Sorry but I have a problem I am student in first year in economics. I don't have enough knowledge on integration. I want to compute this integral, for $a>2$, $a>i>0$, $b\in R$ and $d\in R$. \begin{equation*} \int_{0}^{1} (\ln(p))^{a-i}…
Lea
1
vote
4 answers

How can I determine this function?

If i know that$$ f(3)-f(-1/2) = 7$$ and $$ f(2)-f(1/2) = 3 $$ and $$f(3/2)-f(-2) =7$$ How can I determine the function?
Veritas
  • 963
1
vote
3 answers

Why aren't multi valued functions invertible?

I recently learnt that functions are invertible if and only if they are bijective. But why aren't multi-valued surjective 'functions' invertible?
1
vote
1 answer

Mapping/function. Show that $M\subseteq f^{-1}(f(M))$.

Let $f:A\to B$ be a mapping. Show that for all subsets $M$ of $A$ satisfies \begin{equation} M\subseteq f^{-1}(f(M)). \end{equation} Give an example that $f^{-1}(f(M))$ doesn't need to be equal to $M$. Any hint where to start?
UnknownW
  • 2,008
1
vote
2 answers

Prove one-to-one function

Let $S$ be the set of all strings of $0$'s and $1$'s, and define $D:S \rightarrow \mathbb{Z}$ as follows: For all $s\in S$, $D(s)= \text{the number of}\,\, 1$'s in $s$ minus the number of $0$'s in $s$. a. Is $D$ one-to-one(injective)? Prove or give…
Fred
  • 171
1
vote
2 answers

if $h$ is one-to-one function and $f(h(x))= g(h(x))$, then $f=g$. True or False?

True or False? Given any set $X$ and given any function $f:X\rightarrow X$ , $g:X\rightarrow X$ and $h:X\rightarrow X$, if $h$ is one-to-one function and $f(h(x))= g(h(x))$, then $f=g$. Justify your answer. I know that this is false as $f$ and $g$…
Fred
  • 171