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 aAa\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:ABf:A\to B be a function. By the graph of this function we mean the subset equation of the Cartesian product A×BA\times B formed from the pairs (a,f(a)),aA(a,f(a)), a\in A. So equation.

Definition: A numerical function is a function f:ABf: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:ABf:A\to B be a function. We say ff is an injective function (one-to-one) if for any two elements x and yx \text{ and } y of AA, xyx\neq y, we have f(x)f(y).f(x)\neq f(y). The fact that ff is injective can also be written:

()x,yA;f(x)=f(y)x=y.(\forall)x,y\in A; f(x)=f(y)\Rightarrow x=y.

Let y=m,mRy=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:ABf:A\to B be a function. We say ff is a surjective function (onto) if for every bBb\in B there is at least one element aAa\in A such that f(a)=bf(a)=b. So f:ABf:A\to B is not surjective if bB\exists b\in B we have f(a)bf(a)\neq b, ()aA.(\forall)a\in A.

Let y=m,mRy=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:ABf:A\to B which is both injective and surjective is called a bijective function.

Let y=m,mRy=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:ABf:A\to B and g:BCg:B\to C (the codomain of ff coincides with the domain of gg). Let aAa\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:ACh:A\to C where h(a)=g(f(a))h(a)=g(f(a)) for ()aA(\forall) a\in A. The function hh defined this way is written gfg\circ f and is called the composition of the function gg with the function ff.

  1. If f:ABf:A\to B and g:CDg: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:ABf:A\to B and g:BAg:B\to A are two functions, both gf:AAg\circ f:A\to A and fg:BBf\circ g:B\to B make sense. In general fggff\circ g\neq g\circ f.

  3. Let f:ABf:A\to B, g:BCg:B\to C and h:CDh:C\to D be three functions. Then each of the functions h(gf)h\circ(g\circ f), (hg)f(h\circ g)\circ f makes sense, and the following equality holds: h(gf)=(hg)fh\circ(g\circ f)=(h\circ g)\circ f.

The inverse of a function

Definition: Let AA be any set. Write equation for the function defined by equation for ()aA(\forall) a\in A. equation is called the identity function of the set AA.

Let AA be a set and equation its identity function. Then:

  1. For any set BB and any function f:ABf:A\to B, we have equation.

  2. For any set CC and any function g:CAg:C\to A, we have equation.

Definition: A function f:ABf:A\to B is called invertible if there is a function g:BAg:B\to A such that equation and equation.

equation

The graphs of the functions ff and equation 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:RRf:\mathbb{R}\to \mathbb{R} is a linear function, f(x)=ax+b,a0,f(x)=ax+b, a\neq0, then there is a function g:RRg:\mathbb{R}\to \mathbb{R}, equation such that fg=gf=xf\circ g=g\circ f=x:
equation
equation

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

  1. Let f:[0,)[0,)f:[0,\infty)\to[0,\infty), equation and equation, equation
equation
equation
  1. Let f:(0,)(0,)f:(0,\infty)\to(0,\infty), equation have equation, so: equation

  2. Let equation, a bijective function on this domain with inverse equation. 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 equation, a bijective function on this domain with inverse equation. 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

equation

The function ff is invertible and its inverse is: equation

equation

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(xa)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 yb=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 equation is obtained from the graph of equation 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(2x)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 equation 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 equation

The graph of the function equation for the following values of a = 1, 2, 3.

  1. the graph of the function equation 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: equation

A=amplitude,A=\text{amplitude}, ω=angular frequency,\omega=\text{angular frequency}, b=initial phase.b=\text{initial phase}. The fundamental period of the function is equation

The graph of the function f(x)=sin(xb)f(x)=sin(x-b) for equation