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

Question on how to define the principle branch of the complex root function

Can i just check this which leads to my question: a square root of a number a is a number y such that $y^2$= a. all a a=/=0 have 2 square roots so we choose a branch of this function so that it is single valued, called the principle branch. in the…
2
votes
0 answers

Injective/surjective functions on a finite set

Consider the following two problems, from Herstein's Abstract Algebra: if $S$ is a finite set and $f$ is a mapping of $S$ onto itself, show that $f$ must be 1-1. if $S$ is a finite set and $f$ is a 1-1 mapping of $S$ into itself, show that $f$…
J. D.
  • 797
2
votes
4 answers
2
votes
1 answer

Not piecewise function constant in an interval

Is it possible to have a not piecewise function that can be written with a relation (any function that can be written as $y=f(x)$ for all $x$ that turns out to be constant in an interval of $x$? Say, for example, a function $y=f(x)$ where $y$ is…
Andibadia
  • 21
  • 2
2
votes
1 answer

Find greatest value of $a^2+b^2$

If $f(x)=x^3+3x^2+4x+ a \sin x + b\cos x ~ \forall x \in \mathbb{R}$ is an injection then the greatest value of $a^2+b^2$ is _______? To ensure injection, we must ensure that there is no maxima/minima in any interval which is equivalent to…
Mathejunior
  • 3,344
2
votes
1 answer

Doubts in the design of a mechanism

I am doing a little study of the question found in the Engineering mechanics Dynamics book. I tried to define the position of the point P on the $\mathbf{x}$ and $\mathbf{y}$ axes with respect to the point 0 using the circle equation. $x^2+y^2=r^2…
LCarvalho
  • 253
2
votes
2 answers

Can you identify the shape of this curve?

The following curve shows an initial segment of smooth decline, followed by a set of nearly equal data points, followed by another smooth decline. I am looking for a function that could best fit these data points. Any suggestions?
L_R_T
  • 43
2
votes
1 answer

General formula of a composite quadratic function

I've already found a general formula to composite linear functions, i.e., if I have a function $f(x)=ax+b$, I can find a formula to $f^{(n)}(x)$ as function of the constants $a,b$ and $n$. I want to know if it's possible to find a formula to the…
user42912
  • 23,582
2
votes
2 answers

Formula for an equation

Is there any formula for ${(1-\frac{1}{2^n})}^{2^n}$ ?
2
votes
2 answers

Sum of functions, maximum property

so i came along the following post Maximization of sum of two functions and I would like to know how for any given functions $f(x),g(x)$ we can prove that: $\max(f+g)<=\max f+ \max g$ I do have a small hint about triangle inequality but i am not…
2
votes
1 answer

All functions can be written as sum of product of $x$ and $y$?

Can all functions of two variables ($x$ and $y$) be written as the sum of the products of a function of $x$ and a function of $y$? E.g. $a(x,y) = f(x)g(y) + h(x)i(y) + j(x)k(y) ...$
2
votes
2 answers

One-sided limits proof

I need to prove this using sequences. How can I do that? If $\lim\limits{x\to a^-}f(x)=L$ and $\lim\limits_{x\to a^+}f(x)=L$, then $\lim\limits_{x\to a}f(x)=L$. Thanks!
ohs
2
votes
2 answers

Is it always a positive value?

The values of $x$ can be from $0$ to $\infty$. So for these values of $x$ is the following function always positive $$f(x)=x^2+x+\exp(\frac{1}{x})(2x+1)Ei(-\frac{1}{x})$$ where $Ei(x)$ is the exponential integral. My checking in the WA shows that it…
Frank Moses
  • 2,718
2
votes
1 answer

Check if this function is surjective

A function is defined by this formula: $$f: \mathcal P(\mathbb N) \times \mathcal P(\mathbb N) \to \mathcal P(\mathbb N) \times \mathcal P(\mathbb N) \\ f(x,y) = (x \setminus y, y\setminus x)$$ Is it enough to say that this function is not…
Aemilius
  • 3,699
2
votes
1 answer

No. of Continuous Functions

Find all continuous functions $f:\mathbf R\rightarrow \mathbf R$ such that $f(x)-f(y)$ is rational for rational $x-y$. Can someone please help me with the solution ? Any Hint will be appreciated.