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

Let $f:[0,1]\to(0,1)$ be a surjective function. Prove that $f$ has at least one point of discontinuity.

Let $f:[0,1]\to(0,1)$ be a surjective function. Prove that $f$ has at least one point of discontinuity. $f$ is surjective, so all elements in codomain must be mapped to from some element in domain. I'm trying to think of some argument from here,…
Ellie_Wong
  • 222
  • 8
1
vote
0 answers

What's wrong in my solution and pls provide the correct one in this question of finding range

Find the range of the function $$y=\frac{\sqrt{(x-1)(x+3)}}{x+2}$$ My attempt: $$y=\frac{\sqrt{(x-1)(x+3)}}{x+2}$$ $$\implies x^2(y^2-1)+x(4y^2-2)+4y^2+3=0$$ Since $x\in\mathbb{R}$ so roots can't be complex $\implies…
1
vote
0 answers

Generalised factorial

When generalizing the factorial, we often refer to the gamma function, which gives $(n-1)!$ for $\Gamma(n)$. Why do we not use the Pi function instead, which provides the factorial of the input? Is there a formatting issue with it or is it something…
1
vote
0 answers

Range of quadratic divided by quadratic function

If we have to find the range of $\frac{ax^2+bx+c}{px^2 + qx + r} = y$ We can follow this procedure $ (py-a)x^2 + (qy-b)x + (ry -c) = 0$ Now we have to solve the discriminant of the above quadratic equation, the values of $y$ for which discriminant…
1
vote
1 answer

Exercise 30 on p.40 in Exercises 2B in "Measure, Integration & Real Analysis" by Sheldon Axler.

I am reading "Measure, Integration & Real Analysis" by Sheldon Axler. The following exercise is Exercise 30 on p.40 in Exercises 2B in this book. Exercise 30 Show that $$\lim_{j\to\infty}\left(\lim_{k\to\infty} \left(\cos(j!\pi…
tchappy ha
  • 8,690
1
vote
2 answers

multi-dimensional function from mesured values

I am thinking about the posibility of determining continual, differentiable functions $$f:~\mathbb{R}^n\to\mathbb{R}\quad\textrm{or}\quad g:\mathbb{R^n}\to\mathbb{R}^m$$ by giving a non infinite set of…
FirefoxMetzger
  • 207
  • 1
  • 6
1
vote
0 answers

Are there any examples of non-piecewise, non-analytic, smooth functions with converging Taylor Series?

There is—for example—the piecewise function where $f(x) = e^{(-1/( x^2 ))}$ if $x \neq 0$ and $f(x) = 0$ if $x = 0$, where the Taylor Series (centered at $x = 0$) becomes $0 + 0x + 0x^2 + 0x^n +…$, not converging to $f(x)$. But, are there any, even…
1
vote
1 answer

What is the codomain of $g(x) = x^2 + 1$?

I do not understand the first example right after the topic of function composition is introduced in Mathematik für Ingenieure by Thomas Reissinger. There is a function $g : \mathbb{R} \rightarrow [0, \infty)$ defined as $$g(x) = x^2 + 1$$ and a…
no1dea
  • 77
1
vote
1 answer

Need help solving a problem about water consumption of dogs in a kennel

I am having trouble with a math problem and I'm hoping someone can help me figure it out. The problem goes as follows: "There are twelve dogs in a kennel drinking water from a large water tank. How many liters of water do the dogs drink in total…
1
vote
2 answers

Finding $h'(1),h(0)$ and $h(g(3))$, given $f(x)=x^3+3x+2$

Let $f:R\rightarrow R$ and $g:R\rightarrow R$ and $h:R\rightarrow R$ be differentiable function such that $f(x)=x^3+3x+2$ and $g(f(x))=x$ and $ h(g(g(x)))=x$ for all $x\in R$. Then which one is/are True $\displaystyle (a) \…
1
vote
1 answer

Do formal definitions of functions have to exclude one-many mapping?

A formal definition of a bijection, for example, might be: Let $f$ be a function whose domain is set $A$ and whose range is set $B$. $A$ function $f$ is bijective iff for every $b$ in $B$ there exists exactly one $a$ in $A$ such that $f(a)=b$. This…
1
vote
1 answer

Determine function for table of values

Problem: Given that a function $ f $ is completely defined by the following table: $$ \begin{array}{c|lcr} \\ \hline x & 0 & 2 & 3 \\ f(x) & -2 & 4 & √10 \\ \end{array} $$ Write down the function. State the rule that determines the function. What…
1
vote
2 answers

Fitness Function

I'm trying to create a fitness function, where I can calculate the score of a value. The closer it gets to x, the higher the value. Yes it could be linear, but I'd prefer to have it exponential. I just don't know what term to even google for…
1
vote
0 answers

General form for this iterated function?

The function is $f(x)=3x^2-2x^3$ I want to iterate this function like this $f(f(f(x)))$. However I can't tell if there is a general form for $f^n(x)$. The coefficients explode by the 2nd iteration and I can't discern any kind of pattern. I'm way out…
1
vote
1 answer

What is needed for $y=f(x)$ to be considered a function?

When is an equation of the form $ y = f(x)$ not a function? Does it need to be surjective, injective, both, neither? I vaguely remember something called the vertical line test, but it's not making any connections in my brain. Also, I'm reading a…