MathAnalysisCalculusNumerical functions

Properties of numerical functions

8 minutes read

In many sciences, you come across various functions. In most cases, they are used to describe a dependency between two values you can measure, mostly numbers. For example, the dependency between the voltage and current through a conductor (Ohm's law), or the relationship between unemployment and losses in a country's production (Okun's law). In this topic you'll learn the properties of numerical functions – they are of great help if you need to analyze any process described by a function.

What is a numerical function?

A numerical function is a function that takes on values in some set of numbers – for example, in the set of integers Z\mathbb{Z} or the set of real numbers R\mathbb{R}. A numerical function does not obligatorily have a set of numbers as a domain (the set of its possible inputs), but its codomain (the set of possible outputs) is always a set of numbers.

For example, a relation that maps a real number with its tripled value is a numerical function: f(x)=3xf(x) = 3x. In this example the role of both the domain and the codomain is played by the set of real numbers: f ⁣:RRf \colon \mathbb{R} \to \mathbb{R}. You may come across other numerical functions, e.g. g ⁣:Z{0,1,2}g \colon \mathbb{Z} \to \{0,1 , 2\} such that g(x)g(x) is the remainder when xx is divided by 3. In this example, the domain is the set of integers, and the codomain is the set {0,1,2}\{0, 1, 2\}. And here's an example of a numerical function whose domain is a set of letters. This function maps the set of the English alphabet letters with their ordinal numbers: a1,b2,,z26a \to 1 , b \to 2 , \dots, z \to 26.

How to define a function

Defining a numerical function y=f(x)y = f(x) means specifying a rule that allows one to calculate the corresponding value of yy from an arbitrarily chosen value of xx. Most often, this rule is given by the formula. For example: f(x)=5x+2+x2,f(x) = 5x + 2 + x^2,org(x)=x+12x2+5 with domain  (2,4].g(x) = \dfrac{x+1}{2x^2+5} \ \text{with domain } \ (-2,4].The domain restriction means that we require 2<x4-2 < x \leqslant 4 in order for g(x)g(x) to be defined (the round bracket indicates that 2-2 is not included in the domain, and the square bracket indicates that 44 is included ).

Sometimes functions are defined piecewise – using different output formulas for different pieces, or parts, of the domain. For example,

h(x)={x for x<0x2 for 0x31 for x>3h(x) = \begin{cases} -x \text{ for } x < 0 \\ x^{2} \text{ for } 0 \leq x \leq 3\\ 1 \text{ for } x > 3 \end{cases}

If our function ff is defined on the set of real numbers or its subset, we can draw a graph of this function – that is, all points on a plane with coordinates (x,f(x))(x, f(x)). Let's see, what the graph of the function f(x)=5x+2+x2f(x) = 5x + 2 + x^2 looks like:

Graph of a quadratic function

Graphs of functions can be much more complicated. For example, the graph of our piecewise function h(x)h(x) that we wrote above looks like this:

Graph of a piecewise function

Boundedness

A function ff is

  • bounded above if there is a number MM that is greater than or equal to every other number in the range of ff;

  • bounded below if there is a number mm that is less than or equal to every other number in the range of ff;

  • bounded if it is bounded above and below.

For example, the function f1:RRf_{1}: \mathbb{R} \rightarrow \mathbb{R} such that f1(x)=x2f_{1}(x) = x^{2} is bounded below (because every value of f1f_{1} is greater than or equal zero), but it's not bounded above. Note that the function f2(x)=x2f_{2}(x) = -x^{2} is bounded above but not below.

Details

Bounded below function f1(x)=x2f_{1}(x) = x^{2}

Bounded above function f2(x)=x2f_{2}(x) = -x^{2}

The function f3(x)=sin(πx/2)f_{3}(x) = \sin(\pi x / 2) is bounded both above and below:

Bounded  function f3(x)=sin(πx/2)f_{3}(x) = \sin(\pi x / 2)

On the set of real numbers, we can define the functionsgn(x)={1 if x<00 if x=01 if x>0sgn(x) = \begin{cases} -1 \text{ if } x < 0\\ 0 \text{ if } x = 0\\ 1 \text{ if } x > 0\\ \end{cases}

known as the sign function. It is bounded as it can't take values greater than 1 or less than -1.

Increase and decrease

To define increasing and decreasing functions, we must have a numerical domain, for example, the set R\mathbb{R} of real numbers.

A function f ⁣:XYf \colon X \to Y is called increasing iff(x2)f(x1)  for all  x2>x1f(x_2) \geqslant f(x_1) \ \ \text{for all} \ \ x_2 > x_1. If f(x2)>f(x1)f(x_2) > f(x_1) for all x2>x1x_2 > x_1 the function is called strictly increasing.

In other words, the value of an increasing function increases as its argument increases.

A function f ⁣:XYf \colon X \to Y is called decreasing, iff(x2)f(x1)  for all  x2>x1f(x_2) \leqslant f(x_1) \ \ \text{for all} \ \ x_2 > x_1. If f(x2)<f(x1)f(x_2) <f(x_1) for all x2>x1x_2 > x_1 the function is called strictly decreasing.

In other words, the value of a decreasing function decreases as its argument increases.

We can notice that the function sgn(x)sgn(x), introduced in the previous section, is increasing but not strictly increasing. On the other hand, the function f4(x)=xf_{4}(x) = -\sqrt{x}, defined on non-negative real numbers, is strictly decreasing.

Sometimes a function can be increasing or decreasing on a piece of the domain. A set of real numbers lying between two fixed numbers aa and bb is known as an interval. An open interval, denoted by (a,b)(a, b), does not include its endpoints:

(a,b)={xa<x<b}(a, b) = \{x \mid a < x < b\} - A closed interval, on the other hand, includes aa and bb:

[a,b]={xaxb}[a, b] = \{x \mid a \leq x \leq b\} - We can look again at the graph of a function f3(x)=sin(πx/2)f_{3}(x) = \sin(\pi x / 2) and notice that it is increasing on an interval [1,1][-1, 1] and decreasing on an interval [1,3][1, 3].

Symmetry

A function f ⁣:XYf \colon X \to Y is called an even function, if ff satisfies the following condition:f(x)=f(x)  for all  xX.f(x) = f(-x) \ \ \text{for all } \ x \in X.This means that ff is symmetric about the y-axis.

For example, f5(x)=x610f_{5}(x) = x^6 -10 is even:

Even function f5(x)=x610f_{5}(x) = x^6 -10

A function f ⁣:XYf \colon X \to Y is called an odd function, if ff satisfies the following condition:f(x)=f(x)  for all  xX.f(-x) = -f(x) \ \ \text{for all } \ x \in X.This means that ff is symmetric if we rotate it by 180180^\circ about the origin. For example, f6(x)=x5f_{6}(x) = x^5 is odd:

Odd function f6(x)=x5f_{6}(x) = x^5

A function can be either even, odd, or neither, with the exception of f(x)=0f(x)=0, which is both even and odd. The function f7(x)=0.5x+cos(x)f_{7}(x) = 0.5x + \cos(x) is neither even nor odd:

The function is neither even nor odd f7(x)=0.5x+cos(x)f_{7}(x) = 0.5x + \cos(x)

Conclusion

Numerical functions are very often used in practice to describe different dependencies. You can understand the nature of these dependencies in terms of the functions' properties. Now you can define such classes of functions as:

  • bounded and unbounded

  • increasing and decreasing

  • even and odd

For example, the function describing the number of solved problems from the time spent on the Hyperskill platform will be bounded (you can't solve less than 0 problems and more than all problems) and increasing (once you solve a problem, you can't unsolve it).

93 learners liked this piece of theory. 15 didn't like it. What about you?
Report a typo