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
3
votes
3 answers

Is it necessary that functions are written as $f(x) = \cdots$? In other words, is $y = x^2$ a function?

Is it necessary that functions are written as $f(x) = \cdots$? In other words, is $y = x^2$ a function. I understand that there are different function notations, I'd be curious to know if $y = x^2$ is one of them. Note: I know that $x^2 + y^2 = x$…
bru1987
  • 2,147
  • 5
  • 25
  • 50
3
votes
5 answers

Does $f:\mathbb{R}\to\mathbb{R}$ mean that $f$ maps to all reals?

This is a quick question. When people write $f:I\to J$ for instance, does $J$ need to be the range of $f$ or can it be any set containing the range of $f?$ For example, is $g(x)=\pi$ an $\mathbb{R}\to\mathbb{R}$ function?
3
votes
1 answer

if $f(g(x))=x^3$ and $g(f(x))=x^4$ find $f(x)$ and $g(x)$

I am taking algebra two and questions like this popped into my head so I would like to learn how to solve them, I am currently working on composing functions.
3
votes
3 answers

How do I find the function that is perfectly between y = x^2 and y = x?

At first, I thought it was as simple as taking both functions adding them together then dividing by two, but this is not the case for what I am looking for. Here is a plot of the following: y = x y = x^2 y = 1/2*(x^2+x) points exactly in between y…
3
votes
4 answers

How is the many-to-one function $f(x) = \frac{1}{x-1} + \frac{2}{x-2} + \frac{3}{x-3}$ decreasing?

The function $f(x) = \frac{1}{x-1} + \frac{2}{x-2} + \frac{3}{x-3}$ is many-to-one, despite it having a strictly negative derivative (the domain being $\mathbb{R} - \{1,2,3\}$). Why is this so? Is there any way of knowing this without actually…
Hema
  • 1,329
3
votes
3 answers

How to find intersection with $x$ or $y$ axis

As my question says, how do I find intersection with $x$ or $y$ axis. For example, if given function is $f(x)=x^3+x^2-x-1$, how do I find the intersection with $x$ and $y$ axis. Right now, I only know that when we are searching for intersection with…
3
votes
3 answers

How does one prove such an equation?

The problem occurred to me while I was trying to solve a problem in planimetry using analytic geometry. for $b$ between $-\frac{1}2$ and $1$ : $\sqrt{2+\sqrt{3-3b^2}+b} = \sqrt{2-2b}+ \sqrt{2-\sqrt{3-3b^2}+b}$
3
votes
1 answer

Is $x^2 + y^2= 36$ a function or not?

$x^2 + y^2= 36,\ y\in\mathbb [0,6] $ is a function or not ? My attempt: $x=\pm\sqrt{36-y^2}$ Since for every value of $y$, $x$ has two possible values, so the given relation is not a function . But my book says that it is a function. Why?
Abhishek Kumar
  • 1,121
  • 9
  • 28
3
votes
3 answers

when $\sqrt{y}$ and $\sqrt{x}$ are defined, is $\sqrt{y}$ = $\sqrt{x}$ a function?

when $\sqrt{y}$ and $\sqrt{x}$ are defined, is $\sqrt{y}$ = $\sqrt{x}$ a function? for (x,y) in the reals. I think I'm thinking to hard about what the graph will look like
A.A.
  • 361
3
votes
1 answer

What functions satisfy $f(x)+f(y-x) = g(y)$?

What functions $f$ have the property that, for all $x$ and $y$: $$ f(x) + f(y-x) = g(y) $$ i.e., the sum does not depend on $x$? Linear functions obviously this property: if $f(x) = ax+b$, then: $$ f(x) + f(y-x) = ay+2b = g(y). $$ On the other hand,…
3
votes
2 answers

What is the period of the function $f(x)$

Given: $f(x) + f(x+T) = 2$ ; where $T$ is a fixed positive number. The solution is given as: put $x = x+T$ then given equation becomes $f(x+T) + f(x+2T) = 2$ subtract given equation from above. You'll get: $f(x) = f(x+2T)$. Hence $2T$ is the…
claws
  • 629
3
votes
2 answers

Find the highest and lowest possible value of function $f(x)={3x^2+6x+6\over x^2+4x+5}$

Find the highest and lowest value of the next function without the use of derivatives $$f(x)={3x^2+6x+6\over x^2+4x+5}$$ Okay so my teacher gave me this problem, and told me to strictly solve it without using derivatives. Obviously with using…
Aleksa
  • 861
3
votes
1 answer

Function that halves the angle of a complex point

How would a function mapping a complex point $z=re^{i\theta}$ to $re^{i\frac{\theta}{2}}$ be correctly written?
Matt
  • 113
3
votes
2 answers

$x\sqrt{x-1}$ bijectivity

So I know to prove that in order to prove the function is a bi-jectivity I have to solve the equation $x\sqrt{x-1}= y$ and find one and only one solution, and I am having trouble doing it. The function is from $[1 ; +\infty[ \to [0 ; +\infty[$
3
votes
1 answer

Restricting domain of surjective function to make bijection

Statement: For every surjective function $f:A \to B$ there exists set $C\subseteq A$ such that function $f:C \to B$ is bijection. As I see it, this is obviously true for finite sets, in way that for every multiple occurrence of some element in…
Dovla
  • 205