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

Form for continuous decreasing function with two fixed points

I'm looking for a specific function $f(x)$ with the following properties: Continuous (no piecewise functions) and smoothly decreasing. $f(x)>0$ for $0\leq x < c$ $f(0)=1$ $f(c)=0$ where $c$ is an arbitrary constant. I've looked into decreasing…
Gabriel
  • 1,355
1
vote
3 answers

Finding the profit function

I am programming a bargain composer. The composer tries buy the cheapest auctions till the specified quantity is reached. A auction has two important properties. Quantity and Buyout price. I use the 0-1 knapsack algorithm to cope with this problem.…
mark_dj
  • 123
1
vote
4 answers

How is this not a 1-1 function?

Using calculus, how would you prove that $$y={{2\,x}\over{\left(x^3+1\right)}} $$ is not a 1-1 function?
1
vote
1 answer

Range of the function $\sqrt[4]{1-\sqrt[3]{4-\sqrt{25-x²}}}$

I am trying to find definitions range for the function $\sqrt[4]{1-\sqrt[3]{4-\sqrt{25-x²}}}$. I tried to sloe it like this: Because I know that in real number range under the sqrt I can not have a negative number, I made three equations, where I…
depecheSoul
  • 913
  • 7
  • 13
1
vote
2 answers

Injective function from a set of $n$ element to a set of $n$ element

How to determine number of Injective function from a set of $n$ element to a set of $n$ element and number of onto function on the same set to itself? Thank you for your help.
Myshkin
  • 35,974
  • 27
  • 154
  • 332
1
vote
3 answers

I have f(x) and g(x), what is f(g)

I have two polynomial interpolations of raw data: Wind speed as a function of turbine rotation => v(r) Power as a function of turbine rotation => p(r) I would like to map these functions to a function describing the relationship between wind speed…
klonq
  • 133
1
vote
1 answer

Show that $f(x) \ne H(f)$ for all $f,x$.

Given: $$H = \lambda f \in \mathbb{R} \rightarrow P(\mathbb{R}).\left\{ {x \in \mathbb{R}|x \notin f(x)} \right\}$$. Show that $f(x) \ne H(f)$, for all $x, f$. Well, this is my answer: Let $y \in f(x)$. By definition of $H$, $y \notin…
AnnieOK
  • 2,920
1
vote
4 answers

how to build a function that holds some condition

I'm not a mathematician but I have a question. I have some conditions that I want to create a function which holds that condition, Is there any way to build a mathematical function to satisfy this condition.The condition I need the function to hold…
1
vote
2 answers

Show that $ f $ is invertible with $ f^{-1} $.

$$ f:\mathbb R^{+}\to [-5,\infty) $$ $$ f(x)=9x^{2}+6x-5 $$ $$ f^{-1}(y)=({\frac{(\sqrt{y+6})-1}{3}}) $$ Now I have to show that $ f $ is invertible with $f^{-1}$ I'm trying to show that $f^{-1}\circ f(x)=x$ and $f\circ f^{-1}=y$ I have done to some…
Singh
  • 2,108
1
vote
2 answers

Increasing a number when another number gets smaller than 0

This should be trivial but for some reason I cannot think of a formula which enlarges a number in proportion to another number decreasing in the negative direction Example: if value 1 = $-0.1$, value 2 should be set to $0.9$ if value 1 = $-0.2$,…
seedg
  • 123
1
vote
1 answer

Which category does the percent symbol fall into?

I have looked around, for an answer, please pardon me if you find one that I have missed. My question is whether the %(divide x by 100) symbol is an operator or function and if neither, which category it falls into in mathematics terms.
1
vote
2 answers

$f^{-1}(O)$ is also open

Lets consider that $f$ is continuous function and $O$ is an open set. Can we assume that $f^{-1}(O)$ is also open? If so why?
Carol.Kar
  • 537
1
vote
1 answer

Determine the values of parameter m so that...

Please , can you verify only if the exercise is right? We have the function with domain and range in $\mathbb{R}$, $f(x)=mx-ln(x^2+1)$. Determine the values of "$m$" so that the function is decreasing on $\mathbb{R}$. The derivative of…
wonderingdev
  • 1,761
1
vote
2 answers

Domain of a function by inspection

Find the domain of a function $f(x)=\sqrt{x^2-5x+4}$. My solution: Step 1: $x^2-5x+4 \geq0$. Step 2: $(x-4)(x-1)\geq 0$. Step 3: $x\geq 4$ OR $x\geq 1$, but $x\geq 1$ does not satisfy the inequality of step 2, therefore $x\geq4$. Solution by…
Vikram
  • 5,580
1
vote
2 answers

Proof $f,g : \mathbb{R} \to \mathbb{R}$ one-one $\implies f\circ g$ one-one

I thought this question would be interesting enough for someone to have asked this here, but it turns out that I can't find the answer to this anywhere on this forum: Let $f,g : \mathbb{R} \to \mathbb{R}$ be two functions that are one-one. Proof (or…
Yiyuan Lee
  • 14,435