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

f(xy)=f(x) * f(y)

Let f be a function such that $f(mn) = f(m) f(n)$ for every positive integers m and n. If $f(1), f(2)$ and $f(3)$ are positive integers, $f(1) < f(2),$ and $f(24) = 54$, then $f(18)$ equals ? Process:- I attempted to solve this question using 2…
Fin27
  • 958
1
vote
1 answer

Is it possible to solve an equation look like this?

$$ \int_{-\infty}^{\infty} f(x+t) \cdot g(t)dt=f(x), \forall x \in \mathbb{R} $$ Any necessary regularity conditions can be assumed to hold. I was wondering if there exists a generic method to solve an equation like this.
cxxu96
  • 323
1
vote
2 answers

Doubts regarding irrational functions

irrational function So, as you can see in the photo above, I solved this equation and I got 2 results as an answer. Both of which seem correct to me. But my teacher stated that the -2 solution is incorrect, and that 1 is the only correct answer. I…
1
vote
1 answer

Rounding to nearest .05

Below is a function to round to nearest .05. The round function simply rounds up or down to the nearest first decimal place. Example 2.26 rounds to 2.3 round_to_nearst_05 = round($amount * 2, 1) / 2 The function below will round to the nearest .05.…
1
vote
1 answer

How to customize a function with a horizontal asymptote?

I'm looking for a function that approaches a y-value as x approaches infinity, something close to: $$y=\frac{x}{x+1}$$ however I have no idea how to customize such a function to suit my needs. I know that multiplying the entire thing will move the…
1
vote
0 answers

Let $f(x)=2e^x + (a^2-5a+6)e^{-x} + (10a-2a^2-11)x - 3$ is increasing on values of $x$, then find number of integral values of $a$

The given solutions involves a kinda hard to notice manipulation shown as follows $$f'(x)=2e^x-(a^2-5a+6)e^{-x} + (10a-2a^2 -11)$$ $$=2e^{-x}[e^x + (5a-a^2-6)][e^x + \frac 12]$$ $$\implies 2\le a \le 3$$ Now A different method i came across was to…
Aditya
  • 6,191
1
vote
1 answer

How to determine the range and domain of a function

I'm practicing questions on domain and range and how it affects the graph whenever it is even or odd, I realized a relationship in some questions but I'm not certain on whether or not they are correct. My thoughts were that for all odd powers or…
user965097
1
vote
1 answer

For $x>0$ let $f(x)=x^{2/3}(6-x)^{1/3}$ and $g(x)=x\ln(x),$ then find the number of solutions of $f(x)=g(x)$

For $x>0$ let $f(x)=x^{2/3}(6-x)^{1/3}$ and $g(x)=x\ln(x),$ then prove that $f(x)=g(x)$ only has one real solution Since $g(x)$ is always positive $f(x)$ will only be defined in $(0,6)$. $\displaystyle…
Tatai
  • 755
  • 4
  • 24
1
vote
1 answer

Make a set of percentages influence each other positively without just summing them up

For a database-frontend, I need to calculate a "score" from a multitude of different variables. While this in itself is rather easy, there is one smaller part that I can't figure out how to solve. The specifications are as following: The result…
1
vote
1 answer

If $(f+g)(x)=4$ and $(f\circ g)(x)=7-4x$ What is the sum of the possible values for $g(2)$?

If $f$ and $g$ are polynomial functions so that $(f+g)(x)=4$ and $(f\circ g)(x)=7-4x$, what is the sum of the possible values for $g(2)$? $1)2\qquad\qquad\qquad2)3\qquad\qquad\qquad3)-3\qquad\qquad\qquad4)-2$ To solve this problem First I realized…
Etemon
  • 6,437
1
vote
1 answer

Two different polynomial equations of degree $4$

Let $f(x)$ and $g(x)$ are polynomial of degree 4 such that $g(\alpha) = g'(\alpha) = g''(\alpha) = 0$. If $\lim_{x \to \alpha } \frac{f( x )}{g( x)} = 0$ , then the number of different real solutions of equation $f(x)\cdot g'(x) + g(x)\cdot f'(x) =…
1
vote
2 answers

Conversion Calculations

I'm trying to create an app for a workshop that I'll be running. It's going to be a variation of the temperature converter app that tends to be the "Introduction to programming" default. Anyway, I was wondering about conversions. If you take,…
1
vote
2 answers

Suppose $g$ is not surjective and$f$ is injective then $f$ over $g$ is not surjective

So I can say that because $f$ is injective $f(g(a)) = f(g(b)) \Rightarrow g(a) =g(b)$,right? And because $g$ is not surjective there is $g(a) \neq A$. I'm not sure how to combine these two together and prove that $f(g(a)) \neq A$. Am I in the right…
Nadav
  • 123
1
vote
1 answer

Relation of coefficient of Cubic polynomial

If $a.b $ & $c$ are rational number satisfying the equation $x^3+ax^2+bx+c=0$, then which of the following can also be true . A) $a+b^2+c^3=0$ B) $a+b^2+c^3=5$ C) $a+b^2+c^3=1$ D) None of these If it is a cubic function the equation has at least one…
1
vote
1 answer

Function related problem

Let $g:N \to N$ be defined as $g\left( {3n + 1} \right) = 3n + 2$ $g\left( {3n + 2} \right) = 3n + 3$ $g\left( {3n + 3} \right) = 3n + 1$, for all $n \ge 0$. Then which of the following statement is true? There exist an onto function $f:N \to N$…
1 2 3
99
100