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

How to determine whether a function is odd or even in a positive domain

We know that a function f is even if $f(-x)=f(x)$ and odd if $f(-x)=-f(x)$. Now my question : if the domain of the function is positive number, then how can I determine whether it odd or even? For example: determine whether the following…
2
votes
1 answer

How is it called if two functions have the same order?

Lets have $f(x_1)>f(x_2)\implies g(x_1)>g(x_2) \forall x_i \in \mathbb{R}$. Is this property between $f$ and $g$ named in some way?
IceFire
  • 458
2
votes
1 answer

increasing and one one function

If we are given a function f(x)=$x^3$$+$$3x$ for all x belong to real number . Now as the derivative of function is always positive so the function should be increasing function and if it is always increasing function then it should be one one…
user354996
2
votes
0 answers

Functional Equations & Integration - Finding the integration of a unknown function

The function f is continuous and has the property $ f(f(x)) = 1 - x $ for all x in $ [0, 1] $, and $ J = \int_{0}^{1} f(x) dx $, then find $f(\frac{1}{4}) + f(\frac{3}{4})$ & the value of J. I have thought a lot about this question, but I haven't…
AnonMouse
  • 383
2
votes
2 answers

Difficult Functions Evaluation Problem

I have a question about finding the value of a certain function that I cannot wrap my head around. The question is: Given a function $f(x)$ satisfying $$f(x) + 2f\left(\frac{1}{1-x}\right) = x,$$ Then find $f(2).$ So far, I have tried plugging 2…
2
votes
1 answer

What effect does multiplication by a constant have on a function's plot, in general?

I am looking at the equation of a line and its plot. I can intuitively see what these operations do to the plot's form: adding a constant, multiplying by a constant, adding a parametrised value, etc. For some simple conic functions, I am able to do…
2
votes
1 answer

Functions invariant under scaling

Which functions are invariant under the transformation $$f(x)=af(bx)$$ for constants $a$ and $b$? Are functions of the form $cx^n$ and $de^x$ the only analytic ones (as in having a power series expansion) that satisfy this? What if the additional…
SKK
  • 125
2
votes
2 answers

How to determine if a function is quasiconcave or quasiconvex using calculus

I would like to know if there is a theorem which links the quasi concavity of a function to the sign of its second order derivative. For eg. we know a function is Concave in a given interval if it's second order derivative is positive on a interval…
Noob101
  • 962
2
votes
1 answer

Adding functions when one has undefined point

If two functions are defined as set of points and there's a point that is defined only in one function but not in the other, e.g. $A = \{(0,1)\}, B = \{(1,2)\}$. In function arithmetic, what would be $A+B$ ?
Ignas2526
  • 123
2
votes
1 answer

Pulse wave formula

I am developing a Game Boy emulator and I need to get a formula for generating pulse waves, like this: (picture from this Wikipedia page) I know that it is possible to generate a square wave with this formula: $$f(x) = A (-1)^{\lfloor 2 (x - x0) /…
2
votes
1 answer

Minimum number of possible value of x

Let $f: R\rightarrow R$ is a function stratifying $f(2-x)=f(2+x)$ and $f(20-x)=f(x)$ for all $x$ belonging to $R$ . If $f(0) =5$ , them minimum number of possible value of $x$ satisfying $f(x) =5$ for $x$ belonging $[0,170]$
Aakash Kumar
  • 3,480
2
votes
2 answers

Determining the image of a function $\psi:\mathbb{R}^2 \rightarrow \mathbb{R}^2$

Determining the image of a function $\psi:\mathbb{R}^2 \rightarrow \mathbb{R}^2$, $\psi(x,y) = (x^2 - y^2, x^2 + y^2)$ I made some observations about $\psi$: $\psi$ isn't injective, since $\psi(-x,-y) = \psi(x,y)$. The restriction $\psi_{|D}$, where…
user286485
2
votes
2 answers

Find an injective function that maps $\mathbb{R} \to (-\infty, 0]$

I'm looking for any ideas as to a function which maps $\mathbb{R} \to (-\infty, 0]$. I considered $-|x|$ but realised that is not injective.
Wharf Rat
  • 274
2
votes
1 answer

Determine the composition of the functions $f(x)=4x+3$ and $g(x)=-5x^2+1$

Answer: \begin{align*} (f \circ g)(x) & = f(g(x))\\ & = 4(-5x^2+1)+3\\ & = -20x^2+8+3\\ & = -20x^2+11 \end{align*} \begin{align*} (g \circ f)(x) & = g(f(x))\\ & = -5(4x+3)^2+1\\ …
Surdz
  • 627
2
votes
2 answers

Is a function of a function the same as a two-argument function?

Say I have a function $g$ described by $$(x\stackrel f\mapsto y)\stackrel g\mapsto z$$ That is, $g$ takes a function, $f$, and maps it to another object, maybe just a real number or vector or whatever, $z$. How does this relate to the function…