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

Let $f$ be twice differential function such that $f''(x)= -f(x)$ and $f''(x)=g(x)$.

Problem:Let $f$ be twice differential function such that $f''(x)= -f(x)$ and $f''(x)=g(x)$. If $h(x)=(f(x))^2 + (g(x))^2$ and $h(5)=3$. Find $h(10)$ Solution: let $f(x)= asinx$ $f''(x)= -asinx$ $h(x) = 2 a^2 sin^2x$ Now h(5) = 3 So $\frac…
rst
  • 2,031
2
votes
2 answers

I understand $Δy(x)$ as the difference between an output and another output of the same function, but i cant conceptualize $Δ^n y(x)$

I find $Δ^n y(x)$ to be quite confusing and i dont know if i have understood it correctly. Does it mean simply raising the $Δy(x)$ difference to a power, or something else entirely? I know the formula of finding $Δ^n y(x)$ but im having trouble…
Than1
  • 331
2
votes
5 answers

Domain of square root of x squared

What is the domain of $f(x)=(\sqrt{x})^2$ ? Is it all real numbers, or are negative numbers still excluded, even after the square? Edit: What I'm really wondering is whether $\lim\limits_{x \to 0} f(x)$ is defined. Sorry for the confusion.
2
votes
4 answers

If $g$ is the inverse function of $f$, then prove that $f(g(x)) = x$

Problem : If $g$ is the inverse function of $f$, then prove that $f(g(x)) = x$. Solution : I know it is well known result. But I have no idea how to prove it.
rst
  • 2,031
2
votes
1 answer

The range of function $\frac{x+m}{x^2+1}$ contains interval [0,1] if m>3/k then k must be

The range of function $\frac{x+m}{x^2+1}$ $(m\in R)$ contains interval [0,1] if $m>\frac{3}{k}$ then k must be. I am not getting exact approach to solve this problem. T tried getting quadratic equation in x and then applying $D\geq 0 $ but it…
2
votes
0 answers

Determine the domain of the function $g(x, y, z)=\ln(16-4x^2-4y^2-z^2)$.

By the condition of the logarithm, we have: \begin{align*} 16-4x^2-4y^2-z^2 &> 0 \\ 4x^2+4y^2+z^2 &<16 \\ \frac{x^2}{4}+\frac{y^2}{4}+\frac{z^2}{16} &< 1 \end{align*} Therefore…
BML
  • 551
2
votes
2 answers

Finding a number that equals another number that references it

Apologies in advance if I have not formatted this problem correctly. Context: I need to find a way to calculate a number that will equal a service fee applied to a product, taking into account the service fee will also be applied to this number. The…
2
votes
2 answers

Find the number of real roots $x$ such that $\frac{x}{x+4} = \frac{5[x]-7}{7[x]-5}$

Here $[.]$ represents the greatest integer function Let $x=[x] + \{x\}= t+u$ Here t is GIF and u is fractional part function $$\frac{t+u}{t+u+4} = \frac{5t-7}{7t-5}$$ $$u=-\frac{2t^2 -18t +28}{9t+2}$$ So now $$0\le u<1$$ Solving the first inequality…
Aditya
  • 6,191
2
votes
1 answer

Any nice way to solve this recursive relation?

The problem defines a function as $f(x,0)=f(x-1,1)$, $f(0,y) = (y+1) \mod 5$ and $f(x,y) = f(x-1, f(x,y-1))$, want to compute $f(333,3)$? Recursively with tedious algebra, the problem can be computed, but I really hope to learn some nice trick to…
WWSS
  • 119
2
votes
1 answer

Difference between using max function over functions and over values

I was wondering if someone could explain what is the difference between the max of a finite number of functions and the max of a finite number of function values. For instance, as shown here, given real-valued continuous functions $f,g$, the…
ball_jan
  • 202
2
votes
0 answers

Can any function be expressed as a repeated composition of another function?

Let a function $f$ be on $R^n$ into $R^n$ and let k be a positive integer. Proposition: There exist a function $g$ on $R^n$ into $R^n$ such that $f$ equals $g$ composed $k$ times with itself: \begin{align} f(x) &= \underbrace{g(g(\cdots…
Angelos
  • 353
2
votes
2 answers

How to show a function $f$ defined on $\mathbb{R}$ is constant if it satisfies $f(x) + 3f(1-x) = 5$

Let f be a real valued function on $\mathbb{R}$. If for all real $x$,it satisfies $$ f(x) + 3f(1-x) = 5$$ Then show that f is a constant function. I tried it like this but not sure whether it is true or not. $$ f(x) + 3f(1-x) = 5\tag 1$$ replace $x$…
Satish
  • 353
2
votes
1 answer

Can a function be homothetic if it's not homogeneous?

I know that a homogeneous function of positive degree is homothetic, but can a function that is not homogeneous be homothetic?
user7087
2
votes
0 answers

If $g(f(x))$ is injective, is $g$ injective?

I know if $g(f(x))$ is injective, then $f$ is injective and I have no problems proving this, but I also know g is not injective, but my following wrong proof suggests that $g$ is injective. Proof: If $g(f(x))$ is injective, then if…
2
votes
1 answer

If the tangent drawn to the curve $f(x)=-e^{-x}(x^2+2x+2)+x$ at $(a,f(a))$ meets the curve again at two distinct points..

If the tangent drawn to the curve $f(x)=-e^{-x}(x^2+2x+2)+x$ at $(a,f(a))$ meets the curve again at two distinct points and the range of $a$ is $(m,n)$. Find $m+n$ It is possible to follow the general method, ie. by finding slope at point…
Aditya
  • 6,191