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

Function domain and simplification: how to combine them?

What is the domain of the real-valued function: $$f(x) = \frac{x+4}{(x+4)(x-6)}$$ Wolfram|Alpha says that: $$ \{ x \in \mathbb{R} : x \ne -4, x \ne 6 \} $$ I believe it should be more like this: $$ \{ x \in \mathbb{R} : x \ne 6 \} $$ I couldn't find…
1
vote
1 answer

function question

$ f(x) = \begin{cases} -1 && \text{for}-2\le x \le0\\ x-1 && \text{for } 0
1
vote
2 answers

"A Function Can't Be Odd&Even" They said, Right?

When I was wondering about if Constant Functions were even or odd, I thought about the function: f(x) = 0 , It's simultaneously odd and even, f(3) = 0 , f(-3) = 0, f(1) = 0 , -f(1) = 0, (It's Indeed a counter-example) I'm pretty sure I haven't…
1
vote
2 answers

Range of function

Given the function, $y=f(x)=\frac3{2-x^2}$, find its domain and range. The domain is of course = $R - \{-\sqrt2,\sqrt2\}$. However, the range I got was wrong(rather incomplete). Rewriting the function for x in terms of y, I got $x=\pm…
1
vote
1 answer

Nonincreasing function: the basics

$f(x)$ is a nonincreasing function of $|x|$, does this automatically imply that $f$ is symmetric or even? I haven't seen it written this way. Sorry for asking such basic questions.
1
vote
2 answers

Range of this Function : $\frac{(x^2 + x +1) }{ (x - 4)}$

I got answer with Wolfram Alpha. But I do not know how the answer was obtained? what's method should I use?
1
vote
2 answers

Example of a function

I'm looking for a function like that f(x,y) not equal to f(y,x) for all integers and result must be integer also. Thank you,
seleucia
  • 111
  • 1
1
vote
2 answers

How to combine these two functions?

I combined them as Is that correct?
Maximiliano
  • 1,121
1
vote
1 answer

Piecewise Symmetric Functions

I am unclear as to what precisely is a symmetric function if it is defined piecewise. For example, (in Maple) is A := (x, y) -> piecewise(x < y, 2*x-y, y < x, x-2*y, x = y, 0) a symmetric function? And if so, why?. Also, (in Maple) is …
PiE
  • 1,002
  • 8
  • 16
1
vote
1 answer

Onto and One-to-one proof

I'm having a bit of difficulty with this. Where does the thinking come from? For equations it is pretty straight forward, but not for these abstract ones. Let $D$ be the set of all infinite subsets of positive integers and define $T:\mathbb{Z}^+…
user108969
  • 69
  • 1
  • 3
1
vote
1 answer

showing a bijection is true for the assumption that it takes 4 points to have 1 intersection in a circle

Problem: 15 points are taken on the circumference of a circle, and through any two of them a chord is drawn. Suppose that no three chords intersect at the same point inside the circle. How many points of intersections are between these chords? My…
1
vote
3 answers

How to prove the $f(x) = \sqrt{x + \sqrt{x}}$ is injective.

The function is $$ f(x)=\sqrt{x+\sqrt{x}} $$ I know that you need to set up the equation $$\sqrt{x_1+\sqrt{x_1}}=\sqrt{x_2+\sqrt{x_2}}$$ and you have to solve step by step until you get $x_1=x_2$. But I am having difficulty figuring out what to do.…
Matt
  • 13
  • 3
1
vote
2 answers

Proving there is a max,with two limits given.

So I need help with this exercise. If $f$ is a positive and continuous function with $$\lim_{x \to -\infty} f(x) = \lim_{x \to +\infty} f(x) = 0 $$ Prove that $f(x)$ has a maximum. Thanks in advance :)
george
  • 13
1
vote
1 answer

A function bounded on an interval

If a function is affine and bounded on [0,1], does that mean: For all $x\in \mathbb{R}$, $0\leq f(x)\leq 1$? Or does it mean there exists $M,N \in \mathbb{R}$ such that for all $x\in [0,1]$, $N\leq f(x) \leq M$?
1
vote
3 answers

Question about rate of change given a set of data

If you were given a set of data, such as population vs time, for example: (years) 0, 10, 20, 30, 40, 50, 60 (population)5, 10, 20, 40, 80, 160, 320 Would you get the overall average rate of change by calculating each individual average rate of…
Faraz
  • 89