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

Finding fundamental period of functions

How should we find fundamental periods of I)$$\cos(\frac{3x}{5})-\sin(\frac{2x}{7})$$ II)$$\frac{\sin(12x)}{1+\cos^2(6x)}$$ III)$$\sec^3(x)+\ {cosec}^3(x)$$ What i did was found the fundamental period of individual functions and took L.C.M and got…
aryan bansal
  • 1,923
3
votes
2 answers

Find the number of solutions of the equation $e^{4x}+e^{3x}-4e^{2x}+e^x+1=0$

Based on pure intuition, the root is 0. It’s very obvious. But what is the proper way to solve it? Also how do we know it’s the only possible root (the answer is 1 root only, but how can I confirm?)
Aditya
  • 6,191
3
votes
1 answer

Beginning Proof Question concerning Functions

So my class has been given the task to find functions $f$ and $g$,both from R to R such that: $f+g$ is differentiable and either $f'(0)$ dne, $g'(0)$ dne or both. I'm starting to believe, or at least convince myself that no such functions exist. …
3
votes
3 answers

Strictly increasing function on positive integers giving value between $100$ and $200$

I'm looking for some sort of function $f$ that can take any integer $n>0$ and give a real number $100 \le m \lt 200$ such that if $a \lt b$ then $f(a) \lt f(b)$. How can I do that? I'm a programmer and I need this for an application of mine.
Rachid O
  • 133
3
votes
3 answers

If $f(x) = (x-a)^3(x-b)^3$ then what is the nature of the roots of $f^{\prime\prime}(x) = f^\prime (x)$?

If we try solving it by finding $f''(x)$ then it is very long and difficult to do, so my teacher suggested a way of doing it, he said find nature of all the roots of $f(x) =f'(x)$, and on finding nature of the roots we got them to be real(but not…
3
votes
1 answer

A problem on recursive functions

Given the function, $$f(n)= \begin{cases} \ n-3 \quad \text{ if }\quad n\ge1000\\ \\ f (f (n+5)) \quad\text{ if } \quad n<1000 \end{cases} $$ What is the value of $f (83)-f (84) $? One of my friends gave me this problem. I tried to find a…
srswat
  • 303
3
votes
1 answer

$ƒ(x,y)=\sqrt{x^2+y^2}+\sqrt{x^2+y^2-2x+1}+\sqrt{x^2+y^2-2y+1}+\sqrt{x^2+y^2-6x-8y+25}$

QUESTION: Let $ƒ(x,y)=\sqrt{x^2+y^2}+\sqrt{x^2+y^2-2x+1}+\sqrt{x^2+y^2-2y+1}+\sqrt{x^2+y^2-6x-8y+25}$ (A) Minimum value of $ƒ(x,y)= 5+\sqrt2$ (B) Minimum value of $ƒ(x,y)= 5-\sqrt2$ (C) Minimum value occurs of $ƒ(x,y)$ for $x=\frac{3}{7}$ (D)…
3
votes
2 answers

value of $f'(0)$ in composite function

If $f:\mathbb{R}\rightarrow \mathbb{R}$ be a continuous function such that $f(f(x))=1+x. $ Then $f'(0)$ is what i try: $$f(f(x))=1+x$$ Replace $x\rightarrow f(x)$ $$f(f(f(x)))=1+f(x)$$ $$f(1+x)=1+f(x)$$ How do i solve it , Help me please
jacky
  • 5,194
3
votes
3 answers

Functions question help me?

a) We have the function $f(x,y)=x-y+1.$ Find the values of $f(x,y)$ in the points of the parabola $y=x^2$ and build the graph $F(x)=f(x,x^2)$ . So, some points of the parabola are $(0;0), (1;1), (2;4)$. I replace these in $f(x,y)$ and I have…
none85
  • 51
3
votes
2 answers

Which of the following best represents a portion of the graph $y = \frac{1}{e^x} + x - \frac{1}{e}$ near (1, 1)

By taking derivatives, I know that the slope of this function is positive near (1, 1) and the magnitude of the slope will keep increasing. However, how can we tell the difference between (A) and (D)? Thanks!
3
votes
1 answer

How do I find the range of the following function?

The question says to find the range and domain of $$P(x) = \frac{\sin(x)-1}{\sqrt{3-2\sin(x)-2\cos(x)}}$$ How do I approach this problem? For domain, I know I should set the denominator $>0$ so that it doesn't become undefined...but not really how…
Techie5879
  • 1,454
3
votes
5 answers

Show that $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = \frac{3x-4}{x^2+5}$ is injective

I'm working on proving that $f: \Bbb{R} \rightarrow \Bbb{R}$ defined by $f(x) = \frac{3x-4}{x^2+5}$ is injective. However I'm stuck. Assuming that $f(x_1) = f(x_2)$: $$f(x_1) = f(x_2)$$ $$\frac{3x_1-4}{x_1^2+5} =…
Shuster
  • 617
3
votes
1 answer

One to one and onto

I just wonder if these relations are one to one and onto: the function $f = \{(1,a),(1,b),(1,c)\}$ from $X = \{1\}$ to $Y = \{a,b,c\}$. I think this function is one to one and onto the function $f = \{(1,a),(2,b),(4,d)\}$ from…
3
votes
1 answer

How to find whether $f(x)=\frac{2x(\sin(x)+\tan(x))}{2[\frac{x+2\pi}{\pi}]-3}$ is a many-to-one function or not?

Question: How to find whether the function $$f(x)=\frac{2x(\sin(x)+\tan(x))}{2[\frac{x+2\pi}{\pi}]-3}$$ is a many-to-one function or not? where [.] represents greatest integer function or floor function. Graph of $f(x)$: Clearly, any horizontal…
Vishnu
  • 1,816
3
votes
1 answer

assume $f(4 x-3)+f(3-4 x)=4 x$ find the $f(x)$

assume $f(4 x-3)+f(3-4 x)=4 x$. find the $f(x)$ I did this: $\begin{aligned} & t=4 x-3 \\&f(t)+f(-t)=t+3 \\&f(-t)+f(t)=-t+3 \\\Rightarrow &f(t)+f(-t)=3 \end{aligned}$ and stucked here.