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
2 answers

Derivative of implicit fuction

I want the proof of implicit fuction derivative. I don't know why I should calculate derivative of all monomials towards x for finding $y'$ (derivative of $y$) with respect to x at equations such as $y^2=x$ or $x^5+4xy^3-5=2$? Why is the derivative…
Soroush
  • 342
2
votes
1 answer

Interval functions

I'm kinda a greenhorn in maths and young and unexperienced, but one thought popped in my head that google couldn't satisfy. Let $g(x) = \sin(x)$. Then wouldn't be $g([a,b]) = \{ (x, y): a \leq x \leq b \; \text{and} \; y = g(x) \}$ pretty fine? Is…
Are
  • 133
2
votes
3 answers

Solving the equation $ f^{-1}(x)=f(x)$

I attempted to solve the equation given in the title for the function; $$f: \mathbb R_{++} \to\mathbb R_{++}; \quad f(x)=x^2(x+2)$$ I understand that the problem is equivalent to solving $f(f(x))=x$ but since this seemed like too much work, I had a…
J.Gudal
  • 1,313
2
votes
3 answers

Shoud a function be defined for all elements in the domain in order to be surjective/bijective?

In other words, the surjection says: for any y in the codomain there should exist x in the domain. Now, do I need for every x in the domain to have an y in the codomain for surjectivity?
LearningMath
  • 1,201
2
votes
4 answers

If $f$ and $g$ are both functions from $X$ to $X$ and $f\circ g$ is the identity function, does $g\circ f$ also have to be the identity map?

If $f$ and $g$ are both functions from the set $X$ to $X$ and $f\circ g$ is the identity function, does $g\circ f$ also have to be the identity map? How (if at all) does your answer change if $X$ is finite? I know I probably have to do some…
2
votes
4 answers

Understanding why $f(x)=2x$ is injective

Dr. Charles Pinter's "A Book of Abstract Algebra" shows a proof of why a function '$f$' is injective and surjective. Given $$f(x)=2x,$$ we claim $f$ is injective. Proof. Suppose $$f(a)=f(b);$$ that is, $$2a=2b.$$ This implies $$a=b.$$ Therefore…
2
votes
2 answers

Extrema of functions of two variables: necessary and sufficient conditions

I seem to recall my teacher telling us about the necessary and sufficient conditions while finding the maxima/minima of functions. However, I can no longer find those conditions in my booklet and even on the internet. Can someone please tell me…
l..
  • 143
2
votes
1 answer

What should be number of integral values of n?

If the period of the function $\cos(nx)\sin(5x/n)$ is $3\pi$ then what should be number of integral values of $n$ ? My approach : I tried like period of $\cos(nx)$ is $2\pi$/n and $\sin(5x/n)$ is $2\pi n/5$ So the period should be L.C.M of $2\pi$/n…
user220382
2
votes
3 answers

Restrict $x$ in an equation, but keeping only one equation

How do you put restrictions on the $x$ in an equation without writing more than one equation? This is a two part question: How to take out a section of the graph of an equation? How to take out everything but a section of the graph of an…
GamrCorps
  • 220
2
votes
2 answers

What does it mean to write $(y,z)=G(x)$

I understand this is a map from $\mathbb{R} \mapsto \mathbb{R^2}$. Is it the case that $y=y(x)$ and $z=z(x)$? i.e Are $y$ and $z$ individually functions of $x$ as well as being so jointly ($(y,z)=G(x)$)
user232206
2
votes
1 answer

Show that $f$ is one-to-one if and only if it is onto.

Suppose that $f$ is a function from A to B, where A and B are finite sets with $| A |= |B|$. Show that $f$ is one-to-one if and only if it is onto. How should I begin?
Alim Teacher
  • 1,261
2
votes
2 answers

Range of function $y=(e^x-e^{-x})/(e^x+e^{-x})$

What will be the range of function $y=(e^x-e^{-x})/(e^x+e^{-x})$ ? How should I approach this category of problems with exponential functions? Please Help.
user220382
2
votes
1 answer

Negated argument of the Heaviside Step Function

If $H(x)$ is the Heaviside step function, what is $H(-x)$? Is it $-H(x)$ or does $$H(-x) = \left\{\begin{array}{ll} 1 & x < 0 \\ 1/2 & x = 0 \\ 0 & x > 0 \end{array}\right. \hspace{5ex}?$$
alex b
  • 53
2
votes
2 answers

Proving injectivity of $g(d)= d^2 + d + 1$ by contradiction

Define the function $g:\mathbb N \rightarrow \mathbb N$ with $g(d)= d^2 + d + 1$ I started out by assuming that if two arbitrary elements of $\mathbb N$, $x$ and $y$,where $x>y$ without loss of generality, then $g(x)=g(y)$. So \begin{align*}x^2 + x…
2
votes
1 answer

How to determine a function?

I have two relations: $R_1:=\{(x,y)| x^2=y\} \subseteq \mathbb{N} \times \mathbb{R}$ $R_2:=\{(y,x)| x^2=y\} \subseteq \mathbb{R} \times \mathbb{N}$ $R_1$ is a total function $R_2$ is a partial function I´m trying really hard to understand but just…
Mamba
  • 803