Function
A function assigns to every element exactly one element .
A function is a precise rule between sets. A solid understanding of domains, codomains and ranges makes it much easier to recognize injectivity, surjectivity, inverses and compositions.
A function assigns to every element exactly one element .
describes the rule; also specifies the sets involved.
The same input cannot have two different outputs. Distinct inputs may have the same output; that does not prevent the relation from being a function.
| Object | Meaning | Example for f: β β β, f(x) = xΒ² |
|---|---|---|
| A | Domain: the set of allowed inputs. | β |
| B | Codomain: the declared set of possible outputs. | β |
| f(x) | Image of the element x. | f(β3) = 9 |
| f(A) | Range of the function: the values it actually takes. | [0, +β) |
| fβ»ΒΉ({y}) | Fiber or preimage of y: the inputs that produce y. | fβ»ΒΉ({9}) = {β3, 3} |
For and subsets , :
| Expression contains | Condition | Example |
|---|---|---|
| Denominator | It must be nonzero. | 1/(xβ2): x β 2 |
| Even-index root | The radicand must be β₯ 0. | β(3βx): x β€ 3 |
| Logarithm | The argument must be > 0. | log(x+1): x > β1 |
| Arcsine or arccosine | The argument must lie in [β1, 1]. | arcsin(2x): |x| β€ 1/2 |
| Composition | x must lie in the inner domain and its output in the outer domain. | log(βxβ1): x > 1 |
In the diagrams, every arrow starts in the domain A and ends in the codomain B. Check whether two arrows share an endpoint and whether any codomain points remain unreached.
A function is injective when different inputs produce different outputs.
Equivalently, .
Set and prove that necessarily .
Every horizontal line must meet the graph at most once.
A function that is strictly increasing or strictly decreasing throughout its domain is injective.
It is enough to find with the same image.
A function is surjective if every element of the codomain is reached:
In other words, .
Take an arbitrary , solve for x and check that at least one solution belongs to the domain.
Exhibit an element of the codomain that is not the image of any domain element.
from β to β is not surjective; from β to it is.
A function is bijective if it is both injective and surjective. Every codomain element has exactly one preimage.
If f is bijective, there is an that maps every output back to its unique input.
and .
The inverse graph is obtained by reflecting the graph of f across the line .
If and , their composition is:
If , the restriction uses the same rule as f on a smaller domain.
A function g is an extension of f if it agrees with f on fβs domain but is defined on a larger set.
. It is bijective and does not change a function when composed with it.
. If the domain has more than one element, it is not injective; it is surjective only onto the codomain .
| Property | Definition or criterion | Remark |
|---|---|---|
| Even | f(βx) = f(x) | Graph symmetric about the y-axis. |
| Odd | f(βx) = βf(x) | Graph symmetric about the origin. |
| Periodic | f(x + T) = f(x) for some T > 0 | The smallest positive T, if it exists, is the fundamental period. |
| Increasing | xβ < xβ β f(xβ) β€ f(xβ) | βStrictly increasingβ also uses < between the images. |
| Decreasing | xβ < xβ β f(xβ) β₯ f(xβ) | A strictly monotone function is injective. |
| Bounded above | There is an M such that f(x) β€ M for every x. | The least upper bound is the supremum of the range. |
| Bounded below | There is an m such that m β€ f(x) for every x. | The greatest lower bound is the infimum of the range. |
| Maximum | There is an xβ such that f(x) β€ f(xβ) for every x. | The supremum need not be attained. |
| Continuous at xβ | lim xβxβ f(x) = f(xβ) | This requires f(xβ) to be defined and equal to the limit. |
| Differentiable at xβ | The difference quotient has a finite limit. | Differentiability implies continuity; the converse is false. |
| New function | Effect on the graph of y = f(x) |
|---|---|
f(x) + k | Vertical translation by k: upward if k > 0. |
f(x β h) | Horizontal translation by h: to the right if h > 0. |
a f(x) | Vertical scaling by |a|; if a < 0, also reflection across the x-axis. |
f(bx) | Horizontal scaling by 1/|b|; if b < 0, also reflection across the y-axis. |
|f(x)| | The parts below the x-axis are reflected above it. |
f(|x|) | The part for x β₯ 0 is reflected across the y-axis. |
βf(x) | Reflection across the x-axis. |
f(βx) | Reflection across the y-axis. |
.
It is strictly increasing and therefore injective. For every y, the equation y = 3x β 2 gives x = (y + 2)/3 β β, so it is surjective and hence bijective.
.
.
It is not injective because f(x) = f(βx). Its range is [1, +β), so it is not surjective onto β.
Restricted to [0, +β) with codomain [1, +β), it becomes bijective, with inverse .
.
The domain is β \ {β2}. Solving y = (xβ1)/(x+2) gives x = (β1β2y)/(yβ1), which is possible for y β 1.
As a function from β \ {β2} to β \ {1}, it is bijective. Its inverse is .
f(x) = βx and g(x) = x β 1.
(f β g)(x) = β(xβ1) has domain [1, +β).
(g β f)(x) = βxβ1 has domain [0, +β). The two compositions are different.
f(x) = y without checking that the solution belongs to the domain.fβ»ΒΉ with 1/f.(g β f)(x) = g(f(x)).Analyze .
It is strictly increasing with range β, so it is bijective. Its inverse is β(y+1).
Find the domain of f(x) = log((xβ1)/(x+2)).
We need (xβ1)/(x+2) > 0. A sign analysis gives (ββ, β2) βͺ (1, +β).
Make f(x) = (xβ2)Β² invertible and find an inverse.
One choice is f: [2,+β) β [0,+β). Then fβ»ΒΉ(y) = 2 + βy. Choosing the branch x β€ 2 instead gives 2 β βy.
If g β f is bijective, what can you conclude about f and g?
You can conclude that f is injective and g is surjective. Without further assumptions, you cannot conclude that both are bijective.
Practical advice: when you start an exercise, write down the domain and codomain immediately. Almost every later property depends on those two sets.