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

Problem in one to one functions

Here is a question, the content in red is the question and the underlined area was left blank to answer it. The diagram is made by me to help understand the question, I am unable to get the point that how does it prove that it is one to one?
user2857
1
vote
1 answer

Definition of concavity

The mathematical definition of a function being concave between points $x_1$ and $x_2$ is the following: $\lambda f(x_1)+(1-\lambda)f(x_2) \leq f(\lambda x_1+(1-\lambda)x_2)$, for any $0 \leq \lambda \leq 1$. Can someone give a detailed, intuitive…
fool
  • 79
1
vote
1 answer

What is the Simplest Way to Solve a System of Functions

In class we are learning about solving function systems. I have been given multiple way to solve these yet I still do not understand which one I would use in real life. Please help me choose one of the three. Finding the Intersection on a…
1
vote
3 answers

What's the difference between $f \cdot g$ and $f(g(x))$?

For example if $f(x) = x + 2$ and $g(x) = 4x - 1$ Then what would be the difference in $f \cdot g$ and $f(g(x))$?
1
vote
1 answer

Multiply numbers in range

Okay I really suck at titles! If someone has a better one, please feel free to edit! Anyway, what I'd like to do is find an equation that maps all pairs $(x,y)$ of integers $0$ to $27$ (inclusive) to an integer $z$ in the same range. Additional…
1
vote
1 answer

Function fromal definition

The relation $R:= \{(x,y) \mid y= \vert x\vert \} \subseteq \mathbb{Z} \times \mathbb{N}$ is a function, but the relation $R:= \{(y,x) \mid y= \vert x\vert \} \subseteq \mathbb{N} \times \mathbb{Z}$ is not a function... for me it seems that the…
Googme
  • 355
1
vote
2 answers

Determining the inverse function

I need to determine the inverse function for the following function: $$ f:\mathbb{R}\to\mathbb{R}\ \ \ \text{with}\ \ f(x)=x^2\\ \text{so I need to determine}\\ f^{-1}(\{25\}) $$ So I know that the function $f(x)=x^2$ is bijective, so it has a…
depecheSoul
  • 913
  • 7
  • 13
1
vote
1 answer

Solving for x for equation $y=x(8-x)$

I am trying to find the equation of $y=x(8-x)$ So what I did so far ... $y=8x-x^2$ But no matter what I did after, I still will have $x$ of different degrees? eg. 1 squared, 1 "normal"? else it will be 1 square root, 1 "normal"? How do I solve…
Jiew Meng
  • 4,593
1
vote
1 answer

How do I rotate an equation?

I have an equation which I use to get the height of an object based on the distance that object is from a viewpoint. The problem is that it slopes down too quickly. $$ \text{visibleHeight} = k \cdot \frac{\text{actualHeight} }{…
1
vote
1 answer

Commutative diagrams of sets and functions

Consider these two diagrams of sets and functions (with $f$ and $f'$ invertible): \begin{array}{ccccccccc} A & \overset{f}{\longrightarrow} & B && &B & \overset{f^{-1}}{\longrightarrow} & A\\ u\downarrow& & v\downarrow & &; & v\downarrow & &…
1
vote
3 answers

proving that $f$ is an injective function

Let $f:A\rightarrow B$, so $g:{\mathcal P}(B)\rightarrow \mathcal{P}(A)$. By $g(B)=$$''$$f^{-1}$$''$$(B)$, prove that $f$ is injective iff $g$ is surjective. I'd appreciate any help
gazok
  • 75
1
vote
1 answer

Find the minium of function

Find the minimum of $f(x)=(x-1)(x-2)(x-3)(x-4)$ without using the calculus, I know it's easy to find it using the derivative, but I need to fiugre out how to solve it without it. I know that the minimum are between $(1,2)\vee(3,4)$ becouse of chart…
Mark
  • 403
  • 5
  • 13
1
vote
1 answer

Wat is the correct term for 'historic average'?

I've got the following array of numbers: {2, 4, 8, 1, 3} I've got a function that will shows the 'historic average' for every number: {2, 3, 4.667, 3.75, 3.6} I'm not a mathematician, but I would like to know how this function is called. Anyone?
1
vote
2 answers

How to find onto, one to one and everywhere defined from a formula?

I was reading functions, I came across this question, Next, the author has given an exercise to find out 3 things from the example, 1. Onto 2. Everywhere defined 3. One to one I am stuck with how do I come to know if it has these there…
user2857
1
vote
1 answer

What is $(g \circ f)(3)$?

If $f(x) = x^2$ and $g(x) = \sqrt{x+4}$ What is $g \circ f (3)$ ? $g(f(x))$ would be $(\sqrt{x^2+4})(3)$ correct? What would be my next move in figuring this out?