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

How can I prove this function is bijective?

I know I have to show it's injective and surjective, but up until now it's always been simple equations that I can prove are equal to each other. This equation is a little bit more complex. $$f(x) = (x-a)\frac{d-c}{b-a} + c$$ Im $99\%$ sure it's…
3
votes
2 answers

Derivatives and Lebesgue measure.

Is it true that, if $f:\mathbb{R}\rightarrow \mathbb{R}$ is continuously differentiable, then for all $E\subseteq\mathbb{R}$ with $\lambda(E)=0$, it holds that $\lambda(f(E))=0$. My thoughts would be applying the mean value theorem to f and get the…
3
votes
1 answer

The deriviative of $\sqrt{\ln(x)}$, by definition

How do I find the deriviative of $\sqrt{\ln(x)}$, by definition? I got stuck thinking of a solution... Would be glad of getting help/hints. Thanks in advance!
pie
  • 145
3
votes
1 answer

Communicating information about functions in plain English.

I am having a bit of trouble with communicating information about functions in English. I know that $f(x)$ is read $f$ of $x$, but how would I use this in a sentence? Say, we have a argument x=5, and I want to express the process of passing this…
JustDanyul
  • 431
  • 4
  • 10
3
votes
1 answer

Intermediate value theorem is the key?

Let $f(x)$ be a continues function for all $x$, and $|f(x)|\le7$ for all $x$. Prove the equation $2x+f(x)=3$ has one solution. I think the intermediate value theorem is key in this, but I'm not sure of the proper usage.
pie
  • 145
3
votes
5 answers

Prove this conjecture - is it even possible?

Let $f(x)$ be continuous for all $\mathbb R$. $$\lim_{x\to\infty}f(x)=L_1$$ and $$\lim_{x\to-\infty}f(x)=L_2$$ Where $L_1,L_2$ belong to $\mathbb R$. Prove that $f(x)$ is bounded for all $\mathbb R$. My problem with this conjecture: Isn't…
pie
  • 145
3
votes
2 answers

How to find the limit of two divided functions

How can I find a $c$ such that $f_{2}(n) \leq c \cdot f_{3}(n)$? where $f_{2}(n) = 2n + 20$ and $f_{3}(n) = n + 1$. This was from the textbook, Algorithms (explaining something else), but I was wondering how they got the following:…
3
votes
2 answers

Range of Even Function

Is it possible for an even function to have the entire set of real numbers as the range? I thought much about it but I didn't find. Please explain if anybody knows.
Waqar
  • 267
3
votes
2 answers

Need help on proof for injectivity of a function

I have a function, $f(x, y) = (x + y, x)$. The proof that this function is injective, is as follows: Say that $f(x,y)=f(x′,y′)$. We are assuming that two different inputs give the same output. For $f$ to be injective we need to prove that the inputs…
3
votes
2 answers

When to use $f(x)=Ce^{kx}$ vs $f(x)=Ca^{kx}$?

(Where 'e' is 2,71828...) When do you really want to use one over the other? What properties do they have?
nicolas
  • 133
3
votes
3 answers

Year 10 Maths Question Range of Function

Can someone explain to me the range for this particular function please $$ y= \frac {2} {\sqrt{4-x^2}} $$ I'm in Year 10 so can someone explain this to me in a simple way. Don't really get why it is y larger than or equal to 1 But I know the…
3
votes
3 answers

domain and range of function $y= 1+\sum_{n=2}^\infty x^n$

My friend give me a question to find domain and range of $y= 1+\sum_{n=2}^\infty x^n$ there is no more description about the problem, so I think the domain of that function is all $\mathbb{R} $ and range of that function is $ \mathbb{R}$ too but…
ABCDEFG user157844
  • 1,091
  • 7
  • 12
3
votes
3 answers

Let $f(x)=\ln(x+\sqrt{x^2+1})$. Find a function $g(x)$ such that $g(f(x))=x$

Let $f(x)=\ln(x+\sqrt{x^2+1})$. Find a function $g(x)$ such that $g(f(x))=x$ for every $x$. Find $g(2)$. I don't have even the slightest idea how to solve such question.I tried to transform the rhs of equation $g(\ln(x+\sqrt{x^2+1})) =x$ in form…
3
votes
1 answer

Why is the domain restricted here?

I have a question on this sheet of lecture notes here, answering a question asking to find these functions and state their domains: My query lies with the bottom of the page. Consider the following: $(g\ o\ f)(x) = 3 -\frac{6}{x}$ Apparently, this…
sangstar
  • 1,947