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

Where does the superfactorial sit on the fast growing hiearchy?

Question Using the definition $$ \text{sf}(x) = \prod_{n=1}^{x} n! $$ Where would the Superfactorial ($\text{sf}(x)$) sit on the fast-growing hiearchy? Context The reason I am asking is because recently I have been pondering, which is faster…
1
vote
0 answers

Definition of image of a subset

Is it a correct way to define image of a subset? $$ f : A \to B\ \text{ function} \\ S\subseteq A \\ f(S)= \left\{b ∈ B ∣ S\cap f^{-1}(\left\{b\right\})≠∅\right\} $$
George
  • 79
  • 4
1
vote
1 answer

Domain of Composite Functions: $\text{ domain of } g(f) = \text{ domain of } f$ and $ \text{ domain of } f(g) = \text{ domain of } g$

I have functions $f$ and $g$. However, the domain of $f(g)$ is not the same as the domain of $g$. $f = \{ (1,2), (2,3), (3,4) \}$ $g = \{ (1,2), (2,0), (3,5), (4,3) \}$ $f(g) = \{ (1,3), (4,4) \}$ $g(f) = \{ (1,0), (2,5), (3,3) \}$ However,…
1
vote
1 answer

Interesting study on $f(x)= a^x -x^a, \text{s.t. } (x>0)$

Some Pictures of this kind of function So I'm thinking about $f(x)= a^x -x^a, \text{s.t. } (x>0)$ It's easy to see that $f(a)=0 $ When $x>1$, there is always a point where $x^a$ suddenly gets bigger then $a^x$, and then there's a point when $a^x$…
1
vote
0 answers

Grade 12 Functions - differences

I'm confused by the following related to a course I'm doing in grade $12$ functions: Consider polynomial functions in the form $f(x) = ax^n + x$. Use at least three examples to investigate the relationship between $a$, $n$, and the constant finite…
Dan Murray
  • 43
  • 3
1
vote
1 answer

$f(x) = ax^3 + bx^2 + cx + d\sin(x)$ . Find condition for which function is one one given that $a>0$.

I approached the question as follows: For the function to be one one it must be strictly increasing or strictly decreasing, hence the derivative must be positive or negative for all $x$ belongs to $\mathbb{R}$. $f'(x) = 3ax^2 + 2bx + c +…
Mitansh
  • 31
1
vote
1 answer

The range of the function $f(x) = \frac{(1+x)^4}{1+x^4}$ where $f: \mathbb{R} \to \mathbb{R}$

The range of the function $f(x) = \frac{(1+x)^4}{1+x^4}$ where $f: \mathbb{R} \to \mathbb{R}$ is _____ Based on desmos.com the range is $[0,8]$ On solving we get $f'(x) = \frac{-4(x+1)(x-1)(x+1)^2(1+x+x^2)}{(1+x^4)^2}$ We get local minimum at…
1
vote
1 answer

Proving $|f^{-1}(\{A\})| \in \{0,2\}$ if $f:P(\mathbb N) \to (\mathbb N)$ sends $A \mapsto A \setminus \{1\}$

This is a question I got in my homework, and it reads as follows (translated): Consider the function $f:P(\mathbb N) \to P(\mathbb N)$, given by $f(A)=A \setminus \{1\}$. Prove that $|f^{-1}(\{A\})| \in \{0,2\}$ for all $A \in P(\mathbb N)$ This…
1
vote
0 answers

A Functional Equation question

$\mathbb{R}$ is used to represent the set of all real numbers and $t$ is a given invariant real number,$t≠0$,Find all functions that satisfiesf: $\mathbb{R} \to\mathbb{R}\, \forall x,y \in\mathbb{R}$ (independent transformation between $x$ and…
1
vote
1 answer

Showing that $f(a, b)=2^a(2b+1)-1$ is surjective

I am trying to show that the cardinality of $\mathbb{N}\times \mathbb{N}$ is the same as the cardinality of $\mathbb{N}$. Let's look at the function $f(a, b)=2^a(2b+1)-1, f:\mathbb{N}\times \mathbb{N}\to \mathbb{N}$. How does one come up with it? We…
Trifon
  • 113
1
vote
0 answers

Is the given function Homogenous?

$g(x, y)=x^2/y^3$ Now a function $f(x,y)$ is said to be a homogenous function of degree $n$ if, $f(tx,ty)=(t^n) f(x,y)$ where $t$ is some scalar For example $f(x,y)= x^2+y^2$ Now for some scalar $t$ $f(tx,ty)=(t^2)(x^2+y^2)=(t^2)f(x,y)$ Thus $f$ is…
1
vote
1 answer

How do I show this function is a bijection?

Let $\geq$ be a partial order on a set $X$. For each $x\in X$, let $F(x)\equiv \{a\in X:a\geq x\}$ and $\mathcal{F}\equiv\{F(x):x\in X\}$. I want to show that $F:X\to\mathcal{F}$ is a bijection. First I have shown that it is an injection. Take…
1
vote
0 answers

Linear composite functions

If fog and gof are both linear functions, then must f or/and g also be linear functions? Proof or counterexample(s)? If fog is linear, f and g does not have to be linear. Take f=g^-1. sin(arcsinx) or In(e^x).
1
vote
1 answer

How would you characterize the graph?

Would you describe this as a "hole" at x = 2? The reason why I ask is that I have learned that holes are where the function is not defined. But the function is defined at x = 2, or f(2)=1. Can a hole still exist if the function is defined at that…
1
vote
3 answers

Let $f : X → Y$ be a function and $A \subseteq Y$. Is $f(f ^{−1}(A)) ⊆ A$ true?

Sorry for not using the correct notation yet, I just joined:) The previous question had a typo in it, it's been corrected now.Here is my now conclusion: I want to prove the statement is true and thought of element chasing to prove it. Is the…
Layla16
  • 93