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
6
votes
1 answer

How find this numbers $a,b$

Question let function $f(x)=ax^2+b$, find all positive real numbers $(a,b)$,such for any real numbers,then we have $$f(xy)+f(x+y)\ge f(x)f(y)$$ My try: since $$f(xy)+f(x+y)\ge f(x)f(y)\Longrightarrow a(xy)^2+b+a(x+y)^2+b\ge (ax^2+b)(ay^2+b)$$
math110
  • 93,304
6
votes
2 answers

Is this a function and injective/surjective question

Consider the set $A={(x^2, x):x \in R}$. Is this a function from $R$ to $R$? I know it will be a function if there is a unique output per input, but I've never seen a function formatted like this. Is the $x^2$ the independent value and $x$ the…
Drake
  • 851
6
votes
2 answers

Is there a function $f(x)=\frac{g(x)}{h(x)}$ with inverse $f^{-1}(x)=\frac{g^{-1}(x)}{h^{-1}(x)}$?

I can't seem to find any function that satisfy these criteria. Let's say $f$ is a function (be in the reals or elsewhere) that's a quotient of two other functions $g$ and $h$ means $f(x)=\frac{g(x)}{h(x)}$, and its inverse $f^{-1}$ is the quotient…
6
votes
1 answer

Why must a function have to have even and odd parts

For a function $f(x)$, it was given here with derivation that it has $E(x)$ as even part and $O(x)$ as odd part, $$f(x)=E(x)+O(x)$$ why does this have to be always true? What is the proof?
6
votes
5 answers

Is it possible to pass functions into other functions in maths?

I wanna be frank with you guys and say my mathematical education was a bit... bleh, so I'm teaching myself a lot of stuff lately, a question that has come up for me: "Is it possible to pass functions into other functions?" Like say I have a function…
6
votes
2 answers

Meaning of Lyapunov function in dissipative systems

For mechanical and structural systems, one can often use the energy as the Lyapunov function. In electrical power systems, some methods have been used to determine Lyapunov functions and one can define feedback loops based on this. For Hamiltonian…
6
votes
2 answers

What's a nickname for functions of the type $f\colon\mathbb{N}\to\mathbb{R}$?

I'm currently learning functions and in my homework there's the problem: Let $f\colon\mathbb{N}\to\mathbb{R}$ be a function. Come up with a nickname for this type of function and come up with a nickname for the elements in its domain. I asked my…
BroPro
  • 63
6
votes
2 answers

Find the range of: $y=\sqrt{\sin(\log_e\frac{x^2+e}{x^2+1})}+\sqrt{\cos(\log_e\frac{x^2+e}{x^2+1})}$

Find the range of: $$y=\sqrt{\sin(\log_e\frac{x^2+e}{x^2+1})}+\sqrt{\cos(\log_e\frac{x^2+e}{x^2+1})}$$ What I tried: Let:$$\log_e\frac{x^2+e}{x^2+1}=X,$$ then $$y=\sqrt {\sin X}+\sqrt{\cos X}$$ $$y_{max}at X=\pi/4$$ The rest is too complicated. I am…
MathGeek
  • 611
6
votes
2 answers

What is an example function of a transitive yet non-reflexive and non-symmetric relation?

If I were to come up with a function $f: \mathbb{N} \to \mathbb{N}$ that makes relation $R_a$ transitive yet non-reflexive and non-symmetric such that $$q \, R_a \, z \text{ if } f(q) = z,$$ what kind of function should I come up with? I spent the…
6
votes
1 answer

For a function from $\mathbb{R}$ to itself whose graph is connected in $\mathbb{R} \times \mathbb{R}$, yet is not continuous

In order to give an example of a function from $\mathbb{R}$ to itself whose graph is connected in $\mathbb{R} \times \mathbb{R}$, yet is not continuous, the book Berkley Problems on Mathematics refers to a function: $f(x)=\sin(\frac{1}{x})$. Let…
6
votes
2 answers

Function Olympiad Problem: Define $f(n)$ such that $f(n)$ is a positive integer, $f(n+1)$ $>$ $f(n)$ and $f(f(n))$ $=$ $3n$. The value of $f(10)$ is?

If you know me at all, or have read my profile, or have seen any of my previous questions, you might know that I am very interested in Olympiad maths and have come across many challenging maths problems, although I'm not too strong in the functions…
mathsnoob
  • 667
6
votes
1 answer

if $f\left(x+y,\frac{y}{x}\right)= x^2-y^2$ then $f(x,y)=?$

So, I have to find $f(x,y)$ if the following holds: $$f\left(x+y,\frac{y}{x}\right)= x^2-y^2$$ I thought about replacing $x+y=X$, and $y/x=Y$, but now where do I replace this $x$ and $y$ that I've found?
asdas
  • 95
6
votes
2 answers

Find the function equation $f(x+f(y)+yf(x))=y+f(x)+xf(y)$

find all functions $f:\Bbb R\to \Bbb R$ and such for any $x,y\in\Bbb R$,and such $$f(x+f(y)+yf(x))=y+f(x)+xf(y)$$ I have proven that $$f(f(x))=x$$ proof:Let $y=0$,we have $$f(x+f(0))=f(x)+xf(0)$$ let $x=0,y\to x$,we…
math110
  • 93,304
6
votes
2 answers

What are $f\circ\emptyset$ and $\emptyset\circ f$ if $\circ$ is function composition and $f$ is any function?

My guess is that both are $\emptyset$ because if $g\circ f=\{(x,z)\mid \exists y\in \text{Im}f:(x,y)\in f\land (y,z)\in g\}$ then if $f$ or $g$ are the empty set then it doesn't exist any $y$ with such condition, so the set is empty. Am I right?
Garmekain
  • 3,124
  • 13
  • 26
6
votes
3 answers

A function $f:\mathbb{R}\to\mathbb{R}$ such that $f^{-1}(x)=1-f(x)$?

Does a function $f:\mathbb{R}\to\mathbb{R}$ such that $f^{-1}(x)=1-f(x)$ exist? Edit: I tried with different “simple” forms of function ($ax+b$, polynomes, $ae^{bx}+c$) without any inside as where to go. So I don't even know how to solve equations…
mr_georg
  • 163
  • 5