Skip to main content

Functions

The idea of a function​

Definition: Let AA and BB be two sets. By a function defined on the set AA, with values in BB we mean any rule (procedure or convention) ff which associates to every element a∈Aa\in A a single element, written f(a)f(a), in BB. The set AA is called the domain, and the set BB is called the codomain of the function, or the set of values of the function.

Let f:A→Bf:A\to B be a function. By the graph of this function we mean the subset Gf{{G}_{f}} of the Cartesian product A×BA\times B formed from the pairs (a,f(a)),a∈A(a,f(a)), a\in A. So Gf={(a,f(a))∣a∈A}{{G}_{f}}=\{(a,f(a))|a\in A\}.

Definition: A numerical function is a function f:A→Bf:A\to B for which both the domain AA and the set of values BB are subsets of the set of real numbers.

Injective, surjective and bijective functions​

Definition: Let f:A→Bf:A\to B be a function. We say ff is an injective function (one-to-one) if for any two elements x i yx\text{ i }y of AA, x≠yx\ne y, we have f(x)≠f(y).f(x)\ne f(y). The fact that ff is injective can also be written:

(∀)x,y∈A; f(x)=f(y)⇒x=y.(\forall )x,y\in A;\text{ }f(x)=f(y)\Rightarrow x=y.

Let y=m,m∈Ry=m, m\in \mathbb{R} be a family of lines parallel to the OxOx axis. If these lines meet the graph of the function ff in at most one point (one or none), then ff is injective.

Definition: Let f:A→Bf:A\to B be a function. We say ff is a surjective function (onto) if for every b∈Bb\in B there is at least one element a∈Aa\in A such that f(a)=bf(a)=b. So f:A→Bf:A\to B is not surjective if ∃b∈B\exists b\in B we have f(a)≠bf(a)\ne b, (∀)a∈A.(\forall )a\in A.

Let y=m,m∈Ry=m, m\in \mathbb{R} be a family of lines parallel to the OxOx axis. If these lines meet the graph of the function ff in at least one point, then ff is surjective.

Definition: A function f:A→Bf:A\to B which is both injective and surjective is called a bijective function.

Let y=m,m∈Ry=m, m\in \mathbb{R} be a family of lines parallel to the OxOx axis. If these lines meet the graph of the function ff in exactly one point, then ff is bijective.

Every continuous, strictly monotonic function is bijective.

Composition of functions​

Definition: Let the functions be f:A→Bf:A\to B and g:B→Cg:B\to C (the codomain of ff coincides with the domain of gg). Let a∈Aa\in A; then f(a)∈Bf(a)\in B, so its image under gg exists, namely g(f(a))∈Cg(f(a))\in C. We can therefore define a function h:A→Ch:A\to C where h(a)=g(f(a))h(a)=g(f(a)) for (∀)a∈A(\forall ) a\in A. The function hh defined this way is written g∘fg\circ f and is called the composition of the function gg with the function ff.

  1. If f:A→Bf:A\to B and g:C→Dg:C\to D are two functions, it only makes sense to speak of the composition of gg with ff when B=CB=C.

  2. If f:A→Bf:A\to B and g:B→Ag:B\to A are two functions, both g∘f:A→Ag\circ f:A\to A and f∘g:B→Bf\circ g:B\to B make sense. In general f∘g≠g∘ff\circ g\ne g\circ f.

  3. Let f:A→Bf:A\to B, g:B→Cg:B\to C and h:C→Dh:C\to D be three functions. Then each of the functions h∘(g∘f)h\circ (g\circ f), (h∘g)∘f(h\circ g)\circ f makes sense, and the following equality holds: h∘(g∘f)=(h∘g)∘fh\circ (g\circ f)=(h\circ g)\circ f.

The inverse of a function​

Definition: Let AA be any set. Write 1A:A→A{{1}_{A}}:A\to A for the function defined by 1A(a)=a{{1}_{A}}(a)=a for (∀)a∈A(\forall ) a\in A. 1A{{1}_{A}} is called the identity function of the set AA.

Let AA be a set and 1A{{1}_{A}} its identity function. Then:

  1. For any set BB and any function f:A→Bf:A\to B, we have f∘1A=ff\circ {{1}_{A}}=f.

  2. For any set CC and any function g:C→Ag:C\to A, we have 1A∘g=g{{1}_{A}}\circ g=g.

Definition: A function f:A→Bf:A\to B is called invertible if there is a function g:B→Ag:B\to A such that g∘f=1Ag\circ f={{1}_{A}} and f∘g=1Bf\circ g={{1}_{B}}.

f(x)=y⇔f−1(y)=x,∀x∈Af(x)=y\Leftrightarrow {{f}^{-1}}(y)=x, \forall x\in A

The graphs of the functions ff and f−1{{f}^{-1}} are symmetric about the first bisector of the coordinate system — the line y = x.

Theorem: A function is invertible if and only if it is bijective.

Examples of invertible functions​

  1. If f:R→Rf:\mathbb{R}\to \mathbb{R} is a linear function, f(x)=ax+b,a≠0,f(x)=ax+b, a\ne 0, then there is a function g:R→Rg:\mathbb{R}\to \mathbb{R}, g(x)=1ax−ba,a≠0,g(x)=\frac{1}{a}x-\frac{b}{a}, a\ne 0, such that f∘g=g∘f=xf\circ g=g\circ f=x:

g∘f=(g∘f)(x)=1a(ax+b)−ba=x,∀x∈Rg\circ f=(g\circ f)(x)=\frac{1}{a}(ax+b)-\frac{b}{a}=x, \forall x\in \mathbb{R}

f∘g=(f∘g)(x)=a(1ax−ba)+b=x,∀x∈Rf\circ g=(f\circ g)(x)=a(\frac{1}{a}x-\frac{b}{a})+b=x, \forall x\in \mathbb{R}

So the function f(x)=ax+bf(x)=ax+b is invertible.

  1. Let f:[0,∞)→[0,∞)f:[0,\infty )\to [0,\infty ), f(x)=x2f(x)={{x}^{2}} and f−1:[0,∞)→[0,∞){{f}^{-1}}:[0,\infty )\to [0,\infty ), f−1(x)=x{{f}^{-1}}(x)=\sqrt{x}

(f∘f−1)(x)=f(f−1(x))=f(x)=(x)2=x,∀x≥0(f\circ {{f}^{-1}})(x)=f({{f}^{-1}}(x))=f(\sqrt{x})={{(\sqrt{x})}^{2}}=x, \forall x\ge 0

(f−1∘f)(x)=f−1(f(x))=f−1(x2)=x2=∣x∣=x,∀x>0({{f}^{-1}}\circ f)(x)={{f}^{-1}}(f(x))={{f}^{-1}}({{x}^{2}})=\sqrt{{{x}^{2}}}=\left| x \right|=x, \forall x>0

  1. Let f:(0,∞)→(0,∞)f:(0,\infty )\to (0,\infty ), f(x)=1xf(x)=\frac{1}{x} have f−1(x)=1x{{f}^{-1}}(x)=\frac{1}{x}, so: f−1(x)=f(x),∀x∈(0,+∞){{f}^{-1}}(x)=f(x), \forall x\in (0,+\infty )

  2. Let sin⁡:[−π2,π2]→[−1,1]\sin :\left[ -\frac{\pi }{2},\frac{\pi }{2} \right]\to \left[ -1,1 \right], a bijective function on this domain with inverse arcsin⁡:[−1,1]→[−π2,π2]\arcsin :\left[ -1,1 \right]\to \left[ -\frac{\pi }{2},\frac{\pi }{2} \right]. The graphs of these functions are shown in the figure below, so that the symmetry about the line y = x can be seen.

  3. Let cos⁡:[0,π]→[−1,1]\cos :\left[ 0,\pi \right]\to \left[ -1,1 \right], a bijective function on this domain with inverse arccos⁡:[−1,1]→[0,π]\arccos :\left[ -1,1 \right]\to \left[ 0,\pi \right]. The graphs of these functions are shown in the adjacent figure, so that the symmetry about the line y = x can be seen.

  4. Let f:[−1,2]→[0,4]f:[-1,2]\to [0,4], defined by

f(x)={12x+12, dac  ⁣ ⁣a˘ ⁣ ⁣ x∈[−1,1]x2, dac  ⁣ ⁣a˘ ⁣ ⁣ x∈(1,2]f(x)=\left\{ \begin{aligned} & \frac{1}{2}x+\frac{1}{2},\text{ dac }\!\!\breve{\mathrm{a}}\!\!\text{ }x\in [-1,1] \\ & {{x}^{2}},\text{ dac }\!\!\breve{\mathrm{a}}\!\!\text{ }x\in (1,2] \\ \end{aligned} \right.

The function ff is invertible and its inverse is: f−1:[0,4]→[−1,2]{{f}^{-1}}:[0,4]\to [-1,2]

f−1(x)={2x−1, dac  ⁣ ⁣a˘ ⁣ ⁣ x∈[0,1]x, dac  ⁣ ⁣a˘ ⁣ ⁣ x∈(1,4]{{f}^{-1}}(x)=\left\{ \begin{aligned} & 2x-1,\text{ dac }\!\!\breve{\mathrm{a}}\!\!\text{ }x\in [0,1] \\ & \sqrt{x},\text{ dac }\!\!\breve{\mathrm{a}}\!\!\text{ }x\in (1,4] \\ \end{aligned} \right.

Geometric transformations of graphs​

Translating graphs along the coordinate axes. Suppose the function y=f(x)y=f(x) and the numbers a,b>0a,b>0. Then:

  1. the graph of the function y=f(x−a)y=f(x-a) is obtained by translating the graph of y=f(x)y=f(x) by aa units to the right;

  2. the graph of the function y=f(x+a)y=f(x+a) is obtained by translating the graph of y=f(x)y=f(x) by aa units to the right;

  3. the graph of the function y−b=f(x)y-b=f(x) or y=f(x)+by=f(x)+b is obtained by translating the graph of y=f(x)y=f(x) by bb units in the positive direction of the OyOy axis (upwards);

  4. the graph of the function y+b=f(x)y+b=f(x) or y=f(x)−by=f(x)-b is obtained by translating the graph of y=f(x)y=f(x) by bb units in the negative direction of the OyOy axis (downwards).

figure

The graph of y−3=(x−2)2y-3={{(x-2)}^{2}} is obtained from the graph of y=x2y={{x}^{2}} by two translations.

Compressing and stretching graphs. Suppose the function y=f(x)y=f(x) and the number a>1a>1. Then:

  1. the graph of the function y=f(ax)y=f(ax) is obtained by compressing the graph of y=f(x)y=f(x) horizontally by a factor of aa;
figure

The graph of g(x)=sin⁡(2⋅x)g(x)=\sin (2\cdot x) is obtained from the graph of f(x)=sin⁡(x)f(x)=\sin (x) by a contraction along the x-axis.

  1. the graph of the function y=f(xa)y=f(\frac{x}{a}) is obtained by stretching the graph of y=f(x)y=f(x) horizontally by a factor of aa;

  2. the graph of the function y=af(x)y=af(x) is obtained by stretching the graph of y=f(x)y=f(x) vertically by a factor of aa;

The graphs of the functions f(x)=sin⁡(x)f(x)=\sin (x) and g(x)=3⋅sin⁡(x)g(x)=3\cdot \sin (x)

The graph of the function f(x)=ax2f(x)=a{{x}^{2}} for the following values of a = 1, 2, 3.

  1. the graph of the function y=f(x)ay=\frac{f(x)}{a} is obtained by compressing the graph of y=f(x)y=f(x) vertically by a factor of aa;

Reflecting graphs in the coordinate axes. Suppose the function y=f(x)y=f(x). Then:

  1. the graph of the function y=f(−x)y=f(-x) is obtained by reflecting the graph of y=f(x)y=f(x) in the OyOy axis;

  2. the graph of the function y=−f(x)y=-f(x) is obtained by reflecting the graph of y=f(x)y=f(x) in the OxOx axis.

In physics one meets the function: f:R→R, f(x)=A⋅cos⁡(ωx+b),ω≠0f:\mathbb{R}\to \mathbb{R},\text{ }f(x)=A\cdot \cos (\omega x+b), \omega \ne 0

A=amplitudine,A=amplitudine, ω=pulsatie,\omega =pulsatie, b=fazainiiala˘.b=faza iniial\breve{a}. The fundamental period of the function is T=2π∣ω∣.T=\frac{2\pi }{\left| \omega \right|}.

The graph of the function f(x)=sin⁡(x−b)f(x)=\sin (x-b) for b=0,π4,π,3π2b=0, \frac{\pi }{4}, \pi , \frac{3\pi }{2}