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

A result on functions in $\mathbb N^{\mathbb N}$

Assume some function $f\in \mathbb N^{\mathbb N}$ which is strictly increasing (i.e. $f(n+1)>f(n)$ for all $n\in \mathbb N$). Then for every natural number $N$ we can find some natural number $N_0$ such that $f(N_0)\ge N$. I observed this to be…
2
votes
3 answers

Definition of a function, convention

If $f: [0,1] \rightarrow \mathbb{R}$, $f(x) = \sin x$ If $g: [1/2, 2] \rightarrow \mathbb{R}$, $g(x) = \cos x$ Is $h(x)= f(x) + g(x)$ a valid function directly or we need to specify $h:[1/2,1] \rightarrow \mathbb{R}$ and then say $h(x) = f(x) +…
2
votes
0 answers

Can't solve this seemingly simple equation for x

I have the following implicit function: $b x^\frac{2}{a}+(xz+t)^\frac{2}{a} = 1$ which I'm trying to solve for $x$. I've been trying for a while now and I'm unable to simplify anything. This task would be easy if it wasn't for the $t$. I'm probably…
Nico
  • 21
  • 3
2
votes
1 answer

IF $f:\mathbb N\to\mathbb N$ and for any natural number $f(n+1)>f(n)$ and $f(f(f(n)))=4n$ ,find $f(2023)$

Function $f:\mathbb N\to\mathbb N$ is defined.If for any natural number $f(n+1)>f(n)$ and $f(f(f(n)))=4n$ , $f(2023)=?$ I attempted to solve it as shown below: $f(f(f(1)))=4$ and let's say $f(f(1))=x$ then $f(x)=4$ and as $f:\mathbb N\to\mathbb N$…
Anar
  • 183
2
votes
4 answers

Find the product of the min and max value of the function $f(x)=\frac{\sin^4x+\cos^4x}{\sin^6x+\cos^6x}$

Find the product of the min and max value of the function $$f(x)=\dfrac{\sin^4x+\cos^4x}{\sin^6x+\cos^6x}$$ We can simplify the function as follows…
2
votes
2 answers

Proving Surjectivity when $f: \mathbb{N} \times \mathbb{N}, f(a,b) = 2a-b$

Suppose we have a function defined as $f: \mathbb{N} \times \mathbb{N}, f(a,b) = 2a-b$ This was my solution: Suppose $z\in\mathbb{Z}$. Then for some $x,y\in\mathbb{N} \times \mathbb{N}, f(x,y) = z.$ $2x-y = z$ $\Rightarrow -y=z-2x$ $\Rightarrow y…
Marko
  • 41
2
votes
1 answer

I'm searching for a monotonically increasing function, defined for all reals, that is concave down and a "gentle curve" (no aymptotes).

I'm searching for a monotonically increasing function, defined for all reals, that is concave down and a "gentle curve" (no aymptotes). The link below provides an image: example of gentle concave down curve This post has some examples of near…
2
votes
1 answer

When raising a bracket (of a function like $\ln$) to a power, is the power applied before the ln operation?

I've seen sources that apply the $\ln$ function before the power in $\ln(x-1)^2$ for example and others where it is applied after the power. Which is correct?
2
votes
2 answers

Is there a closed-form solution to the equation included in this post?

EQUATION 1: $\text{Constant} = \frac{\ln(y-x)}{\ln(y)}$ GIVEN: $0 <$ Constant $< 1$ The $x$ and $y$ values are always positive. The closed form solution may ignore zero and negative $x$ and $y$ values. SIMPLIFIED EQUATION 1: Equation 1 may be…
2
votes
0 answers

Is there a name for the relationship between functions $f(x)$ and $g(x)$ satisfying $T(f(x))=g(T(x))$ for some $T(x)$?

Is there an established name for the relationship between functions $f(x)$ and $g(x)$ satisfying $T(f(x))=g(T(x))$ for some $T(x)$? It is similar to an isomorphism and it seems that it might be useful since it follows by induction that…
user1153980
  • 1,121
2
votes
0 answers

Find analytic function definition matching algorithmic one

I am a Software Engineer who, within ~the last decade has had very little contact with more-than-primary-school-levels of math. To my chagrin it seems that I forgot not just how to do many things, I also forgot how they are called, so looking them…
Zsar
  • 121
2
votes
1 answer

Relative extrema of function $2x^2+y^2+z^2-xy$

I need to find the relative extrema of the function $$f(x,y,z)=2x^2+y^2+z^2-xy$$ I conclude that the only critical point is $(0,0,0)$, and that it is a relative minimum, but I'm not sure if it is correct. Can somebody help me? To conclude that…
Elena
  • 33
2
votes
4 answers

Prove that the function is surjective but not injective

I am struggling with this excercise: I want to prove that the function $f: \mathbb{R} \to \mathbb{R}$, defined by $f(x)= x^3 + x^2 - 6x$, is surjective but not injective? I personally would calculate some numbers and show that by these examples that…
2
votes
2 answers

Show that a function is even/odd?

I want to show these properties with two functions: even: $f(x)=f(-x)$ odd: $-f(x)=f(-x)$ Prove that the function $g: D \to \mathbb{R}$, $g(t)= \frac {5} {t^4 - t^2 + 1}$ is even and $h: \mathbb{R} \{0 \} \to \mathbb{R}$, $h(a)= \frac {1+a^2} {a}…
2
votes
2 answers

onto functions disproving method

Let $f: \mathbb R^* \to \mathbb R$ with $f(x) = \frac{x+1}x,$ where $\mathbb R^*$ is the set of all real numbers different from zero. Determine whether or not $f$ is an onto function. I know that this is not onto. But how do I go about disproving…