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
1 answer

A function question; inverses

If $f(g(x)) = x$ for all $x$ and $f$ and $g$ are continuous. Does it necessary follow that $g = f^{-1}$? Or do we need $g(f(x)) = x$ as well?
Lemon
  • 12,664
1
vote
1 answer

Image of a function is a subset or element of codomain

an image of a function is an element of a codomain or a subset of a codomain? E.g. :ℕ →P(ℕ)−{∅} defined by ()={:∈ℕ and ≤≤2} f(2) = {2,3,4} or f(2) = {{2,3,4}} I am confused by the curly brackets, ()={ :∈ℕ and ≤≤2 }. I am confused every time when a…
Alan Bish
  • 41
  • 4
1
vote
1 answer

Range of $f(x) = x+ \frac {1}{x}$ for $x<0$

One method to do this is by re-writing the function: $$ x + \frac{1}{x} = (\sqrt{x})^2 + \left(\frac{1}{\sqrt{x}}\right)^2 $$ Then adding and subtracting 2 from RHS: $$ = (\sqrt{x})^2 + \left(\frac{1}{\sqrt{x}}\right)^2 - 2 + 2 $$ $$=(\sqrt{x})^2 +…
AVS
  • 245
1
vote
0 answers

Is there a (more or less) common "real" life example for $1/x$ or $1/x^2$?

I'm looking for some (more or less) common problems from "real" life related to $y=\dfrac{1}{x}$, $y=\dfrac{1}{x^2}$ etc. It's rather easy to find lineal, exponential or quadratic examples (a candle burning uniformly, bacteria growth, braking…
1
vote
0 answers

Request for name of structure related to isomorphism

You have two functions $f: A \rightarrow A,\quad g: B \rightarrow B$, which map onto their own domain, and a bijective function $t: A \rightarrow B$, which transforms back and forth between the domains of $f$ and $g$. They have the relation $\forall…
Daniel S.
  • 530
1
vote
1 answer

Are functions defined or modeled as sets?

In his book Analysis I, Tao says functions are not technically sets. In this post, all the answers agree that functions are not sets, especially the one given by Peter Smith. But almost every book on Set Theory I read says something along the line…
1
vote
4 answers

I have to solve $f(x)=x^2+2x+10$ but I'm not sure if I can solve them

Given is $$ x=3 \\ h=2 \\ f(x)=x^2+2x+10 $$ what is the solution of $f(x+h)$ Is that correct? $$ f(x)=x^2+2x+10= (9+4)+2(3+2)+10 = 13+10+10 = 33 $$ Thanks in advance.
Omar
  • 19
1
vote
1 answer

Showing all possible functions the functional equation might satisfy with the intial conditions

Let $\mathbb{Z}$ denote the set of integers. Let $f: \mathbb{Z} \rightarrow \mathbb{Z}$ be such that $f(x) f(y)=f(x+y)+f(x-y)$ for all $x, y \in \mathbb{Z}$. If $f(1)=a >2$, then find all such possible functions . What i considered was let the…
1
vote
1 answer

Maths in Focus Textbook - Functions

There are 450 litres of water in a pond and 8 litres of water evaporate out of the pond every hour. After how many hours will the pond be empty? I've already figured out an equation for the question which is, A=450-8h, A being the pond and h being…
imsodone
  • 21
  • 4
1
vote
1 answer

Inverse function of function consisting of ln

How do we find the inverse function of $f(x)=\ln(\frac{x^2+1}{x})$ over the domain $[1,\infty)$? Solving using traditional method,we get $f^{-1}(x)=\frac{e^x+\sqrt{(e^x)^2-4}}{2}$ and its conjugate. But a function should have a unique range,so i…
madness
  • 566
1
vote
1 answer

Is the + operator considered a function?

A function takes input and produce output. Now the + operator takes two inputs and produce one output, so is the + operator considered a function?
Steven
  • 21
1
vote
1 answer

finding exact minima of exponential function

im trying to find the exact minimum of this function. Upon plotting, i see that the value is close to $0.104$. However, i am not sure as to the exact value of said minima. The function is as follows: $$ f(x)=x^x+x $$ i know that to find the minimum…
Jacob
  • 41
1
vote
0 answers

Monotonic function that multiply input by a factor but is limited to (0,1) in both input and output.

I want to construct a monotonic function that takes two inputs: a number between 0 and 1 (input) a factor (a) It should have f(0)=0 and f(1)=1 The output is the input times the factor a but limited by the "headroom" between the input and 1. So for…
1
vote
3 answers

How to prove that $\frac{x}{1+x^2}$ is not injective?

By looking at graph of $f(x) = \frac{x}{1+x^2}$ I can clearly see that there are at least 2 points $x_1$, $x_2$ where: $$f(x_1) = f(x_2), \quad x_1 \neq x_2$$ How can I prove this function is not injective? Problem here is that in contrast with…
meerkat
  • 371
1
vote
1 answer

Unique Exponential Equation

I solved the following equation by inspection and also by graphing (Desmos). x = 1. Is it possible to put this equation into Lambert form? I tried but could not do it. Thanks. $$ 2^x = x + 1/x $$
Frederick
  • 119